on develop help sign in
Regenerating all services
b29abb1Brendan Hay
gogol-apps-reseller/gen/Network/Google/AppsReseller/Types.hs+2−2
@@ -124,8 +124,8 @@ import Network.Google.AppsReseller.Types.Product
124import Network.Google.AppsReseller.Types.Sum
124import Network.Google.AppsReseller.Types.Sum
125import Network.Google.Prelude
125import Network.Google.Prelude
126
126
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.
128appsResellerRequest :: RequestBuilder
128appsResellerRequest :: RequestBuilder
129appsResellerRequest
129appsResellerRequest
130 = defaultRequest "https://www.googleapis.com/"
130 = 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:
19 /Warning:/ This is an experimental prototype/preview release which is still
19 /Warning:/ This is an experimental prototype/preview release which is still
20 under exploratory development and not intended for public use, caveat emptor!
20 under exploratory development and not intended for public use, caveat emptor!
21 .
21 .
22− This library is compatible with version @v1sandbox@
22+ This library is compatible with version @v1@
23 of the API.
23 of the API.
24 .
24 .
25 Labels:
25 Labels:
gogol-container/gen/Network/Google/Container.hs+37−46
@@ -17,7 +17,7 @@
17-- container based applications, powered by the open source Kubernetes
17-- container based applications, powered by the open source Kubernetes
18-- technology.
18-- technology.
19--
19--
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>
21module Network.Google.Container
21module Network.Google.Container
22 (
22 (
23 -- * API Declaration
23 -- * API Declaration
@@ -25,12 +25,6 @@ module Network.Google.Container
25
25
26 -- * Resources
26 -- * Resources
27
27
28− -- ** ContainerProjectsClustersList
29− , module Network.Google.Resource.Container.Projects.Clusters.List
30−
31− -- ** ContainerProjectsOperationsList
32− , module Network.Google.Resource.Container.Projects.Operations.List
33−
34 -- ** ContainerProjectsZonesClustersCreate
28 -- ** ContainerProjectsZonesClustersCreate
35 , module Network.Google.Resource.Container.Projects.Zones.Clusters.Create
29 , module Network.Google.Resource.Container.Projects.Zones.Clusters.Create
36
30
@@ -43,6 +37,12 @@ module Network.Google.Container
43 -- ** ContainerProjectsZonesClustersList
37 -- ** ContainerProjectsZonesClustersList
44 , module Network.Google.Resource.Container.Projects.Zones.Clusters.List
38 , module Network.Google.Resource.Container.Projects.Zones.Clusters.List
45
39
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+
46 -- ** ContainerProjectsZonesOperationsGet
46 -- ** ContainerProjectsZonesOperationsGet
47 , module Network.Google.Resource.Container.Projects.Zones.Operations.Get
47 , module Network.Google.Resource.Container.Projects.Zones.Operations.Get
48
48
@@ -66,34 +66,36 @@ module Network.Google.Container
66 , cluster
66 , cluster
67 , cStatus
67 , cStatus
68 , cNodeConfig
68 , cNodeConfig
69− , cNumNodes
69+ , cNodeIPv4CIdRSize
70− , cClusterAPIVersion
70+ , cClusterIPv4CIdR
71+ , cInitialNodeCount
72+ , cCurrentNodeVersion
71 , cNetwork
73 , cNetwork
74+ , cInitialClusterVersion
72 , cZone
75 , cZone
73 , cServicesIPv4CIdR
76 , cServicesIPv4CIdR
74 , cMasterAuth
77 , cMasterAuth
75 , cSelfLink
78 , cSelfLink
76− , cEnableCloudMonitoring
77 , cName
79 , cName
80+ , cCurrentMasterVersion
78 , cStatusMessage
81 , cStatusMessage
79− , cCreationTimestamp
80− , cContainerIPv4CIdR
81 , cEndpoint
82 , cEndpoint
82− , cEnableCloudLogging
83+ , cLoggingService
83 , cDescription
84 , cDescription
84 , cInstanceGroupURLs
85 , cInstanceGroupURLs
85− , cNodeRoutingPrefixSize
86+ , cMonitoringService
87+ , cCreateTime
86
88
87− -- ** ListAggregatedOperationsResponse
89+ -- ** UpdateClusterRequest
88− , ListAggregatedOperationsResponse
90+ , UpdateClusterRequest
89− , listAggregatedOperationsResponse
91+ , updateClusterRequest
90− , laorOperations
92+ , ucrUpdate
91
93
92 -- ** NodeConfig
94 -- ** NodeConfig
93 , NodeConfig
95 , NodeConfig
94 , nodeConfig
96 , nodeConfig
95− , ncServiceAccounts
97+ , ncDiskSizeGb
96− , ncSourceImage
98+ , ncOAuthScopes
97 , ncMachineType
99 , ncMachineType
98
100
99 -- ** Operation
101 -- ** Operation
@@ -103,55 +105,44 @@ module Network.Google.Container
103 , oZone
105 , oZone
104 , oSelfLink
106 , oSelfLink
105 , oName
107 , oName
108+ , oStatusMessage
106 , oOperationType
109 , oOperationType
107− , oErrorMessage
108 , oTargetLink
110 , oTargetLink
109− , oTarget
110−
111− -- ** OperationOperationType
112− , OperationOperationType (..)
113−
114− -- ** OperationStatus
115− , OperationStatus (..)
116−
117− -- ** ServiceAccount
118− , ServiceAccount
119− , serviceAccount
120− , saEmail
121− , saScopes
122
111
123 -- ** MasterAuth
112 -- ** MasterAuth
124 , MasterAuth
113 , MasterAuth
125 , masterAuth
114 , masterAuth
126− , maBearerToken
127 , maClientKey
115 , maClientKey
128− , maUser
116+ , maUsername
129 , maClientCertificate
117 , maClientCertificate
130 , maPassword
118 , maPassword
131 , maClusterCaCertificate
119 , maClusterCaCertificate
132
120
133− -- ** ListAggregatedClustersResponse
121+ -- ** ServerConfig
134− , ListAggregatedClustersResponse
122+ , ServerConfig
135− , listAggregatedClustersResponse
123+ , serverConfig
136− , lacrClusters
124+ , scValidNodeVersions
125+ , scDefaultClusterVersion
137
126
138 -- ** ListClustersResponse
127 -- ** ListClustersResponse
139 , ListClustersResponse
128 , ListClustersResponse
140 , listClustersResponse
129 , listClustersResponse
141 , lcrClusters
130 , lcrClusters
142
131
143− -- ** ClusterStatus
132+ -- ** ClusterUpdate
144− , ClusterStatus (..)
133+ , ClusterUpdate
134+ , clusterUpdate
135+ , cuDesiredNodeVersion
145 ) where
136 ) where
146
137
147import Network.Google.Container.Types
138import Network.Google.Container.Types
148import Network.Google.Prelude
139import Network.Google.Prelude
149−import Network.Google.Resource.Container.Projects.Clusters.List
150−import Network.Google.Resource.Container.Projects.Operations.List
151import Network.Google.Resource.Container.Projects.Zones.Clusters.Create
140import Network.Google.Resource.Container.Projects.Zones.Clusters.Create
152import Network.Google.Resource.Container.Projects.Zones.Clusters.Delete
141import Network.Google.Resource.Container.Projects.Zones.Clusters.Delete
153import Network.Google.Resource.Container.Projects.Zones.Clusters.Get
142import Network.Google.Resource.Container.Projects.Zones.Clusters.Get
154import Network.Google.Resource.Container.Projects.Zones.Clusters.List
143import 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
155import Network.Google.Resource.Container.Projects.Zones.Operations.Get
146import Network.Google.Resource.Container.Projects.Zones.Operations.Get
156import Network.Google.Resource.Container.Projects.Zones.Operations.List
147import Network.Google.Resource.Container.Projects.Zones.Operations.List
157
148
@@ -167,5 +158,5 @@ type ContainerAPI =
167 :<|> ProjectsZonesClustersGetResource
158 :<|> ProjectsZonesClustersGetResource
168 :<|> ProjectsZonesClustersCreateResource
159 :<|> ProjectsZonesClustersCreateResource
169 :<|> ProjectsZonesClustersDeleteResource
160 :<|> ProjectsZonesClustersDeleteResource
170− :<|> ProjectsOperationsListResource
161+ :<|> ProjectsZonesClustersUpdateResource
171− :<|> ProjectsClustersListResource
162+ :<|> ProjectsZonesGetServerConfigResource
gogol-container/gen/Network/Google/Container/Types.hs+29−38
@@ -33,34 +33,36 @@ module Network.Google.Container.Types
33 , cluster
33 , cluster
34 , cStatus
34 , cStatus
35 , cNodeConfig
35 , cNodeConfig
36− , cNumNodes
36+ , cNodeIPv4CIdRSize
37− , cClusterAPIVersion
37+ , cClusterIPv4CIdR
38+ , cInitialNodeCount
39+ , cCurrentNodeVersion
38 , cNetwork
40 , cNetwork
41+ , cInitialClusterVersion
39 , cZone
42 , cZone
40 , cServicesIPv4CIdR
43 , cServicesIPv4CIdR
41 , cMasterAuth
44 , cMasterAuth
42 , cSelfLink
45 , cSelfLink
43− , cEnableCloudMonitoring
44 , cName
46 , cName
47+ , cCurrentMasterVersion
45 , cStatusMessage
48 , cStatusMessage
46− , cCreationTimestamp
47− , cContainerIPv4CIdR
48 , cEndpoint
49 , cEndpoint
49− , cEnableCloudLogging
50+ , cLoggingService
50 , cDescription
51 , cDescription
51 , cInstanceGroupURLs
52 , cInstanceGroupURLs
52− , cNodeRoutingPrefixSize
53+ , cMonitoringService
54+ , cCreateTime
53
55
54− -- * ListAggregatedOperationsResponse
56+ -- * UpdateClusterRequest
55− , ListAggregatedOperationsResponse
57+ , UpdateClusterRequest
56− , listAggregatedOperationsResponse
58+ , updateClusterRequest
57− , laorOperations
59+ , ucrUpdate
58
60
59 -- * NodeConfig
61 -- * NodeConfig
60 , NodeConfig
62 , NodeConfig
61 , nodeConfig
63 , nodeConfig
62− , ncServiceAccounts
64+ , ncDiskSizeGb
63− , ncSourceImage
65+ , ncOAuthScopes
64 , ncMachineType
66 , ncMachineType
65
67
66 -- * Operation
68 -- * Operation
@@ -70,53 +72,42 @@ module Network.Google.Container.Types
70 , oZone
72 , oZone
71 , oSelfLink
73 , oSelfLink
72 , oName
74 , oName
75+ , oStatusMessage
73 , oOperationType
76 , oOperationType
74− , oErrorMessage
75 , oTargetLink
77 , oTargetLink
76− , oTarget
77−
78− -- * OperationOperationType
79− , OperationOperationType (..)
80−
81− -- * OperationStatus
82− , OperationStatus (..)
83−
84− -- * ServiceAccount
85− , ServiceAccount
86− , serviceAccount
87− , saEmail
88− , saScopes
89
78
90 -- * MasterAuth
79 -- * MasterAuth
91 , MasterAuth
80 , MasterAuth
92 , masterAuth
81 , masterAuth
93− , maBearerToken
94 , maClientKey
82 , maClientKey
95− , maUser
83+ , maUsername
96 , maClientCertificate
84 , maClientCertificate
97 , maPassword
85 , maPassword
98 , maClusterCaCertificate
86 , maClusterCaCertificate
99
87
100− -- * ListAggregatedClustersResponse
88+ -- * ServerConfig
101− , ListAggregatedClustersResponse
89+ , ServerConfig
102− , listAggregatedClustersResponse
90+ , serverConfig
103− , lacrClusters
91+ , scValidNodeVersions
92+ , scDefaultClusterVersion
104
93
105 -- * ListClustersResponse
94 -- * ListClustersResponse
106 , ListClustersResponse
95 , ListClustersResponse
107 , listClustersResponse
96 , listClustersResponse
108 , lcrClusters
97 , lcrClusters
109
98
110− -- * ClusterStatus
99+ -- * ClusterUpdate
111− , ClusterStatus (..)
100+ , ClusterUpdate
101+ , clusterUpdate
102+ , cuDesiredNodeVersion
112 ) where
103 ) where
113
104
114import Network.Google.Container.Types.Product
105import Network.Google.Container.Types.Product
115import Network.Google.Container.Types.Sum
106import Network.Google.Container.Types.Sum
116import Network.Google.Prelude
107import Network.Google.Prelude
117
108
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.
119containerRequest :: RequestBuilder
110containerRequest :: RequestBuilder
120containerRequest
111containerRequest
121− = defaultRequest "https://www.googleapis.com/"
112+ = defaultRequest "https://container.googleapis.com/"
122− "container/v1beta1/projects/"
113+ ""
gogol-container/gen/Network/Google/Container/Types/Product.hs+317−302
@@ -20,6 +20,7 @@ module Network.Google.Container.Types.Product where
20import Network.Google.Container.Types.Sum
20import Network.Google.Container.Types.Sum
21import Network.Google.Prelude
21import Network.Google.Prelude
22
22
23+-- | ListOperationsResponse is the result of ListOperationsRequest.
23--
24--
24-- /See:/ 'listOperationsResponse' smart constructor.
25-- /See:/ 'listOperationsResponse' smart constructor.
25newtype ListOperationsResponse = ListOperationsResponse
26newtype ListOperationsResponse = ListOperationsResponse
@@ -58,6 +59,7 @@ instance ToJSON ListOperationsResponse where
58 = object
59 = object
59 (catMaybes [("operations" .=) <$> _lorOperations])
60 (catMaybes [("operations" .=) <$> _lorOperations])
60
61
62+-- | CreateClusterRequest creates a cluster.
61--
63--
62-- /See:/ 'createClusterRequest' smart constructor.
64-- /See:/ 'createClusterRequest' smart constructor.
63newtype CreateClusterRequest = CreateClusterRequest
65newtype CreateClusterRequest = CreateClusterRequest
@@ -76,7 +78,8 @@ createClusterRequest =
76 { _ccrCluster = Nothing
78 { _ccrCluster = Nothing
77 }
79 }
78
80
79−-- | A cluster resource.
81+-- | A [cluster
82+-- resource](\/container-engine\/reference\/rest\/v1\/projects.zones.clusters)
80ccrCluster :: Lens' CreateClusterRequest (Maybe Cluster)
83ccrCluster :: Lens' CreateClusterRequest (Maybe Cluster)
81ccrCluster
84ccrCluster
82 = lens _ccrCluster (\ s a -> s{_ccrCluster = a})
85 = lens _ccrCluster (\ s a -> s{_ccrCluster = a})
@@ -90,28 +93,31 @@ instance ToJSON CreateClusterRequest where
90 toJSON CreateClusterRequest{..}
93 toJSON CreateClusterRequest{..}
91 = object (catMaybes [("cluster" .=) <$> _ccrCluster])
94 = object (catMaybes [("cluster" .=) <$> _ccrCluster])
92
95
96+-- | A Google Container Engine cluster.
93--
97--
94-- /See:/ 'cluster' smart constructor.
98-- /See:/ 'cluster' smart constructor.
95data Cluster = Cluster
99data Cluster = Cluster
96− { _cStatus :: !(Maybe ClusterStatus)
100+ { _cStatus :: !(Maybe Text)
97 , _cNodeConfig :: !(Maybe NodeConfig)
101 , _cNodeConfig :: !(Maybe NodeConfig)
102+ , _cNodeIPv4CIdRSize :: !(Maybe Int32)
103+ , _cClusterIPv4CIdR :: !(Maybe Text)
98− , _cNumNodes :: !(Maybe Int32)
104+ , _cInitialNodeCount :: !(Maybe Int32)
99− , _cClusterAPIVersion :: !(Maybe Text)
105+ , _cCurrentNodeVersion :: !(Maybe Text)
100 , _cNetwork :: !(Maybe Text)
106 , _cNetwork :: !(Maybe Text)
107+ , _cInitialClusterVersion :: !(Maybe Text)
101 , _cZone :: !(Maybe Text)
108 , _cZone :: !(Maybe Text)
102 , _cServicesIPv4CIdR :: !(Maybe Text)
109 , _cServicesIPv4CIdR :: !(Maybe Text)
103 , _cMasterAuth :: !(Maybe MasterAuth)
110 , _cMasterAuth :: !(Maybe MasterAuth)
104 , _cSelfLink :: !(Maybe Text)
111 , _cSelfLink :: !(Maybe Text)
105− , _cEnableCloudMonitoring :: !(Maybe Bool)
106 , _cName :: !(Maybe Text)
112 , _cName :: !(Maybe Text)
113+ , _cCurrentMasterVersion :: !(Maybe Text)
107 , _cStatusMessage :: !(Maybe Text)
114 , _cStatusMessage :: !(Maybe Text)
108− , _cCreationTimestamp :: !(Maybe Text)
109− , _cContainerIPv4CIdR :: !(Maybe Text)
110 , _cEndpoint :: !(Maybe Text)
115 , _cEndpoint :: !(Maybe Text)
111− , _cEnableCloudLogging :: !(Maybe Bool)
116+ , _cLoggingService :: !(Maybe Text)
112 , _cDescription :: !(Maybe Text)
117 , _cDescription :: !(Maybe Text)
113 , _cInstanceGroupURLs :: !(Maybe [Text])
118 , _cInstanceGroupURLs :: !(Maybe [Text])
114− , _cNodeRoutingPrefixSize :: !(Maybe Int32)
119+ , _cMonitoringService :: !(Maybe Text)
120+ , _cCreateTime :: !(Maybe Text)
115 } deriving (Eq,Show,Data,Typeable,Generic)
121 } deriving (Eq,Show,Data,Typeable,Generic)
116
122
117-- | Creates a value of 'Cluster' with the minimum fields required to make a request.
123-- | Creates a value of 'Cluster' with the minimum fields required to make a request.
@@ -122,12 +128,18 @@ data Cluster = Cluster
122--
128--
123-- * 'cNodeConfig'
129-- * 'cNodeConfig'
124--
130--
125−-- * 'cNumNodes'
131+-- * 'cNodeIPv4CIdRSize'
126--
132--
127−-- * 'cClusterAPIVersion'
133+-- * 'cClusterIPv4CIdR'
134+--
135+-- * 'cInitialNodeCount'
136+--
137+-- * 'cCurrentNodeVersion'
128--
138--
129-- * 'cNetwork'
139-- * 'cNetwork'
130--
140--
141+-- * 'cInitialClusterVersion'
142+--
131-- * 'cZone'
143-- * 'cZone'
132--
144--
133-- * 'cServicesIPv4CIdR'
145-- * 'cServicesIPv4CIdR'
@@ -136,92 +148,119 @@ data Cluster = Cluster
136--
148--
137-- * 'cSelfLink'
149-- * 'cSelfLink'
138--
150--
139−-- * 'cEnableCloudMonitoring'
140−--
141-- * 'cName'
151-- * 'cName'
142--
152--
143−-- * 'cStatusMessage'
153+-- * 'cCurrentMasterVersion'
144--
154--
145−-- * 'cCreationTimestamp'
155+-- * 'cStatusMessage'
146−--
147−-- * 'cContainerIPv4CIdR'
148--
156--
149-- * 'cEndpoint'
157-- * 'cEndpoint'
150--
158--
151−-- * 'cEnableCloudLogging'
159+-- * 'cLoggingService'
152--
160--
153-- * 'cDescription'
161-- * 'cDescription'
154--
162--
155-- * 'cInstanceGroupURLs'
163-- * 'cInstanceGroupURLs'
156--
164--
157−-- * 'cNodeRoutingPrefixSize'
165+-- * 'cMonitoringService'
166+--
167+-- * 'cCreateTime'
158cluster
168cluster
159 :: Cluster
169 :: Cluster
160cluster =
170cluster =
161 Cluster
171 Cluster
162 { _cStatus = Nothing
172 { _cStatus = Nothing
163 , _cNodeConfig = Nothing
173 , _cNodeConfig = Nothing
164− , _cNumNodes = Nothing
174+ , _cNodeIPv4CIdRSize = Nothing
165− , _cClusterAPIVersion = Nothing
175+ , _cClusterIPv4CIdR = Nothing
176+ , _cInitialNodeCount = Nothing
177+ , _cCurrentNodeVersion = Nothing
166 , _cNetwork = Nothing
178 , _cNetwork = Nothing
179+ , _cInitialClusterVersion = Nothing
167 , _cZone = Nothing
180 , _cZone = Nothing
168 , _cServicesIPv4CIdR = Nothing
181 , _cServicesIPv4CIdR = Nothing
169 , _cMasterAuth = Nothing
182 , _cMasterAuth = Nothing
170 , _cSelfLink = Nothing
183 , _cSelfLink = Nothing
171− , _cEnableCloudMonitoring = Nothing
172 , _cName = Nothing
184 , _cName = Nothing
185+ , _cCurrentMasterVersion = Nothing
173 , _cStatusMessage = Nothing
186 , _cStatusMessage = Nothing
174− , _cCreationTimestamp = Nothing
175− , _cContainerIPv4CIdR = Nothing
176 , _cEndpoint = Nothing
187 , _cEndpoint = Nothing
177− , _cEnableCloudLogging = Nothing
188+ , _cLoggingService = Nothing
178 , _cDescription = Nothing
189 , _cDescription = Nothing
179 , _cInstanceGroupURLs = Nothing
190 , _cInstanceGroupURLs = Nothing
180− , _cNodeRoutingPrefixSize = Nothing
191+ , _cMonitoringService = Nothing
192+ , _cCreateTime = Nothing
181 }
193 }
182
194
183-- | [Output only] The current status of this cluster.
195-- | [Output only] The current status of this cluster.
184−cStatus :: Lens' Cluster (Maybe ClusterStatus)
196+cStatus :: Lens' Cluster (Maybe Text)
185cStatus = lens _cStatus (\ s a -> s{_cStatus = a})
197cStatus = lens _cStatus (\ s a -> s{_cStatus = a})
186
198
187−-- | The machine type and image to use for all nodes in this cluster. See the
199+-- | Parameters used in creating the cluster\'s nodes. See the descriptions
188−-- descriptions of the child properties of nodeConfig.
200+-- of the child properties of \`nodeConfig\`. If unspecified, the defaults
201+-- for all child properties are used.
189cNodeConfig :: Lens' Cluster (Maybe NodeConfig)
202cNodeConfig :: Lens' Cluster (Maybe NodeConfig)
190cNodeConfig
203cNodeConfig
191 = lens _cNodeConfig (\ s a -> s{_cNodeConfig = a})
204 = lens _cNodeConfig (\ s a -> s{_cNodeConfig = a})
192
205
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+
193-- | The number of nodes to create in this cluster. You must ensure that your
223-- | The number of nodes to create in this cluster. You must ensure that your
224+-- Compute Engine [resource quota](\/compute\/docs\/resource-quotas) is
194−-- Compute Engine resource quota is sufficient for this number of instances
225+-- sufficient for this number of instances. You must also have available
195−-- plus one (to include the master). You must also have available firewall
196−-- and routes quota.
226+-- firewall and routes quota.
197−cNumNodes :: Lens' Cluster (Maybe Int32)
227+cInitialNodeCount :: Lens' Cluster (Maybe Int32)
198−cNumNodes
228+cInitialNodeCount
199− = lens _cNumNodes (\ s a -> s{_cNumNodes = a})
229+ = lens _cInitialNodeCount
200−
230+ (\ s a -> s{_cInitialNodeCount = a})
201−-- | The API version of the Kubernetes master and kubelets running in this
231+
202−-- cluster. Leave blank to pick up the latest stable release, or specify a
232+-- | [Output only] The current version of the node software components. If
203−-- version of the form \"x.y.z\". The Google Container Engine release notes
233+-- they are currently at different versions because they\'re in the process
204−-- lists the currently supported versions. If an incorrect version is
234+-- of being upgraded, this reflects the minimum version of any of them.
205−-- specified, the server returns an error listing the currently supported
206−-- versions.
207−cClusterAPIVersion :: Lens' Cluster (Maybe Text)
235+cCurrentNodeVersion :: Lens' Cluster (Maybe Text)
208−cClusterAPIVersion
236+cCurrentNodeVersion
209− = lens _cClusterAPIVersion
237+ = lens _cCurrentNodeVersion
210− (\ s a -> s{_cClusterAPIVersion = a})
238+ (\ s a -> s{_cCurrentNodeVersion = a})
211−
239+
212−-- | The name of the Google Compute Engine network to which the cluster is
240+-- | The name of the Google Compute Engine
213−-- connected.
241+-- [network](\/compute\/docs\/networking#networks_1) to which the cluster
242+-- is connected. If left unspecified, the \"default\" network will be used.
214cNetwork :: Lens' Cluster (Maybe Text)
243cNetwork :: Lens' Cluster (Maybe Text)
215cNetwork = lens _cNetwork (\ s a -> s{_cNetwork = a})
244cNetwork = lens _cNetwork (\ s a -> s{_cNetwork = a})
216
245
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+
217−-- | [Output only] The name of the Google Compute Engine zone in which the
254+-- | [Output only] The name of the Google Compute Engine
218−-- cluster resides.
255+-- [zone](\/compute\/docs\/zones#available) in which the cluster resides.
219cZone :: Lens' Cluster (Maybe Text)
256cZone :: Lens' Cluster (Maybe Text)
220cZone = lens _cZone (\ s a -> s{_cZone = a})
257cZone = lens _cZone (\ s a -> s{_cZone = a})
221
258
222-- | [Output only] The IP address range of the Kubernetes services in this
259-- | [Output only] The IP address range of the Kubernetes services in this
260+-- cluster, in
261+-- [CIDR](http:\/\/en.wikipedia.org\/wiki\/Classless_Inter-Domain_Routing)
223−-- cluster, in CIDR notation (e.g. 1.2.3.4\/29). Service addresses are
262+-- notation (e.g. \`1.2.3.4\/29\`). Service addresses are typically put in
224−-- typically put in the last \/16 from the container CIDR.
263+-- the last \/16 from the container CIDR.
225cServicesIPv4CIdR :: Lens' Cluster (Maybe Text)
264cServicesIPv4CIdR :: Lens' Cluster (Maybe Text)
226cServicesIPv4CIdR
265cServicesIPv4CIdR
227 = lens _cServicesIPv4CIdR
266 = lens _cServicesIPv4CIdR
@@ -237,20 +276,19 @@ cSelfLink :: Lens' Cluster (Maybe Text)
237cSelfLink
276cSelfLink
238 = lens _cSelfLink (\ s a -> s{_cSelfLink = a})
277 = lens _cSelfLink (\ s a -> s{_cSelfLink = a})
239
278
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−
247-- | The name of this cluster. The name must be unique within this project
279-- | The name of this cluster. The name must be unique within this project
248-- and zone, and can be up to 40 characters with the following
280-- and zone, and can be up to 40 characters with the following
249−-- restrictions: - Lowercase letters, numbers, and hyphens only. - Must
281+-- restrictions: * Lowercase letters, numbers, and hyphens only. * Must
250−-- start with a letter. - Must end with a number or a letter.
282+-- start with a letter. * Must end with a number or a letter.
251cName :: Lens' Cluster (Maybe Text)
283cName :: Lens' Cluster (Maybe Text)
252cName = lens _cName (\ s a -> s{_cName = a})
284cName = lens _cName (\ s a -> s{_cName = a})
253
285
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+
254-- | [Output only] Additional information about the current status of this
292-- | [Output only] Additional information about the current status of this
255-- cluster, if available.
293-- cluster, if available.
256cStatusMessage :: Lens' Cluster (Maybe Text)
294cStatusMessage :: Lens' Cluster (Maybe Text)
@@ -258,36 +296,22 @@ cStatusMessage
258 = lens _cStatusMessage
296 = lens _cStatusMessage
259 (\ s a -> s{_cStatusMessage = a})
297 (\ s a -> s{_cStatusMessage = a})
260
298
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
299+-- | [Output only] The IP address of this cluster\'s Kubernetes master
276−-- endpoint can be accessed from the internet at
300+-- endpoint. The endpoint can be accessed from the internet at
277−-- https:\/\/username:password\'endpoint\/. See the masterAuth property of
301+-- \`https:\/\/username:password\'endpoint\/\`. See the \`masterAuth\`
278−-- this resource for username and password information.
302+-- property of this resource for username and password information.
279cEndpoint :: Lens' Cluster (Maybe Text)
303cEndpoint :: Lens' Cluster (Maybe Text)
280cEndpoint
304cEndpoint
281 = lens _cEndpoint (\ s a -> s{_cEndpoint = a})
305 = lens _cEndpoint (\ s a -> s{_cEndpoint = a})
282
306
283−-- | Whether logs from the cluster should be made available via the Google
307+-- | The logging service that the cluster should write logs to. Currently
284−-- Cloud Logging service. This includes both logs from your applications
308+-- available options: * \"logging.googleapis.com\" - the Google Cloud
285−-- running in the cluster as well as logs from the Kubernetes components
309+-- Logging service * \"none\" - no logs will be exported from the cluster *
286−-- themselves.
310+-- \"\" - default value; the default is \"logging.googleapis.com\"
287−cEnableCloudLogging :: Lens' Cluster (Maybe Bool)
311+cLoggingService :: Lens' Cluster (Maybe Text)
288−cEnableCloudLogging
312+cLoggingService
289− = lens _cEnableCloudLogging
313+ = lens _cLoggingService
290− (\ s a -> s{_cEnableCloudLogging = a})
314+ (\ s a -> s{_cLoggingService = a})
291
315
292-- | An optional description of this cluster.
316-- | An optional description of this cluster.
293cDescription :: Lens' Cluster (Maybe Text)
317cDescription :: Lens' Cluster (Maybe Text)
@@ -304,12 +328,21 @@ cInstanceGroupURLs
304 . _Default
328 . _Default
305 . _Coerce
329 . _Coerce
306
330
307−-- | [Output only] The size of the address space on each node for hosting
331+-- | The monitoring service that the cluster should write metrics to.
308−-- containers.
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.
309−cNodeRoutingPrefixSize :: Lens' Cluster (Maybe Int32)
343+cCreateTime :: Lens' Cluster (Maybe Text)
310−cNodeRoutingPrefixSize
344+cCreateTime
311− = lens _cNodeRoutingPrefixSize
345+ = lens _cCreateTime (\ s a -> s{_cCreateTime = a})
312− (\ s a -> s{_cNodeRoutingPrefixSize = a})
313
346
314instance FromJSON Cluster where
347instance FromJSON Cluster where
315 parseJSON
348 parseJSON
@@ -317,23 +350,25 @@ instance FromJSON Cluster where
317 (\ o ->
350 (\ o ->
318 Cluster <$>
351 Cluster <$>
319 (o .:? "status") <*> (o .:? "nodeConfig") <*>
352 (o .:? "status") <*> (o .:? "nodeConfig") <*>
320− (o .:? "numNodes")
353+ (o .:? "nodeIpv4CidrSize")
321− <*> (o .:? "clusterApiVersion")
354+ <*> (o .:? "clusterIpv4Cidr")
355+ <*> (o .:? "initialNodeCount")
356+ <*> (o .:? "currentNodeVersion")
322 <*> (o .:? "network")
357 <*> (o .:? "network")
358+ <*> (o .:? "initialClusterVersion")
323 <*> (o .:? "zone")
359 <*> (o .:? "zone")
324 <*> (o .:? "servicesIpv4Cidr")
360 <*> (o .:? "servicesIpv4Cidr")
325 <*> (o .:? "masterAuth")
361 <*> (o .:? "masterAuth")
326 <*> (o .:? "selfLink")
362 <*> (o .:? "selfLink")
327− <*> (o .:? "enableCloudMonitoring")
328 <*> (o .:? "name")
363 <*> (o .:? "name")
364+ <*> (o .:? "currentMasterVersion")
329 <*> (o .:? "statusMessage")
365 <*> (o .:? "statusMessage")
330− <*> (o .:? "creationTimestamp")
331− <*> (o .:? "containerIpv4Cidr")
332 <*> (o .:? "endpoint")
366 <*> (o .:? "endpoint")
333− <*> (o .:? "enableCloudLogging")
367+ <*> (o .:? "loggingService")
334 <*> (o .:? "description")
368 <*> (o .:? "description")
335 <*> (o .:? "instanceGroupUrls" .!= mempty)
369 <*> (o .:? "instanceGroupUrls" .!= mempty)
336− <*> (o .:? "nodeRoutingPrefixSize"))
370+ <*> (o .:? "monitoringService")
371+ <*> (o .:? "createTime"))
337
372
338instance ToJSON Cluster where
373instance ToJSON Cluster where
339 toJSON Cluster{..}
374 toJSON Cluster{..}
@@ -341,117 +376,112 @@ instance ToJSON Cluster where
341 (catMaybes
376 (catMaybes
342 [("status" .=) <$> _cStatus,
377 [("status" .=) <$> _cStatus,
343 ("nodeConfig" .=) <$> _cNodeConfig,
378 ("nodeConfig" .=) <$> _cNodeConfig,
344− ("numNodes" .=) <$> _cNumNodes,
379+ ("nodeIpv4CidrSize" .=) <$> _cNodeIPv4CIdRSize,
345− ("clusterApiVersion" .=) <$> _cClusterAPIVersion,
380+ ("clusterIpv4Cidr" .=) <$> _cClusterIPv4CIdR,
381+ ("initialNodeCount" .=) <$> _cInitialNodeCount,
382+ ("currentNodeVersion" .=) <$> _cCurrentNodeVersion,
346− ("network" .=) <$> _cNetwork, ("zone" .=) <$> _cZone,
383+ ("network" .=) <$> _cNetwork,
384+ ("initialClusterVersion" .=) <$>
385+ _cInitialClusterVersion,
386+ ("zone" .=) <$> _cZone,
347 ("servicesIpv4Cidr" .=) <$> _cServicesIPv4CIdR,
387 ("servicesIpv4Cidr" .=) <$> _cServicesIPv4CIdR,
348 ("masterAuth" .=) <$> _cMasterAuth,
388 ("masterAuth" .=) <$> _cMasterAuth,
349 ("selfLink" .=) <$> _cSelfLink,
389 ("selfLink" .=) <$> _cSelfLink,
350− ("enableCloudMonitoring" .=) <$>
351− _cEnableCloudMonitoring,
352 ("name" .=) <$> _cName,
390 ("name" .=) <$> _cName,
391+ ("currentMasterVersion" .=) <$>
392+ _cCurrentMasterVersion,
353 ("statusMessage" .=) <$> _cStatusMessage,
393 ("statusMessage" .=) <$> _cStatusMessage,
354− ("creationTimestamp" .=) <$> _cCreationTimestamp,
355− ("containerIpv4Cidr" .=) <$> _cContainerIPv4CIdR,
356 ("endpoint" .=) <$> _cEndpoint,
394 ("endpoint" .=) <$> _cEndpoint,
357− ("enableCloudLogging" .=) <$> _cEnableCloudLogging,
395+ ("loggingService" .=) <$> _cLoggingService,
358 ("description" .=) <$> _cDescription,
396 ("description" .=) <$> _cDescription,
359 ("instanceGroupUrls" .=) <$> _cInstanceGroupURLs,
397 ("instanceGroupUrls" .=) <$> _cInstanceGroupURLs,
360− ("nodeRoutingPrefixSize" .=) <$>
398+ ("monitoringService" .=) <$> _cMonitoringService,
361− _cNodeRoutingPrefixSize])
399+ ("createTime" .=) <$> _cCreateTime])
362
400
401+-- | UpdateClusterRequest updates a cluster.
363--
402--
364−-- /See:/ 'listAggregatedOperationsResponse' smart constructor.
403+-- /See:/ 'updateClusterRequest' smart constructor.
365−newtype ListAggregatedOperationsResponse = ListAggregatedOperationsResponse
404+newtype UpdateClusterRequest = UpdateClusterRequest
366− { _laorOperations :: Maybe [Operation]
405+ { _ucrUpdate :: Maybe ClusterUpdate
367 } deriving (Eq,Show,Data,Typeable,Generic)
406 } deriving (Eq,Show,Data,Typeable,Generic)
368
407
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.
370--
409--
371-- Use one of the following lenses to modify other fields as desired:
410-- Use one of the following lenses to modify other fields as desired:
372--
411--
373−-- * 'laorOperations'
412+-- * 'ucrUpdate'
374−listAggregatedOperationsResponse
413+updateClusterRequest
375− :: ListAggregatedOperationsResponse
414+ :: UpdateClusterRequest
376−listAggregatedOperationsResponse =
415+updateClusterRequest =
377− ListAggregatedOperationsResponse
416+ UpdateClusterRequest
378− { _laorOperations = Nothing
417+ { _ucrUpdate = Nothing
379 }
418 }
380
419
381−-- | A list of operations in the project, across all zones.
420+-- | A description of the update.
382−laorOperations :: Lens' ListAggregatedOperationsResponse [Operation]
421+ucrUpdate :: Lens' UpdateClusterRequest (Maybe ClusterUpdate)
383−laorOperations
422+ucrUpdate
384− = lens _laorOperations
423+ = lens _ucrUpdate (\ s a -> s{_ucrUpdate = a})
385− (\ s a -> s{_laorOperations = a})
386− . _Default
387− . _Coerce
388
424
389−instance FromJSON ListAggregatedOperationsResponse
425+instance FromJSON UpdateClusterRequest where
390− where
391 parseJSON
426 parseJSON
392− = withObject "ListAggregatedOperationsResponse"
427+ = withObject "UpdateClusterRequest"
393− (\ o ->
428+ (\ o -> UpdateClusterRequest <$> (o .:? "update"))
394− ListAggregatedOperationsResponse <$>
395− (o .:? "operations" .!= mempty))
396
429
397−instance ToJSON ListAggregatedOperationsResponse
430+instance ToJSON UpdateClusterRequest where
398− where
431+ toJSON UpdateClusterRequest{..}
399− toJSON ListAggregatedOperationsResponse{..}
432+ = object (catMaybes [("update" .=) <$> _ucrUpdate])
400− = object
401− (catMaybes [("operations" .=) <$> _laorOperations])
402
433
434+-- | Per-node parameters.
403--
435--
404-- /See:/ 'nodeConfig' smart constructor.
436-- /See:/ 'nodeConfig' smart constructor.
405data NodeConfig = NodeConfig
437data NodeConfig = NodeConfig
406− { _ncServiceAccounts :: !(Maybe [ServiceAccount])
438+ { _ncDiskSizeGb :: !(Maybe Int32)
407− , _ncSourceImage :: !(Maybe Text)
439+ , _ncOAuthScopes :: !(Maybe [Text])
408− , _ncMachineType :: !(Maybe Text)
440+ , _ncMachineType :: !(Maybe Text)
409 } deriving (Eq,Show,Data,Typeable,Generic)
441 } deriving (Eq,Show,Data,Typeable,Generic)
410
442
411-- | Creates a value of 'NodeConfig' with the minimum fields required to make a request.
443-- | Creates a value of 'NodeConfig' with the minimum fields required to make a request.
412--
444--
413-- Use one of the following lenses to modify other fields as desired:
445-- Use one of the following lenses to modify other fields as desired:
414--
446--
415−-- * 'ncServiceAccounts'
447+-- * 'ncDiskSizeGb'
416--
448--
417−-- * 'ncSourceImage'
449+-- * 'ncOAuthScopes'
418--
450--
419-- * 'ncMachineType'
451-- * 'ncMachineType'
420nodeConfig
452nodeConfig
421 :: NodeConfig
453 :: NodeConfig
422nodeConfig =
454nodeConfig =
423 NodeConfig
455 NodeConfig
424− { _ncServiceAccounts = Nothing
456+ { _ncDiskSizeGb = Nothing
425− , _ncSourceImage = Nothing
457+ , _ncOAuthScopes = Nothing
426 , _ncMachineType = Nothing
458 , _ncMachineType = Nothing
427 }
459 }
428
460
429−-- | The optional list of ServiceAccounts, each with their specified scopes,
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+
430−-- to be made available on all of the node VMs. In addition to the service
468+-- | The set of Google API scopes to be made available on all of the node VMs
431−-- accounts and scopes specified, the \"default\" account will always be
469+-- under the \"default\" service account. The following scopes are
432−-- created with the following scopes to ensure the correct functioning of
470+-- recommended, but not required, and by default are not included: *
433−-- the cluster: - https:\/\/www.googleapis.com\/auth\/compute, -
471+-- \`https:\/\/www.googleapis.com\/auth\/compute\` is required for mounting
472+-- persistent storage on your nodes. *
434−-- https:\/\/www.googleapis.com\/auth\/devstorage.read_only
473+-- \`https:\/\/www.googleapis.com\/auth\/devstorage.read_only\` is required
435−ncServiceAccounts :: Lens' NodeConfig [ServiceAccount]
474+-- for communicating with *gcr.io*. If unspecified, no scopes are added.
436−ncServiceAccounts
475+ncOAuthScopes :: Lens' NodeConfig [Text]
437− = lens _ncServiceAccounts
476+ncOAuthScopes
438− (\ s a -> s{_ncServiceAccounts = a})
477+ = lens _ncOAuthScopes
478+ (\ s a -> s{_ncOAuthScopes = a})
439 . _Default
479 . _Default
440 . _Coerce
480 . _Coerce
441
481
442−-- | The fully-specified name of a Google Compute Engine image. For example:
482+-- | The name of a Google Compute Engine [machine
443−-- https:\/\/www.googleapis.com\/compute\/v1\/projects\/debian-cloud\/global\/images\/backports-debian-7-wheezy-vYYYYMMDD
483+-- type](\/compute\/docs\/machine-types) (e.g. \`n1-standard-1\`). If
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.
484+-- unspecified, the default machine type is \`n1-standard-1\`.
455ncMachineType :: Lens' NodeConfig (Maybe Text)
485ncMachineType :: Lens' NodeConfig (Maybe Text)
456ncMachineType
486ncMachineType
457 = lens _ncMachineType
487 = lens _ncMachineType
@@ -462,30 +492,29 @@ instance FromJSON NodeConfig where
462 = withObject "NodeConfig"
492 = withObject "NodeConfig"
463 (\ o ->
493 (\ o ->
464 NodeConfig <$>
494 NodeConfig <$>
465− (o .:? "serviceAccounts" .!= mempty) <*>
495+ (o .:? "diskSizeGb") <*>
466− (o .:? "sourceImage")
496+ (o .:? "oauthScopes" .!= mempty)
467 <*> (o .:? "machineType"))
497 <*> (o .:? "machineType"))
468
498
469instance ToJSON NodeConfig where
499instance ToJSON NodeConfig where
470 toJSON NodeConfig{..}
500 toJSON NodeConfig{..}
471 = object
501 = object
472 (catMaybes
502 (catMaybes
473− [("serviceAccounts" .=) <$> _ncServiceAccounts,
503+ [("diskSizeGb" .=) <$> _ncDiskSizeGb,
474− ("sourceImage" .=) <$> _ncSourceImage,
504+ ("oauthScopes" .=) <$> _ncOAuthScopes,
475 ("machineType" .=) <$> _ncMachineType])
505 ("machineType" .=) <$> _ncMachineType])
476
506
477-- | Defines the operation resource. All fields are output only.
507-- | Defines the operation resource. All fields are output only.
478--
508--
479-- /See:/ 'operation' smart constructor.
509-- /See:/ 'operation' smart constructor.
480data Operation = Operation
510data Operation = Operation
481− { _oStatus :: !(Maybe OperationStatus)
511+ { _oStatus :: !(Maybe Text)
482 , _oZone :: !(Maybe Text)
512 , _oZone :: !(Maybe Text)
483 , _oSelfLink :: !(Maybe Text)
513 , _oSelfLink :: !(Maybe Text)
484 , _oName :: !(Maybe Text)
514 , _oName :: !(Maybe Text)
485− , _oOperationType :: !(Maybe OperationOperationType)
515+ , _oStatusMessage :: !(Maybe Text)
486− , _oErrorMessage :: !(Maybe Text)
516+ , _oOperationType :: !(Maybe Text)
487 , _oTargetLink :: !(Maybe Text)
517 , _oTargetLink :: !(Maybe Text)
488− , _oTarget :: !(Maybe Text)
489 } deriving (Eq,Show,Data,Typeable,Generic)
518 } deriving (Eq,Show,Data,Typeable,Generic)
490
519
491-- | Creates a value of 'Operation' with the minimum fields required to make a request.
520-- | Creates a value of 'Operation' with the minimum fields required to make a request.
@@ -500,13 +529,11 @@ data Operation = Operation
500--
529--
501-- * 'oName'
530-- * 'oName'
502--
531--
503−-- * 'oOperationType'
532+-- * 'oStatusMessage'
504--
533--
505−-- * 'oErrorMessage'
534+-- * 'oOperationType'
506--
535--
507-- * 'oTargetLink'
536-- * 'oTargetLink'
508−--
509−-- * 'oTarget'
510operation
537operation
511 :: Operation
538 :: Operation
512operation =
539operation =
@@ -515,17 +542,17 @@ operation =
515 , _oZone = Nothing
542 , _oZone = Nothing
516 , _oSelfLink = Nothing
543 , _oSelfLink = Nothing
517 , _oName = Nothing
544 , _oName = Nothing
545+ , _oStatusMessage = Nothing
518 , _oOperationType = Nothing
546 , _oOperationType = Nothing
519− , _oErrorMessage = Nothing
520 , _oTargetLink = Nothing
547 , _oTargetLink = Nothing
521− , _oTarget = Nothing
522 }
548 }
523
549
524-- | The current status of the operation.
550-- | The current status of the operation.
525−oStatus :: Lens' Operation (Maybe OperationStatus)
551+oStatus :: Lens' Operation (Maybe Text)
526oStatus = lens _oStatus (\ s a -> s{_oStatus = a})
552oStatus = lens _oStatus (\ s a -> s{_oStatus = a})
527
553
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
529-- taking place.
556-- taking place.
530oZone :: Lens' Operation (Maybe Text)
557oZone :: Lens' Operation (Maybe Text)
531oZone = lens _oZone (\ s a -> s{_oZone = a})
558oZone = lens _oZone (\ s a -> s{_oZone = a})
@@ -539,28 +566,23 @@ oSelfLink
539oName :: Lens' Operation (Maybe Text)
566oName :: Lens' Operation (Maybe Text)
540oName = lens _oName (\ s a -> s{_oName = a})
567oName = lens _oName (\ s a -> s{_oName = a})
541
568
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+
542-- | The operation type.
575-- | The operation type.
543−oOperationType :: Lens' Operation (Maybe OperationOperationType)
576+oOperationType :: Lens' Operation (Maybe Text)
544oOperationType
577oOperationType
545 = lens _oOperationType
578 = lens _oOperationType
546 (\ s a -> s{_oOperationType = a})
579 (\ s a -> s{_oOperationType = a})
547
580
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−
554-- | Server-defined URL for the target of the operation.
581-- | Server-defined URL for the target of the operation.
555oTargetLink :: Lens' Operation (Maybe Text)
582oTargetLink :: Lens' Operation (Maybe Text)
556oTargetLink
583oTargetLink
557 = lens _oTargetLink (\ s a -> s{_oTargetLink = a})
584 = lens _oTargetLink (\ s a -> s{_oTargetLink = a})
558
585
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−
564instance FromJSON Operation where
586instance FromJSON Operation where
565 parseJSON
587 parseJSON
566 = withObject "Operation"
588 = withObject "Operation"
@@ -569,10 +591,9 @@ instance FromJSON Operation where
569 (o .:? "status") <*> (o .:? "zone") <*>
591 (o .:? "status") <*> (o .:? "zone") <*>
570 (o .:? "selfLink")
592 (o .:? "selfLink")
571 <*> (o .:? "name")
593 <*> (o .:? "name")
594+ <*> (o .:? "statusMessage")
572 <*> (o .:? "operationType")
595 <*> (o .:? "operationType")
573− <*> (o .:? "errorMessage")
574− <*> (o .:? "targetLink")
596+ <*> (o .:? "targetLink"))
575− <*> (o .:? "target"))
576
597
577instance ToJSON Operation where
598instance ToJSON Operation where
578 toJSON Operation{..}
599 toJSON Operation{..}
@@ -581,67 +602,18 @@ instance ToJSON Operation where
581 [("status" .=) <$> _oStatus, ("zone" .=) <$> _oZone,
602 [("status" .=) <$> _oStatus, ("zone" .=) <$> _oZone,
582 ("selfLink" .=) <$> _oSelfLink,
603 ("selfLink" .=) <$> _oSelfLink,
583 ("name" .=) <$> _oName,
604 ("name" .=) <$> _oName,
605+ ("statusMessage" .=) <$> _oStatusMessage,
584 ("operationType" .=) <$> _oOperationType,
606 ("operationType" .=) <$> _oOperationType,
585− ("errorMessage" .=) <$> _oErrorMessage,
586− ("targetLink" .=) <$> _oTargetLink,
607+ ("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− }
611
608
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
609+-- | The authentication information for accessing the master endpoint.
638−-- is either done using HTTP basic authentication or using a bearer token.
610+-- Authentication can be done using HTTP basic auth or using client
611+-- certificates.
639--
612--
640-- /See:/ 'masterAuth' smart constructor.
613-- /See:/ 'masterAuth' smart constructor.
641data MasterAuth = MasterAuth
614data MasterAuth = MasterAuth
642− { _maBearerToken :: !(Maybe Text)
643− , _maClientKey :: !(Maybe Text)
615+ { _maClientKey :: !(Maybe Text)
644− , _maUser :: !(Maybe Text)
616+ , _maUsername :: !(Maybe Text)
645 , _maClientCertificate :: !(Maybe Text)
617 , _maClientCertificate :: !(Maybe Text)
646 , _maPassword :: !(Maybe Text)
618 , _maPassword :: !(Maybe Text)
647 , _maClusterCaCertificate :: !(Maybe Text)
619 , _maClusterCaCertificate :: !(Maybe Text)
@@ -651,11 +623,9 @@ data MasterAuth = MasterAuth
651--
623--
652-- Use one of the following lenses to modify other fields as desired:
624-- Use one of the following lenses to modify other fields as desired:
653--
625--
654−-- * 'maBearerToken'
655−--
656-- * 'maClientKey'
626-- * 'maClientKey'
657--
627--
658−-- * 'maUser'
628+-- * 'maUsername'
659--
629--
660-- * 'maClientCertificate'
630-- * 'maClientCertificate'
661--
631--
@@ -666,23 +636,13 @@ masterAuth
666 :: MasterAuth
636 :: MasterAuth
667masterAuth =
637masterAuth =
668 MasterAuth
638 MasterAuth
669− { _maBearerToken = Nothing
670− , _maClientKey = Nothing
639+ { _maClientKey = Nothing
671− , _maUser = Nothing
640+ , _maUsername = Nothing
672 , _maClientCertificate = Nothing
641 , _maClientCertificate = Nothing
673 , _maPassword = Nothing
642 , _maPassword = Nothing
674 , _maClusterCaCertificate = Nothing
643 , _maClusterCaCertificate = Nothing
675 }
644 }
676
645
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−
686-- | [Output only] Base64 encoded private key used by clients to authenticate
646-- | [Output only] Base64 encoded private key used by clients to authenticate
687-- to the cluster endpoint.
647-- to the cluster endpoint.
688maClientKey :: Lens' MasterAuth (Maybe Text)
648maClientKey :: Lens' MasterAuth (Maybe Text)
@@ -691,8 +651,9 @@ maClientKey
691
651
692-- | The username to use for HTTP basic authentication when accessing the
652-- | The username to use for HTTP basic authentication when accessing the
693-- Kubernetes master endpoint.
653-- Kubernetes master endpoint.
694−maUser :: Lens' MasterAuth (Maybe Text)
654+maUsername :: Lens' MasterAuth (Maybe Text)
695−maUser = lens _maUser (\ s a -> s{_maUser = a})
655+maUsername
656+ = lens _maUsername (\ s a -> s{_maUsername = a})
696
657
697-- | [Output only] Base64 encoded public certificate used by clients to
658-- | [Output only] Base64 encoded public certificate used by clients to
698-- authenticate to the cluster endpoint.
659-- authenticate to the cluster endpoint.
@@ -720,9 +681,8 @@ instance FromJSON MasterAuth where
720 = withObject "MasterAuth"
681 = withObject "MasterAuth"
721 (\ o ->
682 (\ o ->
722 MasterAuth <$>
683 MasterAuth <$>
723− (o .:? "bearerToken") <*> (o .:? "clientKey") <*>
684+ (o .:? "clientKey") <*> (o .:? "username") <*>
724− (o .:? "user")
725− <*> (o .:? "clientCertificate")
685+ (o .:? "clientCertificate")
726 <*> (o .:? "password")
686 <*> (o .:? "password")
727 <*> (o .:? "clusterCaCertificate"))
687 <*> (o .:? "clusterCaCertificate"))
728
688
@@ -730,52 +690,67 @@ instance ToJSON MasterAuth where
730 toJSON MasterAuth{..}
690 toJSON MasterAuth{..}
731 = object
691 = object
732 (catMaybes
692 (catMaybes
733− [("bearerToken" .=) <$> _maBearerToken,
734− ("clientKey" .=) <$> _maClientKey,
693+ [("clientKey" .=) <$> _maClientKey,
735− ("user" .=) <$> _maUser,
694+ ("username" .=) <$> _maUsername,
736 ("clientCertificate" .=) <$> _maClientCertificate,
695 ("clientCertificate" .=) <$> _maClientCertificate,
737 ("password" .=) <$> _maPassword,
696 ("password" .=) <$> _maPassword,
738 ("clusterCaCertificate" .=) <$>
697 ("clusterCaCertificate" .=) <$>
739 _maClusterCaCertificate])
698 _maClusterCaCertificate])
740
699
700+-- | Container Engine Server configuration.
741--
701--
742−-- /See:/ 'listAggregatedClustersResponse' smart constructor.
702+-- /See:/ 'serverConfig' smart constructor.
743−newtype ListAggregatedClustersResponse = ListAggregatedClustersResponse
703+data ServerConfig = ServerConfig
744− { _lacrClusters :: Maybe [Cluster]
704+ { _scValidNodeVersions :: !(Maybe [Text])
705+ , _scDefaultClusterVersion :: !(Maybe Text)
745 } deriving (Eq,Show,Data,Typeable,Generic)
706 } deriving (Eq,Show,Data,Typeable,Generic)
746
707
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.
748--
709--
749-- Use one of the following lenses to modify other fields as desired:
710-- Use one of the following lenses to modify other fields as desired:
750--
711--
751−-- * 'lacrClusters'
712+-- * 'scValidNodeVersions'
752−listAggregatedClustersResponse
713+--
753− :: ListAggregatedClustersResponse
714+-- * 'scDefaultClusterVersion'
754−listAggregatedClustersResponse =
715+serverConfig
755− ListAggregatedClustersResponse
716+ :: ServerConfig
756− { _lacrClusters = Nothing
717+serverConfig =
718+ ServerConfig
719+ { _scValidNodeVersions = Nothing
720+ , _scDefaultClusterVersion = Nothing
757 }
721 }
758
722
759−-- | A list of clusters in the project, across all zones.
723+-- | List of valid node upgrade target versions.
760−lacrClusters :: Lens' ListAggregatedClustersResponse [Cluster]
724+scValidNodeVersions :: Lens' ServerConfig [Text]
761−lacrClusters
725+scValidNodeVersions
762− = lens _lacrClusters (\ s a -> s{_lacrClusters = a})
726+ = lens _scValidNodeVersions
727+ (\ s a -> s{_scValidNodeVersions = a})
763 . _Default
728 . _Default
764 . _Coerce
729 . _Coerce
765
730
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+
766−instance FromJSON ListAggregatedClustersResponse
737+instance FromJSON ServerConfig where
767− where
768 parseJSON
738 parseJSON
769− = withObject "ListAggregatedClustersResponse"
739+ = withObject "ServerConfig"
770 (\ o ->
740 (\ o ->
771− ListAggregatedClustersResponse <$>
741+ ServerConfig <$>
772− (o .:? "clusters" .!= mempty))
742+ (o .:? "validNodeVersions" .!= mempty) <*>
743+ (o .:? "defaultClusterVersion"))
773
744
774−instance ToJSON ListAggregatedClustersResponse where
745+instance ToJSON ServerConfig where
775− toJSON ListAggregatedClustersResponse{..}
746+ toJSON ServerConfig{..}
776 = object
747 = object
777− (catMaybes [("clusters" .=) <$> _lacrClusters])
748+ (catMaybes
749+ [("validNodeVersions" .=) <$> _scValidNodeVersions,
750+ ("defaultClusterVersion" .=) <$>
751+ _scDefaultClusterVersion])
778
752
753+-- | ListClustersResponse is the result of ListClustersRequest.
779--
754--
780-- /See:/ 'listClustersResponse' smart constructor.
755-- /See:/ 'listClustersResponse' smart constructor.
781newtype ListClustersResponse = ListClustersResponse
756newtype ListClustersResponse = ListClustersResponse
@@ -794,7 +769,8 @@ listClustersResponse =
794 { _lcrClusters = Nothing
769 { _lcrClusters = Nothing
795 }
770 }
796
771
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.
798lcrClusters :: Lens' ListClustersResponse [Cluster]
774lcrClusters :: Lens' ListClustersResponse [Cluster]
799lcrClusters
775lcrClusters
800 = lens _lcrClusters (\ s a -> s{_lcrClusters = a}) .
776 = lens _lcrClusters (\ s a -> s{_lcrClusters = a}) .
@@ -812,3 +788,42 @@ instance ToJSON ListClustersResponse where
812 toJSON ListClustersResponse{..}
788 toJSON ListClustersResponse{..}
813 = object
789 = object
814 (catMaybes [("clusters" .=) <$> _lcrClusters])
790 (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 @@
17module Network.Google.Container.Types.Sum where
17module Network.Google.Container.Types.Sum where
18
18
19import Network.Google.Prelude
19import 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 @@
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23-- | Creates a cluster, consisting of the specified number and type of Google
23-- | Creates a cluster, consisting of the specified number and type of Google
24−-- Compute Engine instances, plus a Kubernetes master instance. The cluster
24+-- Compute Engine instances, plus a Kubernetes master endpoint. By default,
25−-- is created in the project\'s default network. A firewall is added that
25+-- the cluster is created in the project\'s [default
26−-- allows traffic into port 443 on the master, which enables HTTPS. A
26+-- network](\/compute\/docs\/networking#networks_1). One firewall is added
27+-- for the cluster. After cluster creation, the cluster creates routes for
27−-- firewall and a route is added for each node to allow the containers on
28+-- each node to allow the containers on that node to communicate with all
28−-- that node to communicate with all other instances in the cluster.
29+-- other instances in the cluster. Finally, an entry is added to the
29−-- Finally, an entry is added to the project\'s global metadata indicating
30−-- which CIDR range is being used by the cluster.
30+-- project\'s global metadata indicating which CIDR range is being used by
31+-- the cluster.
31−--
32+--
32−-- /See:/ <https://cloud.google.com/container-engine/docs/v1beta1/ Google Container Engine API Reference> for @ContainerProjectsZonesClustersCreate@.
33+-- /See:/ <https://cloud.google.com/container-engine/ Google Container Engine API Reference> for @ContainerProjectsZonesClustersCreate@.
33module Network.Google.Resource.Container.Projects.Zones.Clusters.Create
34module Network.Google.Resource.Container.Projects.Zones.Clusters.Create
34 (
35 (
35 -- * REST Resource
36 -- * REST Resource
@@ -40,15 +41,21 @@ module Network.Google.Resource.Container.Projects.Zones.Clusters.Create
40 , ProjectsZonesClustersCreate'
41 , ProjectsZonesClustersCreate'
41
42
42 -- * Request Lenses
43 -- * Request Lenses
44+ , pzccXgafv
43 , pzccQuotaUser
45 , pzccQuotaUser
44 , pzccPrettyPrint
46 , pzccPrettyPrint
45− , pzccUserIP
47+ , pzccUploadProtocol
46− , pzccZoneId
48+ , pzccPp
49+ , pzccAccessToken
50+ , pzccUploadType
51+ , pzccZone
47 , pzccPayload
52 , pzccPayload
53+ , pzccBearerToken
48 , pzccKey
54 , pzccKey
49 , pzccProjectId
55 , pzccProjectId
50 , pzccOAuthToken
56 , pzccOAuthToken
51 , pzccFields
57 , pzccFields
58+ , pzccCallback
52 ) where
59 ) where
53
60
54import Network.Google.Container.Types
61import Network.Google.Container.Types
@@ -57,56 +64,81 @@ import Network.Google.Prelude
57-- | A resource alias for @ContainerProjectsZonesClustersCreate@ method which the
64-- | A resource alias for @ContainerProjectsZonesClustersCreate@ method which the
58-- 'ProjectsZonesClustersCreate'' request conforms to.
65-- 'ProjectsZonesClustersCreate'' request conforms to.
59type ProjectsZonesClustersCreateResource =
66type ProjectsZonesClustersCreateResource =
60− Capture "projectId" Text :>
67+ "v1" :>
61− "zones" :>
68+ "projects" :>
62− Capture "zoneId" Text :>
69+ Capture "projectId" Text :>
63− "clusters" :>
70+ "zones" :>
64− QueryParam "quotaUser" Text :>
71+ Capture "zone" Text :>
65− QueryParam "prettyPrint" Bool :>
72+ "clusters" :>
66− QueryParam "userIp" Text :>
73+ QueryParam "$.xgafv" Text :>
67− QueryParam "fields" Text :>
74+ QueryParam "upload_protocol" Text :>
68− QueryParam "key" AuthKey :>
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 :>
69− QueryParam "oauth_token" OAuthToken :>
84+ QueryParam "oauth_token" OAuthToken :>
70− QueryParam "alt" AltJSON :>
85+ QueryParam "alt" AltJSON :>
71− ReqBody '[JSON] CreateClusterRequest :>
86+ ReqBody '[JSON] CreateClusterRequest
72− Post '[JSON] Operation
87+ :> Post '[JSON] Operation
73
88
74-- | Creates a cluster, consisting of the specified number and type of Google
89-- | Creates a cluster, consisting of the specified number and type of Google
75−-- Compute Engine instances, plus a Kubernetes master instance. The cluster
90+-- Compute Engine instances, plus a Kubernetes master endpoint. By default,
76−-- is created in the project\'s default network. A firewall is added that
91+-- the cluster is created in the project\'s [default
77−-- allows traffic into port 443 on the master, which enables HTTPS. A
92+-- network](\/compute\/docs\/networking#networks_1). One firewall is added
93+-- for the cluster. After cluster creation, the cluster creates routes for
78−-- firewall and a route is added for each node to allow the containers on
94+-- each node to allow the containers on that node to communicate with all
79−-- that node to communicate with all other instances in the cluster.
95+-- other instances in the cluster. Finally, an entry is added to the
80−-- Finally, an entry is added to the project\'s global metadata indicating
81−-- which CIDR range is being used by the cluster.
96+-- project\'s global metadata indicating which CIDR range is being used by
97+-- the cluster.
82--
98--
83-- /See:/ 'projectsZonesClustersCreate'' smart constructor.
99-- /See:/ 'projectsZonesClustersCreate'' smart constructor.
84data ProjectsZonesClustersCreate' = ProjectsZonesClustersCreate'
100data ProjectsZonesClustersCreate' = ProjectsZonesClustersCreate'
101+ { _pzccXgafv :: !(Maybe Text)
85− { _pzccQuotaUser :: !(Maybe Text)
102+ , _pzccQuotaUser :: !(Maybe Text)
86− , _pzccPrettyPrint :: !Bool
103+ , _pzccPrettyPrint :: !Bool
104+ , _pzccUploadProtocol :: !(Maybe Text)
105+ , _pzccPp :: !Bool
87− , _pzccUserIP :: !(Maybe Text)
106+ , _pzccAccessToken :: !(Maybe Text)
88− , _pzccZoneId :: !Text
107+ , _pzccUploadType :: !(Maybe Text)
108+ , _pzccZone :: !Text
89− , _pzccPayload :: !CreateClusterRequest
109+ , _pzccPayload :: !CreateClusterRequest
110+ , _pzccBearerToken :: !(Maybe Text)
90− , _pzccKey :: !(Maybe AuthKey)
111+ , _pzccKey :: !(Maybe AuthKey)
91− , _pzccProjectId :: !Text
112+ , _pzccProjectId :: !Text
92− , _pzccOAuthToken :: !(Maybe OAuthToken)
113+ , _pzccOAuthToken :: !(Maybe OAuthToken)
93− , _pzccFields :: !(Maybe Text)
114+ , _pzccFields :: !(Maybe Text)
115+ , _pzccCallback :: !(Maybe Text)
94 } deriving (Eq,Show,Data,Typeable,Generic)
116 } deriving (Eq,Show,Data,Typeable,Generic)
95
117
96-- | Creates a value of 'ProjectsZonesClustersCreate'' with the minimum fields required to make a request.
118-- | Creates a value of 'ProjectsZonesClustersCreate'' with the minimum fields required to make a request.
97--
119--
98-- Use one of the following lenses to modify other fields as desired:
120-- Use one of the following lenses to modify other fields as desired:
99--
121--
122+-- * 'pzccXgafv'
123+--
100-- * 'pzccQuotaUser'
124-- * 'pzccQuotaUser'
101--
125--
102-- * 'pzccPrettyPrint'
126-- * 'pzccPrettyPrint'
103--
127--
104−-- * 'pzccUserIP'
128+-- * 'pzccUploadProtocol'
129+--
130+-- * 'pzccPp'
131+--
132+-- * 'pzccAccessToken'
105--
133--
106−-- * 'pzccZoneId'
134+-- * 'pzccUploadType'
135+--
136+-- * 'pzccZone'
107--
137--
108-- * 'pzccPayload'
138-- * 'pzccPayload'
109--
139--
140+-- * 'pzccBearerToken'
141+--
110-- * 'pzccKey'
142-- * 'pzccKey'
111--
143--
112-- * 'pzccProjectId'
144-- * 'pzccProjectId'
@@ -114,27 +146,40 @@ data ProjectsZonesClustersCreate' = ProjectsZonesClustersCreate'
114-- * 'pzccOAuthToken'
146-- * 'pzccOAuthToken'
115--
147--
116-- * 'pzccFields'
148-- * 'pzccFields'
149+--
150+-- * 'pzccCallback'
117projectsZonesClustersCreate'
151projectsZonesClustersCreate'
118− :: Text -- ^ 'zoneId'
152+ :: Text -- ^ 'zone'
119 -> CreateClusterRequest -- ^ 'payload'
153 -> CreateClusterRequest -- ^ 'payload'
120 -> Text -- ^ 'projectId'
154 -> Text -- ^ 'projectId'
121 -> ProjectsZonesClustersCreate'
155 -> ProjectsZonesClustersCreate'
122−projectsZonesClustersCreate' pPzccZoneId_ pPzccPayload_ pPzccProjectId_ =
156+projectsZonesClustersCreate' pPzccZone_ pPzccPayload_ pPzccProjectId_ =
123 ProjectsZonesClustersCreate'
157 ProjectsZonesClustersCreate'
158+ { _pzccXgafv = Nothing
124− { _pzccQuotaUser = Nothing
159+ , _pzccQuotaUser = Nothing
125 , _pzccPrettyPrint = True
160 , _pzccPrettyPrint = True
126− , _pzccUserIP = Nothing
161+ , _pzccUploadProtocol = Nothing
127− , _pzccZoneId = pPzccZoneId_
162+ , _pzccPp = True
163+ , _pzccAccessToken = Nothing
164+ , _pzccUploadType = Nothing
165+ , _pzccZone = pPzccZone_
128 , _pzccPayload = pPzccPayload_
166 , _pzccPayload = pPzccPayload_
167+ , _pzccBearerToken = Nothing
129 , _pzccKey = Nothing
168 , _pzccKey = Nothing
130 , _pzccProjectId = pPzccProjectId_
169 , _pzccProjectId = pPzccProjectId_
131 , _pzccOAuthToken = Nothing
170 , _pzccOAuthToken = Nothing
132 , _pzccFields = Nothing
171 , _pzccFields = Nothing
172+ , _pzccCallback = Nothing
133 }
173 }
134
174
175+-- | V1 error format.
176+pzccXgafv :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
177+pzccXgafv
178+ = lens _pzccXgafv (\ s a -> s{_pzccXgafv = a})
179+
135-- | Available to use for quota purposes for server-side applications. Can be
180-- | Available to use for quota purposes for server-side applications. Can be
136-- any arbitrary string assigned to a user, but should not exceed 40
181-- any arbitrary string assigned to a user, but should not exceed 40
137−-- characters. Overrides userIp if both are provided.
182+-- characters.
138pzccQuotaUser :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
183pzccQuotaUser :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
139pzccQuotaUser
184pzccQuotaUser
140 = lens _pzccQuotaUser
185 = lens _pzccQuotaUser
@@ -146,29 +191,52 @@ pzccPrettyPrint
146 = lens _pzccPrettyPrint
191 = lens _pzccPrettyPrint
147 (\ s a -> s{_pzccPrettyPrint = a})
192 (\ s a -> s{_pzccPrettyPrint = a})
148
193
149−-- | IP address of the site where the request originates. Use this if you
194+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
150−-- want to enforce per-user limits.
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.
151−pzccUserIP :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
205+pzccAccessToken :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
152−pzccUserIP
206+pzccAccessToken
153− = lens _pzccUserIP (\ s a -> s{_pzccUserIP = a})
207+ = lens _pzccAccessToken
208+ (\ s a -> s{_pzccAccessToken = a})
154
209
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+
155−-- | The name of the Google Compute Engine zone in which the cluster resides.
216+-- | The name of the Google Compute Engine
217+-- [zone](\/compute\/docs\/zones#available) in which the cluster resides.
156−pzccZoneId :: Lens' ProjectsZonesClustersCreate' Text
218+pzccZone :: Lens' ProjectsZonesClustersCreate' Text
157−pzccZoneId
219+pzccZone = lens _pzccZone (\ s a -> s{_pzccZone = a})
158− = lens _pzccZoneId (\ s a -> s{_pzccZoneId = a})
159
220
160-- | Multipart request metadata.
221-- | Multipart request metadata.
161pzccPayload :: Lens' ProjectsZonesClustersCreate' CreateClusterRequest
222pzccPayload :: Lens' ProjectsZonesClustersCreate' CreateClusterRequest
162pzccPayload
223pzccPayload
163 = lens _pzccPayload (\ s a -> s{_pzccPayload = a})
224 = lens _pzccPayload (\ s a -> s{_pzccPayload = a})
164
225
226+-- | OAuth bearer token.
227+pzccBearerToken :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
228+pzccBearerToken
229+ = lens _pzccBearerToken
230+ (\ s a -> s{_pzccBearerToken = a})
231+
165-- | API key. Your API key identifies your project and provides you with API
232-- | API key. Your API key identifies your project and provides you with API
166-- access, quota, and reports. Required unless you provide an OAuth 2.0
233-- access, quota, and reports. Required unless you provide an OAuth 2.0
167-- token.
234-- token.
168pzccKey :: Lens' ProjectsZonesClustersCreate' (Maybe AuthKey)
235pzccKey :: Lens' ProjectsZonesClustersCreate' (Maybe AuthKey)
169pzccKey = lens _pzccKey (\ s a -> s{_pzccKey = a})
236pzccKey = lens _pzccKey (\ s a -> s{_pzccKey = a})
170
237
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).
172pzccProjectId :: Lens' ProjectsZonesClustersCreate' Text
240pzccProjectId :: Lens' ProjectsZonesClustersCreate' Text
173pzccProjectId
241pzccProjectId
174 = lens _pzccProjectId
242 = lens _pzccProjectId
@@ -185,6 +253,11 @@ pzccFields :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
185pzccFields
253pzccFields
186 = lens _pzccFields (\ s a -> s{_pzccFields = a})
254 = lens _pzccFields (\ s a -> s{_pzccFields = a})
187
255
256+-- | JSONP
257+pzccCallback :: Lens' ProjectsZonesClustersCreate' (Maybe Text)
258+pzccCallback
259+ = lens _pzccCallback (\ s a -> s{_pzccCallback = a})
260+
188instance GoogleAuth ProjectsZonesClustersCreate'
261instance GoogleAuth ProjectsZonesClustersCreate'
189 where
262 where
190 _AuthKey = pzccKey . _Just
263 _AuthKey = pzccKey . _Just
@@ -195,9 +268,15 @@ instance GoogleRequest ProjectsZonesClustersCreate'
195 type Rs ProjectsZonesClustersCreate' = Operation
268 type Rs ProjectsZonesClustersCreate' = Operation
196 request = requestWith containerRequest
269 request = requestWith containerRequest
197 requestWith rq ProjectsZonesClustersCreate'{..}
270 requestWith rq ProjectsZonesClustersCreate'{..}
271+ = go _pzccProjectId _pzccZone _pzccXgafv
272+ _pzccUploadProtocol
273+ (Just _pzccPp)
274+ _pzccAccessToken
275+ _pzccUploadType
276+ _pzccBearerToken
277+ _pzccCallback
198− = go _pzccProjectId _pzccZoneId _pzccQuotaUser
278+ _pzccQuotaUser
199 (Just _pzccPrettyPrint)
279 (Just _pzccPrettyPrint)
200− _pzccUserIP
201 _pzccFields
280 _pzccFields
202 _pzccKey
281 _pzccKey
203 _pzccOAuthToken
282 _pzccOAuthToken
gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Clusters/Delete.hs+129−51
@@ -20,11 +20,11 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- | Deletes the cluster, including the Kubernetes master and all worker
23+-- | Deletes the cluster, including the Kubernetes endpoint and all worker
24−-- nodes. Firewalls and routes that were configured at cluster creation are
24+-- nodes. Firewalls and routes that were configured during cluster creation
25−-- also deleted.
25+-- are also deleted.
26--
26--
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@.
28module Network.Google.Resource.Container.Projects.Zones.Clusters.Delete
28module Network.Google.Resource.Container.Projects.Zones.Clusters.Delete
29 (
29 (
30 -- * REST Resource
30 -- * REST Resource
@@ -35,15 +35,21 @@ module Network.Google.Resource.Container.Projects.Zones.Clusters.Delete
35 , ProjectsZonesClustersDelete'
35 , ProjectsZonesClustersDelete'
36
36
37 -- * Request Lenses
37 -- * Request Lenses
38+ , pzcdXgafv
38 , pzcdQuotaUser
39 , pzcdQuotaUser
39 , pzcdPrettyPrint
40 , pzcdPrettyPrint
40− , pzcdUserIP
41+ , pzcdUploadProtocol
41− , pzcdZoneId
42+ , pzcdPp
43+ , pzcdAccessToken
44+ , pzcdUploadType
45+ , pzcdZone
46+ , pzcdBearerToken
42 , pzcdKey
47 , pzcdKey
43 , pzcdClusterId
48 , pzcdClusterId
44 , pzcdProjectId
49 , pzcdProjectId
45 , pzcdOAuthToken
50 , pzcdOAuthToken
46 , pzcdFields
51 , pzcdFields
52+ , pzcdCallback
47 ) where
53 ) where
48
54
49import Network.Google.Container.Types
55import Network.Google.Container.Types
@@ -52,47 +58,72 @@ import Network.Google.Prelude
52-- | A resource alias for @ContainerProjectsZonesClustersDelete@ method which the
58-- | A resource alias for @ContainerProjectsZonesClustersDelete@ method which the
53-- 'ProjectsZonesClustersDelete'' request conforms to.
59-- 'ProjectsZonesClustersDelete'' request conforms to.
54type ProjectsZonesClustersDeleteResource =
60type ProjectsZonesClustersDeleteResource =
55− Capture "projectId" Text :>
61+ "v1" :>
56− "zones" :>
62+ "projects" :>
57− Capture "zoneId" Text :>
63+ Capture "projectId" Text :>
58− "clusters" :>
64+ "zones" :>
59− Capture "clusterId" Text :>
65+ Capture "zone" Text :>
60− QueryParam "quotaUser" Text :>
66+ "clusters" :>
61− QueryParam "prettyPrint" Bool :>
67+ Capture "clusterId" Text :>
62− QueryParam "userIp" Text :>
68+ QueryParam "$.xgafv" Text :>
63− QueryParam "fields" Text :>
69+ QueryParam "upload_protocol" Text :>
64− QueryParam "key" AuthKey :>
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 :>
65− QueryParam "oauth_token" OAuthToken :>
79+ QueryParam "oauth_token" OAuthToken :>
66− QueryParam "alt" AltJSON :> Delete '[JSON] Operation
80+ QueryParam "alt" AltJSON :>
67−
81+ Delete '[JSON] Operation
82+
68−-- | Deletes the cluster, including the Kubernetes master and all worker
83+-- | Deletes the cluster, including the Kubernetes endpoint and all worker
69−-- nodes. Firewalls and routes that were configured at cluster creation are
84+-- nodes. Firewalls and routes that were configured during cluster creation
70−-- also deleted.
85+-- are also deleted.
71--
86--
72-- /See:/ 'projectsZonesClustersDelete'' smart constructor.
87-- /See:/ 'projectsZonesClustersDelete'' smart constructor.
73data ProjectsZonesClustersDelete' = ProjectsZonesClustersDelete'
88data ProjectsZonesClustersDelete' = ProjectsZonesClustersDelete'
89+ { _pzcdXgafv :: !(Maybe Text)
74− { _pzcdQuotaUser :: !(Maybe Text)
90+ , _pzcdQuotaUser :: !(Maybe Text)
75− , _pzcdPrettyPrint :: !Bool
91+ , _pzcdPrettyPrint :: !Bool
92+ , _pzcdUploadProtocol :: !(Maybe Text)
93+ , _pzcdPp :: !Bool
94+ , _pzcdAccessToken :: !(Maybe Text)
76− , _pzcdUserIP :: !(Maybe Text)
95+ , _pzcdUploadType :: !(Maybe Text)
77− , _pzcdZoneId :: !Text
96+ , _pzcdZone :: !Text
97+ , _pzcdBearerToken :: !(Maybe Text)
78− , _pzcdKey :: !(Maybe AuthKey)
98+ , _pzcdKey :: !(Maybe AuthKey)
79− , _pzcdClusterId :: !Text
99+ , _pzcdClusterId :: !Text
80− , _pzcdProjectId :: !Text
100+ , _pzcdProjectId :: !Text
81− , _pzcdOAuthToken :: !(Maybe OAuthToken)
101+ , _pzcdOAuthToken :: !(Maybe OAuthToken)
82− , _pzcdFields :: !(Maybe Text)
102+ , _pzcdFields :: !(Maybe Text)
103+ , _pzcdCallback :: !(Maybe Text)
83 } deriving (Eq,Show,Data,Typeable,Generic)
104 } deriving (Eq,Show,Data,Typeable,Generic)
84
105
85-- | Creates a value of 'ProjectsZonesClustersDelete'' with the minimum fields required to make a request.
106-- | Creates a value of 'ProjectsZonesClustersDelete'' with the minimum fields required to make a request.
86--
107--
87-- Use one of the following lenses to modify other fields as desired:
108-- Use one of the following lenses to modify other fields as desired:
88--
109--
110+-- * 'pzcdXgafv'
111+--
89-- * 'pzcdQuotaUser'
112-- * 'pzcdQuotaUser'
90--
113--
91-- * 'pzcdPrettyPrint'
114-- * 'pzcdPrettyPrint'
92--
115--
93−-- * 'pzcdUserIP'
116+-- * 'pzcdUploadProtocol'
117+--
118+-- * 'pzcdPp'
119+--
120+-- * 'pzcdAccessToken'
94--
121--
95−-- * 'pzcdZoneId'
122+-- * 'pzcdUploadType'
123+--
124+-- * 'pzcdZone'
125+--
126+-- * 'pzcdBearerToken'
96--
127--
97-- * 'pzcdKey'
128-- * 'pzcdKey'
98--
129--
@@ -103,27 +134,40 @@ data ProjectsZonesClustersDelete' = ProjectsZonesClustersDelete'
103-- * 'pzcdOAuthToken'
134-- * 'pzcdOAuthToken'
104--
135--
105-- * 'pzcdFields'
136-- * 'pzcdFields'
137+--
138+-- * 'pzcdCallback'
106projectsZonesClustersDelete'
139projectsZonesClustersDelete'
107− :: Text -- ^ 'zoneId'
140+ :: Text -- ^ 'zone'
108 -> Text -- ^ 'clusterId'
141 -> Text -- ^ 'clusterId'
109 -> Text -- ^ 'projectId'
142 -> Text -- ^ 'projectId'
110 -> ProjectsZonesClustersDelete'
143 -> ProjectsZonesClustersDelete'
111−projectsZonesClustersDelete' pPzcdZoneId_ pPzcdClusterId_ pPzcdProjectId_ =
144+projectsZonesClustersDelete' pPzcdZone_ pPzcdClusterId_ pPzcdProjectId_ =
112 ProjectsZonesClustersDelete'
145 ProjectsZonesClustersDelete'
146+ { _pzcdXgafv = Nothing
113− { _pzcdQuotaUser = Nothing
147+ , _pzcdQuotaUser = Nothing
114 , _pzcdPrettyPrint = True
148 , _pzcdPrettyPrint = True
115− , _pzcdUserIP = Nothing
149+ , _pzcdUploadProtocol = Nothing
116− , _pzcdZoneId = pPzcdZoneId_
150+ , _pzcdPp = True
151+ , _pzcdAccessToken = Nothing
152+ , _pzcdUploadType = Nothing
153+ , _pzcdZone = pPzcdZone_
154+ , _pzcdBearerToken = Nothing
117 , _pzcdKey = Nothing
155 , _pzcdKey = Nothing
118 , _pzcdClusterId = pPzcdClusterId_
156 , _pzcdClusterId = pPzcdClusterId_
119 , _pzcdProjectId = pPzcdProjectId_
157 , _pzcdProjectId = pPzcdProjectId_
120 , _pzcdOAuthToken = Nothing
158 , _pzcdOAuthToken = Nothing
121 , _pzcdFields = Nothing
159 , _pzcdFields = Nothing
160+ , _pzcdCallback = Nothing
122 }
161 }
123
162
163+-- | V1 error format.
164+pzcdXgafv :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
165+pzcdXgafv
166+ = lens _pzcdXgafv (\ s a -> s{_pzcdXgafv = a})
167+
124-- | Available to use for quota purposes for server-side applications. Can be
168-- | 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
169-- any arbitrary string assigned to a user, but should not exceed 40
126−-- characters. Overrides userIp if both are provided.
170+-- characters.
127pzcdQuotaUser :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
171pzcdQuotaUser :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
128pzcdQuotaUser
172pzcdQuotaUser
129 = lens _pzcdQuotaUser
173 = lens _pzcdQuotaUser
@@ -135,16 +179,38 @@ pzcdPrettyPrint
135 = lens _pzcdPrettyPrint
179 = lens _pzcdPrettyPrint
136 (\ s a -> s{_pzcdPrettyPrint = a})
180 (\ s a -> s{_pzcdPrettyPrint = a})
137
181
138−-- | IP address of the site where the request originates. Use this if you
182+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
139−-- want to enforce per-user limits.
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.
140−pzcdUserIP :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
193+pzcdAccessToken :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
141−pzcdUserIP
194+pzcdAccessToken
142− = lens _pzcdUserIP (\ s a -> s{_pzcdUserIP = a})
195+ = lens _pzcdAccessToken
196+ (\ s a -> s{_pzcdAccessToken = a})
143
197
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+
144−-- | The name of the Google Compute Engine zone in which the cluster resides.
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.
145−pzcdZoneId :: Lens' ProjectsZonesClustersDelete' Text
210+pzcdBearerToken :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
146−pzcdZoneId
211+pzcdBearerToken
147− = lens _pzcdZoneId (\ s a -> s{_pzcdZoneId = a})
212+ = lens _pzcdBearerToken
213+ (\ s a -> s{_pzcdBearerToken = a})
148
214
149-- | API key. Your API key identifies your project and provides you with API
215-- | 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
216-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -158,7 +224,8 @@ pzcdClusterId
158 = lens _pzcdClusterId
224 = lens _pzcdClusterId
159 (\ s a -> s{_pzcdClusterId = a})
225 (\ s a -> s{_pzcdClusterId = a})
160
226
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).
162pzcdProjectId :: Lens' ProjectsZonesClustersDelete' Text
229pzcdProjectId :: Lens' ProjectsZonesClustersDelete' Text
163pzcdProjectId
230pzcdProjectId
164 = lens _pzcdProjectId
231 = lens _pzcdProjectId
@@ -175,6 +242,11 @@ pzcdFields :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
175pzcdFields
242pzcdFields
176 = lens _pzcdFields (\ s a -> s{_pzcdFields = a})
243 = lens _pzcdFields (\ s a -> s{_pzcdFields = a})
177
244
245+-- | JSONP
246+pzcdCallback :: Lens' ProjectsZonesClustersDelete' (Maybe Text)
247+pzcdCallback
248+ = lens _pzcdCallback (\ s a -> s{_pzcdCallback = a})
249+
178instance GoogleAuth ProjectsZonesClustersDelete'
250instance GoogleAuth ProjectsZonesClustersDelete'
179 where
251 where
180 _AuthKey = pzcdKey . _Just
252 _AuthKey = pzcdKey . _Just
@@ -185,10 +257,16 @@ instance GoogleRequest ProjectsZonesClustersDelete'
185 type Rs ProjectsZonesClustersDelete' = Operation
257 type Rs ProjectsZonesClustersDelete' = Operation
186 request = requestWith containerRequest
258 request = requestWith containerRequest
187 requestWith rq ProjectsZonesClustersDelete'{..}
259 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
189 _pzcdQuotaUser
268 _pzcdQuotaUser
190 (Just _pzcdPrettyPrint)
269 (Just _pzcdPrettyPrint)
191− _pzcdUserIP
192 _pzcdFields
270 _pzcdFields
193 _pzcdKey
271 _pzcdKey
194 _pzcdOAuthToken
272 _pzcdOAuthToken
gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Clusters/Get.hs+122−44
@@ -22,7 +22,7 @@
22--
22--
23-- | Gets a specific cluster.
23-- | Gets a specific cluster.
24--
24--
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@.
26module Network.Google.Resource.Container.Projects.Zones.Clusters.Get
26module Network.Google.Resource.Container.Projects.Zones.Clusters.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
@@ -33,15 +33,21 @@ module Network.Google.Resource.Container.Projects.Zones.Clusters.Get
33 , ProjectsZonesClustersGet'
33 , ProjectsZonesClustersGet'
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36+ , pzcgXgafv
36 , pzcgQuotaUser
37 , pzcgQuotaUser
37 , pzcgPrettyPrint
38 , pzcgPrettyPrint
38− , pzcgUserIP
39+ , pzcgUploadProtocol
39− , pzcgZoneId
40+ , pzcgPp
41+ , pzcgAccessToken
42+ , pzcgUploadType
43+ , pzcgZone
44+ , pzcgBearerToken
40 , pzcgKey
45 , pzcgKey
41 , pzcgClusterId
46 , pzcgClusterId
42 , pzcgProjectId
47 , pzcgProjectId
43 , pzcgOAuthToken
48 , pzcgOAuthToken
44 , pzcgFields
49 , pzcgFields
50+ , pzcgCallback
45 ) where
51 ) where
46
52
47import Network.Google.Container.Types
53import Network.Google.Container.Types
@@ -50,45 +56,70 @@ import Network.Google.Prelude
50-- | A resource alias for @ContainerProjectsZonesClustersGet@ method which the
56-- | A resource alias for @ContainerProjectsZonesClustersGet@ method which the
51-- 'ProjectsZonesClustersGet'' request conforms to.
57-- 'ProjectsZonesClustersGet'' request conforms to.
52type ProjectsZonesClustersGetResource =
58type ProjectsZonesClustersGetResource =
53− Capture "projectId" Text :>
59+ "v1" :>
54− "zones" :>
60+ "projects" :>
55− Capture "zoneId" Text :>
61+ Capture "projectId" Text :>
56− "clusters" :>
62+ "zones" :>
57− Capture "clusterId" Text :>
63+ Capture "zone" Text :>
58− QueryParam "quotaUser" Text :>
64+ "clusters" :>
59− QueryParam "prettyPrint" Bool :>
65+ Capture "clusterId" Text :>
60− QueryParam "userIp" 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 :>
61− QueryParam "fields" Text :>
75+ QueryParam "fields" Text :>
62− QueryParam "key" AuthKey :>
76+ QueryParam "key" AuthKey :>
63− QueryParam "oauth_token" OAuthToken :>
77+ QueryParam "oauth_token" OAuthToken :>
64− QueryParam "alt" AltJSON :> Get '[JSON] Cluster
78+ QueryParam "alt" AltJSON :>
79+ Get '[JSON] Cluster
65
80
66-- | Gets a specific cluster.
81-- | Gets a specific cluster.
67--
82--
68-- /See:/ 'projectsZonesClustersGet'' smart constructor.
83-- /See:/ 'projectsZonesClustersGet'' smart constructor.
69data ProjectsZonesClustersGet' = ProjectsZonesClustersGet'
84data ProjectsZonesClustersGet' = ProjectsZonesClustersGet'
85+ { _pzcgXgafv :: !(Maybe Text)
70− { _pzcgQuotaUser :: !(Maybe Text)
86+ , _pzcgQuotaUser :: !(Maybe Text)
71− , _pzcgPrettyPrint :: !Bool
87+ , _pzcgPrettyPrint :: !Bool
88+ , _pzcgUploadProtocol :: !(Maybe Text)
89+ , _pzcgPp :: !Bool
90+ , _pzcgAccessToken :: !(Maybe Text)
72− , _pzcgUserIP :: !(Maybe Text)
91+ , _pzcgUploadType :: !(Maybe Text)
73− , _pzcgZoneId :: !Text
92+ , _pzcgZone :: !Text
93+ , _pzcgBearerToken :: !(Maybe Text)
74− , _pzcgKey :: !(Maybe AuthKey)
94+ , _pzcgKey :: !(Maybe AuthKey)
75− , _pzcgClusterId :: !Text
95+ , _pzcgClusterId :: !Text
76− , _pzcgProjectId :: !Text
96+ , _pzcgProjectId :: !Text
77− , _pzcgOAuthToken :: !(Maybe OAuthToken)
97+ , _pzcgOAuthToken :: !(Maybe OAuthToken)
78− , _pzcgFields :: !(Maybe Text)
98+ , _pzcgFields :: !(Maybe Text)
99+ , _pzcgCallback :: !(Maybe Text)
79 } deriving (Eq,Show,Data,Typeable,Generic)
100 } deriving (Eq,Show,Data,Typeable,Generic)
80
101
81-- | Creates a value of 'ProjectsZonesClustersGet'' with the minimum fields required to make a request.
102-- | Creates a value of 'ProjectsZonesClustersGet'' with the minimum fields required to make a request.
82--
103--
83-- Use one of the following lenses to modify other fields as desired:
104-- Use one of the following lenses to modify other fields as desired:
84--
105--
106+-- * 'pzcgXgafv'
107+--
85-- * 'pzcgQuotaUser'
108-- * 'pzcgQuotaUser'
86--
109--
87-- * 'pzcgPrettyPrint'
110-- * 'pzcgPrettyPrint'
88--
111--
89−-- * 'pzcgUserIP'
112+-- * 'pzcgUploadProtocol'
113+--
114+-- * 'pzcgPp'
115+--
116+-- * 'pzcgAccessToken'
90--
117--
91−-- * 'pzcgZoneId'
118+-- * 'pzcgUploadType'
119+--
120+-- * 'pzcgZone'
121+--
122+-- * 'pzcgBearerToken'
92--
123--
93-- * 'pzcgKey'
124-- * 'pzcgKey'
94--
125--
@@ -99,27 +130,40 @@ data ProjectsZonesClustersGet' = ProjectsZonesClustersGet'
99-- * 'pzcgOAuthToken'
130-- * 'pzcgOAuthToken'
100--
131--
101-- * 'pzcgFields'
132-- * 'pzcgFields'
133+--
134+-- * 'pzcgCallback'
102projectsZonesClustersGet'
135projectsZonesClustersGet'
103− :: Text -- ^ 'zoneId'
136+ :: Text -- ^ 'zone'
104 -> Text -- ^ 'clusterId'
137 -> Text -- ^ 'clusterId'
105 -> Text -- ^ 'projectId'
138 -> Text -- ^ 'projectId'
106 -> ProjectsZonesClustersGet'
139 -> ProjectsZonesClustersGet'
107−projectsZonesClustersGet' pPzcgZoneId_ pPzcgClusterId_ pPzcgProjectId_ =
140+projectsZonesClustersGet' pPzcgZone_ pPzcgClusterId_ pPzcgProjectId_ =
108 ProjectsZonesClustersGet'
141 ProjectsZonesClustersGet'
142+ { _pzcgXgafv = Nothing
109− { _pzcgQuotaUser = Nothing
143+ , _pzcgQuotaUser = Nothing
110 , _pzcgPrettyPrint = True
144 , _pzcgPrettyPrint = True
111− , _pzcgUserIP = Nothing
145+ , _pzcgUploadProtocol = Nothing
112− , _pzcgZoneId = pPzcgZoneId_
146+ , _pzcgPp = True
147+ , _pzcgAccessToken = Nothing
148+ , _pzcgUploadType = Nothing
149+ , _pzcgZone = pPzcgZone_
150+ , _pzcgBearerToken = Nothing
113 , _pzcgKey = Nothing
151 , _pzcgKey = Nothing
114 , _pzcgClusterId = pPzcgClusterId_
152 , _pzcgClusterId = pPzcgClusterId_
115 , _pzcgProjectId = pPzcgProjectId_
153 , _pzcgProjectId = pPzcgProjectId_
116 , _pzcgOAuthToken = Nothing
154 , _pzcgOAuthToken = Nothing
117 , _pzcgFields = Nothing
155 , _pzcgFields = Nothing
156+ , _pzcgCallback = Nothing
118 }
157 }
119
158
159+-- | V1 error format.
160+pzcgXgafv :: Lens' ProjectsZonesClustersGet' (Maybe Text)
161+pzcgXgafv
162+ = lens _pzcgXgafv (\ s a -> s{_pzcgXgafv = a})
163+
120-- | Available to use for quota purposes for server-side applications. Can be
164-- | 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
165-- any arbitrary string assigned to a user, but should not exceed 40
122−-- characters. Overrides userIp if both are provided.
166+-- characters.
123pzcgQuotaUser :: Lens' ProjectsZonesClustersGet' (Maybe Text)
167pzcgQuotaUser :: Lens' ProjectsZonesClustersGet' (Maybe Text)
124pzcgQuotaUser
168pzcgQuotaUser
125 = lens _pzcgQuotaUser
169 = lens _pzcgQuotaUser
@@ -131,16 +175,38 @@ pzcgPrettyPrint
131 = lens _pzcgPrettyPrint
175 = lens _pzcgPrettyPrint
132 (\ s a -> s{_pzcgPrettyPrint = a})
176 (\ s a -> s{_pzcgPrettyPrint = a})
133
177
134−-- | IP address of the site where the request originates. Use this if you
178+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
135−-- want to enforce per-user limits.
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.
136−pzcgUserIP :: Lens' ProjectsZonesClustersGet' (Maybe Text)
189+pzcgAccessToken :: Lens' ProjectsZonesClustersGet' (Maybe Text)
137−pzcgUserIP
190+pzcgAccessToken
138− = lens _pzcgUserIP (\ s a -> s{_pzcgUserIP = a})
191+ = lens _pzcgAccessToken
192+ (\ s a -> s{_pzcgAccessToken = a})
139
193
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+
140−-- | The name of the Google Compute Engine zone in which the cluster resides.
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.
141−pzcgZoneId :: Lens' ProjectsZonesClustersGet' Text
206+pzcgBearerToken :: Lens' ProjectsZonesClustersGet' (Maybe Text)
142−pzcgZoneId
207+pzcgBearerToken
143− = lens _pzcgZoneId (\ s a -> s{_pzcgZoneId = a})
208+ = lens _pzcgBearerToken
209+ (\ s a -> s{_pzcgBearerToken = a})
144
210
145-- | API key. Your API key identifies your project and provides you with API
211-- | API key. Your API key identifies your project and provides you with API
146-- access, quota, and reports. Required unless you provide an OAuth 2.0
212-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -154,7 +220,8 @@ pzcgClusterId
154 = lens _pzcgClusterId
220 = lens _pzcgClusterId
155 (\ s a -> s{_pzcgClusterId = a})
221 (\ s a -> s{_pzcgClusterId = a})
156
222
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).
158pzcgProjectId :: Lens' ProjectsZonesClustersGet' Text
225pzcgProjectId :: Lens' ProjectsZonesClustersGet' Text
159pzcgProjectId
226pzcgProjectId
160 = lens _pzcgProjectId
227 = lens _pzcgProjectId
@@ -171,6 +238,11 @@ pzcgFields :: Lens' ProjectsZonesClustersGet' (Maybe Text)
171pzcgFields
238pzcgFields
172 = lens _pzcgFields (\ s a -> s{_pzcgFields = a})
239 = lens _pzcgFields (\ s a -> s{_pzcgFields = a})
173
240
241+-- | JSONP
242+pzcgCallback :: Lens' ProjectsZonesClustersGet' (Maybe Text)
243+pzcgCallback
244+ = lens _pzcgCallback (\ s a -> s{_pzcgCallback = a})
245+
174instance GoogleAuth ProjectsZonesClustersGet' where
246instance GoogleAuth ProjectsZonesClustersGet' where
175 _AuthKey = pzcgKey . _Just
247 _AuthKey = pzcgKey . _Just
176 _AuthToken = pzcgOAuthToken . _Just
248 _AuthToken = pzcgOAuthToken . _Just
@@ -180,10 +252,16 @@ instance GoogleRequest ProjectsZonesClustersGet'
180 type Rs ProjectsZonesClustersGet' = Cluster
252 type Rs ProjectsZonesClustersGet' = Cluster
181 request = requestWith containerRequest
253 request = requestWith containerRequest
182 requestWith rq ProjectsZonesClustersGet'{..}
254 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
184 _pzcgQuotaUser
263 _pzcgQuotaUser
185 (Just _pzcgPrettyPrint)
264 (Just _pzcgPrettyPrint)
186− _pzcgUserIP
187 _pzcgFields
265 _pzcgFields
188 _pzcgKey
266 _pzcgKey
189 _pzcgOAuthToken
267 _pzcgOAuthToken
gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Clusters/List.hs+126−46
@@ -20,9 +20,10 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
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.
24--
25--
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@.
26module Network.Google.Resource.Container.Projects.Zones.Clusters.List
27module Network.Google.Resource.Container.Projects.Zones.Clusters.List
27 (
28 (
28 -- * REST Resource
29 -- * REST Resource
@@ -33,14 +34,20 @@ module Network.Google.Resource.Container.Projects.Zones.Clusters.List
33 , ProjectsZonesClustersList'
34 , ProjectsZonesClustersList'
34
35
35 -- * Request Lenses
36 -- * Request Lenses
37+ , pzclXgafv
36 , pzclQuotaUser
38 , pzclQuotaUser
37 , pzclPrettyPrint
39 , pzclPrettyPrint
38− , pzclUserIP
40+ , pzclUploadProtocol
39− , pzclZoneId
41+ , pzclPp
42+ , pzclAccessToken
43+ , pzclUploadType
44+ , pzclZone
45+ , pzclBearerToken
40 , pzclKey
46 , pzclKey
41 , pzclProjectId
47 , pzclProjectId
42 , pzclOAuthToken
48 , pzclOAuthToken
43 , pzclFields
49 , pzclFields
50+ , pzclCallback
44 ) where
51 ) where
45
52
46import Network.Google.Container.Types
53import Network.Google.Container.Types
@@ -49,44 +56,69 @@ import Network.Google.Prelude
49-- | A resource alias for @ContainerProjectsZonesClustersList@ method which the
56-- | A resource alias for @ContainerProjectsZonesClustersList@ method which the
50-- 'ProjectsZonesClustersList'' request conforms to.
57-- 'ProjectsZonesClustersList'' request conforms to.
51type ProjectsZonesClustersListResource =
58type ProjectsZonesClustersListResource =
52− Capture "projectId" Text :>
59+ "v1" :>
53− "zones" :>
60+ "projects" :>
54− Capture "zoneId" Text :>
61+ Capture "projectId" Text :>
55− "clusters" :>
62+ "zones" :>
56− QueryParam "quotaUser" Text :>
63+ Capture "zone" Text :>
57− QueryParam "prettyPrint" Bool :>
64+ "clusters" :>
58− QueryParam "userIp" Text :>
65+ QueryParam "$.xgafv" Text :>
66+ QueryParam "upload_protocol" Text :>
67+ QueryParam "pp" Bool :>
68+ QueryParam "access_token" Text :>
69+ QueryParam "uploadType" Text :>
70+ QueryParam "bearer_token" Text :>
71+ QueryParam "callback" Text :>
72+ QueryParam "quotaUser" Text :>
73+ QueryParam "prettyPrint" Bool :>
59− QueryParam "fields" Text :>
74+ QueryParam "fields" Text :>
60− QueryParam "key" AuthKey :>
75+ QueryParam "key" AuthKey :>
61− QueryParam "oauth_token" OAuthToken :>
76+ QueryParam "oauth_token" OAuthToken :>
62− QueryParam "alt" AltJSON :>
77+ QueryParam "alt" AltJSON :>
63− Get '[JSON] ListClustersResponse
78+ Get '[JSON] ListClustersResponse
64−
79+
65−-- | Lists all clusters owned by a project in the specified zone.
80+-- | Lists all clusters owned by a project in either the specified zone or
81+-- all zones.
66--
82--
67-- /See:/ 'projectsZonesClustersList'' smart constructor.
83-- /See:/ 'projectsZonesClustersList'' smart constructor.
68data ProjectsZonesClustersList' = ProjectsZonesClustersList'
84data ProjectsZonesClustersList' = ProjectsZonesClustersList'
85+ { _pzclXgafv :: !(Maybe Text)
69− { _pzclQuotaUser :: !(Maybe Text)
86+ , _pzclQuotaUser :: !(Maybe Text)
70− , _pzclPrettyPrint :: !Bool
87+ , _pzclPrettyPrint :: !Bool
88+ , _pzclUploadProtocol :: !(Maybe Text)
89+ , _pzclPp :: !Bool
90+ , _pzclAccessToken :: !(Maybe Text)
71− , _pzclUserIP :: !(Maybe Text)
91+ , _pzclUploadType :: !(Maybe Text)
72− , _pzclZoneId :: !Text
92+ , _pzclZone :: !Text
93+ , _pzclBearerToken :: !(Maybe Text)
73− , _pzclKey :: !(Maybe AuthKey)
94+ , _pzclKey :: !(Maybe AuthKey)
74− , _pzclProjectId :: !Text
95+ , _pzclProjectId :: !Text
75− , _pzclOAuthToken :: !(Maybe OAuthToken)
96+ , _pzclOAuthToken :: !(Maybe OAuthToken)
76− , _pzclFields :: !(Maybe Text)
97+ , _pzclFields :: !(Maybe Text)
98+ , _pzclCallback :: !(Maybe Text)
77 } deriving (Eq,Show,Data,Typeable,Generic)
99 } deriving (Eq,Show,Data,Typeable,Generic)
78
100
79-- | Creates a value of 'ProjectsZonesClustersList'' with the minimum fields required to make a request.
101-- | Creates a value of 'ProjectsZonesClustersList'' with the minimum fields required to make a request.
80--
102--
81-- Use one of the following lenses to modify other fields as desired:
103-- Use one of the following lenses to modify other fields as desired:
82--
104--
105+-- * 'pzclXgafv'
106+--
83-- * 'pzclQuotaUser'
107-- * 'pzclQuotaUser'
84--
108--
85-- * 'pzclPrettyPrint'
109-- * 'pzclPrettyPrint'
86--
110--
87−-- * 'pzclUserIP'
111+-- * 'pzclUploadProtocol'
112+--
113+-- * 'pzclPp'
114+--
115+-- * 'pzclAccessToken'
88--
116--
89−-- * 'pzclZoneId'
117+-- * 'pzclUploadType'
118+--
119+-- * 'pzclZone'
120+--
121+-- * 'pzclBearerToken'
90--
122--
91-- * 'pzclKey'
123-- * 'pzclKey'
92--
124--
@@ -95,25 +127,38 @@ data ProjectsZonesClustersList' = ProjectsZonesClustersList'
95-- * 'pzclOAuthToken'
127-- * 'pzclOAuthToken'
96--
128--
97-- * 'pzclFields'
129-- * 'pzclFields'
130+--
131+-- * 'pzclCallback'
98projectsZonesClustersList'
132projectsZonesClustersList'
99− :: Text -- ^ 'zoneId'
133+ :: Text -- ^ 'zone'
100 -> Text -- ^ 'projectId'
134 -> Text -- ^ 'projectId'
101 -> ProjectsZonesClustersList'
135 -> ProjectsZonesClustersList'
102−projectsZonesClustersList' pPzclZoneId_ pPzclProjectId_ =
136+projectsZonesClustersList' pPzclZone_ pPzclProjectId_ =
103 ProjectsZonesClustersList'
137 ProjectsZonesClustersList'
138+ { _pzclXgafv = Nothing
104− { _pzclQuotaUser = Nothing
139+ , _pzclQuotaUser = Nothing
105 , _pzclPrettyPrint = True
140 , _pzclPrettyPrint = True
106− , _pzclUserIP = Nothing
141+ , _pzclUploadProtocol = Nothing
107− , _pzclZoneId = pPzclZoneId_
142+ , _pzclPp = True
143+ , _pzclAccessToken = Nothing
144+ , _pzclUploadType = Nothing
145+ , _pzclZone = pPzclZone_
146+ , _pzclBearerToken = Nothing
108 , _pzclKey = Nothing
147 , _pzclKey = Nothing
109 , _pzclProjectId = pPzclProjectId_
148 , _pzclProjectId = pPzclProjectId_
110 , _pzclOAuthToken = Nothing
149 , _pzclOAuthToken = Nothing
111 , _pzclFields = Nothing
150 , _pzclFields = Nothing
151+ , _pzclCallback = Nothing
112 }
152 }
113
153
154+-- | V1 error format.
155+pzclXgafv :: Lens' ProjectsZonesClustersList' (Maybe Text)
156+pzclXgafv
157+ = lens _pzclXgafv (\ s a -> s{_pzclXgafv = a})
158+
114-- | Available to use for quota purposes for server-side applications. Can be
159-- | Available to use for quota purposes for server-side applications. Can be
115-- any arbitrary string assigned to a user, but should not exceed 40
160-- any arbitrary string assigned to a user, but should not exceed 40
116−-- characters. Overrides userIp if both are provided.
161+-- characters.
117pzclQuotaUser :: Lens' ProjectsZonesClustersList' (Maybe Text)
162pzclQuotaUser :: Lens' ProjectsZonesClustersList' (Maybe Text)
118pzclQuotaUser
163pzclQuotaUser
119 = lens _pzclQuotaUser
164 = lens _pzclQuotaUser
@@ -125,16 +170,39 @@ pzclPrettyPrint
125 = lens _pzclPrettyPrint
170 = lens _pzclPrettyPrint
126 (\ s a -> s{_pzclPrettyPrint = a})
171 (\ s a -> s{_pzclPrettyPrint = a})
127
172
128−-- | IP address of the site where the request originates. Use this if you
173+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
129−-- want to enforce per-user limits.
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.
130−pzclUserIP :: Lens' ProjectsZonesClustersList' (Maybe Text)
184+pzclAccessToken :: Lens' ProjectsZonesClustersList' (Maybe Text)
131−pzclUserIP
185+pzclAccessToken
132− = lens _pzclUserIP (\ s a -> s{_pzclUserIP = a})
186+ = lens _pzclAccessToken
187+ (\ s a -> s{_pzclAccessToken = a})
133
188
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+
134−-- | The name of the Google Compute Engine zone in which the cluster resides.
195+-- | The name of the Google Compute Engine
196+-- [zone](\/compute\/docs\/zones#available) in which the cluster resides,
197+-- or \"-\" for all zones.
135−pzclZoneId :: Lens' ProjectsZonesClustersList' Text
198+pzclZone :: Lens' ProjectsZonesClustersList' Text
136−pzclZoneId
199+pzclZone = lens _pzclZone (\ s a -> s{_pzclZone = a})
137− = lens _pzclZoneId (\ s a -> s{_pzclZoneId = a})
200+
201+-- | OAuth bearer token.
202+pzclBearerToken :: Lens' ProjectsZonesClustersList' (Maybe Text)
203+pzclBearerToken
204+ = lens _pzclBearerToken
205+ (\ s a -> s{_pzclBearerToken = a})
138
206
139-- | API key. Your API key identifies your project and provides you with API
207-- | 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
208-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -142,7 +210,8 @@ pzclZoneId
142pzclKey :: Lens' ProjectsZonesClustersList' (Maybe AuthKey)
210pzclKey :: Lens' ProjectsZonesClustersList' (Maybe AuthKey)
143pzclKey = lens _pzclKey (\ s a -> s{_pzclKey = a})
211pzclKey = lens _pzclKey (\ s a -> s{_pzclKey = a})
144
212
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).
146pzclProjectId :: Lens' ProjectsZonesClustersList' Text
215pzclProjectId :: Lens' ProjectsZonesClustersList' Text
147pzclProjectId
216pzclProjectId
148 = lens _pzclProjectId
217 = lens _pzclProjectId
@@ -159,6 +228,11 @@ pzclFields :: Lens' ProjectsZonesClustersList' (Maybe Text)
159pzclFields
228pzclFields
160 = lens _pzclFields (\ s a -> s{_pzclFields = a})
229 = lens _pzclFields (\ s a -> s{_pzclFields = a})
161
230
231+-- | JSONP
232+pzclCallback :: Lens' ProjectsZonesClustersList' (Maybe Text)
233+pzclCallback
234+ = lens _pzclCallback (\ s a -> s{_pzclCallback = a})
235+
162instance GoogleAuth ProjectsZonesClustersList' where
236instance GoogleAuth ProjectsZonesClustersList' where
163 _AuthKey = pzclKey . _Just
237 _AuthKey = pzclKey . _Just
164 _AuthToken = pzclOAuthToken . _Just
238 _AuthToken = pzclOAuthToken . _Just
@@ -169,9 +243,15 @@ instance GoogleRequest ProjectsZonesClustersList'
169 ListClustersResponse
243 ListClustersResponse
170 request = requestWith containerRequest
244 request = requestWith containerRequest
171 requestWith rq ProjectsZonesClustersList'{..}
245 requestWith rq ProjectsZonesClustersList'{..}
246+ = go _pzclProjectId _pzclZone _pzclXgafv
247+ _pzclUploadProtocol
248+ (Just _pzclPp)
249+ _pzclAccessToken
250+ _pzclUploadType
251+ _pzclBearerToken
252+ _pzclCallback
172− = go _pzclProjectId _pzclZoneId _pzclQuotaUser
253+ _pzclQuotaUser
173 (Just _pzclPrettyPrint)
254 (Just _pzclPrettyPrint)
174− _pzclUserIP
175 _pzclFields
255 _pzclFields
176 _pzclKey
256 _pzclKey
177 _pzclOAuthToken
257 _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 @@
22--
22--
23-- | Gets the specified operation.
23-- | Gets the specified operation.
24--
24--
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@.
26module Network.Google.Resource.Container.Projects.Zones.Operations.Get
26module Network.Google.Resource.Container.Projects.Zones.Operations.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
@@ -33,15 +33,21 @@ module Network.Google.Resource.Container.Projects.Zones.Operations.Get
33 , ProjectsZonesOperationsGet'
33 , ProjectsZonesOperationsGet'
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36+ , pzogXgafv
36 , pzogQuotaUser
37 , pzogQuotaUser
37 , pzogPrettyPrint
38 , pzogPrettyPrint
38− , pzogUserIP
39+ , pzogUploadProtocol
39− , pzogZoneId
40+ , pzogPp
41+ , pzogAccessToken
42+ , pzogUploadType
43+ , pzogZone
44+ , pzogBearerToken
40 , pzogKey
45 , pzogKey
41 , pzogProjectId
46 , pzogProjectId
42 , pzogOperationId
47 , pzogOperationId
43 , pzogOAuthToken
48 , pzogOAuthToken
44 , pzogFields
49 , pzogFields
50+ , pzogCallback
45 ) where
51 ) where
46
52
47import Network.Google.Container.Types
53import Network.Google.Container.Types
@@ -50,45 +56,70 @@ import Network.Google.Prelude
50-- | A resource alias for @ContainerProjectsZonesOperationsGet@ method which the
56-- | A resource alias for @ContainerProjectsZonesOperationsGet@ method which the
51-- 'ProjectsZonesOperationsGet'' request conforms to.
57-- 'ProjectsZonesOperationsGet'' request conforms to.
52type ProjectsZonesOperationsGetResource =
58type ProjectsZonesOperationsGetResource =
53− Capture "projectId" Text :>
59+ "v1" :>
54− "zones" :>
60+ "projects" :>
55− Capture "zoneId" Text :>
61+ Capture "projectId" Text :>
56− "operations" :>
62+ "zones" :>
57− Capture "operationId" Text :>
63+ Capture "zone" Text :>
58− QueryParam "quotaUser" Text :>
64+ "operations" :>
59− QueryParam "prettyPrint" Bool :>
65+ Capture "operationId" Text :>
60− QueryParam "userIp" 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 :>
61− QueryParam "fields" Text :>
75+ QueryParam "fields" Text :>
62− QueryParam "key" AuthKey :>
76+ QueryParam "key" AuthKey :>
63− QueryParam "oauth_token" OAuthToken :>
77+ QueryParam "oauth_token" OAuthToken :>
64− QueryParam "alt" AltJSON :> Get '[JSON] Operation
78+ QueryParam "alt" AltJSON :>
79+ Get '[JSON] Operation
65
80
66-- | Gets the specified operation.
81-- | Gets the specified operation.
67--
82--
68-- /See:/ 'projectsZonesOperationsGet'' smart constructor.
83-- /See:/ 'projectsZonesOperationsGet'' smart constructor.
69data ProjectsZonesOperationsGet' = ProjectsZonesOperationsGet'
84data ProjectsZonesOperationsGet' = ProjectsZonesOperationsGet'
85+ { _pzogXgafv :: !(Maybe Text)
70− { _pzogQuotaUser :: !(Maybe Text)
86+ , _pzogQuotaUser :: !(Maybe Text)
71− , _pzogPrettyPrint :: !Bool
87+ , _pzogPrettyPrint :: !Bool
88+ , _pzogUploadProtocol :: !(Maybe Text)
89+ , _pzogPp :: !Bool
90+ , _pzogAccessToken :: !(Maybe Text)
72− , _pzogUserIP :: !(Maybe Text)
91+ , _pzogUploadType :: !(Maybe Text)
73− , _pzogZoneId :: !Text
92+ , _pzogZone :: !Text
93+ , _pzogBearerToken :: !(Maybe Text)
74− , _pzogKey :: !(Maybe AuthKey)
94+ , _pzogKey :: !(Maybe AuthKey)
75− , _pzogProjectId :: !Text
95+ , _pzogProjectId :: !Text
76− , _pzogOperationId :: !Text
96+ , _pzogOperationId :: !Text
77− , _pzogOAuthToken :: !(Maybe OAuthToken)
97+ , _pzogOAuthToken :: !(Maybe OAuthToken)
78− , _pzogFields :: !(Maybe Text)
98+ , _pzogFields :: !(Maybe Text)
99+ , _pzogCallback :: !(Maybe Text)
79 } deriving (Eq,Show,Data,Typeable,Generic)
100 } deriving (Eq,Show,Data,Typeable,Generic)
80
101
81-- | Creates a value of 'ProjectsZonesOperationsGet'' with the minimum fields required to make a request.
102-- | Creates a value of 'ProjectsZonesOperationsGet'' with the minimum fields required to make a request.
82--
103--
83-- Use one of the following lenses to modify other fields as desired:
104-- Use one of the following lenses to modify other fields as desired:
84--
105--
106+-- * 'pzogXgafv'
107+--
85-- * 'pzogQuotaUser'
108-- * 'pzogQuotaUser'
86--
109--
87-- * 'pzogPrettyPrint'
110-- * 'pzogPrettyPrint'
88--
111--
89−-- * 'pzogUserIP'
112+-- * 'pzogUploadProtocol'
113+--
114+-- * 'pzogPp'
115+--
116+-- * 'pzogAccessToken'
90--
117--
91−-- * 'pzogZoneId'
118+-- * 'pzogUploadType'
119+--
120+-- * 'pzogZone'
121+--
122+-- * 'pzogBearerToken'
92--
123--
93-- * 'pzogKey'
124-- * 'pzogKey'
94--
125--
@@ -99,27 +130,40 @@ data ProjectsZonesOperationsGet' = ProjectsZonesOperationsGet'
99-- * 'pzogOAuthToken'
130-- * 'pzogOAuthToken'
100--
131--
101-- * 'pzogFields'
132-- * 'pzogFields'
133+--
134+-- * 'pzogCallback'
102projectsZonesOperationsGet'
135projectsZonesOperationsGet'
103− :: Text -- ^ 'zoneId'
136+ :: Text -- ^ 'zone'
104 -> Text -- ^ 'projectId'
137 -> Text -- ^ 'projectId'
105 -> Text -- ^ 'operationId'
138 -> Text -- ^ 'operationId'
106 -> ProjectsZonesOperationsGet'
139 -> ProjectsZonesOperationsGet'
107−projectsZonesOperationsGet' pPzogZoneId_ pPzogProjectId_ pPzogOperationId_ =
140+projectsZonesOperationsGet' pPzogZone_ pPzogProjectId_ pPzogOperationId_ =
108 ProjectsZonesOperationsGet'
141 ProjectsZonesOperationsGet'
142+ { _pzogXgafv = Nothing
109− { _pzogQuotaUser = Nothing
143+ , _pzogQuotaUser = Nothing
110 , _pzogPrettyPrint = True
144 , _pzogPrettyPrint = True
111− , _pzogUserIP = Nothing
145+ , _pzogUploadProtocol = Nothing
112− , _pzogZoneId = pPzogZoneId_
146+ , _pzogPp = True
147+ , _pzogAccessToken = Nothing
148+ , _pzogUploadType = Nothing
149+ , _pzogZone = pPzogZone_
150+ , _pzogBearerToken = Nothing
113 , _pzogKey = Nothing
151 , _pzogKey = Nothing
114 , _pzogProjectId = pPzogProjectId_
152 , _pzogProjectId = pPzogProjectId_
115 , _pzogOperationId = pPzogOperationId_
153 , _pzogOperationId = pPzogOperationId_
116 , _pzogOAuthToken = Nothing
154 , _pzogOAuthToken = Nothing
117 , _pzogFields = Nothing
155 , _pzogFields = Nothing
156+ , _pzogCallback = Nothing
118 }
157 }
119
158
159+-- | V1 error format.
160+pzogXgafv :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
161+pzogXgafv
162+ = lens _pzogXgafv (\ s a -> s{_pzogXgafv = a})
163+
120-- | Available to use for quota purposes for server-side applications. Can be
164-- | 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
165-- any arbitrary string assigned to a user, but should not exceed 40
122−-- characters. Overrides userIp if both are provided.
166+-- characters.
123pzogQuotaUser :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
167pzogQuotaUser :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
124pzogQuotaUser
168pzogQuotaUser
125 = lens _pzogQuotaUser
169 = lens _pzogQuotaUser
@@ -131,18 +175,38 @@ pzogPrettyPrint
131 = lens _pzogPrettyPrint
175 = lens _pzogPrettyPrint
132 (\ s a -> s{_pzogPrettyPrint = a})
176 (\ s a -> s{_pzogPrettyPrint = a})
133
177
134−-- | IP address of the site where the request originates. Use this if you
178+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
135−-- want to enforce per-user limits.
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.
136−pzogUserIP :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
189+pzogAccessToken :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
137−pzogUserIP
190+pzogAccessToken
138− = lens _pzogUserIP (\ s a -> s{_pzogUserIP = a})
191+ = lens _pzogAccessToken
192+ (\ s a -> s{_pzogAccessToken = a})
139
193
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+
140−-- | The name of the Google Compute Engine zone in which the operation
200+-- | The name of the Google Compute Engine
141−-- resides. This is always the same zone as the cluster with which the
201+-- [zone](\/compute\/docs\/zones#available) in which the cluster resides.
142−-- operation is associated.
202+pzogZone :: Lens' ProjectsZonesOperationsGet' Text
203+pzogZone = lens _pzogZone (\ s a -> s{_pzogZone = a})
204+
205+-- | OAuth bearer token.
143−pzogZoneId :: Lens' ProjectsZonesOperationsGet' Text
206+pzogBearerToken :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
144−pzogZoneId
207+pzogBearerToken
145− = lens _pzogZoneId (\ s a -> s{_pzogZoneId = a})
208+ = lens _pzogBearerToken
209+ (\ s a -> s{_pzogBearerToken = a})
146
210
147-- | API key. Your API key identifies your project and provides you with API
211-- | 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
212-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -150,13 +214,14 @@ pzogZoneId
150pzogKey :: Lens' ProjectsZonesOperationsGet' (Maybe AuthKey)
214pzogKey :: Lens' ProjectsZonesOperationsGet' (Maybe AuthKey)
151pzogKey = lens _pzogKey (\ s a -> s{_pzogKey = a})
215pzogKey = lens _pzogKey (\ s a -> s{_pzogKey = a})
152
216
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).
154pzogProjectId :: Lens' ProjectsZonesOperationsGet' Text
219pzogProjectId :: Lens' ProjectsZonesOperationsGet' Text
155pzogProjectId
220pzogProjectId
156 = lens _pzogProjectId
221 = lens _pzogProjectId
157 (\ s a -> s{_pzogProjectId = a})
222 (\ s a -> s{_pzogProjectId = a})
158
223
159−-- | The server-assigned name of the operation.
224+-- | The server-assigned \`name\` of the operation.
160pzogOperationId :: Lens' ProjectsZonesOperationsGet' Text
225pzogOperationId :: Lens' ProjectsZonesOperationsGet' Text
161pzogOperationId
226pzogOperationId
162 = lens _pzogOperationId
227 = lens _pzogOperationId
@@ -173,6 +238,11 @@ pzogFields :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
173pzogFields
238pzogFields
174 = lens _pzogFields (\ s a -> s{_pzogFields = a})
239 = lens _pzogFields (\ s a -> s{_pzogFields = a})
175
240
241+-- | JSONP
242+pzogCallback :: Lens' ProjectsZonesOperationsGet' (Maybe Text)
243+pzogCallback
244+ = lens _pzogCallback (\ s a -> s{_pzogCallback = a})
245+
176instance GoogleAuth ProjectsZonesOperationsGet' where
246instance GoogleAuth ProjectsZonesOperationsGet' where
177 _AuthKey = pzogKey . _Just
247 _AuthKey = pzogKey . _Just
178 _AuthToken = pzogOAuthToken . _Just
248 _AuthToken = pzogOAuthToken . _Just
@@ -182,10 +252,16 @@ instance GoogleRequest ProjectsZonesOperationsGet'
182 type Rs ProjectsZonesOperationsGet' = Operation
252 type Rs ProjectsZonesOperationsGet' = Operation
183 request = requestWith containerRequest
253 request = requestWith containerRequest
184 requestWith rq ProjectsZonesOperationsGet'{..}
254 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
186 _pzogQuotaUser
263 _pzogQuotaUser
187 (Just _pzogPrettyPrint)
264 (Just _pzogPrettyPrint)
188− _pzogUserIP
189 _pzogFields
265 _pzogFields
190 _pzogKey
266 _pzogKey
191 _pzogOAuthToken
267 _pzogOAuthToken
gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Operations/List.hs+124−46
@@ -20,9 +20,9 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
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.
24--
24--
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@.
26module Network.Google.Resource.Container.Projects.Zones.Operations.List
26module Network.Google.Resource.Container.Projects.Zones.Operations.List
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
@@ -33,14 +33,20 @@ module Network.Google.Resource.Container.Projects.Zones.Operations.List
33 , ProjectsZonesOperationsList'
33 , ProjectsZonesOperationsList'
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36+ , pzolXgafv
36 , pzolQuotaUser
37 , pzolQuotaUser
37 , pzolPrettyPrint
38 , pzolPrettyPrint
38− , pzolUserIP
39+ , pzolUploadProtocol
39− , pzolZoneId
40+ , pzolPp
41+ , pzolAccessToken
42+ , pzolUploadType
43+ , pzolZone
44+ , pzolBearerToken
40 , pzolKey
45 , pzolKey
41 , pzolProjectId
46 , pzolProjectId
42 , pzolOAuthToken
47 , pzolOAuthToken
43 , pzolFields
48 , pzolFields
49+ , pzolCallback
44 ) where
50 ) where
45
51
46import Network.Google.Container.Types
52import Network.Google.Container.Types
@@ -49,44 +55,68 @@ import Network.Google.Prelude
49-- | A resource alias for @ContainerProjectsZonesOperationsList@ method which the
55-- | A resource alias for @ContainerProjectsZonesOperationsList@ method which the
50-- 'ProjectsZonesOperationsList'' request conforms to.
56-- 'ProjectsZonesOperationsList'' request conforms to.
51type ProjectsZonesOperationsListResource =
57type ProjectsZonesOperationsListResource =
52− Capture "projectId" Text :>
58+ "v1" :>
53− "zones" :>
59+ "projects" :>
54− Capture "zoneId" Text :>
60+ Capture "projectId" Text :>
55− "operations" :>
61+ "zones" :>
56− QueryParam "quotaUser" Text :>
62+ Capture "zone" Text :>
57− QueryParam "prettyPrint" Bool :>
63+ "operations" :>
58− QueryParam "userIp" Text :>
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 :>
59− QueryParam "fields" Text :>
73+ QueryParam "fields" Text :>
60− QueryParam "key" AuthKey :>
74+ QueryParam "key" AuthKey :>
61− QueryParam "oauth_token" OAuthToken :>
75+ QueryParam "oauth_token" OAuthToken :>
62− QueryParam "alt" AltJSON :>
76+ QueryParam "alt" AltJSON :>
63− Get '[JSON] ListOperationsResponse
77+ Get '[JSON] ListOperationsResponse
64−
78+
65−-- | Lists all operations in a project in a specific zone.
79+-- | Lists all operations in a project in a specific zone or all zones.
66--
80--
67-- /See:/ 'projectsZonesOperationsList'' smart constructor.
81-- /See:/ 'projectsZonesOperationsList'' smart constructor.
68data ProjectsZonesOperationsList' = ProjectsZonesOperationsList'
82data ProjectsZonesOperationsList' = ProjectsZonesOperationsList'
83+ { _pzolXgafv :: !(Maybe Text)
69− { _pzolQuotaUser :: !(Maybe Text)
84+ , _pzolQuotaUser :: !(Maybe Text)
70− , _pzolPrettyPrint :: !Bool
85+ , _pzolPrettyPrint :: !Bool
86+ , _pzolUploadProtocol :: !(Maybe Text)
87+ , _pzolPp :: !Bool
88+ , _pzolAccessToken :: !(Maybe Text)
71− , _pzolUserIP :: !(Maybe Text)
89+ , _pzolUploadType :: !(Maybe Text)
72− , _pzolZoneId :: !Text
90+ , _pzolZone :: !Text
91+ , _pzolBearerToken :: !(Maybe Text)
73− , _pzolKey :: !(Maybe AuthKey)
92+ , _pzolKey :: !(Maybe AuthKey)
74− , _pzolProjectId :: !Text
93+ , _pzolProjectId :: !Text
75− , _pzolOAuthToken :: !(Maybe OAuthToken)
94+ , _pzolOAuthToken :: !(Maybe OAuthToken)
76− , _pzolFields :: !(Maybe Text)
95+ , _pzolFields :: !(Maybe Text)
96+ , _pzolCallback :: !(Maybe Text)
77 } deriving (Eq,Show,Data,Typeable,Generic)
97 } deriving (Eq,Show,Data,Typeable,Generic)
78
98
79-- | Creates a value of 'ProjectsZonesOperationsList'' with the minimum fields required to make a request.
99-- | Creates a value of 'ProjectsZonesOperationsList'' with the minimum fields required to make a request.
80--
100--
81-- Use one of the following lenses to modify other fields as desired:
101-- Use one of the following lenses to modify other fields as desired:
82--
102--
103+-- * 'pzolXgafv'
104+--
83-- * 'pzolQuotaUser'
105-- * 'pzolQuotaUser'
84--
106--
85-- * 'pzolPrettyPrint'
107-- * 'pzolPrettyPrint'
86--
108--
87−-- * 'pzolUserIP'
109+-- * 'pzolUploadProtocol'
110+--
111+-- * 'pzolPp'
112+--
113+-- * 'pzolAccessToken'
88--
114--
89−-- * 'pzolZoneId'
115+-- * 'pzolUploadType'
116+--
117+-- * 'pzolZone'
118+--
119+-- * 'pzolBearerToken'
90--
120--
91-- * 'pzolKey'
121-- * 'pzolKey'
92--
122--
@@ -95,25 +125,38 @@ data ProjectsZonesOperationsList' = ProjectsZonesOperationsList'
95-- * 'pzolOAuthToken'
125-- * 'pzolOAuthToken'
96--
126--
97-- * 'pzolFields'
127-- * 'pzolFields'
128+--
129+-- * 'pzolCallback'
98projectsZonesOperationsList'
130projectsZonesOperationsList'
99− :: Text -- ^ 'zoneId'
131+ :: Text -- ^ 'zone'
100 -> Text -- ^ 'projectId'
132 -> Text -- ^ 'projectId'
101 -> ProjectsZonesOperationsList'
133 -> ProjectsZonesOperationsList'
102−projectsZonesOperationsList' pPzolZoneId_ pPzolProjectId_ =
134+projectsZonesOperationsList' pPzolZone_ pPzolProjectId_ =
103 ProjectsZonesOperationsList'
135 ProjectsZonesOperationsList'
136+ { _pzolXgafv = Nothing
104− { _pzolQuotaUser = Nothing
137+ , _pzolQuotaUser = Nothing
105 , _pzolPrettyPrint = True
138 , _pzolPrettyPrint = True
106− , _pzolUserIP = Nothing
139+ , _pzolUploadProtocol = Nothing
107− , _pzolZoneId = pPzolZoneId_
140+ , _pzolPp = True
141+ , _pzolAccessToken = Nothing
142+ , _pzolUploadType = Nothing
143+ , _pzolZone = pPzolZone_
144+ , _pzolBearerToken = Nothing
108 , _pzolKey = Nothing
145 , _pzolKey = Nothing
109 , _pzolProjectId = pPzolProjectId_
146 , _pzolProjectId = pPzolProjectId_
110 , _pzolOAuthToken = Nothing
147 , _pzolOAuthToken = Nothing
111 , _pzolFields = Nothing
148 , _pzolFields = Nothing
149+ , _pzolCallback = Nothing
112 }
150 }
113
151
152+-- | V1 error format.
153+pzolXgafv :: Lens' ProjectsZonesOperationsList' (Maybe Text)
154+pzolXgafv
155+ = lens _pzolXgafv (\ s a -> s{_pzolXgafv = a})
156+
114-- | Available to use for quota purposes for server-side applications. Can be
157-- | Available to use for quota purposes for server-side applications. Can be
115-- any arbitrary string assigned to a user, but should not exceed 40
158-- any arbitrary string assigned to a user, but should not exceed 40
116−-- characters. Overrides userIp if both are provided.
159+-- characters.
117pzolQuotaUser :: Lens' ProjectsZonesOperationsList' (Maybe Text)
160pzolQuotaUser :: Lens' ProjectsZonesOperationsList' (Maybe Text)
118pzolQuotaUser
161pzolQuotaUser
119 = lens _pzolQuotaUser
162 = lens _pzolQuotaUser
@@ -125,16 +168,39 @@ pzolPrettyPrint
125 = lens _pzolPrettyPrint
168 = lens _pzolPrettyPrint
126 (\ s a -> s{_pzolPrettyPrint = a})
169 (\ s a -> s{_pzolPrettyPrint = a})
127
170
128−-- | IP address of the site where the request originates. Use this if you
171+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
129−-- want to enforce per-user limits.
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.
130−pzolUserIP :: Lens' ProjectsZonesOperationsList' (Maybe Text)
182+pzolAccessToken :: Lens' ProjectsZonesOperationsList' (Maybe Text)
131−pzolUserIP
183+pzolAccessToken
132− = lens _pzolUserIP (\ s a -> s{_pzolUserIP = a})
184+ = lens _pzolAccessToken
185+ (\ s a -> s{_pzolAccessToken = a})
133
186
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+
134−-- | The name of the Google Compute Engine zone to return operations for.
193+-- | The name of the Google Compute Engine
194+-- [zone](\/compute\/docs\/zones#available) to return operations for, or
195+-- \"-\" for all zones.
135−pzolZoneId :: Lens' ProjectsZonesOperationsList' Text
196+pzolZone :: Lens' ProjectsZonesOperationsList' Text
136−pzolZoneId
197+pzolZone = lens _pzolZone (\ s a -> s{_pzolZone = a})
137− = lens _pzolZoneId (\ s a -> s{_pzolZoneId = a})
198+
199+-- | OAuth bearer token.
200+pzolBearerToken :: Lens' ProjectsZonesOperationsList' (Maybe Text)
201+pzolBearerToken
202+ = lens _pzolBearerToken
203+ (\ s a -> s{_pzolBearerToken = a})
138
204
139-- | API key. Your API key identifies your project and provides you with API
205-- | 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
206-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -142,7 +208,8 @@ pzolZoneId
142pzolKey :: Lens' ProjectsZonesOperationsList' (Maybe AuthKey)
208pzolKey :: Lens' ProjectsZonesOperationsList' (Maybe AuthKey)
143pzolKey = lens _pzolKey (\ s a -> s{_pzolKey = a})
209pzolKey = lens _pzolKey (\ s a -> s{_pzolKey = a})
144
210
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).
146pzolProjectId :: Lens' ProjectsZonesOperationsList' Text
213pzolProjectId :: Lens' ProjectsZonesOperationsList' Text
147pzolProjectId
214pzolProjectId
148 = lens _pzolProjectId
215 = lens _pzolProjectId
@@ -159,6 +226,11 @@ pzolFields :: Lens' ProjectsZonesOperationsList' (Maybe Text)
159pzolFields
226pzolFields
160 = lens _pzolFields (\ s a -> s{_pzolFields = a})
227 = lens _pzolFields (\ s a -> s{_pzolFields = a})
161
228
229+-- | JSONP
230+pzolCallback :: Lens' ProjectsZonesOperationsList' (Maybe Text)
231+pzolCallback
232+ = lens _pzolCallback (\ s a -> s{_pzolCallback = a})
233+
162instance GoogleAuth ProjectsZonesOperationsList'
234instance GoogleAuth ProjectsZonesOperationsList'
163 where
235 where
164 _AuthKey = pzolKey . _Just
236 _AuthKey = pzolKey . _Just
@@ -170,9 +242,15 @@ instance GoogleRequest ProjectsZonesOperationsList'
170 ListOperationsResponse
242 ListOperationsResponse
171 request = requestWith containerRequest
243 request = requestWith containerRequest
172 requestWith rq ProjectsZonesOperationsList'{..}
244 requestWith rq ProjectsZonesOperationsList'{..}
245+ = go _pzolProjectId _pzolZone _pzolXgafv
246+ _pzolUploadProtocol
247+ (Just _pzolPp)
248+ _pzolAccessToken
249+ _pzolUploadType
250+ _pzolBearerToken
251+ _pzolCallback
173− = go _pzolProjectId _pzolZoneId _pzolQuotaUser
252+ _pzolQuotaUser
174 (Just _pzolPrettyPrint)
253 (Just _pzolPrettyPrint)
175− _pzolUserIP
176 _pzolFields
254 _pzolFields
177 _pzolKey
255 _pzolKey
178 _pzolOAuthToken
256 _pzolOAuthToken
gogol-container/gogol-container.cabal+3−3
@@ -21,7 +21,7 @@ description:
21 /Warning:/ This is an experimental prototype/preview release which is still
21 /Warning:/ This is an experimental prototype/preview release which is still
22 under exploratory development and not intended for public use, caveat emptor!
22 under exploratory development and not intended for public use, caveat emptor!
23 .
23 .
24− This library is compatible with version @v1beta1@
24+ This library is compatible with version @v1@
25 of the API.
25 of the API.
26
26
27source-repository head
27source-repository head
@@ -37,12 +37,12 @@ library
37 exposed-modules:
37 exposed-modules:
38 Network.Google.Container
38 Network.Google.Container
39 , Network.Google.Container.Types
39 , Network.Google.Container.Types
40− , Network.Google.Resource.Container.Projects.Clusters.List
41− , Network.Google.Resource.Container.Projects.Operations.List
42 , Network.Google.Resource.Container.Projects.Zones.Clusters.Create
40 , Network.Google.Resource.Container.Projects.Zones.Clusters.Create
43 , Network.Google.Resource.Container.Projects.Zones.Clusters.Delete
41 , Network.Google.Resource.Container.Projects.Zones.Clusters.Delete
44 , Network.Google.Resource.Container.Projects.Zones.Clusters.Get
42 , Network.Google.Resource.Container.Projects.Zones.Clusters.Get
45 , Network.Google.Resource.Container.Projects.Zones.Clusters.List
43 , 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
46 , Network.Google.Resource.Container.Projects.Zones.Operations.Get
46 , Network.Google.Resource.Container.Projects.Zones.Operations.Get
47 , Network.Google.Resource.Container.Projects.Zones.Operations.List
47 , Network.Google.Resource.Container.Projects.Zones.Operations.List
48
48
gogol-deploymentmanager/gen/Network/Google/DeploymentManager.hs+69−13
@@ -16,7 +16,7 @@
16-- | The Deployment Manager API allows users to declaratively configure,
16-- | The Deployment Manager API allows users to declaratively configure,
17-- deploy and run complex solutions on the Google Cloud Platform.
17-- deploy and run complex solutions on the Google Cloud Platform.
18--
18--
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>
20module Network.Google.DeploymentManager
20module Network.Google.DeploymentManager
21 (
21 (
22 -- * API Declaration
22 -- * API Declaration
@@ -24,6 +24,9 @@ module Network.Google.DeploymentManager
24
24
25 -- * Resources
25 -- * Resources
26
26
27+ -- ** DeploymentManagerDeploymentsCancelPreview
28+ , module Network.Google.Resource.DeploymentManager.Deployments.CancelPreview
29+
27 -- ** DeploymentManagerDeploymentsDelete
30 -- ** DeploymentManagerDeploymentsDelete
28 , module Network.Google.Resource.DeploymentManager.Deployments.Delete
31 , module Network.Google.Resource.DeploymentManager.Deployments.Delete
29
32
@@ -39,6 +42,9 @@ module Network.Google.DeploymentManager
39 -- ** DeploymentManagerDeploymentsPatch
42 -- ** DeploymentManagerDeploymentsPatch
40 , module Network.Google.Resource.DeploymentManager.Deployments.Patch
43 , module Network.Google.Resource.DeploymentManager.Deployments.Patch
41
44
45+ -- ** DeploymentManagerDeploymentsStop
46+ , module Network.Google.Resource.DeploymentManager.Deployments.Stop
47+
42 -- ** DeploymentManagerDeploymentsUpdate
48 -- ** DeploymentManagerDeploymentsUpdate
43 , module Network.Google.Resource.DeploymentManager.Deployments.Update
49 , module Network.Google.Resource.DeploymentManager.Deployments.Update
44
50
@@ -71,6 +77,11 @@ module Network.Google.DeploymentManager
71 , owidiValue
77 , owidiValue
72 , owidiKey
78 , owidiKey
73
79
80+ -- ** ConfigFile
81+ , ConfigFile
82+ , configFile
83+ , cfContent
84+
74 -- ** DeploymentsUpdateCreatePolicy
85 -- ** DeploymentsUpdateCreatePolicy
75 , DeploymentsUpdateCreatePolicy (..)
86 , DeploymentsUpdateCreatePolicy (..)
76
87
@@ -80,15 +91,18 @@ module Network.Google.DeploymentManager
80 , olrNextPageToken
91 , olrNextPageToken
81 , olrOperations
92 , olrOperations
82
93
94+ -- ** ResourceUpdateWarningsItemDataItem
95+ , ResourceUpdateWarningsItemDataItem
96+ , resourceUpdateWarningsItemDataItem
97+ , ruwidiValue
98+ , ruwidiKey
99+
83 -- ** TypesListResponse
100 -- ** TypesListResponse
84 , TypesListResponse
101 , TypesListResponse
85 , typesListResponse
102 , typesListResponse
86 , tlrNextPageToken
103 , tlrNextPageToken
87 , tlrTypes
104 , tlrTypes
88
105
89− -- ** DeploymentsUpdateUpdatePolicy
90− , DeploymentsUpdateUpdatePolicy (..)
91−
92 -- ** DeploymentsUpdateDeletePolicy
106 -- ** DeploymentsUpdateDeletePolicy
93 , DeploymentsUpdateDeletePolicy (..)
107 , DeploymentsUpdateDeletePolicy (..)
94
108
@@ -121,9 +135,6 @@ module Network.Google.DeploymentManager
121 , oTargetLink
135 , oTargetLink
122 , oClientOperationId
136 , oClientOperationId
123
137
124− -- ** DeploymentsPatchUpdatePolicy
125− , DeploymentsPatchUpdatePolicy (..)
126−
127 -- ** DeploymentsPatchCreatePolicy
138 -- ** DeploymentsPatchCreatePolicy
128 , DeploymentsPatchCreatePolicy (..)
139 , DeploymentsPatchCreatePolicy (..)
129
140
@@ -137,16 +148,16 @@ module Network.Google.DeploymentManager
137 , DeploymentUpdate
148 , DeploymentUpdate
138 , deploymentUpdate
149 , deploymentUpdate
139 , duManifest
150 , duManifest
140− , duErrors
141
151
142 -- ** ResourceUpdate
152 -- ** ResourceUpdate
143 , ResourceUpdate
153 , ResourceUpdate
144 , resourceUpdate
154 , resourceUpdate
145 , ruState
155 , ruState
156+ , ruError
157+ , ruWarnings
146 , ruIntent
158 , ruIntent
147 , ruManifest
159 , ruManifest
148 , ruFinalProperties
160 , ruFinalProperties
149− , ruErrors
150 , ruProperties
161 , ruProperties
151
162
152 -- ** Manifest
163 -- ** Manifest
@@ -155,17 +166,30 @@ module Network.Google.DeploymentManager
155 , mInsertTime
166 , mInsertTime
156 , mLayout
167 , mLayout
157 , mConfig
168 , mConfig
169+ , mExpandedConfig
158 , mImports
170 , mImports
159 , mSelfLink
171 , mSelfLink
160 , mName
172 , mName
161− , mEvaluatedConfig
162 , mId
173 , mId
163
174
175+ -- ** ResourceUpdateWarningsItem
176+ , ResourceUpdateWarningsItem
177+ , resourceUpdateWarningsItem
178+ , ruwiData
179+ , ruwiCode
180+ , ruwiMessage
181+
182+ -- ** DeploymentsCancelPreviewRequest
183+ , DeploymentsCancelPreviewRequest
184+ , deploymentsCancelPreviewRequest
185+ , dcprFingerprint
186+
164 -- ** Resource
187 -- ** Resource
165 , Resource
188 , Resource
166 , resource
189 , resource
167 , rInsertTime
190 , rInsertTime
168 , rURL
191 , rURL
192+ , rWarnings
169 , rUpdateTime
193 , rUpdateTime
170 , rName
194 , rName
171 , rManifest
195 , rManifest
@@ -175,6 +199,13 @@ module Network.Google.DeploymentManager
175 , rUpdate
199 , rUpdate
176 , rProperties
200 , rProperties
177
201
202+ -- ** ResourceUpdateErrorErrorsItem
203+ , ResourceUpdateErrorErrorsItem
204+ , resourceUpdateErrorErrorsItem
205+ , rueeiLocation
206+ , rueeiCode
207+ , rueeiMessage
208+
178 -- ** ManifestsListResponse
209 -- ** ManifestsListResponse
179 , ManifestsListResponse
210 , ManifestsListResponse
180 , manifestsListResponse
211 , manifestsListResponse
@@ -207,12 +238,35 @@ module Network.Google.DeploymentManager
207 , oeeiCode
238 , oeeiCode
208 , oeeiMessage
239 , oeeiMessage
209
240
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+
210 -- ** DeploymentsListResponse
257 -- ** DeploymentsListResponse
211 , DeploymentsListResponse
258 , DeploymentsListResponse
212 , deploymentsListResponse
259 , deploymentsListResponse
213 , dlrNextPageToken
260 , dlrNextPageToken
214 , dlrDeployments
261 , dlrDeployments
215
262
263+ -- ** ResourceWarningsItem
264+ , ResourceWarningsItem
265+ , resourceWarningsItem
266+ , rwiData
267+ , rwiCode
268+ , rwiMessage
269+
216 -- ** TargetConfiguration
270 -- ** TargetConfiguration
217 , TargetConfiguration
271 , TargetConfiguration
218 , targetConfiguration
272 , targetConfiguration
@@ -229,11 +283,9 @@ module Network.Google.DeploymentManager
229 -- ** Deployment
283 -- ** Deployment
230 , Deployment
284 , Deployment
231 , deployment
285 , deployment
232− , dState
233 , dInsertTime
286 , dInsertTime
287+ , dOperation
234 , dFingerprint
288 , dFingerprint
235− , dIntent
236− , dUpdateTime
237 , dName
289 , dName
238 , dManifest
290 , dManifest
239 , dId
291 , dId
@@ -244,11 +296,13 @@ module Network.Google.DeploymentManager
244
296
245import Network.Google.DeploymentManager.Types
297import Network.Google.DeploymentManager.Types
246import Network.Google.Prelude
298import Network.Google.Prelude
299+import Network.Google.Resource.DeploymentManager.Deployments.CancelPreview
247import Network.Google.Resource.DeploymentManager.Deployments.Delete
300import Network.Google.Resource.DeploymentManager.Deployments.Delete
248import Network.Google.Resource.DeploymentManager.Deployments.Get
301import Network.Google.Resource.DeploymentManager.Deployments.Get
249import Network.Google.Resource.DeploymentManager.Deployments.Insert
302import Network.Google.Resource.DeploymentManager.Deployments.Insert
250import Network.Google.Resource.DeploymentManager.Deployments.List
303import Network.Google.Resource.DeploymentManager.Deployments.List
251import Network.Google.Resource.DeploymentManager.Deployments.Patch
304import Network.Google.Resource.DeploymentManager.Deployments.Patch
305+import Network.Google.Resource.DeploymentManager.Deployments.Stop
252import Network.Google.Resource.DeploymentManager.Deployments.Update
306import Network.Google.Resource.DeploymentManager.Deployments.Update
253import Network.Google.Resource.DeploymentManager.Manifests.Get
307import Network.Google.Resource.DeploymentManager.Manifests.Get
254import Network.Google.Resource.DeploymentManager.Manifests.List
308import Network.Google.Resource.DeploymentManager.Manifests.List
@@ -272,6 +326,8 @@ type DeploymentManagerAPI =
272 :<|> DeploymentsListResource
326 :<|> DeploymentsListResource
273 :<|> DeploymentsPatchResource
327 :<|> DeploymentsPatchResource
274 :<|> DeploymentsGetResource
328 :<|> DeploymentsGetResource
329+ :<|> DeploymentsCancelPreviewResource
330+ :<|> DeploymentsStopResource
275 :<|> DeploymentsDeleteResource
331 :<|> DeploymentsDeleteResource
276 :<|> DeploymentsUpdateResource
332 :<|> DeploymentsUpdateResource
277 :<|> OperationsListResource
333 :<|> OperationsListResource
gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types.hs+60−14
@@ -24,6 +24,11 @@ module Network.Google.DeploymentManager.Types
24 , owidiValue
24 , owidiValue
25 , owidiKey
25 , owidiKey
26
26
27+ -- * ConfigFile
28+ , ConfigFile
29+ , configFile
30+ , cfContent
31+
27 -- * DeploymentsUpdateCreatePolicy
32 -- * DeploymentsUpdateCreatePolicy
28 , DeploymentsUpdateCreatePolicy (..)
33 , DeploymentsUpdateCreatePolicy (..)
29
34
@@ -33,15 +38,18 @@ module Network.Google.DeploymentManager.Types
33 , olrNextPageToken
38 , olrNextPageToken
34 , olrOperations
39 , olrOperations
35
40
41+ -- * ResourceUpdateWarningsItemDataItem
42+ , ResourceUpdateWarningsItemDataItem
43+ , resourceUpdateWarningsItemDataItem
44+ , ruwidiValue
45+ , ruwidiKey
46+
36 -- * TypesListResponse
47 -- * TypesListResponse
37 , TypesListResponse
48 , TypesListResponse
38 , typesListResponse
49 , typesListResponse
39 , tlrNextPageToken
50 , tlrNextPageToken
40 , tlrTypes
51 , tlrTypes
41
52
42− -- * DeploymentsUpdateUpdatePolicy
43− , DeploymentsUpdateUpdatePolicy (..)
44−
45 -- * DeploymentsUpdateDeletePolicy
53 -- * DeploymentsUpdateDeletePolicy
46 , DeploymentsUpdateDeletePolicy (..)
54 , DeploymentsUpdateDeletePolicy (..)
47
55
@@ -74,9 +82,6 @@ module Network.Google.DeploymentManager.Types
74 , oTargetLink
82 , oTargetLink
75 , oClientOperationId
83 , oClientOperationId
76
84
77− -- * DeploymentsPatchUpdatePolicy
78− , DeploymentsPatchUpdatePolicy (..)
79−
80 -- * DeploymentsPatchCreatePolicy
85 -- * DeploymentsPatchCreatePolicy
81 , DeploymentsPatchCreatePolicy (..)
86 , DeploymentsPatchCreatePolicy (..)
82
87
@@ -90,16 +95,16 @@ module Network.Google.DeploymentManager.Types
90 , DeploymentUpdate
95 , DeploymentUpdate
91 , deploymentUpdate
96 , deploymentUpdate
92 , duManifest
97 , duManifest
93− , duErrors
94
98
95 -- * ResourceUpdate
99 -- * ResourceUpdate
96 , ResourceUpdate
100 , ResourceUpdate
97 , resourceUpdate
101 , resourceUpdate
98 , ruState
102 , ruState
103+ , ruError
104+ , ruWarnings
99 , ruIntent
105 , ruIntent
100 , ruManifest
106 , ruManifest
101 , ruFinalProperties
107 , ruFinalProperties
102− , ruErrors
103 , ruProperties
108 , ruProperties
104
109
105 -- * Manifest
110 -- * Manifest
@@ -108,17 +113,30 @@ module Network.Google.DeploymentManager.Types
108 , mInsertTime
113 , mInsertTime
109 , mLayout
114 , mLayout
110 , mConfig
115 , mConfig
116+ , mExpandedConfig
111 , mImports
117 , mImports
112 , mSelfLink
118 , mSelfLink
113 , mName
119 , mName
114− , mEvaluatedConfig
115 , mId
120 , mId
116
121
122+ -- * ResourceUpdateWarningsItem
123+ , ResourceUpdateWarningsItem
124+ , resourceUpdateWarningsItem
125+ , ruwiData
126+ , ruwiCode
127+ , ruwiMessage
128+
129+ -- * DeploymentsCancelPreviewRequest
130+ , DeploymentsCancelPreviewRequest
131+ , deploymentsCancelPreviewRequest
132+ , dcprFingerprint
133+
117 -- * Resource
134 -- * Resource
118 , Resource
135 , Resource
119 , resource
136 , resource
120 , rInsertTime
137 , rInsertTime
121 , rURL
138 , rURL
139+ , rWarnings
122 , rUpdateTime
140 , rUpdateTime
123 , rName
141 , rName
124 , rManifest
142 , rManifest
@@ -128,6 +146,13 @@ module Network.Google.DeploymentManager.Types
128 , rUpdate
146 , rUpdate
129 , rProperties
147 , rProperties
130
148
149+ -- * ResourceUpdateErrorErrorsItem
150+ , ResourceUpdateErrorErrorsItem
151+ , resourceUpdateErrorErrorsItem
152+ , rueeiLocation
153+ , rueeiCode
154+ , rueeiMessage
155+
131 -- * ManifestsListResponse
156 -- * ManifestsListResponse
132 , ManifestsListResponse
157 , ManifestsListResponse
133 , manifestsListResponse
158 , manifestsListResponse
@@ -160,12 +185,35 @@ module Network.Google.DeploymentManager.Types
160 , oeeiCode
185 , oeeiCode
161 , oeeiMessage
186 , oeeiMessage
162
187
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+
163 -- * DeploymentsListResponse
204 -- * DeploymentsListResponse
164 , DeploymentsListResponse
205 , DeploymentsListResponse
165 , deploymentsListResponse
206 , deploymentsListResponse
166 , dlrNextPageToken
207 , dlrNextPageToken
167 , dlrDeployments
208 , dlrDeployments
168
209
210+ -- * ResourceWarningsItem
211+ , ResourceWarningsItem
212+ , resourceWarningsItem
213+ , rwiData
214+ , rwiCode
215+ , rwiMessage
216+
169 -- * TargetConfiguration
217 -- * TargetConfiguration
170 , TargetConfiguration
218 , TargetConfiguration
171 , targetConfiguration
219 , targetConfiguration
@@ -182,11 +230,9 @@ module Network.Google.DeploymentManager.Types
182 -- * Deployment
230 -- * Deployment
183 , Deployment
231 , Deployment
184 , deployment
232 , deployment
185− , dState
186 , dInsertTime
233 , dInsertTime
234+ , dOperation
187 , dFingerprint
235 , dFingerprint
188− , dIntent
189− , dUpdateTime
190 , dName
236 , dName
191 , dManifest
237 , dManifest
192 , dId
238 , dId
@@ -199,8 +245,8 @@ import Network.Google.DeploymentManager.Types.Product
199import Network.Google.DeploymentManager.Types.Sum
245import Network.Google.DeploymentManager.Types.Sum
200import Network.Google.Prelude
246import Network.Google.Prelude
201
247
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.
203deploymentManagerRequest :: RequestBuilder
249deploymentManagerRequest :: RequestBuilder
204deploymentManagerRequest
250deploymentManagerRequest
205 = defaultRequest "https://www.googleapis.com/"
251 = 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
65 [("value" .=) <$> _owidiValue,
65 [("value" .=) <$> _owidiValue,
66 ("key" .=) <$> _owidiKey])
66 ("key" .=) <$> _owidiKey])
67
67
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+
68-- | A response containing a partial list of operations and a page token used
101-- | A response containing a partial list of operations and a page token used
69-- to build the next request if the request has been truncated.
102-- to build the next request if the request has been truncated.
70--
103--
@@ -118,6 +151,54 @@ instance ToJSON OperationsListResponse where
118 [("nextPageToken" .=) <$> _olrNextPageToken,
151 [("nextPageToken" .=) <$> _olrNextPageToken,
119 ("operations" .=) <$> _olrOperations])
152 ("operations" .=) <$> _olrOperations])
120
153
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+
121-- | A response that returns all Types supported by Deployment Manager
202-- | A response that returns all Types supported by Deployment Manager
122--
203--
123-- /See:/ 'typesListResponse' smart constructor.
204-- /See:/ 'typesListResponse' smart constructor.
@@ -507,9 +588,8 @@ instance ToJSON ResourcesListResponse where
507-- |
588-- |
508--
589--
509-- /See:/ 'deploymentUpdate' smart constructor.
590-- /See:/ 'deploymentUpdate' smart constructor.
510−data DeploymentUpdate = DeploymentUpdate
591+newtype DeploymentUpdate = DeploymentUpdate
511− { _duManifest :: !(Maybe Text)
592+ { _duManifest :: Maybe Text
512− , _duErrors :: !(Maybe [Text])
513 } deriving (Eq,Show,Data,Typeable,Generic)
593 } deriving (Eq,Show,Data,Typeable,Generic)
514
594
515-- | Creates a value of 'DeploymentUpdate' with the minimum fields required to make a request.
595-- | Creates a value of 'DeploymentUpdate' with the minimum fields required to make a request.
@@ -517,14 +597,11 @@ data DeploymentUpdate = DeploymentUpdate
517-- Use one of the following lenses to modify other fields as desired:
597-- Use one of the following lenses to modify other fields as desired:
518--
598--
519-- * 'duManifest'
599-- * 'duManifest'
520−--
521−-- * 'duErrors'
522deploymentUpdate
600deploymentUpdate
523 :: DeploymentUpdate
601 :: DeploymentUpdate
524deploymentUpdate =
602deploymentUpdate =
525 DeploymentUpdate
603 DeploymentUpdate
526 { _duManifest = Nothing
604 { _duManifest = Nothing
527− , _duErrors = Nothing
528 }
605 }
529
606
530-- | [Output Only] URL of the manifest representing the update configuration
607-- | [Output Only] URL of the manifest representing the update configuration
@@ -533,37 +610,26 @@ duManifest :: Lens' DeploymentUpdate (Maybe Text)
533duManifest
610duManifest
534 = lens _duManifest (\ s a -> s{_duManifest = a})
611 = lens _duManifest (\ s a -> s{_duManifest = a})
535
612
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−
544instance FromJSON DeploymentUpdate where
613instance FromJSON DeploymentUpdate where
545 parseJSON
614 parseJSON
546 = withObject "DeploymentUpdate"
615 = withObject "DeploymentUpdate"
547− (\ o ->
548− DeploymentUpdate <$>
616+ (\ o -> DeploymentUpdate <$> (o .:? "manifest"))
549− (o .:? "manifest") <*> (o .:? "errors" .!= mempty))
550
617
551instance ToJSON DeploymentUpdate where
618instance ToJSON DeploymentUpdate where
552 toJSON DeploymentUpdate{..}
619 toJSON DeploymentUpdate{..}
553 = object
620 = object
554− (catMaybes
555− [("manifest" .=) <$> _duManifest,
621+ (catMaybes [("manifest" .=) <$> _duManifest])
556− ("errors" .=) <$> _duErrors])
557
622
558-- |
623-- |
559--
624--
560-- /See:/ 'resourceUpdate' smart constructor.
625-- /See:/ 'resourceUpdate' smart constructor.
561data ResourceUpdate = ResourceUpdate
626data ResourceUpdate = ResourceUpdate
562 { _ruState :: !(Maybe Text)
627 { _ruState :: !(Maybe Text)
628+ , _ruError :: !(Maybe ResourceUpdateError)
629+ , _ruWarnings :: !(Maybe [ResourceUpdateWarningsItem])
563 , _ruIntent :: !(Maybe Text)
630 , _ruIntent :: !(Maybe Text)
564 , _ruManifest :: !(Maybe Text)
631 , _ruManifest :: !(Maybe Text)
565 , _ruFinalProperties :: !(Maybe Text)
632 , _ruFinalProperties :: !(Maybe Text)
566− , _ruErrors :: !(Maybe [Text])
567 , _ruProperties :: !(Maybe Text)
633 , _ruProperties :: !(Maybe Text)
568 } deriving (Eq,Show,Data,Typeable,Generic)
634 } deriving (Eq,Show,Data,Typeable,Generic)
569
635
@@ -573,24 +639,27 @@ data ResourceUpdate = ResourceUpdate
573--
639--
574-- * 'ruState'
640-- * 'ruState'
575--
641--
642+-- * 'ruError'
643+--
644+-- * 'ruWarnings'
645+--
576-- * 'ruIntent'
646-- * 'ruIntent'
577--
647--
578-- * 'ruManifest'
648-- * 'ruManifest'
579--
649--
580-- * 'ruFinalProperties'
650-- * 'ruFinalProperties'
581--
651--
582−-- * 'ruErrors'
583−--
584-- * 'ruProperties'
652-- * 'ruProperties'
585resourceUpdate
653resourceUpdate
586 :: ResourceUpdate
654 :: ResourceUpdate
587resourceUpdate =
655resourceUpdate =
588 ResourceUpdate
656 ResourceUpdate
589 { _ruState = Nothing
657 { _ruState = Nothing
658+ , _ruError = Nothing
659+ , _ruWarnings = Nothing
590 , _ruIntent = Nothing
660 , _ruIntent = Nothing
591 , _ruManifest = Nothing
661 , _ruManifest = Nothing
592 , _ruFinalProperties = Nothing
662 , _ruFinalProperties = Nothing
593− , _ruErrors = Nothing
594 , _ruProperties = Nothing
663 , _ruProperties = Nothing
595 }
664 }
596
665
@@ -598,6 +667,19 @@ resourceUpdate =
598ruState :: Lens' ResourceUpdate (Maybe Text)
667ruState :: Lens' ResourceUpdate (Maybe Text)
599ruState = lens _ruState (\ s a -> s{_ruState = a})
668ruState = lens _ruState (\ s a -> s{_ruState = a})
600
669
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+
601-- | [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL.
683-- | [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL.
602ruIntent :: Lens' ResourceUpdate (Maybe Text)
684ruIntent :: Lens' ResourceUpdate (Maybe Text)
603ruIntent = lens _ruIntent (\ s a -> s{_ruIntent = a})
685ruIntent = lens _ruIntent (\ s a -> s{_ruIntent = a})
@@ -615,14 +697,6 @@ ruFinalProperties
615 = lens _ruFinalProperties
697 = lens _ruFinalProperties
616 (\ s a -> s{_ruFinalProperties = a})
698 (\ s a -> s{_ruFinalProperties = a})
617
699
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−
626-- | [Output Only] The set of updated properties for this resource, before
700-- | [Output Only] The set of updated properties for this resource, before
627-- references are expanded. Returned as serialized YAML.
701-- references are expanded. Returned as serialized YAML.
628ruProperties :: Lens' ResourceUpdate (Maybe Text)
702ruProperties :: Lens' ResourceUpdate (Maybe Text)
@@ -634,10 +708,11 @@ instance FromJSON ResourceUpdate where
634 = withObject "ResourceUpdate"
708 = withObject "ResourceUpdate"
635 (\ o ->
709 (\ o ->
636 ResourceUpdate <$>
710 ResourceUpdate <$>
711+ (o .:? "state") <*> (o .:? "error") <*>
712+ (o .:? "warnings" .!= mempty)
637− (o .:? "state") <*> (o .:? "intent") <*>
713+ <*> (o .:? "intent")
638− (o .:? "manifest")
714+ <*> (o .:? "manifest")
639 <*> (o .:? "finalProperties")
715 <*> (o .:? "finalProperties")
640− <*> (o .:? "errors" .!= mempty)
641 <*> (o .:? "properties"))
716 <*> (o .:? "properties"))
642
717
643instance ToJSON ResourceUpdate where
718instance ToJSON ResourceUpdate where
@@ -645,24 +720,25 @@ instance ToJSON ResourceUpdate where
645 = object
720 = object
646 (catMaybes
721 (catMaybes
647 [("state" .=) <$> _ruState,
722 [("state" .=) <$> _ruState,
723+ ("error" .=) <$> _ruError,
724+ ("warnings" .=) <$> _ruWarnings,
648 ("intent" .=) <$> _ruIntent,
725 ("intent" .=) <$> _ruIntent,
649 ("manifest" .=) <$> _ruManifest,
726 ("manifest" .=) <$> _ruManifest,
650 ("finalProperties" .=) <$> _ruFinalProperties,
727 ("finalProperties" .=) <$> _ruFinalProperties,
651− ("errors" .=) <$> _ruErrors,
652 ("properties" .=) <$> _ruProperties])
728 ("properties" .=) <$> _ruProperties])
653
729
654-- |
730-- |
655--
731--
656-- /See:/ 'manifest' smart constructor.
732-- /See:/ 'manifest' smart constructor.
657data Manifest = Manifest
733data Manifest = Manifest
658− { _mInsertTime :: !(Maybe Text)
734+ { _mInsertTime :: !(Maybe Text)
659− , _mLayout :: !(Maybe Text)
735+ , _mLayout :: !(Maybe Text)
736+ , _mConfig :: !(Maybe ConfigFile)
660− , _mConfig :: !(Maybe Text)
737+ , _mExpandedConfig :: !(Maybe Text)
661− , _mImports :: !(Maybe [ImportFile])
738+ , _mImports :: !(Maybe [ImportFile])
662− , _mSelfLink :: !(Maybe Text)
739+ , _mSelfLink :: !(Maybe Text)
663− , _mName :: !(Maybe Text)
664− , _mEvaluatedConfig :: !(Maybe Text)
740+ , _mName :: !(Maybe Text)
665− , _mId :: !(Maybe Word64)
741+ , _mId :: !(Maybe Word64)
666 } deriving (Eq,Show,Data,Typeable,Generic)
742 } deriving (Eq,Show,Data,Typeable,Generic)
667
743
668-- | Creates a value of 'Manifest' with the minimum fields required to make a request.
744-- | Creates a value of 'Manifest' with the minimum fields required to make a request.
@@ -675,14 +751,14 @@ data Manifest = Manifest
675--
751--
676-- * 'mConfig'
752-- * 'mConfig'
677--
753--
754+-- * 'mExpandedConfig'
755+--
678-- * 'mImports'
756-- * 'mImports'
679--
757--
680-- * 'mSelfLink'
758-- * 'mSelfLink'
681--
759--
682-- * 'mName'
760-- * 'mName'
683--
761--
684−-- * 'mEvaluatedConfig'
685−--
686-- * 'mId'
762-- * 'mId'
687manifest
763manifest
688 :: Manifest
764 :: Manifest
@@ -691,10 +767,10 @@ manifest =
691 { _mInsertTime = Nothing
767 { _mInsertTime = Nothing
692 , _mLayout = Nothing
768 , _mLayout = Nothing
693 , _mConfig = Nothing
769 , _mConfig = Nothing
770+ , _mExpandedConfig = Nothing
694 , _mImports = Nothing
771 , _mImports = Nothing
695 , _mSelfLink = Nothing
772 , _mSelfLink = Nothing
696 , _mName = Nothing
773 , _mName = Nothing
697− , _mEvaluatedConfig = Nothing
698 , _mId = Nothing
774 , _mId = Nothing
699 }
775 }
700
776
@@ -709,9 +785,16 @@ mLayout :: Lens' Manifest (Maybe Text)
709mLayout = lens _mLayout (\ s a -> s{_mLayout = a})
785mLayout = lens _mLayout (\ s a -> s{_mLayout = a})
710
786
711-- | [Output Only] The YAML configuration for this manifest.
787-- | [Output Only] The YAML configuration for this manifest.
712−mConfig :: Lens' Manifest (Maybe Text)
788+mConfig :: Lens' Manifest (Maybe ConfigFile)
713mConfig = lens _mConfig (\ s a -> s{_mConfig = a})
789mConfig = lens _mConfig (\ s a -> s{_mConfig = a})
714
790
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+
715-- | [Output Only] The imported files for this manifest.
798-- | [Output Only] The imported files for this manifest.
716mImports :: Lens' Manifest [ImportFile]
799mImports :: Lens' Manifest [ImportFile]
717mImports
800mImports
@@ -728,13 +811,6 @@ mSelfLink
728mName :: Lens' Manifest (Maybe Text)
811mName :: Lens' Manifest (Maybe Text)
729mName = lens _mName (\ s a -> s{_mName = a})
812mName = lens _mName (\ s a -> s{_mName = a})
730
813
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−
738-- | [Output Only] Unique identifier for the resource; defined by the server.
814-- | [Output Only] Unique identifier for the resource; defined by the server.
739mId :: Lens' Manifest (Maybe Word64)
815mId :: Lens' Manifest (Maybe Word64)
740mId = lens _mId (\ s a -> s{_mId = a})
816mId = lens _mId (\ s a -> s{_mId = a})
@@ -746,10 +822,10 @@ instance FromJSON Manifest where
746 Manifest <$>
822 Manifest <$>
747 (o .:? "insertTime") <*> (o .:? "layout") <*>
823 (o .:? "insertTime") <*> (o .:? "layout") <*>
748 (o .:? "config")
824 (o .:? "config")
825+ <*> (o .:? "expandedConfig")
749 <*> (o .:? "imports" .!= mempty)
826 <*> (o .:? "imports" .!= mempty)
750 <*> (o .:? "selfLink")
827 <*> (o .:? "selfLink")
751 <*> (o .:? "name")
828 <*> (o .:? "name")
752− <*> (o .:? "evaluatedConfig")
753 <*> (o .:? "id"))
829 <*> (o .:? "id"))
754
830
755instance ToJSON Manifest where
831instance ToJSON Manifest where
@@ -759,11 +835,114 @@ instance ToJSON Manifest where
759 [("insertTime" .=) <$> _mInsertTime,
835 [("insertTime" .=) <$> _mInsertTime,
760 ("layout" .=) <$> _mLayout,
836 ("layout" .=) <$> _mLayout,
761 ("config" .=) <$> _mConfig,
837 ("config" .=) <$> _mConfig,
838+ ("expandedConfig" .=) <$> _mExpandedConfig,
762 ("imports" .=) <$> _mImports,
839 ("imports" .=) <$> _mImports,
763 ("selfLink" .=) <$> _mSelfLink,
840 ("selfLink" .=) <$> _mSelfLink,
764− ("name" .=) <$> _mName,
841+ ("name" .=) <$> _mName, ("id" .=) <$> _mId])
765− ("evaluatedConfig" .=) <$> _mEvaluatedConfig,
842+
766− ("id" .=) <$> _mId])
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])
767
946
768-- |
947-- |
769--
948--
@@ -771,6 +950,7 @@ instance ToJSON Manifest where
771data Resource = Resource
950data Resource = Resource
772 { _rInsertTime :: !(Maybe Text)
951 { _rInsertTime :: !(Maybe Text)
773 , _rURL :: !(Maybe Text)
952 , _rURL :: !(Maybe Text)
953+ , _rWarnings :: !(Maybe [ResourceWarningsItem])
774 , _rUpdateTime :: !(Maybe Text)
954 , _rUpdateTime :: !(Maybe Text)
775 , _rName :: !(Maybe Text)
955 , _rName :: !(Maybe Text)
776 , _rManifest :: !(Maybe Text)
956 , _rManifest :: !(Maybe Text)
@@ -789,6 +969,8 @@ data Resource = Resource
789--
969--
790-- * 'rURL'
970-- * 'rURL'
791--
971--
972+-- * 'rWarnings'
973+--
792-- * 'rUpdateTime'
974-- * 'rUpdateTime'
793--
975--
794-- * 'rName'
976-- * 'rName'
@@ -810,6 +992,7 @@ resource =
810 Resource
992 Resource
811 { _rInsertTime = Nothing
993 { _rInsertTime = Nothing
812 , _rURL = Nothing
994 , _rURL = Nothing
995+ , _rWarnings = Nothing
813 , _rUpdateTime = Nothing
996 , _rUpdateTime = Nothing
814 , _rName = Nothing
997 , _rName = Nothing
815 , _rManifest = Nothing
998 , _rManifest = Nothing
@@ -830,6 +1013,14 @@ rInsertTime
830rURL :: Lens' Resource (Maybe Text)
1013rURL :: Lens' Resource (Maybe Text)
831rURL = lens _rURL (\ s a -> s{_rURL = a})
1014rURL = lens _rURL (\ s a -> s{_rURL = a})
832
1015
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+
833-- | [Output Only] Timestamp when the resource was updated, in RFC3339 text
1024-- | [Output Only] Timestamp when the resource was updated, in RFC3339 text
834-- format .
1025-- format .
835rUpdateTime :: Lens' Resource (Maybe Text)
1026rUpdateTime :: Lens' Resource (Maybe Text)
@@ -879,7 +1070,8 @@ instance FromJSON Resource where
879 (\ o ->
1070 (\ o ->
880 Resource <$>
1071 Resource <$>
881 (o .:? "insertTime") <*> (o .:? "url") <*>
1072 (o .:? "insertTime") <*> (o .:? "url") <*>
1073+ (o .:? "warnings" .!= mempty)
882− (o .:? "updateTime")
1074+ <*> (o .:? "updateTime")
883 <*> (o .:? "name")
1075 <*> (o .:? "name")
884 <*> (o .:? "manifest")
1076 <*> (o .:? "manifest")
885 <*> (o .:? "finalProperties")
1077 <*> (o .:? "finalProperties")
@@ -893,7 +1085,7 @@ instance ToJSON Resource where
893 = object
1085 = object
894 (catMaybes
1086 (catMaybes
895 [("insertTime" .=) <$> _rInsertTime,
1087 [("insertTime" .=) <$> _rInsertTime,
896− ("url" .=) <$> _rURL,
1088+ ("url" .=) <$> _rURL, ("warnings" .=) <$> _rWarnings,
897 ("updateTime" .=) <$> _rUpdateTime,
1089 ("updateTime" .=) <$> _rUpdateTime,
898 ("name" .=) <$> _rName,
1090 ("name" .=) <$> _rName,
899 ("manifest" .=) <$> _rManifest,
1091 ("manifest" .=) <$> _rManifest,
@@ -902,6 +1094,65 @@ instance ToJSON Resource where
902 ("update" .=) <$> _rUpdate,
1094 ("update" .=) <$> _rUpdate,
903 ("properties" .=) <$> _rProperties])
1095 ("properties" .=) <$> _rProperties])
904
1096
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+
905-- | A response containing a partial list of manifests and a page token used
1156-- | A response containing a partial list of manifests and a page token used
906-- to build the next request if the request has been truncated.
1157-- to build the next request if the request has been truncated.
907--
1158--
@@ -1161,6 +1412,133 @@ instance ToJSON OperationErrorErrorsItem where
1161 ("code" .=) <$> _oeeiCode,
1412 ("code" .=) <$> _oeeiCode,
1162 ("message" .=) <$> _oeeiMessage])
1413 ("message" .=) <$> _oeeiMessage])
1163
1414
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+
1164-- | A response containing a partial list of deployments and a page token
1542-- | A response containing a partial list of deployments and a page token
1165-- used to build the next request if the request has been truncated.
1543-- used to build the next request if the request has been truncated.
1166--
1544--
@@ -1214,11 +1592,67 @@ instance ToJSON DeploymentsListResponse where
1214 [("nextPageToken" .=) <$> _dlrNextPageToken,
1592 [("nextPageToken" .=) <$> _dlrNextPageToken,
1215 ("deployments" .=) <$> _dlrDeployments])
1593 ("deployments" .=) <$> _dlrDeployments])
1216
1594
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+
1217-- |
1651-- |
1218--
1652--
1219-- /See:/ 'targetConfiguration' smart constructor.
1653-- /See:/ 'targetConfiguration' smart constructor.
1220data TargetConfiguration = TargetConfiguration
1654data TargetConfiguration = TargetConfiguration
1221− { _tcConfig :: !(Maybe Text)
1655+ { _tcConfig :: !(Maybe ConfigFile)
1222 , _tcImports :: !(Maybe [ImportFile])
1656 , _tcImports :: !(Maybe [ImportFile])
1223 } deriving (Eq,Show,Data,Typeable,Generic)
1657 } deriving (Eq,Show,Data,Typeable,Generic)
1224
1658
@@ -1238,7 +1672,7 @@ targetConfiguration =
1238 }
1672 }
1239
1673
1240-- | The configuration to use for this deployment.
1674-- | The configuration to use for this deployment.
1241−tcConfig :: Lens' TargetConfiguration (Maybe Text)
1675+tcConfig :: Lens' TargetConfiguration (Maybe ConfigFile)
1242tcConfig = lens _tcConfig (\ s a -> s{_tcConfig = a})
1676tcConfig = lens _tcConfig (\ s a -> s{_tcConfig = a})
1243
1677
1244-- | Specifies any files to import for this configuration. This can be used
1678-- | Specifies any files to import for this configuration. This can be used
@@ -1324,11 +1758,9 @@ instance ToJSON OperationWarningsItem where
1324--
1758--
1325-- /See:/ 'deployment' smart constructor.
1759-- /See:/ 'deployment' smart constructor.
1326data Deployment = Deployment
1760data Deployment = Deployment
1327− { _dState :: !(Maybe Text)
1761+ { _dInsertTime :: !(Maybe Text)
1328− , _dInsertTime :: !(Maybe Text)
1762+ , _dOperation :: !(Maybe Operation)
1329 , _dFingerprint :: !(Maybe Word8)
1763 , _dFingerprint :: !(Maybe Word8)
1330− , _dIntent :: !(Maybe Text)
1331− , _dUpdateTime :: !(Maybe Text)
1332 , _dName :: !(Maybe Text)
1764 , _dName :: !(Maybe Text)
1333 , _dManifest :: !(Maybe Text)
1765 , _dManifest :: !(Maybe Text)
1334 , _dId :: !(Maybe Word64)
1766 , _dId :: !(Maybe Word64)
@@ -1341,15 +1773,11 @@ data Deployment = Deployment
1341--
1773--
1342-- Use one of the following lenses to modify other fields as desired:
1774-- Use one of the following lenses to modify other fields as desired:
1343--
1775--
1344−-- * 'dState'
1345−--
1346-- * 'dInsertTime'
1776-- * 'dInsertTime'
1347--
1777--
1348−-- * 'dFingerprint'
1778+-- * 'dOperation'
1349−--
1350−-- * 'dIntent'
1351--
1779--
1352−-- * 'dUpdateTime'
1780+-- * 'dFingerprint'
1353--
1781--
1354-- * 'dName'
1782-- * 'dName'
1355--
1783--
@@ -1366,11 +1794,9 @@ deployment
1366 :: Deployment
1794 :: Deployment
1367deployment =
1795deployment =
1368 Deployment
1796 Deployment
1369− { _dState = Nothing
1797+ { _dInsertTime = Nothing
1370− , _dInsertTime = Nothing
1798+ , _dOperation = Nothing
1371 , _dFingerprint = Nothing
1799 , _dFingerprint = Nothing
1372− , _dIntent = Nothing
1373− , _dUpdateTime = Nothing
1374 , _dName = Nothing
1800 , _dName = Nothing
1375 , _dManifest = Nothing
1801 , _dManifest = Nothing
1376 , _dId = Nothing
1802 , _dId = Nothing
@@ -1379,55 +1805,30 @@ deployment =
1379 , _dTarget = Nothing
1805 , _dTarget = Nothing
1380 }
1806 }
1381
1807
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−
1387-- | [Output Only] Timestamp when the deployment was created, in RFC3339 text
1808-- | [Output Only] Timestamp when the deployment was created, in RFC3339 text
1388-- format .
1809-- format .
1389dInsertTime :: Lens' Deployment (Maybe Text)
1810dInsertTime :: Lens' Deployment (Maybe Text)
1390dInsertTime
1811dInsertTime
1391 = lens _dInsertTime (\ s a -> s{_dInsertTime = a})
1812 = lens _dInsertTime (\ s a -> s{_dInsertTime = a})
1392
1813
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
1393−-- | Specifies a fingerprint for update() requests. A fingerprint is a
1821+-- as update(), stop(), and cancelPreview() requests. A fingerprint is a
1394−-- randomly generated value that must be provided in update() requests to
1822+-- randomly generated value that must be provided with update(), stop(),
1395−-- perform optimistic locking. This ensures optimistic concurrency so that
1823+-- and cancelPreview() requests to perform optimistic locking. This ensures
1396−-- only one update can be performed at a time. The fingerprint is initially
1824+-- optimistic concurrency so that only one request happens at a time. The
1397−-- generated by Deployment Manager and changes after every request to
1825+-- fingerprint is initially generated by Deployment Manager and changes
1398−-- modify data. To get the latest fingerprint value, perform a get()
1826+-- after every request to modify data. To get the latest fingerprint value,
1399−-- request to a deployment.
1827+-- perform a get() request to a deployment.
1400dFingerprint :: Lens' Deployment (Maybe Word8)
1828dFingerprint :: Lens' Deployment (Maybe Word8)
1401dFingerprint
1829dFingerprint
1402 = lens _dFingerprint (\ s a -> s{_dFingerprint = a})
1830 = lens _dFingerprint (\ s a -> s{_dFingerprint = a})
1403
1831
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−
1431-- | Name of the resource; provided by the client when the resource is
1832-- | Name of the resource; provided by the client when the resource is
1432-- created. The name must be 1-63 characters long, and comply with RFC1035.
1833-- created. The name must be 1-63 characters long, and comply with RFC1035.
1433-- Specifically, the name must be 1-63 characters long and match the
1834-- Specifically, the name must be 1-63 characters long and match the
@@ -1468,10 +1869,8 @@ instance FromJSON Deployment where
1468 = withObject "Deployment"
1869 = withObject "Deployment"
1469 (\ o ->
1870 (\ o ->
1470 Deployment <$>
1871 Deployment <$>
1471− (o .:? "state") <*> (o .:? "insertTime") <*>
1872+ (o .:? "insertTime") <*> (o .:? "operation") <*>
1472 (o .:? "fingerprint")
1873 (o .:? "fingerprint")
1473− <*> (o .:? "intent")
1474− <*> (o .:? "updateTime")
1475 <*> (o .:? "name")
1874 <*> (o .:? "name")
1476 <*> (o .:? "manifest")
1875 <*> (o .:? "manifest")
1477 <*> (o .:? "id")
1876 <*> (o .:? "id")
@@ -1483,11 +1882,9 @@ instance ToJSON Deployment where
1483 toJSON Deployment{..}
1882 toJSON Deployment{..}
1484 = object
1883 = object
1485 (catMaybes
1884 (catMaybes
1486− [("state" .=) <$> _dState,
1885+ [("insertTime" .=) <$> _dInsertTime,
1487− ("insertTime" .=) <$> _dInsertTime,
1886+ ("operation" .=) <$> _dOperation,
1488 ("fingerprint" .=) <$> _dFingerprint,
1887 ("fingerprint" .=) <$> _dFingerprint,
1489− ("intent" .=) <$> _dIntent,
1490− ("updateTime" .=) <$> _dUpdateTime,
1491 ("name" .=) <$> _dName,
1888 ("name" .=) <$> _dName,
1492 ("manifest" .=) <$> _dManifest, ("id" .=) <$> _dId,
1889 ("manifest" .=) <$> _dManifest, ("id" .=) <$> _dId,
1493 ("description" .=) <$> _dDescription,
1890 ("description" .=) <$> _dDescription,
gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types/Sum.hs−54
@@ -45,33 +45,6 @@ instance FromJSON DeploymentsUpdateCreatePolicy where
45instance ToJSON DeploymentsUpdateCreatePolicy where
45instance ToJSON DeploymentsUpdateCreatePolicy where
46 toJSON = toJSONText
46 toJSON = toJSONText
47
47
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−
75-- | Sets the policy to use for deleting resources.
48-- | Sets the policy to use for deleting resources.
76data DeploymentsUpdateDeletePolicy
49data DeploymentsUpdateDeletePolicy
77 = Abandon
50 = Abandon
@@ -126,33 +99,6 @@ instance FromJSON DeploymentsPatchDeletePolicy where
126instance ToJSON DeploymentsPatchDeletePolicy where
99instance ToJSON DeploymentsPatchDeletePolicy where
127 toJSON = toJSONText
100 toJSON = toJSONText
128
101
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−
156-- | Sets the policy to use for creating new resources.
102-- | Sets the policy to use for creating new resources.
157data DeploymentsPatchCreatePolicy
103data DeploymentsPatchCreatePolicy
158 = DPCPAcquire
104 = 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 @@
22--
22--
23-- | Deletes a deployment and all of the resources in the deployment.
23-- | Deletes a deployment and all of the resources in the deployment.
24--
24--
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@.
26module Network.Google.Resource.DeploymentManager.Deployments.Delete
26module Network.Google.Resource.DeploymentManager.Deployments.Delete
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Get.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- | Gets information about a specific deployment.
23-- | Gets information about a specific deployment.
24--
24--
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@.
26module Network.Google.Resource.DeploymentManager.Deployments.Get
26module Network.Google.Resource.DeploymentManager.Deployments.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Insert.hs+29−10
@@ -23,7 +23,7 @@
23-- | Creates a deployment and all of the resources described by the
23-- | Creates a deployment and all of the resources described by the
24-- deployment manifest.
24-- deployment manifest.
25--
25--
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@.
27module Network.Google.Resource.DeploymentManager.Deployments.Insert
27module Network.Google.Resource.DeploymentManager.Deployments.Insert
28 (
28 (
29 -- * REST Resource
29 -- * REST Resource
@@ -40,6 +40,7 @@ module Network.Google.Resource.DeploymentManager.Deployments.Insert
40 , diUserIP
40 , diUserIP
41 , diPayload
41 , diPayload
42 , diKey
42 , diKey
43+ , diPreview
43 , diOAuthToken
44 , diOAuthToken
44 , diFields
45 , diFields
45 ) where
46 ) where
@@ -53,14 +54,15 @@ type DeploymentsInsertResource =
53 Capture "project" Text :>
54 Capture "project" Text :>
54 "global" :>
55 "global" :>
55 "deployments" :>
56 "deployments" :>
56− QueryParam "quotaUser" Text :>
57+ QueryParam "preview" Bool :>
57− QueryParam "prettyPrint" Bool :>
58+ QueryParam "quotaUser" Text :>
59+ QueryParam "prettyPrint" Bool :>
58− QueryParam "userIp" Text :>
60+ QueryParam "userIp" Text :>
59− QueryParam "fields" Text :>
60− QueryParam "key" AuthKey :>
61+ QueryParam "fields" Text :>
62+ QueryParam "key" AuthKey :>
61− QueryParam "oauth_token" OAuthToken :>
63+ QueryParam "oauth_token" OAuthToken :>
62− QueryParam "alt" AltJSON :>
64+ QueryParam "alt" AltJSON :>
63− ReqBody '[JSON] Deployment :> Post '[JSON] Operation
65+ ReqBody '[JSON] Deployment :> Post '[JSON] Operation
64
66
65-- | Creates a deployment and all of the resources described by the
67-- | Creates a deployment and all of the resources described by the
66-- deployment manifest.
68-- deployment manifest.
@@ -73,6 +75,7 @@ data DeploymentsInsert' = DeploymentsInsert'
73 , _diUserIP :: !(Maybe Text)
75 , _diUserIP :: !(Maybe Text)
74 , _diPayload :: !Deployment
76 , _diPayload :: !Deployment
75 , _diKey :: !(Maybe AuthKey)
77 , _diKey :: !(Maybe AuthKey)
78+ , _diPreview :: !(Maybe Bool)
76 , _diOAuthToken :: !(Maybe OAuthToken)
79 , _diOAuthToken :: !(Maybe OAuthToken)
77 , _diFields :: !(Maybe Text)
80 , _diFields :: !(Maybe Text)
78 } deriving (Eq,Show,Data,Typeable,Generic)
81 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -93,6 +96,8 @@ data DeploymentsInsert' = DeploymentsInsert'
93--
96--
94-- * 'diKey'
97-- * 'diKey'
95--
98--
99+-- * 'diPreview'
100+--
96-- * 'diOAuthToken'
101-- * 'diOAuthToken'
97--
102--
98-- * 'diFields'
103-- * 'diFields'
@@ -108,6 +113,7 @@ deploymentsInsert' pDiProject_ pDiPayload_ =
108 , _diUserIP = Nothing
113 , _diUserIP = Nothing
109 , _diPayload = pDiPayload_
114 , _diPayload = pDiPayload_
110 , _diKey = Nothing
115 , _diKey = Nothing
116+ , _diPreview = Nothing
111 , _diOAuthToken = Nothing
117 , _diOAuthToken = Nothing
112 , _diFields = Nothing
118 , _diFields = Nothing
113 }
119 }
@@ -146,6 +152,18 @@ diPayload
146diKey :: Lens' DeploymentsInsert' (Maybe AuthKey)
152diKey :: Lens' DeploymentsInsert' (Maybe AuthKey)
147diKey = lens _diKey (\ s a -> s{_diKey = a})
153diKey = lens _diKey (\ s a -> s{_diKey = a})
148
154
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+
149-- | OAuth 2.0 token for the current user.
167-- | OAuth 2.0 token for the current user.
150diOAuthToken :: Lens' DeploymentsInsert' (Maybe OAuthToken)
168diOAuthToken :: Lens' DeploymentsInsert' (Maybe OAuthToken)
151diOAuthToken
169diOAuthToken
@@ -163,7 +181,8 @@ instance GoogleRequest DeploymentsInsert' where
163 type Rs DeploymentsInsert' = Operation
181 type Rs DeploymentsInsert' = Operation
164 request = requestWith deploymentManagerRequest
182 request = requestWith deploymentManagerRequest
165 requestWith rq DeploymentsInsert'{..}
183 requestWith rq DeploymentsInsert'{..}
166− = go _diProject _diQuotaUser (Just _diPrettyPrint)
184+ = go _diProject _diPreview _diQuotaUser
185+ (Just _diPrettyPrint)
167 _diUserIP
186 _diUserIP
168 _diFields
187 _diFields
169 _diKey
188 _diKey
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/List.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- | Lists all deployments for a given project.
23-- | Lists all deployments for a given project.
24--
24--
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@.
26module Network.Google.Resource.DeploymentManager.Deployments.List
26module Network.Google.Resource.DeploymentManager.Deployments.List
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Deployments/Patch.hs+24−18
@@ -23,7 +23,7 @@
23-- | Updates a deployment and all of the resources described by the
23-- | Updates a deployment and all of the resources described by the
24-- deployment manifest. This method supports patch semantics.
24-- deployment manifest. This method supports patch semantics.
25--
25--
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@.
27module Network.Google.Resource.DeploymentManager.Deployments.Patch
27module Network.Google.Resource.DeploymentManager.Deployments.Patch
28 (
28 (
29 -- * REST Resource
29 -- * REST Resource
@@ -40,9 +40,9 @@ module Network.Google.Resource.DeploymentManager.Deployments.Patch
40 , dpProject
40 , dpProject
41 , dpUserIP
41 , dpUserIP
42 , dpPayload
42 , dpPayload
43− , dpUpdatePolicy
44 , dpDeletePolicy
43 , dpDeletePolicy
45 , dpKey
44 , dpKey
45+ , dpPreview
46 , dpOAuthToken
46 , dpOAuthToken
47 , dpFields
47 , dpFields
48 , dpDeployment
48 , dpDeployment
@@ -61,12 +61,10 @@ type DeploymentsPatchResource =
61 QueryParam "createPolicy"
61 QueryParam "createPolicy"
62 DeploymentsPatchCreatePolicy
62 DeploymentsPatchCreatePolicy
63 :>
63 :>
64− QueryParam "updatePolicy"
64+ QueryParam "deletePolicy"
65− DeploymentsPatchUpdatePolicy
65+ DeploymentsPatchDeletePolicy
66 :>
66 :>
67− QueryParam "deletePolicy"
67+ QueryParam "preview" Bool :>
68− DeploymentsPatchDeletePolicy
69− :>
70 QueryParam "quotaUser" Text :>
68 QueryParam "quotaUser" Text :>
71 QueryParam "prettyPrint" Bool :>
69 QueryParam "prettyPrint" Bool :>
72 QueryParam "userIp" Text :>
70 QueryParam "userIp" Text :>
@@ -88,9 +86,9 @@ data DeploymentsPatch' = DeploymentsPatch'
88 , _dpProject :: !Text
86 , _dpProject :: !Text
89 , _dpUserIP :: !(Maybe Text)
87 , _dpUserIP :: !(Maybe Text)
90 , _dpPayload :: !Deployment
88 , _dpPayload :: !Deployment
91− , _dpUpdatePolicy :: !DeploymentsPatchUpdatePolicy
92 , _dpDeletePolicy :: !DeploymentsPatchDeletePolicy
89 , _dpDeletePolicy :: !DeploymentsPatchDeletePolicy
93 , _dpKey :: !(Maybe AuthKey)
90 , _dpKey :: !(Maybe AuthKey)
91+ , _dpPreview :: !Bool
94 , _dpOAuthToken :: !(Maybe OAuthToken)
92 , _dpOAuthToken :: !(Maybe OAuthToken)
95 , _dpFields :: !(Maybe Text)
93 , _dpFields :: !(Maybe Text)
96 , _dpDeployment :: !Text
94 , _dpDeployment :: !Text
@@ -112,12 +110,12 @@ data DeploymentsPatch' = DeploymentsPatch'
112--
110--
113-- * 'dpPayload'
111-- * 'dpPayload'
114--
112--
115−-- * 'dpUpdatePolicy'
116−--
117-- * 'dpDeletePolicy'
113-- * 'dpDeletePolicy'
118--
114--
119-- * 'dpKey'
115-- * 'dpKey'
120--
116--
117+-- * 'dpPreview'
118+--
121-- * 'dpOAuthToken'
119-- * 'dpOAuthToken'
122--
120--
123-- * 'dpFields'
121-- * 'dpFields'
@@ -136,9 +134,9 @@ deploymentsPatch' pDpProject_ pDpPayload_ pDpDeployment_ =
136 , _dpProject = pDpProject_
134 , _dpProject = pDpProject_
137 , _dpUserIP = Nothing
135 , _dpUserIP = Nothing
138 , _dpPayload = pDpPayload_
136 , _dpPayload = pDpPayload_
139− , _dpUpdatePolicy = DPUPPatch'
140 , _dpDeletePolicy = DPDPDelete'
137 , _dpDeletePolicy = DPDPDelete'
141 , _dpKey = Nothing
138 , _dpKey = Nothing
139+ , _dpPreview = False
142 , _dpOAuthToken = Nothing
140 , _dpOAuthToken = Nothing
143 , _dpFields = Nothing
141 , _dpFields = Nothing
144 , _dpDeployment = pDpDeployment_
142 , _dpDeployment = pDpDeployment_
@@ -178,12 +176,6 @@ dpPayload :: Lens' DeploymentsPatch' Deployment
178dpPayload
176dpPayload
179 = lens _dpPayload (\ s a -> s{_dpPayload = a})
177 = lens _dpPayload (\ s a -> s{_dpPayload = a})
180
178
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−
187-- | Sets the policy to use for deleting resources.
179-- | Sets the policy to use for deleting resources.
188dpDeletePolicy :: Lens' DeploymentsPatch' DeploymentsPatchDeletePolicy
180dpDeletePolicy :: Lens' DeploymentsPatch' DeploymentsPatchDeletePolicy
189dpDeletePolicy
181dpDeletePolicy
@@ -196,6 +188,20 @@ dpDeletePolicy
196dpKey :: Lens' DeploymentsPatch' (Maybe AuthKey)
188dpKey :: Lens' DeploymentsPatch' (Maybe AuthKey)
197dpKey = lens _dpKey (\ s a -> s{_dpKey = a})
189dpKey = lens _dpKey (\ s a -> s{_dpKey = a})
198
190
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+
199-- | OAuth 2.0 token for the current user.
205-- | OAuth 2.0 token for the current user.
200dpOAuthToken :: Lens' DeploymentsPatch' (Maybe OAuthToken)
206dpOAuthToken :: Lens' DeploymentsPatch' (Maybe OAuthToken)
201dpOAuthToken
207dpOAuthToken
@@ -219,8 +225,8 @@ instance GoogleRequest DeploymentsPatch' where
219 request = requestWith deploymentManagerRequest
225 request = requestWith deploymentManagerRequest
220 requestWith rq DeploymentsPatch'{..}
226 requestWith rq DeploymentsPatch'{..}
221 = go _dpProject _dpDeployment (Just _dpCreatePolicy)
227 = go _dpProject _dpDeployment (Just _dpCreatePolicy)
222− (Just _dpUpdatePolicy)
223 (Just _dpDeletePolicy)
228 (Just _dpDeletePolicy)
229+ (Just _dpPreview)
224 _dpQuotaUser
230 _dpQuotaUser
225 (Just _dpPrettyPrint)
231 (Just _dpPrettyPrint)
226 _dpUserIP
232 _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 @@
23-- | Updates a deployment and all of the resources described by the
23-- | Updates a deployment and all of the resources described by the
24-- deployment manifest.
24-- deployment manifest.
25--
25--
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@.
27module Network.Google.Resource.DeploymentManager.Deployments.Update
27module Network.Google.Resource.DeploymentManager.Deployments.Update
28 (
28 (
29 -- * REST Resource
29 -- * REST Resource
@@ -40,9 +40,9 @@ module Network.Google.Resource.DeploymentManager.Deployments.Update
40 , duProject
40 , duProject
41 , duUserIP
41 , duUserIP
42 , duPayload
42 , duPayload
43− , duUpdatePolicy
44 , duDeletePolicy
43 , duDeletePolicy
45 , duKey
44 , duKey
45+ , duPreview
46 , duOAuthToken
46 , duOAuthToken
47 , duFields
47 , duFields
48 , duDeployment
48 , duDeployment
@@ -61,12 +61,10 @@ type DeploymentsUpdateResource =
61 QueryParam "createPolicy"
61 QueryParam "createPolicy"
62 DeploymentsUpdateCreatePolicy
62 DeploymentsUpdateCreatePolicy
63 :>
63 :>
64− QueryParam "updatePolicy"
64+ QueryParam "deletePolicy"
65− DeploymentsUpdateUpdatePolicy
65+ DeploymentsUpdateDeletePolicy
66 :>
66 :>
67− QueryParam "deletePolicy"
67+ QueryParam "preview" Bool :>
68− DeploymentsUpdateDeletePolicy
69− :>
70 QueryParam "quotaUser" Text :>
68 QueryParam "quotaUser" Text :>
71 QueryParam "prettyPrint" Bool :>
69 QueryParam "prettyPrint" Bool :>
72 QueryParam "userIp" Text :>
70 QueryParam "userIp" Text :>
@@ -88,9 +86,9 @@ data DeploymentsUpdate' = DeploymentsUpdate'
88 , _duProject :: !Text
86 , _duProject :: !Text
89 , _duUserIP :: !(Maybe Text)
87 , _duUserIP :: !(Maybe Text)
90 , _duPayload :: !Deployment
88 , _duPayload :: !Deployment
91− , _duUpdatePolicy :: !DeploymentsUpdateUpdatePolicy
92 , _duDeletePolicy :: !DeploymentsUpdateDeletePolicy
89 , _duDeletePolicy :: !DeploymentsUpdateDeletePolicy
93 , _duKey :: !(Maybe AuthKey)
90 , _duKey :: !(Maybe AuthKey)
91+ , _duPreview :: !Bool
94 , _duOAuthToken :: !(Maybe OAuthToken)
92 , _duOAuthToken :: !(Maybe OAuthToken)
95 , _duFields :: !(Maybe Text)
93 , _duFields :: !(Maybe Text)
96 , _duDeployment :: !Text
94 , _duDeployment :: !Text
@@ -112,12 +110,12 @@ data DeploymentsUpdate' = DeploymentsUpdate'
112--
110--
113-- * 'duPayload'
111-- * 'duPayload'
114--
112--
115−-- * 'duUpdatePolicy'
116−--
117-- * 'duDeletePolicy'
113-- * 'duDeletePolicy'
118--
114--
119-- * 'duKey'
115-- * 'duKey'
120--
116--
117+-- * 'duPreview'
118+--
121-- * 'duOAuthToken'
119-- * 'duOAuthToken'
122--
120--
123-- * 'duFields'
121-- * 'duFields'
@@ -136,9 +134,9 @@ deploymentsUpdate' pDuProject_ pDuPayload_ pDuDeployment_ =
136 , _duProject = pDuProject_
134 , _duProject = pDuProject_
137 , _duUserIP = Nothing
135 , _duUserIP = Nothing
138 , _duPayload = pDuPayload_
136 , _duPayload = pDuPayload_
139− , _duUpdatePolicy = Patch'
140 , _duDeletePolicy = Delete'
137 , _duDeletePolicy = Delete'
141 , _duKey = Nothing
138 , _duKey = Nothing
139+ , _duPreview = False
142 , _duOAuthToken = Nothing
140 , _duOAuthToken = Nothing
143 , _duFields = Nothing
141 , _duFields = Nothing
144 , _duDeployment = pDuDeployment_
142 , _duDeployment = pDuDeployment_
@@ -178,12 +176,6 @@ duPayload :: Lens' DeploymentsUpdate' Deployment
178duPayload
176duPayload
179 = lens _duPayload (\ s a -> s{_duPayload = a})
177 = lens _duPayload (\ s a -> s{_duPayload = a})
180
178
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−
187-- | Sets the policy to use for deleting resources.
179-- | Sets the policy to use for deleting resources.
188duDeletePolicy :: Lens' DeploymentsUpdate' DeploymentsUpdateDeletePolicy
180duDeletePolicy :: Lens' DeploymentsUpdate' DeploymentsUpdateDeletePolicy
189duDeletePolicy
181duDeletePolicy
@@ -196,6 +188,20 @@ duDeletePolicy
196duKey :: Lens' DeploymentsUpdate' (Maybe AuthKey)
188duKey :: Lens' DeploymentsUpdate' (Maybe AuthKey)
197duKey = lens _duKey (\ s a -> s{_duKey = a})
189duKey = lens _duKey (\ s a -> s{_duKey = a})
198
190
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+
199-- | OAuth 2.0 token for the current user.
205-- | OAuth 2.0 token for the current user.
200duOAuthToken :: Lens' DeploymentsUpdate' (Maybe OAuthToken)
206duOAuthToken :: Lens' DeploymentsUpdate' (Maybe OAuthToken)
201duOAuthToken
207duOAuthToken
@@ -219,8 +225,8 @@ instance GoogleRequest DeploymentsUpdate' where
219 request = requestWith deploymentManagerRequest
225 request = requestWith deploymentManagerRequest
220 requestWith rq DeploymentsUpdate'{..}
226 requestWith rq DeploymentsUpdate'{..}
221 = go _duProject _duDeployment (Just _duCreatePolicy)
227 = go _duProject _duDeployment (Just _duCreatePolicy)
222− (Just _duUpdatePolicy)
223 (Just _duDeletePolicy)
228 (Just _duDeletePolicy)
229+ (Just _duPreview)
224 _duQuotaUser
230 _duQuotaUser
225 (Just _duPrettyPrint)
231 (Just _duPrettyPrint)
226 _duUserIP
232 _duUserIP
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Manifests/Get.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- | Gets information about a specific manifest.
23-- | Gets information about a specific manifest.
24--
24--
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@.
26module Network.Google.Resource.DeploymentManager.Manifests.Get
26module Network.Google.Resource.DeploymentManager.Manifests.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Manifests/List.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- | Lists all manifests for a given deployment.
23-- | Lists all manifests for a given deployment.
24--
24--
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@.
26module Network.Google.Resource.DeploymentManager.Manifests.List
26module Network.Google.Resource.DeploymentManager.Manifests.List
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Operations/Get.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- | Gets information about a specific operation.
23-- | Gets information about a specific operation.
24--
24--
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@.
26module Network.Google.Resource.DeploymentManager.Operations.Get
26module Network.Google.Resource.DeploymentManager.Operations.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Operations/List.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- | Lists all operations for a project.
23-- | Lists all operations for a project.
24--
24--
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@.
26module Network.Google.Resource.DeploymentManager.Operations.List
26module Network.Google.Resource.DeploymentManager.Operations.List
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Resources/Get.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- | Gets information about a single resource.
23-- | Gets information about a single resource.
24--
24--
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@.
26module Network.Google.Resource.DeploymentManager.Resources.Get
26module Network.Google.Resource.DeploymentManager.Resources.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Resources/List.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- | Lists all resources in a given deployment.
23-- | Lists all resources in a given deployment.
24--
24--
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@.
26module Network.Google.Resource.DeploymentManager.Resources.List
26module Network.Google.Resource.DeploymentManager.Resources.List
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-deploymentmanager/gen/Network/Google/Resource/DeploymentManager/Types/List.hs+1−1
@@ -22,7 +22,7 @@
22--
22--
23-- | Lists all resource types for Deployment Manager.
23-- | Lists all resource types for Deployment Manager.
24--
24--
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@.
26module Network.Google.Resource.DeploymentManager.Types.List
26module Network.Google.Resource.DeploymentManager.Types.List
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
gogol-deploymentmanager/gogol-deploymentmanager.cabal+3−1
@@ -20,7 +20,7 @@ description:
20 /Warning:/ This is an experimental prototype/preview release which is still
20 /Warning:/ This is an experimental prototype/preview release which is still
21 under exploratory development and not intended for public use, caveat emptor!
21 under exploratory development and not intended for public use, caveat emptor!
22 .
22 .
23− This library is compatible with version @v2beta2@
23+ This library is compatible with version @v2@
24 of the API.
24 of the API.
25
25
26source-repository head
26source-repository head
@@ -36,11 +36,13 @@ library
36 exposed-modules:
36 exposed-modules:
37 Network.Google.DeploymentManager
37 Network.Google.DeploymentManager
38 , Network.Google.DeploymentManager.Types
38 , Network.Google.DeploymentManager.Types
39+ , Network.Google.Resource.DeploymentManager.Deployments.CancelPreview
39 , Network.Google.Resource.DeploymentManager.Deployments.Delete
40 , Network.Google.Resource.DeploymentManager.Deployments.Delete
40 , Network.Google.Resource.DeploymentManager.Deployments.Get
41 , Network.Google.Resource.DeploymentManager.Deployments.Get
41 , Network.Google.Resource.DeploymentManager.Deployments.Insert
42 , Network.Google.Resource.DeploymentManager.Deployments.Insert
42 , Network.Google.Resource.DeploymentManager.Deployments.List
43 , Network.Google.Resource.DeploymentManager.Deployments.List
43 , Network.Google.Resource.DeploymentManager.Deployments.Patch
44 , Network.Google.Resource.DeploymentManager.Deployments.Patch
45+ , Network.Google.Resource.DeploymentManager.Deployments.Stop
44 , Network.Google.Resource.DeploymentManager.Deployments.Update
46 , Network.Google.Resource.DeploymentManager.Deployments.Update
45 , Network.Google.Resource.DeploymentManager.Manifests.Get
47 , Network.Google.Resource.DeploymentManager.Manifests.Get
46 , Network.Google.Resource.DeploymentManager.Manifests.List
48 , Network.Google.Resource.DeploymentManager.Manifests.List
gogol-dns/gen/Network/Google/DNS.hs+3
@@ -88,6 +88,9 @@ module Network.Google.DNS
88 , rrslrKind
88 , rrslrKind
89 , rrslrRrsets
89 , rrslrRrsets
90
90
91+ -- ** ChangeStatus
92+ , ChangeStatus (..)
93+
91 -- ** ResourceRecordSet
94 -- ** ResourceRecordSet
92 , ResourceRecordSet
95 , ResourceRecordSet
93 , resourceRecordSet
96 , resourceRecordSet
gogol-dns/gen/Network/Google/DNS/Types.hs+5−2
@@ -53,6 +53,9 @@ module Network.Google.DNS.Types
53 , rrslrKind
53 , rrslrKind
54 , rrslrRrsets
54 , rrslrRrsets
55
55
56+ -- * ChangeStatus
57+ , ChangeStatus (..)
58+
56 -- * ResourceRecordSet
59 -- * ResourceRecordSet
57 , ResourceRecordSet
60 , ResourceRecordSet
58 , resourceRecordSet
61 , resourceRecordSet
@@ -97,8 +100,8 @@ import Network.Google.DNS.Types.Product
97import Network.Google.DNS.Types.Sum
100import Network.Google.DNS.Types.Sum
98import Network.Google.Prelude
101import Network.Google.Prelude
99
102
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.
101dNSRequest :: RequestBuilder
104dNSRequest :: RequestBuilder
102dNSRequest
105dNSRequest
103 = defaultRequest "https://www.googleapis.com/"
106 = 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
162--
162--
163-- /See:/ 'change' smart constructor.
163-- /See:/ 'change' smart constructor.
164data Change = Change
164data Change = Change
165− { _cStatus :: !(Maybe Text)
165+ { _cStatus :: !(Maybe ChangeStatus)
166 , _cAdditions :: !(Maybe [ResourceRecordSet])
166 , _cAdditions :: !(Maybe [ResourceRecordSet])
167 , _cStartTime :: !(Maybe Text)
167 , _cStartTime :: !(Maybe Text)
168 , _cKind :: !Text
168 , _cKind :: !Text
@@ -198,7 +198,7 @@ change =
198 }
198 }
199
199
200-- | Status of the operation (output only).
200-- | Status of the operation (output only).
201−cStatus :: Lens' Change (Maybe Text)
201+cStatus :: Lens' Change (Maybe ChangeStatus)
202cStatus = lens _cStatus (\ s a -> s{_cStatus = a})
202cStatus = lens _cStatus (\ s a -> s{_cStatus = a})
203
203
204-- | Which ResourceRecordSets to add?
204-- | Which ResourceRecordSets to add?
gogol-dns/gen/Network/Google/DNS/Types/Sum.hs+27
@@ -40,3 +40,30 @@ instance FromJSON ChangesListSortBy where
40
40
41instance ToJSON ChangesListSortBy where
41instance ToJSON ChangesListSortBy where
42 toJSON = toJSONText
42 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:
20 /Warning:/ This is an experimental prototype/preview release which is still
20 /Warning:/ This is an experimental prototype/preview release which is still
21 under exploratory development and not intended for public use, caveat emptor!
21 under exploratory development and not intended for public use, caveat emptor!
22 .
22 .
23− This library is compatible with version @v1beta1@
23+ This library is compatible with version @v1@
24 of the API.
24 of the API.
25
25
26source-repository head
26source-repository head
gogol-genomics/gen/Network/Google/Genomics.hs+184−486
@@ -13,9 +13,10 @@
13-- Stability : auto-generated
13-- Stability : auto-generated
14-- Portability : non-portable (GHC extensions)
14-- Portability : non-portable (GHC extensions)
15--
15--
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.
17--
18--
18−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference>
19+-- /See:/ < Genomics API Reference>
19module Network.Google.Genomics
20module Network.Google.Genomics
20 (
21 (
21 -- * API Declaration
22 -- * API Declaration
@@ -23,45 +24,6 @@ module Network.Google.Genomics
23
24
24 -- * Resources
25 -- * Resources
25
26
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−
65 -- ** GenomicsCallsetsCreate
27 -- ** GenomicsCallsetsCreate
66 , module Network.Google.Resource.Genomics.Callsets.Create
28 , module Network.Google.Resource.Genomics.Callsets.Create
67
29
@@ -77,9 +39,6 @@ module Network.Google.Genomics
77 -- ** GenomicsCallsetsSearch
39 -- ** GenomicsCallsetsSearch
78 , module Network.Google.Resource.Genomics.Callsets.Search
40 , module Network.Google.Resource.Genomics.Callsets.Search
79
41
80− -- ** GenomicsCallsetsUpdate
81− , module Network.Google.Resource.Genomics.Callsets.Update
82−
83 -- ** GenomicsDatasetsCreate
42 -- ** GenomicsDatasetsCreate
84 , module Network.Google.Resource.Genomics.Datasets.Create
43 , module Network.Google.Resource.Genomics.Datasets.Create
85
44
@@ -89,35 +48,35 @@ module Network.Google.Genomics
89 -- ** GenomicsDatasetsGet
48 -- ** GenomicsDatasetsGet
90 , module Network.Google.Resource.Genomics.Datasets.Get
49 , module Network.Google.Resource.Genomics.Datasets.Get
91
50
51+ -- ** GenomicsDatasetsGetIAMPolicy
52+ , module Network.Google.Resource.Genomics.Datasets.GetIAMPolicy
53+
92 -- ** GenomicsDatasetsList
54 -- ** GenomicsDatasetsList
93 , module Network.Google.Resource.Genomics.Datasets.List
55 , module Network.Google.Resource.Genomics.Datasets.List
94
56
95 -- ** GenomicsDatasetsPatch
57 -- ** GenomicsDatasetsPatch
96 , module Network.Google.Resource.Genomics.Datasets.Patch
58 , module Network.Google.Resource.Genomics.Datasets.Patch
97
59
98− -- ** GenomicsDatasetsUndelete
60+ -- ** GenomicsDatasetsSetIAMPolicy
99− , module Network.Google.Resource.Genomics.Datasets.Undelete
100−
101− -- ** GenomicsDatasetsUpdate
102− , module Network.Google.Resource.Genomics.Datasets.Update
61+ , module Network.Google.Resource.Genomics.Datasets.SetIAMPolicy
103
62
104− -- ** GenomicsExperimentalJobsCreate
63+ -- ** GenomicsDatasetsTestIAMPermissions
105− , module Network.Google.Resource.Genomics.Experimental.Jobs.Create
64+ , module Network.Google.Resource.Genomics.Datasets.TestIAMPermissions
106
65
107− -- ** GenomicsJobsCancel
66+ -- ** GenomicsDatasetsUndelete
108− , module Network.Google.Resource.Genomics.Jobs.Cancel
67+ , module Network.Google.Resource.Genomics.Datasets.Undelete
109
68
110− -- ** GenomicsJobsGet
69+ -- ** GenomicsOperationsCancel
111− , module Network.Google.Resource.Genomics.Jobs.Get
70+ , module Network.Google.Resource.Genomics.Operations.Cancel
112
71
113− -- ** GenomicsJobsSearch
72+ -- ** GenomicsOperationsDelete
114− , module Network.Google.Resource.Genomics.Jobs.Search
73+ , module Network.Google.Resource.Genomics.Operations.Delete
115
74
116− -- ** GenomicsReadgroupsetsAlign
75+ -- ** GenomicsOperationsGet
117− , module Network.Google.Resource.Genomics.Readgroupsets.Align
76+ , module Network.Google.Resource.Genomics.Operations.Get
118
77
119− -- ** GenomicsReadgroupsetsCall
78+ -- ** GenomicsOperationsList
120− , module Network.Google.Resource.Genomics.Readgroupsets.Call
79+ , module Network.Google.Resource.Genomics.Operations.List
121
80
122 -- ** GenomicsReadgroupsetsCoveragebucketsList
81 -- ** GenomicsReadgroupsetsCoveragebucketsList
123 , module Network.Google.Resource.Genomics.Readgroupsets.Coveragebuckets.List
82 , module Network.Google.Resource.Genomics.Readgroupsets.Coveragebuckets.List
@@ -140,9 +99,6 @@ module Network.Google.Genomics
140 -- ** GenomicsReadgroupsetsSearch
99 -- ** GenomicsReadgroupsetsSearch
141 , module Network.Google.Resource.Genomics.Readgroupsets.Search
100 , module Network.Google.Resource.Genomics.Readgroupsets.Search
142
101
143− -- ** GenomicsReadgroupsetsUpdate
144− , module Network.Google.Resource.Genomics.Readgroupsets.Update
145−
146 -- ** GenomicsReadsSearch
102 -- ** GenomicsReadsSearch
147 , module Network.Google.Resource.Genomics.Reads.Search
103 , module Network.Google.Resource.Genomics.Reads.Search
148
104
@@ -170,12 +126,15 @@ module Network.Google.Genomics
170 -- ** GenomicsVariantsGet
126 -- ** GenomicsVariantsGet
171 , module Network.Google.Resource.Genomics.Variants.Get
127 , module Network.Google.Resource.Genomics.Variants.Get
172
128
129+ -- ** GenomicsVariantsImport
130+ , module Network.Google.Resource.Genomics.Variants.Import
131+
132+ -- ** GenomicsVariantsPatch
133+ , module Network.Google.Resource.Genomics.Variants.Patch
134+
173 -- ** GenomicsVariantsSearch
135 -- ** GenomicsVariantsSearch
174 , module Network.Google.Resource.Genomics.Variants.Search
136 , module Network.Google.Resource.Genomics.Variants.Search
175
137
176− -- ** GenomicsVariantsUpdate
177− , module Network.Google.Resource.Genomics.Variants.Update
178−
179 -- ** GenomicsVariantsetsCreate
138 -- ** GenomicsVariantsetsCreate
180 , module Network.Google.Resource.Genomics.Variantsets.Create
139 , module Network.Google.Resource.Genomics.Variantsets.Create
181
140
@@ -188,59 +147,28 @@ module Network.Google.Genomics
188 -- ** GenomicsVariantsetsGet
147 -- ** GenomicsVariantsetsGet
189 , module Network.Google.Resource.Genomics.Variantsets.Get
148 , module Network.Google.Resource.Genomics.Variantsets.Get
190
149
191− -- ** GenomicsVariantsetsImportVariants
192− , module Network.Google.Resource.Genomics.Variantsets.ImportVariants
193−
194− -- ** GenomicsVariantsetsMergeVariants
195− , module Network.Google.Resource.Genomics.Variantsets.MergeVariants
196−
197 -- ** GenomicsVariantsetsPatch
150 -- ** GenomicsVariantsetsPatch
198 , module Network.Google.Resource.Genomics.Variantsets.Patch
151 , module Network.Google.Resource.Genomics.Variantsets.Patch
199
152
200 -- ** GenomicsVariantsetsSearch
153 -- ** GenomicsVariantsetsSearch
201 , module Network.Google.Resource.Genomics.Variantsets.Search
154 , module Network.Google.Resource.Genomics.Variantsets.Search
202
155
203− -- ** GenomicsVariantsetsUpdate
204− , module Network.Google.Resource.Genomics.Variantsets.Update
205−
206 -- * Types
156 -- * Types
207
157
208− -- ** FastqMetadata
209− , FastqMetadata
210− , fastqMetadata
211− , fmPlatformUnit
212− , fmReadGroupName
213− , fmLibraryName
214− , fmPlatformName
215− , fmSampleName
216−
217− -- ** CallInfo
218− , CallInfo
219− , callInfo
220−
221 -- ** ReadInfo
158 -- ** ReadInfo
222 , ReadInfo
159 , ReadInfo
223 , readInfo
160 , readInfo
224
161
225− -- ** ReadGroupExperiment
162+ -- ** Status
226− , ReadGroupExperiment
163+ , Status
227− , readGroupExperiment
164+ , status
228− , rgeInstrumentModel
165+ , sDetails
229− , rgePlatformUnit
166+ , sCode
230− , rgeSequencingCenter
167+ , sMessage
231− , rgeLibraryId
232−
233− -- ** KeyValue
234− , KeyValue
235− , keyValue
236− , kvValue
237− , kvKey
238
168
239− -- ** SearchAnnotationSetsRequestTypesItem
169+ -- ** OperationSchema
240− , SearchAnnotationSetsRequestTypesItem (..)
170+ , OperationSchema
241−
171+ , operationSchema
242− -- ** VariantAnnotationEffect
243− , VariantAnnotationEffect (..)
244
172
245 -- ** Variant
173 -- ** Variant
246 , Variant
174 , Variant
@@ -259,37 +187,6 @@ module Network.Google.Genomics
259 , vInfo
187 , vInfo
260 , vCalls
188 , vCalls
261
189
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−
293 -- ** ListBasesResponse
190 -- ** ListBasesResponse
294 , ListBasesResponse
191 , ListBasesResponse
295 , listBasesResponse
192 , listBasesResponse
@@ -297,13 +194,26 @@ module Network.Google.Genomics
297 , lbrOffset
194 , lbrOffset
298 , lbrSequence
195 , lbrSequence
299
196
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+
300 -- ** Dataset
211 -- ** Dataset
301 , Dataset
212 , Dataset
302 , dataset
213 , dataset
303− , dIsPublic
304− , dProjectNumber
305 , dName
214 , dName
306 , dId
215 , dId
216+ , dProjectId
307 , dCreateTime
217 , dCreateTime
308
218
309 -- ** Read'
219 -- ** Read'
@@ -327,40 +237,15 @@ module Network.Google.Genomics
327 , rReadNumber
237 , rReadNumber
328 , rAlignedQuality
238 , rAlignedQuality
329
239
330− -- ** TranscriptExon
240+ -- ** VariantCall
331− , TranscriptExon
241+ , VariantCall
332− , transcriptExon
242+ , variantCall
333− , teStart
243+ , vcGenotypeLikelihood
334− , teEnd
244+ , vcCallSetName
335− , teFrame
245+ , vcPhaseset
336−
246+ , vcCallSetId
337− -- ** Call
247+ , vcGenotype
338− , Call
248+ , vcInfo
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
364
249
365 -- ** ReadGroup
250 -- ** ReadGroup
366 , ReadGroup
251 , ReadGroup
@@ -376,8 +261,14 @@ module Network.Google.Genomics
376 , rgDescription
261 , rgDescription
377 , rgInfo
262 , rgInfo
378
263
379− -- ** MetadataType
264+ -- ** Operation
380− , MetadataType (..)
265+ , Operation
266+ , operation
267+ , oDone
268+ , oError
269+ , oResponse
270+ , oName
271+ , oMetadata
381
272
382 -- ** SearchReferenceSetsRequest
273 -- ** SearchReferenceSetsRequest
383 , SearchReferenceSetsRequest
274 , SearchReferenceSetsRequest
@@ -388,8 +279,9 @@ module Network.Google.Genomics
388 , srsrAssemblyId
279 , srsrAssemblyId
389 , srsrPageSize
280 , srsrPageSize
390
281
391− -- ** AnnotationSetType
282+ -- ** Empty
392− , AnnotationSetType (..)
283+ , Empty
284+ , empty
393
285
394 -- ** SearchReferencesResponse
286 -- ** SearchReferencesResponse
395 , SearchReferencesResponse
287 , SearchReferencesResponse
@@ -397,6 +289,17 @@ module Network.Google.Genomics
397 , srrNextPageToken
289 , srrNextPageToken
398 , srrReferences
290 , srrReferences
399
291
292+ -- ** VariantSetMetadata
293+ , VariantSetMetadata
294+ , variantSetMetadata
295+ , vsmValue
296+ , vsmKey
297+ , vsmId
298+ , vsmType
299+ , vsmNumber
300+ , vsmDescription
301+ , vsmInfo
302+
400 -- ** CallSet
303 -- ** CallSet
401 , CallSet
304 , CallSet
402 , callSet
305 , callSet
@@ -413,20 +316,6 @@ module Network.Google.Genomics
413 , cbRange
316 , cbRange
414 , cbMeanCoverage
317 , cbMeanCoverage
415
318
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−
430 -- ** SearchReadGroupSetsRequest
319 -- ** SearchReadGroupSetsRequest
431 , SearchReadGroupSetsRequest
320 , SearchReadGroupSetsRequest
432 , searchReadGroupSetsRequest
321 , searchReadGroupSetsRequest
@@ -435,12 +324,6 @@ module Network.Google.Genomics
435 , srgsrPageToken
324 , srgsrPageToken
436 , srgsrPageSize
325 , srgsrPageSize
437
326
438− -- ** BatchAnnotationsResponseEntryStatus
439− , BatchAnnotationsResponseEntryStatus
440− , batchAnnotationsResponseEntryStatus
441− , baresCode
442− , baresMessage
443−
444 -- ** Reference
327 -- ** Reference
445 , Reference
328 , Reference
446 , reference
329 , reference
@@ -452,24 +335,17 @@ module Network.Google.Genomics
452 , refId
335 , refId
453 , refSourceURI
336 , refSourceURI
454
337
455− -- ** BatchAnnotationsResponse
338+ -- ** VariantCallInfo
456− , BatchAnnotationsResponse
339+ , VariantCallInfo
457− , batchAnnotationsResponse
340+ , variantCallInfo
458− , barEntries
459
341
460 -- ** ReadGroupInfo
342 -- ** ReadGroupInfo
461 , ReadGroupInfo
343 , ReadGroupInfo
462 , readGroupInfo
344 , readGroupInfo
463
345
464− -- ** SearchJobsRequest
346+ -- ** StatusDetailsItem
465− , SearchJobsRequest
347+ , StatusDetailsItem
466− , searchJobsRequest
348+ , statusDetailsItem
467− , sjrCreatedAfter
468− , sjrStatus
469− , sjrProjectNumber
470− , sjrPageToken
471− , sjrPageSize
472− , sjrCreatedBefore
473
349
474 -- ** SearchCallSetsResponse
350 -- ** SearchCallSetsResponse
475 , SearchCallSetsResponse
351 , SearchCallSetsResponse
@@ -477,22 +353,10 @@ module Network.Google.Genomics
477 , scsrNextPageToken
353 , scsrNextPageToken
478 , scsrCallSets
354 , scsrCallSets
479
355
480− -- ** ExperimentalCreateJobRequest
356+ -- ** SetIAMPolicyRequest
481− , ExperimentalCreateJobRequest
357+ , SetIAMPolicyRequest
482− , experimentalCreateJobRequest
358+ , setIAMPolicyRequest
483− , ecjrGcsOutputPath
359+ , siprPolicy
484− , ecjrProjectNumber
485− , ecjrAlign
486− , ecjrSourceURIs
487− , ecjrPairedSourceURIs
488− , ecjrCallVariants
489−
490− -- ** JobRequest
491− , JobRequest
492− , jobRequest
493− , jrDestination
494− , jrSource
495− , jrType
496
360
497 -- ** SearchReadsRequest
361 -- ** SearchReadsRequest
498 , SearchReadsRequest
362 , SearchReadsRequest
@@ -505,10 +369,22 @@ module Network.Google.Genomics
505 , srrPageSize
369 , srrPageSize
506 , srrReadGroupSetIds
370 , srrReadGroupSetIds
507
371
372+ -- ** OperationMetadataRequest
373+ , OperationMetadataRequest
374+ , operationMetadataRequest
375+
508 -- ** VariantInfo
376 -- ** VariantInfo
509 , VariantInfo
377 , VariantInfo
510 , variantInfo
378 , variantInfo
511
379
380+ -- ** Experiment
381+ , Experiment
382+ , experiment
383+ , eInstrumentModel
384+ , ePlatformUnit
385+ , eSequencingCenter
386+ , eLibraryId
387+
512 -- ** SearchVariantSetsRequest
388 -- ** SearchVariantSetsRequest
513 , SearchVariantSetsRequest
389 , SearchVariantSetsRequest
514 , searchVariantSetsRequest
390 , searchVariantSetsRequest
@@ -516,62 +392,12 @@ module Network.Google.Genomics
516 , svsrPageToken
392 , svsrPageToken
517 , svsrPageSize
393 , svsrPageSize
518
394
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−
564 -- ** SearchVariantsResponse
395 -- ** SearchVariantsResponse
565 , SearchVariantsResponse
396 , SearchVariantsResponse
566 , searchVariantsResponse
397 , searchVariantsResponse
567 , svrVariants
398 , svrVariants
568 , svrNextPageToken
399 , svrNextPageToken
569
400
570− -- ** ExperimentalCreateJobResponse
571− , ExperimentalCreateJobResponse
572− , experimentalCreateJobResponse
573− , ecjrJobId
574−
575 -- ** SearchCallSetsRequest
401 -- ** SearchCallSetsRequest
576 , SearchCallSetsRequest
402 , SearchCallSetsRequest
577 , searchCallSetsRequest
403 , searchCallSetsRequest
@@ -586,12 +412,14 @@ module Network.Google.Genomics
586 , sNextPageToken
412 , sNextPageToken
587 , sAlignments
413 , sAlignments
588
414
589− -- ** PairedFastqSource
415+ -- ** Program
590− , PairedFastqSource
416+ , Program
591− , pairedFastqSource
417+ , program
592− , pfsFirstSourceURIs
418+ , pPrevProgramId
593− , pfsMetadata
419+ , pName
594− , pfsSecondSourceURIs
420+ , pVersion
421+ , pId
422+ , pCommandLine
595
423
596 -- ** SearchReferencesRequest
424 -- ** SearchReferencesRequest
597 , SearchReferencesRequest
425 , SearchReferencesRequest
@@ -602,9 +430,6 @@ module Network.Google.Genomics
602 , sPageToken
430 , sPageToken
603 , sPageSize
431 , sPageSize
604
432
605− -- ** AnnotationType
606− , AnnotationType (..)
607−
608 -- ** SearchReferenceSetsResponse
433 -- ** SearchReferenceSetsResponse
609 , SearchReferenceSetsResponse
434 , SearchReferenceSetsResponse
610 , searchReferenceSetsResponse
435 , searchReferenceSetsResponse
@@ -629,36 +454,17 @@ module Network.Google.Genomics
629 , rgsReadGroups
454 , rgsReadGroups
630 , rgsFilename
455 , rgsFilename
631
456
632− -- ** Job
457+ -- ** ExportReadGroupSetRequest
633− , Job
458+ , ExportReadGroupSetRequest
634− , job
459+ , exportReadGroupSetRequest
635− , jDetailedStatus
460+ , ergsrReferenceNames
636− , jStatus
461+ , ergsrExportURI
637− , jCreated
462+ , ergsrProjectId
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 (..)
657
463
658 -- ** ImportVariantsResponse
464 -- ** ImportVariantsResponse
659 , ImportVariantsResponse
465 , ImportVariantsResponse
660 , importVariantsResponse
466 , importVariantsResponse
661− , ivrJobId
467+ , ivrCallSetIds
662
468
663 -- ** ListCoverageBucketsResponse
469 -- ** ListCoverageBucketsResponse
664 , ListCoverageBucketsResponse
470 , ListCoverageBucketsResponse
@@ -667,10 +473,15 @@ module Network.Google.Genomics
667 , lcbrBucketWidth
473 , lcbrBucketWidth
668 , lcbrCoverageBuckets
474 , lcbrCoverageBuckets
669
475
476+ -- ** TestIAMPermissionsRequest
477+ , TestIAMPermissionsRequest
478+ , testIAMPermissionsRequest
479+ , tiprPermissions
480+
670 -- ** ImportReadGroupSetsResponse
481 -- ** ImportReadGroupSetsResponse
671 , ImportReadGroupSetsResponse
482 , ImportReadGroupSetsResponse
672 , importReadGroupSetsResponse
483 , importReadGroupSetsResponse
673− , irgsrJobId
484+ , irgsrReadGroupSetIds
674
485
675 -- ** LinearAlignment
486 -- ** LinearAlignment
676 , LinearAlignment
487 , LinearAlignment
@@ -679,33 +490,6 @@ module Network.Google.Genomics
679 , laMAppingQuality
490 , laMAppingQuality
680 , laPosition
491 , laPosition
681
492
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−
709 -- ** VariantSet
493 -- ** VariantSet
710 , VariantSet
494 , VariantSet
711 , variantSet
495 , variantSet
@@ -714,8 +498,10 @@ module Network.Google.Genomics
714 , vsMetadata
498 , vsMetadata
715 , vsId
499 , vsId
716
500
717− -- ** CigarUnitOperation
501+ -- ** TestIAMPermissionsResponse
718− , CigarUnitOperation (..)
502+ , TestIAMPermissionsResponse
503+ , testIAMPermissionsResponse
504+ , tiamprPermissions
719
505
720 -- ** ListDatasetsResponse
506 -- ** ListDatasetsResponse
721 , ListDatasetsResponse
507 , ListDatasetsResponse
@@ -734,16 +520,11 @@ module Network.Google.Genomics
734 -- ** ImportVariantsRequest
520 -- ** ImportVariantsRequest
735 , ImportVariantsRequest
521 , ImportVariantsRequest
736 , importVariantsRequest
522 , importVariantsRequest
523+ , ivrVariantSetId
737 , ivrFormat
524 , ivrFormat
738 , ivrNormalizeReferenceNames
525 , ivrNormalizeReferenceNames
739 , ivrSourceURIs
526 , ivrSourceURIs
740
527
741− -- ** ExternalId
742− , ExternalId
743− , externalId
744− , eiSourceName
745− , eiId
746−
747 -- ** CigarUnit
528 -- ** CigarUnit
748 , CigarUnit
529 , CigarUnit
749 , cigarUnit
530 , cigarUnit
@@ -751,14 +532,12 @@ module Network.Google.Genomics
751 , cuOperationLength
532 , cuOperationLength
752 , cuReferenceSequence
533 , cuReferenceSequence
753
534
754− -- ** AlignReadGroupSetsRequest
535+ -- ** Policy
755− , AlignReadGroupSetsRequest
536+ , Policy
756− , alignReadGroupSetsRequest
537+ , policy
757− , argsrInterleavedFastqSource
538+ , polEtag
758− , argsrReadGroupSetId
539+ , polVersion
759− , argsrBamSourceURIs
540+ , polBindings
760− , argsrPairedFastqSource
761− , argsrDatasetId
762
541
763 -- ** ExportVariantSetRequest
542 -- ** ExportVariantSetRequest
764 , ExportVariantSetRequest
543 , ExportVariantSetRequest
@@ -766,34 +545,16 @@ module Network.Google.Genomics
766 , evsrBigQueryDataset
545 , evsrBigQueryDataset
767 , evsrBigQueryTable
546 , evsrBigQueryTable
768 , evsrFormat
547 , evsrFormat
769− , evsrProjectNumber
770 , evsrCallSetIds
548 , evsrCallSetIds
549+ , evsrProjectId
771
550
772− -- ** VariantAnnotationType
551+ -- ** OperationMetadata
773− , VariantAnnotationType (..)
552+ , OperationMetadata
774−
553+ , operationMetadata
775− -- ** ExportReadGroupSetsResponse
554+ , omEvents
776− , ExportReadGroupSetsResponse
555+ , omProjectId
777− , exportReadGroupSetsResponse
556+ , omCreateTime
778− , ergsrJobId
557+ , omRequest
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
797
558
798 -- ** SearchVariantSetsResponse
559 -- ** SearchVariantSetsResponse
799 , SearchVariantSetsResponse
560 , SearchVariantSetsResponse
@@ -814,61 +575,22 @@ module Network.Google.Genomics
814 , svrVariantSetIds
575 , svrVariantSetIds
815 , svrPageSize
576 , svrPageSize
816
577
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−
838 -- ** CallSetInfo
578 -- ** CallSetInfo
839 , CallSetInfo
579 , CallSetInfo
840 , callSetInfo
580 , callSetInfo
841
581
842− -- ** JobRequestType
582+ -- ** VariantSetMetadataInfo
843− , JobRequestType (..)
583+ , VariantSetMetadataInfo
844−
584+ , variantSetMetadataInfo
845− -- ** RangePosition
585+
846− , RangePosition
586+ -- ** OperationResponse
847− , rangePosition
587+ , OperationResponse
848− , rpStart
588+ , operationResponse
849− , rpReverseStrand
589+
850− , rpReferenceId
590+ -- ** OperationEvent
851− , rpReferenceName
591+ , OperationEvent
852− , rpEnd
592+ , operationEvent
853−
593+ , oeDescription
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
872
594
873 -- ** ReferenceBound
595 -- ** ReferenceBound
874 , ReferenceBound
596 , ReferenceBound
@@ -876,6 +598,16 @@ module Network.Google.Genomics
876 , rbUpperBound
598 , rbUpperBound
877 , rbReferenceName
599 , rbReferenceName
878
600
601+ -- ** UndeleteDatasetRequest
602+ , UndeleteDatasetRequest
603+ , undeleteDatasetRequest
604+
605+ -- ** Binding
606+ , Binding
607+ , binding
608+ , bMembers
609+ , bRole
610+
879 -- ** Position
611 -- ** Position
880 , Position
612 , Position
881 , position
613 , position
@@ -908,38 +640,24 @@ module Network.Google.Genomics
908
640
909import Network.Google.Genomics.Types
641import Network.Google.Genomics.Types
910import Network.Google.Prelude
642import 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
924import Network.Google.Resource.Genomics.Callsets.Create
643import Network.Google.Resource.Genomics.Callsets.Create
925import Network.Google.Resource.Genomics.Callsets.Delete
644import Network.Google.Resource.Genomics.Callsets.Delete
926import Network.Google.Resource.Genomics.Callsets.Get
645import Network.Google.Resource.Genomics.Callsets.Get
927import Network.Google.Resource.Genomics.Callsets.Patch
646import Network.Google.Resource.Genomics.Callsets.Patch
928import Network.Google.Resource.Genomics.Callsets.Search
647import Network.Google.Resource.Genomics.Callsets.Search
929−import Network.Google.Resource.Genomics.Callsets.Update
930import Network.Google.Resource.Genomics.Datasets.Create
648import Network.Google.Resource.Genomics.Datasets.Create
931import Network.Google.Resource.Genomics.Datasets.Delete
649import Network.Google.Resource.Genomics.Datasets.Delete
932import Network.Google.Resource.Genomics.Datasets.Get
650import Network.Google.Resource.Genomics.Datasets.Get
651+import Network.Google.Resource.Genomics.Datasets.GetIAMPolicy
933import Network.Google.Resource.Genomics.Datasets.List
652import Network.Google.Resource.Genomics.Datasets.List
934import Network.Google.Resource.Genomics.Datasets.Patch
653import Network.Google.Resource.Genomics.Datasets.Patch
654+import Network.Google.Resource.Genomics.Datasets.SetIAMPolicy
655+import Network.Google.Resource.Genomics.Datasets.TestIAMPermissions
935import Network.Google.Resource.Genomics.Datasets.Undelete
656import Network.Google.Resource.Genomics.Datasets.Undelete
936−import Network.Google.Resource.Genomics.Datasets.Update
657+import Network.Google.Resource.Genomics.Operations.Cancel
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
658+import Network.Google.Resource.Genomics.Operations.Delete
659+import Network.Google.Resource.Genomics.Operations.Get
940−import Network.Google.Resource.Genomics.Jobs.Search
660+import Network.Google.Resource.Genomics.Operations.List
941−import Network.Google.Resource.Genomics.Readgroupsets.Align
942−import Network.Google.Resource.Genomics.Readgroupsets.Call
943import Network.Google.Resource.Genomics.Readgroupsets.Coveragebuckets.List
661import Network.Google.Resource.Genomics.Readgroupsets.Coveragebuckets.List
944import Network.Google.Resource.Genomics.Readgroupsets.Delete
662import Network.Google.Resource.Genomics.Readgroupsets.Delete
945import Network.Google.Resource.Genomics.Readgroupsets.Export
663import Network.Google.Resource.Genomics.Readgroupsets.Export
@@ -947,7 +665,6 @@ import Network.Google.Resource.Genomics.Readgroupsets.Get
947import Network.Google.Resource.Genomics.Readgroupsets.Import
665import Network.Google.Resource.Genomics.Readgroupsets.Import
948import Network.Google.Resource.Genomics.Readgroupsets.Patch
666import Network.Google.Resource.Genomics.Readgroupsets.Patch
949import Network.Google.Resource.Genomics.Readgroupsets.Search
667import Network.Google.Resource.Genomics.Readgroupsets.Search
950−import Network.Google.Resource.Genomics.Readgroupsets.Update
951import Network.Google.Resource.Genomics.Reads.Search
668import Network.Google.Resource.Genomics.Reads.Search
952import Network.Google.Resource.Genomics.References.Bases.List
669import Network.Google.Resource.Genomics.References.Bases.List
953import Network.Google.Resource.Genomics.References.Get
670import Network.Google.Resource.Genomics.References.Get
@@ -957,17 +674,15 @@ import Network.Google.Resource.Genomics.Referencesets.Search
957import Network.Google.Resource.Genomics.Variants.Create
674import Network.Google.Resource.Genomics.Variants.Create
958import Network.Google.Resource.Genomics.Variants.Delete
675import Network.Google.Resource.Genomics.Variants.Delete
959import Network.Google.Resource.Genomics.Variants.Get
676import Network.Google.Resource.Genomics.Variants.Get
677+import Network.Google.Resource.Genomics.Variants.Import
678+import Network.Google.Resource.Genomics.Variants.Patch
960import Network.Google.Resource.Genomics.Variants.Search
679import Network.Google.Resource.Genomics.Variants.Search
961−import Network.Google.Resource.Genomics.Variants.Update
962import Network.Google.Resource.Genomics.Variantsets.Create
680import Network.Google.Resource.Genomics.Variantsets.Create
963import Network.Google.Resource.Genomics.Variantsets.Delete
681import Network.Google.Resource.Genomics.Variantsets.Delete
964import Network.Google.Resource.Genomics.Variantsets.Export
682import Network.Google.Resource.Genomics.Variantsets.Export
965import Network.Google.Resource.Genomics.Variantsets.Get
683import Network.Google.Resource.Genomics.Variantsets.Get
966−import Network.Google.Resource.Genomics.Variantsets.ImportVariants
967−import Network.Google.Resource.Genomics.Variantsets.MergeVariants
968import Network.Google.Resource.Genomics.Variantsets.Patch
684import Network.Google.Resource.Genomics.Variantsets.Patch
969import Network.Google.Resource.Genomics.Variantsets.Search
685import Network.Google.Resource.Genomics.Variantsets.Search
970−import Network.Google.Resource.Genomics.Variantsets.Update
971
686
972{- $resources
687{- $resources
973TODO
688TODO
@@ -975,49 +690,27 @@ TODO
975
690
976-- | Represents the entirety of the methods and resources available for the Genomics API service.
691-- | Represents the entirety of the methods and resources available for the Genomics API service.
977type GenomicsAPI =
692type GenomicsAPI =
978− AnnotationsPatchResource :<|> AnnotationsGetResource
979− :<|> AnnotationsCreateResource
980− :<|> AnnotationsBatchCreateResource
981− :<|> AnnotationsSearchResource
982− :<|> AnnotationsDeleteResource
983− :<|> AnnotationsUpdateResource
984− :<|> VariantsGetResource
693+ VariantsPatchResource :<|> VariantsGetResource :<|>
985− :<|> VariantsCreateResource
694+ VariantsCreateResource
695+ :<|> VariantsImportResource
986 :<|> VariantsSearchResource
696 :<|> VariantsSearchResource
987 :<|> VariantsDeleteResource
697 :<|> VariantsDeleteResource
988− :<|> VariantsUpdateResource
989 :<|> ReferencesBasesListResource
698 :<|> ReferencesBasesListResource
990 :<|> ReferencesGetResource
699 :<|> ReferencesGetResource
991 :<|> ReferencesSearchResource
700 :<|> ReferencesSearchResource
992 :<|> VariantsetsExportResource
701 :<|> VariantsetsExportResource
993 :<|> VariantsetsPatchResource
702 :<|> VariantsetsPatchResource
994 :<|> VariantsetsGetResource
703 :<|> VariantsetsGetResource
995− :<|> VariantsetsMergeVariantsResource
996 :<|> VariantsetsCreateResource
704 :<|> VariantsetsCreateResource
997 :<|> VariantsetsSearchResource
705 :<|> VariantsetsSearchResource
998 :<|> VariantsetsDeleteResource
706 :<|> 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
1011 :<|> ReadgroupsetsCoveragebucketsListResource
707 :<|> ReadgroupsetsCoveragebucketsListResource
1012 :<|> ReadgroupsetsExportResource
708 :<|> ReadgroupsetsExportResource
1013− :<|> ReadgroupsetsCallResource
1014 :<|> ReadgroupsetsPatchResource
709 :<|> ReadgroupsetsPatchResource
1015 :<|> ReadgroupsetsGetResource
710 :<|> ReadgroupsetsGetResource
1016 :<|> ReadgroupsetsImportResource
711 :<|> ReadgroupsetsImportResource
1017− :<|> ReadgroupsetsAlignResource
1018 :<|> ReadgroupsetsSearchResource
712 :<|> ReadgroupsetsSearchResource
1019 :<|> ReadgroupsetsDeleteResource
713 :<|> ReadgroupsetsDeleteResource
1020− :<|> ReadgroupsetsUpdateResource
1021 :<|> ReferencesetsGetResource
714 :<|> ReferencesetsGetResource
1022 :<|> ReferencesetsSearchResource
715 :<|> ReferencesetsSearchResource
1023 :<|> CallsetsPatchResource
716 :<|> CallsetsPatchResource
@@ -1025,12 +718,17 @@ type GenomicsAPI =
1025 :<|> CallsetsCreateResource
718 :<|> CallsetsCreateResource
1026 :<|> CallsetsSearchResource
719 :<|> CallsetsSearchResource
1027 :<|> CallsetsDeleteResource
720 :<|> CallsetsDeleteResource
1028− :<|> CallsetsUpdateResource
721+ :<|> OperationsListResource
722+ :<|> OperationsGetResource
723+ :<|> OperationsCancelResource
724+ :<|> OperationsDeleteResource
1029 :<|> ReadsSearchResource
725 :<|> ReadsSearchResource
1030 :<|> DatasetsListResource
726 :<|> DatasetsListResource
1031 :<|> DatasetsUndeleteResource
727 :<|> DatasetsUndeleteResource
728+ :<|> DatasetsGetIAMPolicyResource
1032 :<|> DatasetsPatchResource
729 :<|> DatasetsPatchResource
1033 :<|> DatasetsGetResource
730 :<|> DatasetsGetResource
1034 :<|> DatasetsCreateResource
731 :<|> DatasetsCreateResource
732+ :<|> DatasetsSetIAMPolicyResource
733+ :<|> DatasetsTestIAMPermissionsResource
1035 :<|> DatasetsDeleteResource
734 :<|> DatasetsDeleteResource
1036− :<|> DatasetsUpdateResource
gogol-genomics/gen/Network/Google/Genomics/Types.hs+142−360
@@ -18,42 +18,20 @@ module Network.Google.Genomics.Types
18 -- * Service Request
18 -- * Service Request
19 genomicsRequest
19 genomicsRequest
20
20
21− -- * FastqMetadata
22− , FastqMetadata
23− , fastqMetadata
24− , fmPlatformUnit
25− , fmReadGroupName
26− , fmLibraryName
27− , fmPlatformName
28− , fmSampleName
29−
30− -- * CallInfo
31− , CallInfo
32− , callInfo
33−
34 -- * ReadInfo
21 -- * ReadInfo
35 , ReadInfo
22 , ReadInfo
36 , readInfo
23 , readInfo
37
24
38− -- * ReadGroupExperiment
25+ -- * Status
39− , ReadGroupExperiment
26+ , Status
40− , readGroupExperiment
27+ , status
41− , rgeInstrumentModel
28+ , sDetails
42− , rgePlatformUnit
29+ , sCode
43− , rgeSequencingCenter
30+ , sMessage
44− , rgeLibraryId
45−
46− -- * KeyValue
47− , KeyValue
48− , keyValue
49− , kvValue
50− , kvKey
51−
52− -- * SearchAnnotationSetsRequestTypesItem
53− , SearchAnnotationSetsRequestTypesItem (..)
54
31
55− -- * VariantAnnotationEffect
32+ -- * OperationSchema
56− , VariantAnnotationEffect (..)
33+ , OperationSchema
34+ , operationSchema
57
35
58 -- * Variant
36 -- * Variant
59 , Variant
37 , Variant
@@ -72,37 +50,6 @@ module Network.Google.Genomics.Types
72 , vInfo
50 , vInfo
73 , vCalls
51 , vCalls
74
52
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−
106 -- * ListBasesResponse
53 -- * ListBasesResponse
107 , ListBasesResponse
54 , ListBasesResponse
108 , listBasesResponse
55 , listBasesResponse
@@ -110,13 +57,26 @@ module Network.Google.Genomics.Types
110 , lbrOffset
57 , lbrOffset
111 , lbrSequence
58 , lbrSequence
112
59
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+
113 -- * Dataset
74 -- * Dataset
114 , Dataset
75 , Dataset
115 , dataset
76 , dataset
116− , dIsPublic
117− , dProjectNumber
118 , dName
77 , dName
119 , dId
78 , dId
79+ , dProjectId
120 , dCreateTime
80 , dCreateTime
121
81
122 -- * Read'
82 -- * Read'
@@ -140,40 +100,15 @@ module Network.Google.Genomics.Types
140 , rReadNumber
100 , rReadNumber
141 , rAlignedQuality
101 , rAlignedQuality
142
102
143− -- * TranscriptExon
103+ -- * VariantCall
144− , TranscriptExon
104+ , VariantCall
145− , transcriptExon
105+ , variantCall
146− , teStart
106+ , vcGenotypeLikelihood
147− , teEnd
107+ , vcCallSetName
148− , teFrame
108+ , vcPhaseset
149−
109+ , vcCallSetId
150− -- * Call
110+ , vcGenotype
151− , Call
111+ , vcInfo
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
177
112
178 -- * ReadGroup
113 -- * ReadGroup
179 , ReadGroup
114 , ReadGroup
@@ -189,8 +124,14 @@ module Network.Google.Genomics.Types
189 , rgDescription
124 , rgDescription
190 , rgInfo
125 , rgInfo
191
126
192− -- * MetadataType
127+ -- * Operation
193− , MetadataType (..)
128+ , Operation
129+ , operation
130+ , oDone
131+ , oError
132+ , oResponse
133+ , oName
134+ , oMetadata
194
135
195 -- * SearchReferenceSetsRequest
136 -- * SearchReferenceSetsRequest
196 , SearchReferenceSetsRequest
137 , SearchReferenceSetsRequest
@@ -201,8 +142,9 @@ module Network.Google.Genomics.Types
201 , srsrAssemblyId
142 , srsrAssemblyId
202 , srsrPageSize
143 , srsrPageSize
203
144
204− -- * AnnotationSetType
145+ -- * Empty
205− , AnnotationSetType (..)
146+ , Empty
147+ , empty
206
148
207 -- * SearchReferencesResponse
149 -- * SearchReferencesResponse
208 , SearchReferencesResponse
150 , SearchReferencesResponse
@@ -210,6 +152,17 @@ module Network.Google.Genomics.Types
210 , srrNextPageToken
152 , srrNextPageToken
211 , srrReferences
153 , srrReferences
212
154
155+ -- * VariantSetMetadata
156+ , VariantSetMetadata
157+ , variantSetMetadata
158+ , vsmValue
159+ , vsmKey
160+ , vsmId
161+ , vsmType
162+ , vsmNumber
163+ , vsmDescription
164+ , vsmInfo
165+
213 -- * CallSet
166 -- * CallSet
214 , CallSet
167 , CallSet
215 , callSet
168 , callSet
@@ -226,20 +179,6 @@ module Network.Google.Genomics.Types
226 , cbRange
179 , cbRange
227 , cbMeanCoverage
180 , cbMeanCoverage
228
181
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−
243 -- * SearchReadGroupSetsRequest
182 -- * SearchReadGroupSetsRequest
244 , SearchReadGroupSetsRequest
183 , SearchReadGroupSetsRequest
245 , searchReadGroupSetsRequest
184 , searchReadGroupSetsRequest
@@ -248,12 +187,6 @@ module Network.Google.Genomics.Types
248 , srgsrPageToken
187 , srgsrPageToken
249 , srgsrPageSize
188 , srgsrPageSize
250
189
251− -- * BatchAnnotationsResponseEntryStatus
252− , BatchAnnotationsResponseEntryStatus
253− , batchAnnotationsResponseEntryStatus
254− , baresCode
255− , baresMessage
256−
257 -- * Reference
190 -- * Reference
258 , Reference
191 , Reference
259 , reference
192 , reference
@@ -265,24 +198,17 @@ module Network.Google.Genomics.Types
265 , refId
198 , refId
266 , refSourceURI
199 , refSourceURI
267
200
268− -- * BatchAnnotationsResponse
201+ -- * VariantCallInfo
269− , BatchAnnotationsResponse
202+ , VariantCallInfo
270− , batchAnnotationsResponse
203+ , variantCallInfo
271− , barEntries
272
204
273 -- * ReadGroupInfo
205 -- * ReadGroupInfo
274 , ReadGroupInfo
206 , ReadGroupInfo
275 , readGroupInfo
207 , readGroupInfo
276
208
277− -- * SearchJobsRequest
209+ -- * StatusDetailsItem
278− , SearchJobsRequest
210+ , StatusDetailsItem
279− , searchJobsRequest
211+ , statusDetailsItem
280− , sjrCreatedAfter
281− , sjrStatus
282− , sjrProjectNumber
283− , sjrPageToken
284− , sjrPageSize
285− , sjrCreatedBefore
286
212
287 -- * SearchCallSetsResponse
213 -- * SearchCallSetsResponse
288 , SearchCallSetsResponse
214 , SearchCallSetsResponse
@@ -290,22 +216,10 @@ module Network.Google.Genomics.Types
290 , scsrNextPageToken
216 , scsrNextPageToken
291 , scsrCallSets
217 , scsrCallSets
292
218
293− -- * ExperimentalCreateJobRequest
219+ -- * SetIAMPolicyRequest
294− , ExperimentalCreateJobRequest
220+ , SetIAMPolicyRequest
295− , experimentalCreateJobRequest
221+ , setIAMPolicyRequest
296− , ecjrGcsOutputPath
222+ , siprPolicy
297− , ecjrProjectNumber
298− , ecjrAlign
299− , ecjrSourceURIs
300− , ecjrPairedSourceURIs
301− , ecjrCallVariants
302−
303− -- * JobRequest
304− , JobRequest
305− , jobRequest
306− , jrDestination
307− , jrSource
308− , jrType
309
223
310 -- * SearchReadsRequest
224 -- * SearchReadsRequest
311 , SearchReadsRequest
225 , SearchReadsRequest
@@ -318,10 +232,22 @@ module Network.Google.Genomics.Types
318 , srrPageSize
232 , srrPageSize
319 , srrReadGroupSetIds
233 , srrReadGroupSetIds
320
234
235+ -- * OperationMetadataRequest
236+ , OperationMetadataRequest
237+ , operationMetadataRequest
238+
321 -- * VariantInfo
239 -- * VariantInfo
322 , VariantInfo
240 , VariantInfo
323 , variantInfo
241 , variantInfo
324
242
243+ -- * Experiment
244+ , Experiment
245+ , experiment
246+ , eInstrumentModel
247+ , ePlatformUnit
248+ , eSequencingCenter
249+ , eLibraryId
250+
325 -- * SearchVariantSetsRequest
251 -- * SearchVariantSetsRequest
326 , SearchVariantSetsRequest
252 , SearchVariantSetsRequest
327 , searchVariantSetsRequest
253 , searchVariantSetsRequest
@@ -329,62 +255,12 @@ module Network.Google.Genomics.Types
329 , svsrPageToken
255 , svsrPageToken
330 , svsrPageSize
256 , svsrPageSize
331
257
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−
377 -- * SearchVariantsResponse
258 -- * SearchVariantsResponse
378 , SearchVariantsResponse
259 , SearchVariantsResponse
379 , searchVariantsResponse
260 , searchVariantsResponse
380 , svrVariants
261 , svrVariants
381 , svrNextPageToken
262 , svrNextPageToken
382
263
383− -- * ExperimentalCreateJobResponse
384− , ExperimentalCreateJobResponse
385− , experimentalCreateJobResponse
386− , ecjrJobId
387−
388 -- * SearchCallSetsRequest
264 -- * SearchCallSetsRequest
389 , SearchCallSetsRequest
265 , SearchCallSetsRequest
390 , searchCallSetsRequest
266 , searchCallSetsRequest
@@ -399,12 +275,14 @@ module Network.Google.Genomics.Types
399 , sNextPageToken
275 , sNextPageToken
400 , sAlignments
276 , sAlignments
401
277
402− -- * PairedFastqSource
278+ -- * Program
403− , PairedFastqSource
279+ , Program
404− , pairedFastqSource
280+ , program
405− , pfsFirstSourceURIs
281+ , pPrevProgramId
406− , pfsMetadata
282+ , pName
407− , pfsSecondSourceURIs
283+ , pVersion
284+ , pId
285+ , pCommandLine
408
286
409 -- * SearchReferencesRequest
287 -- * SearchReferencesRequest
410 , SearchReferencesRequest
288 , SearchReferencesRequest
@@ -415,9 +293,6 @@ module Network.Google.Genomics.Types
415 , sPageToken
293 , sPageToken
416 , sPageSize
294 , sPageSize
417
295
418− -- * AnnotationType
419− , AnnotationType (..)
420−
421 -- * SearchReferenceSetsResponse
296 -- * SearchReferenceSetsResponse
422 , SearchReferenceSetsResponse
297 , SearchReferenceSetsResponse
423 , searchReferenceSetsResponse
298 , searchReferenceSetsResponse
@@ -442,36 +317,17 @@ module Network.Google.Genomics.Types
442 , rgsReadGroups
317 , rgsReadGroups
443 , rgsFilename
318 , rgsFilename
444
319
445− -- * Job
320+ -- * ExportReadGroupSetRequest
446− , Job
321+ , ExportReadGroupSetRequest
447− , job
322+ , exportReadGroupSetRequest
448− , jDetailedStatus
323+ , ergsrReferenceNames
449− , jStatus
324+ , ergsrExportURI
450− , jCreated
325+ , ergsrProjectId
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 (..)
470
326
471 -- * ImportVariantsResponse
327 -- * ImportVariantsResponse
472 , ImportVariantsResponse
328 , ImportVariantsResponse
473 , importVariantsResponse
329 , importVariantsResponse
474− , ivrJobId
330+ , ivrCallSetIds
475
331
476 -- * ListCoverageBucketsResponse
332 -- * ListCoverageBucketsResponse
477 , ListCoverageBucketsResponse
333 , ListCoverageBucketsResponse
@@ -480,10 +336,15 @@ module Network.Google.Genomics.Types
480 , lcbrBucketWidth
336 , lcbrBucketWidth
481 , lcbrCoverageBuckets
337 , lcbrCoverageBuckets
482
338
339+ -- * TestIAMPermissionsRequest
340+ , TestIAMPermissionsRequest
341+ , testIAMPermissionsRequest
342+ , tiprPermissions
343+
483 -- * ImportReadGroupSetsResponse
344 -- * ImportReadGroupSetsResponse
484 , ImportReadGroupSetsResponse
345 , ImportReadGroupSetsResponse
485 , importReadGroupSetsResponse
346 , importReadGroupSetsResponse
486− , irgsrJobId
347+ , irgsrReadGroupSetIds
487
348
488 -- * LinearAlignment
349 -- * LinearAlignment
489 , LinearAlignment
350 , LinearAlignment
@@ -492,33 +353,6 @@ module Network.Google.Genomics.Types
492 , laMAppingQuality
353 , laMAppingQuality
493 , laPosition
354 , laPosition
494
355
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−
522 -- * VariantSet
356 -- * VariantSet
523 , VariantSet
357 , VariantSet
524 , variantSet
358 , variantSet
@@ -527,8 +361,10 @@ module Network.Google.Genomics.Types
527 , vsMetadata
361 , vsMetadata
528 , vsId
362 , vsId
529
363
530− -- * CigarUnitOperation
364+ -- * TestIAMPermissionsResponse
531− , CigarUnitOperation (..)
365+ , TestIAMPermissionsResponse
366+ , testIAMPermissionsResponse
367+ , tiamprPermissions
532
368
533 -- * ListDatasetsResponse
369 -- * ListDatasetsResponse
534 , ListDatasetsResponse
370 , ListDatasetsResponse
@@ -547,16 +383,11 @@ module Network.Google.Genomics.Types
547 -- * ImportVariantsRequest
383 -- * ImportVariantsRequest
548 , ImportVariantsRequest
384 , ImportVariantsRequest
549 , importVariantsRequest
385 , importVariantsRequest
386+ , ivrVariantSetId
550 , ivrFormat
387 , ivrFormat
551 , ivrNormalizeReferenceNames
388 , ivrNormalizeReferenceNames
552 , ivrSourceURIs
389 , ivrSourceURIs
553
390
554− -- * ExternalId
555− , ExternalId
556− , externalId
557− , eiSourceName
558− , eiId
559−
560 -- * CigarUnit
391 -- * CigarUnit
561 , CigarUnit
392 , CigarUnit
562 , cigarUnit
393 , cigarUnit
@@ -564,14 +395,12 @@ module Network.Google.Genomics.Types
564 , cuOperationLength
395 , cuOperationLength
565 , cuReferenceSequence
396 , cuReferenceSequence
566
397
567− -- * AlignReadGroupSetsRequest
398+ -- * Policy
568− , AlignReadGroupSetsRequest
399+ , Policy
569− , alignReadGroupSetsRequest
400+ , policy
570− , argsrInterleavedFastqSource
401+ , polEtag
571− , argsrReadGroupSetId
402+ , polVersion
572− , argsrBamSourceURIs
403+ , polBindings
573− , argsrPairedFastqSource
574− , argsrDatasetId
575
404
576 -- * ExportVariantSetRequest
405 -- * ExportVariantSetRequest
577 , ExportVariantSetRequest
406 , ExportVariantSetRequest
@@ -579,34 +408,16 @@ module Network.Google.Genomics.Types
579 , evsrBigQueryDataset
408 , evsrBigQueryDataset
580 , evsrBigQueryTable
409 , evsrBigQueryTable
581 , evsrFormat
410 , evsrFormat
582− , evsrProjectNumber
583 , evsrCallSetIds
411 , evsrCallSetIds
412+ , evsrProjectId
584
413
585− -- * VariantAnnotationType
414+ -- * OperationMetadata
586− , VariantAnnotationType (..)
415+ , OperationMetadata
587−
416+ , operationMetadata
588− -- * ExportReadGroupSetsResponse
417+ , omEvents
589− , ExportReadGroupSetsResponse
418+ , omProjectId
590− , exportReadGroupSetsResponse
419+ , omCreateTime
591− , ergsrJobId
420+ , omRequest
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
610
421
611 -- * SearchVariantSetsResponse
422 -- * SearchVariantSetsResponse
612 , SearchVariantSetsResponse
423 , SearchVariantSetsResponse
@@ -627,61 +438,22 @@ module Network.Google.Genomics.Types
627 , svrVariantSetIds
438 , svrVariantSetIds
628 , svrPageSize
439 , svrPageSize
629
440
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−
651 -- * CallSetInfo
441 -- * CallSetInfo
652 , CallSetInfo
442 , CallSetInfo
653 , callSetInfo
443 , callSetInfo
654
444
655− -- * JobRequestType
445+ -- * VariantSetMetadataInfo
656− , JobRequestType (..)
446+ , VariantSetMetadataInfo
657−
447+ , variantSetMetadataInfo
658− -- * RangePosition
448+
659− , RangePosition
449+ -- * OperationResponse
660− , rangePosition
450+ , OperationResponse
661− , rpStart
451+ , operationResponse
662− , rpReverseStrand
452+
663− , rpReferenceId
453+ -- * OperationEvent
664− , rpReferenceName
454+ , OperationEvent
665− , rpEnd
455+ , operationEvent
666−
456+ , oeDescription
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
685
457
686 -- * ReferenceBound
458 -- * ReferenceBound
687 , ReferenceBound
459 , ReferenceBound
@@ -689,6 +461,16 @@ module Network.Google.Genomics.Types
689 , rbUpperBound
461 , rbUpperBound
690 , rbReferenceName
462 , rbReferenceName
691
463
464+ -- * UndeleteDatasetRequest
465+ , UndeleteDatasetRequest
466+ , undeleteDatasetRequest
467+
468+ -- * Binding
469+ , Binding
470+ , binding
471+ , bMembers
472+ , bRole
473+
692 -- * Position
474 -- * Position
693 , Position
475 , Position
694 , position
476 , position
@@ -723,8 +505,8 @@ import Network.Google.Genomics.Types.Product
723import Network.Google.Genomics.Types.Sum
505import Network.Google.Genomics.Types.Sum
724import Network.Google.Prelude
506import Network.Google.Prelude
725
507
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.
727genomicsRequest :: RequestBuilder
509genomicsRequest :: RequestBuilder
728genomicsRequest
510genomicsRequest
729− = defaultRequest "https://www.googleapis.com/"
511+ = defaultRequest "https://genomics.googleapis.com/"
730− "genomics/v1beta2/"
512+ ""
gogol-genomics/gen/Network/Google/Genomics/Types/Product.hs+1331−2986
@@ -20,112 +20,8 @@ module Network.Google.Genomics.Types.Product where
20import Network.Google.Genomics.Types.Sum
20import Network.Google.Genomics.Types.Sum
21import Network.Google.Prelude
21import Network.Google.Prelude
22
22
23−--
23+-- | A map of additional read alignment information. This must be of the form
24−-- /See:/ 'fastqMetadata' smart constructor.
24+-- map (string key mapping to a list of string values).
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.
129--
25--
130-- /See:/ 'readInfo' smart constructor.
26-- /See:/ 'readInfo' smart constructor.
131data ReadInfo =
27data ReadInfo =
@@ -145,127 +41,122 @@ instance FromJSON ReadInfo where
145instance ToJSON ReadInfo where
41instance ToJSON ReadInfo where
146 toJSON = const emptyObject
42 toJSON = const emptyObject
147
43
148−--
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+--
149−-- /See:/ 'readGroupExperiment' smart constructor.
80+-- /See:/ 'status' smart constructor.
150−data ReadGroupExperiment = ReadGroupExperiment
81+data Status = Status
151− { _rgeInstrumentModel :: !(Maybe Text)
82+ { _sDetails :: !(Maybe [StatusDetailsItem])
152− , _rgePlatformUnit :: !(Maybe Text)
83+ , _sCode :: !(Maybe Int32)
153− , _rgeSequencingCenter :: !(Maybe Text)
154− , _rgeLibraryId :: !(Maybe Text)
84+ , _sMessage :: !(Maybe Text)
155 } deriving (Eq,Show,Data,Typeable,Generic)
85 } deriving (Eq,Show,Data,Typeable,Generic)
156
86
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.
158--
88--
159-- Use one of the following lenses to modify other fields as desired:
89-- Use one of the following lenses to modify other fields as desired:
160--
90--
161−-- * 'rgeInstrumentModel'
91+-- * 'sDetails'
162−--
163−-- * 'rgePlatformUnit'
164--
92--
165−-- * 'rgeSequencingCenter'
93+-- * 'sCode'
166--
94--
167−-- * 'rgeLibraryId'
95+-- * 'sMessage'
168−readGroupExperiment
96+status
169− :: ReadGroupExperiment
97+ :: Status
170−readGroupExperiment =
98+status =
171− ReadGroupExperiment
99+ Status
172− { _rgeInstrumentModel = Nothing
100+ { _sDetails = Nothing
173− , _rgePlatformUnit = Nothing
101+ , _sCode = Nothing
174− , _rgeSequencingCenter = Nothing
102+ , _sMessage = Nothing
175− , _rgeLibraryId = Nothing
176 }
103 }
177
104
178−-- | The instrument model used as part of this experiment. This maps to
105+-- | A list of messages that carry the error details. There will be a common
179−-- sequencing technology in BAM.
106+-- set of message types for APIs to use.
180−rgeInstrumentModel :: Lens' ReadGroupExperiment (Maybe Text)
107+sDetails :: Lens' Status [StatusDetailsItem]
181−rgeInstrumentModel
108+sDetails
182− = lens _rgeInstrumentModel
109+ = lens _sDetails (\ s a -> s{_sDetails = a}) .
183− (\ s a -> s{_rgeInstrumentModel = a})
110+ _Default
184−
111+ . _Coerce
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})
192
112
193−-- | The sequencing center used as part of this experiment.
113+-- | The status code, which should be an enum value of google.rpc.Code.
194−rgeSequencingCenter :: Lens' ReadGroupExperiment (Maybe Text)
114+sCode :: Lens' Status (Maybe Int32)
195−rgeSequencingCenter
115+sCode = lens _sCode (\ s a -> s{_sCode = a})
196− = lens _rgeSequencingCenter
197− (\ s a -> s{_rgeSequencingCenter = a})
198
116
199−-- | The library used as part of this experiment. Note: This is not an actual
117+-- | A developer-facing error message, which should be in English. Any
200−-- ID within this repository, but rather an identifier for a library which
118+-- user-facing error message should be localized and sent in the
201−-- may be meaningful to some external system.
119+-- google.rpc.Status.details field, or localized by the client.
202−rgeLibraryId :: Lens' ReadGroupExperiment (Maybe Text)
120+sMessage :: Lens' Status (Maybe Text)
203−rgeLibraryId
121+sMessage = lens _sMessage (\ s a -> s{_sMessage = a})
204− = lens _rgeLibraryId (\ s a -> s{_rgeLibraryId = a})
205
122
206−instance FromJSON ReadGroupExperiment where
123+instance FromJSON Status where
207 parseJSON
124 parseJSON
208− = withObject "ReadGroupExperiment"
125+ = withObject "Status"
209 (\ o ->
126 (\ o ->
210− ReadGroupExperiment <$>
127+ Status <$>
211− (o .:? "instrumentModel") <*> (o .:? "platformUnit")
128+ (o .:? "details" .!= mempty) <*> (o .:? "code") <*>
212− <*> (o .:? "sequencingCenter")
129+ (o .:? "message"))
213− <*> (o .:? "libraryId"))
214
130
215−instance ToJSON ReadGroupExperiment where
131+instance ToJSON Status where
216− toJSON ReadGroupExperiment{..}
132+ toJSON Status{..}
217 = object
133 = object
218 (catMaybes
134 (catMaybes
219− [("instrumentModel" .=) <$> _rgeInstrumentModel,
135+ [("details" .=) <$> _sDetails,
220− ("platformUnit" .=) <$> _rgePlatformUnit,
136+ ("code" .=) <$> _sCode,
221− ("sequencingCenter" .=) <$> _rgeSequencingCenter,
137+ ("message" .=) <$> _sMessage])
222− ("libraryId" .=) <$> _rgeLibraryId])
223
138
224−-- | Used to hold basic key value information.
139+-- | An OperationMetadata object. This will always be returned with the
140+-- Operation.
225--
141--
226−-- /See:/ 'keyValue' smart constructor.
142+-- /See:/ 'operationSchema' smart constructor.
227−data KeyValue = KeyValue
143+data OperationSchema =
228− { _kvValue :: !(Maybe [Text])
144+ OperationSchema
229− , _kvKey :: !(Maybe Text)
230− } deriving (Eq,Show,Data,Typeable,Generic)
145+ deriving (Eq,Show,Data,Typeable,Generic)
231
146
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.
233--
148--
234−-- Use one of the following lenses to modify other fields as desired:
149+operationSchema
235−--
150+ :: OperationSchema
236−-- * 'kvValue'
151+operationSchema = OperationSchema
237−--
238−-- * 'kvKey'
239−keyValue
240− :: KeyValue
241−keyValue =
242− KeyValue
243− { _kvValue = Nothing
244− , _kvKey = Nothing
245− }
246
152
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
258 parseJSON
154 parseJSON
259− = withObject "KeyValue"
155+ = withObject "OperationSchema"
260− (\ o ->
156+ (\ o -> pure OperationSchema)
261− KeyValue <$>
262− (o .:? "value" .!= mempty) <*> (o .:? "key"))
263
157
264−instance ToJSON KeyValue where
158+instance ToJSON OperationSchema where
265− toJSON KeyValue{..}
159+ toJSON = const emptyObject
266− = object
267− (catMaybes
268− [("value" .=) <$> _kvValue, ("key" .=) <$> _kvKey])
269
160
270-- | A variant represents a change in DNA sequence relative to a reference
161-- | A variant represents a change in DNA sequence relative to a reference
271-- sequence. For example, a variant could represent a SNP or an insertion.
162-- sequence. For example, a variant could represent a SNP or an insertion.
@@ -289,7 +180,7 @@ data Variant = Variant
289 , _vQuality :: !(Maybe Double)
180 , _vQuality :: !(Maybe Double)
290 , _vFilter :: !(Maybe [Text])
181 , _vFilter :: !(Maybe [Text])
291 , _vInfo :: !(Maybe VariantInfo)
182 , _vInfo :: !(Maybe VariantInfo)
292− , _vCalls :: !(Maybe [Call])
183+ , _vCalls :: !(Maybe [VariantCall])
293 } deriving (Eq,Show,Data,Typeable,Generic)
184 } deriving (Eq,Show,Data,Typeable,Generic)
294
185
295-- | Creates a value of 'Variant' with the minimum fields required to make a request.
186-- | Creates a value of 'Variant' with the minimum fields required to make a request.
@@ -363,7 +254,7 @@ vAlternateBases
363 . _Default
254 . _Default
364 . _Coerce
255 . _Coerce
365
256
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\`)
367vReferenceName :: Lens' Variant (Maybe Text)
258vReferenceName :: Lens' Variant (Maybe Text)
368vReferenceName
259vReferenceName
369 = lens _vReferenceName
260 = lens _vReferenceName
@@ -389,7 +280,7 @@ vReferenceBases
389 = lens _vReferenceBases
280 = lens _vReferenceBases
390 (\ s a -> s{_vReferenceBases = a})
281 (\ s a -> s{_vReferenceBases = a})
391
282
392−-- | The Google generated ID of the variant, immutable.
283+-- | The server-generated variant ID, unique across all variants.
393vId :: Lens' Variant (Maybe Text)
284vId :: Lens' Variant (Maybe Text)
394vId = lens _vId (\ s a -> s{_vId = a})
285vId = lens _vId (\ s a -> s{_vId = a})
395
286
@@ -399,19 +290,20 @@ vQuality :: Lens' Variant (Maybe Double)
399vQuality = lens _vQuality (\ s a -> s{_vQuality = a})
290vQuality = lens _vQuality (\ s a -> s{_vQuality = a})
400
291
401-- | A list of filters (normally quality filters) this variant has failed.
292-- | 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.
403vFilter :: Lens' Variant [Text]
294vFilter :: Lens' Variant [Text]
404vFilter
295vFilter
405 = lens _vFilter (\ s a -> s{_vFilter = a}) . _Default
296 = lens _vFilter (\ s a -> s{_vFilter = a}) . _Default
406 . _Coerce
297 . _Coerce
407
298
299+-- | A map of additional variant information. This must be of the form map
408−-- | A string which maps to an array of values.
300+-- (string key mapping to a list of string values).
409vInfo :: Lens' Variant (Maybe VariantInfo)
301vInfo :: Lens' Variant (Maybe VariantInfo)
410vInfo = lens _vInfo (\ s a -> s{_vInfo = a})
302vInfo = lens _vInfo (\ s a -> s{_vInfo = a})
411
303
412-- | The variant calls for this particular variant. Each one represents the
304-- | The variant calls for this particular variant. Each one represents the
413-- determination of genotype with respect to this variant.
305-- determination of genotype with respect to this variant.
414−vCalls :: Lens' Variant [Call]
306+vCalls :: Lens' Variant [VariantCall]
415vCalls
307vCalls
416 = lens _vCalls (\ s a -> s{_vCalls = a}) . _Default .
308 = lens _vCalls (\ s a -> s{_vCalls = a}) . _Default .
417 _Coerce
309 _Coerce
@@ -449,297 +341,6 @@ instance ToJSON Variant where
449 ("filter" .=) <$> _vFilter, ("info" .=) <$> _vInfo,
341 ("filter" .=) <$> _vFilter, ("info" .=) <$> _vInfo,
450 ("calls" .=) <$> _vCalls])
342 ("calls" .=) <$> _vCalls])
451
343
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−
743--
344--
744-- /See:/ 'listBasesResponse' smart constructor.
345-- /See:/ 'listBasesResponse' smart constructor.
745data ListBasesResponse = ListBasesResponse
346data ListBasesResponse = ListBasesResponse
@@ -775,9 +376,9 @@ lbrNextPageToken
775 = lens _lbrNextPageToken
376 = lens _lbrNextPageToken
776 (\ s a -> s{_lbrNextPageToken = a})
377 (\ s a -> s{_lbrNextPageToken = a})
777
378
778−-- | The offset position (0-based) of the given sequence from the start of
379+-- | The offset position (0-based) of the given \`sequence\` from the start
779−-- this Reference. This value will differ for each page in a paginated
380+-- of this \`Reference\`. This value will differ for each page in a
780−-- request.
381+-- paginated request.
781lbrOffset :: Lens' ListBasesResponse (Maybe Int64)
382lbrOffset :: Lens' ListBasesResponse (Maybe Int64)
782lbrOffset
383lbrOffset
783 = lens _lbrOffset (\ s a -> s{_lbrOffset = a})
384 = lens _lbrOffset (\ s a -> s{_lbrOffset = a})
@@ -803,64 +404,146 @@ instance ToJSON ListBasesResponse where
803 ("offset" .=) <$> _lbrOffset,
404 ("offset" .=) <$> _lbrOffset,
804 ("sequence" .=) <$> _lbrSequence])
405 ("sequence" .=) <$> _lbrSequence])
805
406
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+
806-- | A Dataset is a collection of genomic data.
501-- | A Dataset is a collection of genomic data.
807--
502--
808-- /See:/ 'dataset' smart constructor.
503-- /See:/ 'dataset' smart constructor.
809data Dataset = Dataset
504data Dataset = Dataset
810− { _dIsPublic :: !(Maybe Bool)
811− , _dProjectNumber :: !(Maybe Int64)
812− , _dName :: !(Maybe Text)
505+ { _dName :: !(Maybe Text)
506+ , _dId :: !(Maybe Text)
813− , _dId :: !(Maybe Text)
507+ , _dProjectId :: !(Maybe Text)
814− , _dCreateTime :: !(Maybe Int64)
508+ , _dCreateTime :: !(Maybe Text)
815 } deriving (Eq,Show,Data,Typeable,Generic)
509 } deriving (Eq,Show,Data,Typeable,Generic)
816
510
817-- | Creates a value of 'Dataset' with the minimum fields required to make a request.
511-- | Creates a value of 'Dataset' with the minimum fields required to make a request.
818--
512--
819-- Use one of the following lenses to modify other fields as desired:
513-- Use one of the following lenses to modify other fields as desired:
820--
514--
821−-- * 'dIsPublic'
822−--
823−-- * 'dProjectNumber'
824−--
825-- * 'dName'
515-- * 'dName'
826--
516--
827-- * 'dId'
517-- * 'dId'
828--
518--
519+-- * 'dProjectId'
520+--
829-- * 'dCreateTime'
521-- * 'dCreateTime'
830dataset
522dataset
831 :: Dataset
523 :: Dataset
832dataset =
524dataset =
833 Dataset
525 Dataset
834− { _dIsPublic = Nothing
835− , _dProjectNumber = Nothing
836− , _dName = Nothing
526+ { _dName = Nothing
837 , _dId = Nothing
527 , _dId = Nothing
528+ , _dProjectId = Nothing
838 , _dCreateTime = Nothing
529 , _dCreateTime = Nothing
839 }
530 }
840
531
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−
854-- | The dataset name.
532-- | The dataset name.
855dName :: Lens' Dataset (Maybe Text)
533dName :: Lens' Dataset (Maybe Text)
856dName = lens _dName (\ s a -> s{_dName = a})
534dName = lens _dName (\ s a -> s{_dName = a})
857
535
858−-- | The Google generated ID of the dataset, immutable.
536+-- | The server-generated dataset ID, unique across all datasets.
859dId :: Lens' Dataset (Maybe Text)
537dId :: Lens' Dataset (Maybe Text)
860dId = lens _dId (\ s a -> s{_dId = a})
538dId = lens _dId (\ s a -> s{_dId = a})
861
539
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+
862-- | The time this dataset was created, in seconds from the epoch.
545-- | The time this dataset was created, in seconds from the epoch.
863−dCreateTime :: Lens' Dataset (Maybe Int64)
546+dCreateTime :: Lens' Dataset (Maybe Text)
864dCreateTime
547dCreateTime
865 = lens _dCreateTime (\ s a -> s{_dCreateTime = a})
548 = lens _dCreateTime (\ s a -> s{_dCreateTime = a})
866
549
@@ -869,25 +552,23 @@ instance FromJSON Dataset where
869 = withObject "Dataset"
552 = withObject "Dataset"
870 (\ o ->
553 (\ o ->
871 Dataset <$>
554 Dataset <$>
872− (o .:? "isPublic") <*> (o .:? "projectNumber") <*>
873− (o .:? "name")
555+ (o .:? "name") <*> (o .:? "id") <*>
874− <*> (o .:? "id")
556+ (o .:? "projectId")
875 <*> (o .:? "createTime"))
557 <*> (o .:? "createTime"))
876
558
877instance ToJSON Dataset where
559instance ToJSON Dataset where
878 toJSON Dataset{..}
560 toJSON Dataset{..}
879 = object
561 = object
880 (catMaybes
562 (catMaybes
881− [("isPublic" .=) <$> _dIsPublic,
882− ("projectNumber" .=) <$> _dProjectNumber,
883− ("name" .=) <$> _dName, ("id" .=) <$> _dId,
563+ [("name" .=) <$> _dName, ("id" .=) <$> _dId,
564+ ("projectId" .=) <$> _dProjectId,
884 ("createTime" .=) <$> _dCreateTime])
565 ("createTime" .=) <$> _dCreateTime])
885
566
886-- | A read alignment describes a linear alignment of a string of DNA to a
567-- | A read alignment describes a linear alignment of a string of DNA to a
887-- reference sequence, in addition to metadata about the fragment (the
568-- reference sequence, in addition to metadata about the fragment (the
888-- molecule of DNA sequenced) and the read (the bases which were read by
569-- molecule of DNA sequenced) and the read (the bases which were read by
889-- the sequencer). A read is equivalent to a line in a SAM file. A read
570-- 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. ###
891-- Generating a reference-aligned sequence string When interacting with
572-- Generating a reference-aligned sequence string When interacting with
892-- mapped reads, it\'s often useful to produce a string representing the
573-- mapped reads, it\'s often useful to produce a string representing the
893-- local alignment of the read to reference. The following pseudocode
574-- local alignment of the read to reference. The following pseudocode
@@ -899,10 +580,10 @@ instance ToJSON Dataset where
899-- c.operationLength break case \"PAD\": out += repeat(\"*\",
580-- c.operationLength break case \"PAD\": out += repeat(\"*\",
900-- c.operationLength) break case \"DELETE\": out += repeat(\"-\",
581-- c.operationLength) break case \"DELETE\": out += repeat(\"-\",
901-- c.operationLength) break case \"SKIP\": out += repeat(\" \",
582-- 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 ###
903-- Converting to SAM\'s CIGAR string The following pseudocode generates a
584-- 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
585+-- SAM CIGAR string from the \`cigar\` field. Note that this is a lossy
905−-- conversion (cigar.referenceSequence is lost). cigarMap = {
586+-- conversion (\`cigar.referenceSequence\` is lost). cigarMap = {
906-- \"ALIGNMENT_MATCH\": \"M\", \"INSERT\": \"I\", \"DELETE\": \"D\",
587-- \"ALIGNMENT_MATCH\": \"M\", \"INSERT\": \"I\", \"DELETE\": \"D\",
907-- \"SKIP\": \"N\", \"CLIP_SOFT\": \"S\", \"CLIP_HARD\": \"H\", \"PAD\":
588-- \"SKIP\": \"N\", \"CLIP_SOFT\": \"S\", \"CLIP_HARD\": \"H\", \"PAD\":
908-- \"P\", \"SEQUENCE_MATCH\": \"=\", \"SEQUENCE_MISMATCH\": \"X\", }
589-- \"P\", \"SEQUENCE_MATCH\": \"=\", \"SEQUENCE_MISMATCH\": \"X\", }
@@ -1009,10 +690,9 @@ rReadGroupSetId
1009 = lens _rReadGroupSetId
690 = lens _rReadGroupSetId
1010 (\ s a -> s{_rReadGroupSetId = a})
691 (\ s a -> s{_rReadGroupSetId = a})
1011
692
1012−-- | The position of the primary alignment of the (readNumber+1)%numberReads
693+-- | The mapping of the primary alignment of the
694+-- \`(readNumber+1)%numberReads\` read in the fragment. It replaces mate
1013−-- read in the fragment. It replaces mate position and mate strand in SAM.
695+-- 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.
1016rNextMatePosition :: Lens' Read' (Maybe Position)
696rNextMatePosition :: Lens' Read' (Maybe Position)
1017rNextMatePosition
697rNextMatePosition
1018 = lens _rNextMatePosition
698 = lens _rNextMatePosition
@@ -1024,7 +704,7 @@ rFailedVendorQualityChecks
1024 = lens _rFailedVendorQualityChecks
704 = lens _rFailedVendorQualityChecks
1025 (\ s a -> s{_rFailedVendorQualityChecks = a})
705 (\ s a -> s{_rFailedVendorQualityChecks = a})
1026
706
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
1028-- if the read is unmapped.
708-- if the read is unmapped.
1029rAlignment :: Lens' Read' (Maybe LinearAlignment)
709rAlignment :: Lens' Read' (Maybe LinearAlignment)
1030rAlignment
710rAlignment
@@ -1041,8 +721,8 @@ rNumberReads :: Lens' Read' (Maybe Int32)
1041rNumberReads
721rNumberReads
1042 = lens _rNumberReads (\ s a -> s{_rNumberReads = a})
722 = lens _rNumberReads (\ s a -> s{_rNumberReads = a})
1043
723
1044−-- | The unique ID for this read. This is a generated unique ID, not to be
724+-- | The server-generated read ID, unique across all reads. This is different
1045−-- confused with fragmentName.
725+-- from the \`fragmentName\`.
1046rId :: Lens' Read' (Maybe Text)
726rId :: Lens' Read' (Maybe Text)
1047rId = lens _rId (\ s a -> s{_rId = a})
727rId = lens _rId (\ s a -> s{_rId = a})
1048
728
@@ -1050,8 +730,8 @@ rId = lens _rId (\ s a -> s{_rId = a})
1050-- secondary alignment represents an alternative to the primary alignment
730-- secondary alignment represents an alternative to the primary alignment
1051-- for this read. Aligners may return secondary alignments if a read can
731-- for this read. Aligners may return secondary alignments if a read can
1052-- map ambiguously to multiple coordinates in the genome. By convention,
732-- map ambiguously to multiple coordinates in the genome. By convention,
1053−-- each read has one and only one alignment where both secondaryAlignment
733+-- each read has one and only one alignment where both
1054−-- and supplementaryAlignment are false.
734+-- \`secondaryAlignment\` and \`supplementaryAlignment\` are false.
1055rSecondaryAlignment :: Lens' Read' (Maybe Bool)
735rSecondaryAlignment :: Lens' Read' (Maybe Bool)
1056rSecondaryAlignment
736rSecondaryAlignment
1057 = lens _rSecondaryAlignment
737 = lens _rSecondaryAlignment
@@ -1071,21 +751,21 @@ rReadGroupId
1071-- alignment; the remaining linear alignments will be designated as
751-- alignment; the remaining linear alignments will be designated as
1072-- supplementary alignments. These alignments may have different mapping
752-- supplementary alignments. These alignments may have different mapping
1073-- quality scores. In each linear alignment in a chimeric alignment, the
753-- quality scores. In each linear alignment in a chimeric alignment, the
1074−-- read will be hard clipped. The alignedSequence and alignedQuality fields
754+-- read will be hard clipped. The \`alignedSequence\` and
1075−-- in the alignment record will only represent the bases for its respective
755+-- \`alignedQuality\` fields in the alignment record will only represent
1076−-- linear alignment.
756+-- the bases for its respective linear alignment.
1077rSupplementaryAlignment :: Lens' Read' (Maybe Bool)
757rSupplementaryAlignment :: Lens' Read' (Maybe Bool)
1078rSupplementaryAlignment
758rSupplementaryAlignment
1079 = lens _rSupplementaryAlignment
759 = lens _rSupplementaryAlignment
1080 (\ s a -> s{_rSupplementaryAlignment = a})
760 (\ s a -> s{_rSupplementaryAlignment = a})
1081
761
1082-- | The bases of the read sequence contained in this alignment record,
762-- | The bases of the read sequence contained in this alignment record,
1083−-- without CIGAR operations applied. alignedSequence and alignedQuality may
763+-- *without CIGAR operations applied*. \`alignedSequence\` and
1084−-- be shorter than the full read sequence and quality. This will occur if
764+-- \`alignedQuality\` may be shorter than the full read sequence and
1085−-- the alignment is part of a chimeric alignment, or if the read was
765+-- quality. This will occur if the alignment is part of a chimeric
1086−-- trimmed. When this occurs, the CIGAR for this read will begin\/end with
766+-- alignment, or if the read was trimmed. When this occurs, the CIGAR for
1087−-- a hard clip operator that will indicate the length of the excised
767+-- this read will begin\/end with a hard clip operator that will indicate
1088−-- sequence.
768+-- the length of the excised sequence.
1089rAlignedSequence :: Lens' Read' (Maybe Text)
769rAlignedSequence :: Lens' Read' (Maybe Text)
1090rAlignedSequence
770rAlignedSequence
1091 = lens _rAlignedSequence
771 = lens _rAlignedSequence
@@ -1098,7 +778,8 @@ rProperPlacement
1098 = lens _rProperPlacement
778 = lens _rProperPlacement
1099 (\ s a -> s{_rProperPlacement = a})
779 (\ s a -> s{_rProperPlacement = a})
1100
780
781+-- | A map of additional read alignment information. This must be of the form
1101−-- | A string which maps to an array of values.
782+-- map (string key mapping to a list of string values).
1102rInfo :: Lens' Read' (Maybe ReadInfo)
783rInfo :: Lens' Read' (Maybe ReadInfo)
1103rInfo = lens _rInfo (\ s a -> s{_rInfo = a})
784rInfo = lens _rInfo (\ s a -> s{_rInfo = a})
1104
785
@@ -1109,8 +790,8 @@ rReadNumber
1109 = lens _rReadNumber (\ s a -> s{_rReadNumber = a})
790 = lens _rReadNumber (\ s a -> s{_rReadNumber = a})
1110
791
1111-- | The quality of the read sequence contained in this alignment record.
792-- | The quality of the read sequence contained in this alignment record.
1112−-- alignedSequence and alignedQuality may be shorter than the full read
793+-- \`alignedSequence\` and \`alignedQuality\` may be shorter than the full
1113−-- sequence and quality. This will occur if the alignment is part of a
794+-- read sequence and quality. This will occur if the alignment is part of a
1114-- chimeric alignment, or if the read was trimmed. When this occurs, the
795-- chimeric alignment, or if the read was trimmed. When this occurs, the
1115-- CIGAR for this read will begin\/end with a hard clip operator that will
796-- CIGAR for this read will begin\/end with a hard clip operator that will
1116-- indicate the length of the excised sequence.
797-- indicate the length of the excised sequence.
@@ -1168,112 +849,47 @@ instance ToJSON Read' where
1168 ("readNumber" .=) <$> _rReadNumber,
849 ("readNumber" .=) <$> _rReadNumber,
1169 ("alignedQuality" .=) <$> _rAlignedQuality])
850 ("alignedQuality" .=) <$> _rAlignedQuality])
1170
851
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−
1236-- | A call represents the determination of genotype with respect to a
852-- | A call represents the determination of genotype with respect to a
1237-- particular variant. It may include associated information such as
853-- particular variant. It may include associated information such as
1238-- quality and phasing. For example, a call might assign a probability of
854-- quality and phasing. For example, a call might assign a probability of
1239-- 0.32 to the occurrence of a SNP named rs1234 in a call set with the name
855-- 0.32 to the occurrence of a SNP named rs1234 in a call set with the name
1240-- NA12345.
856-- NA12345.
1241--
857--
1242−-- /See:/ 'call' smart constructor.
858+-- /See:/ 'variantCall' smart constructor.
1243−data Call = Call
859+data VariantCall = VariantCall
1244− { _cGenotypeLikelihood :: !(Maybe [Double])
860+ { _vcGenotypeLikelihood :: !(Maybe [Double])
1245− , _cCallSetName :: !(Maybe Text)
861+ , _vcCallSetName :: !(Maybe Text)
1246− , _cPhaseset :: !(Maybe Text)
862+ , _vcPhaseset :: !(Maybe Text)
1247− , _cCallSetId :: !(Maybe Text)
863+ , _vcCallSetId :: !(Maybe Text)
1248− , _cGenotype :: !(Maybe [Int32])
864+ , _vcGenotype :: !(Maybe [Int32])
1249− , _cInfo :: !(Maybe CallInfo)
865+ , _vcInfo :: !(Maybe VariantCallInfo)
1250 } deriving (Eq,Show,Data,Typeable,Generic)
866 } deriving (Eq,Show,Data,Typeable,Generic)
1251
867
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.
1253--
869--
1254-- Use one of the following lenses to modify other fields as desired:
870-- Use one of the following lenses to modify other fields as desired:
1255--
871--
1256−-- * 'cGenotypeLikelihood'
872+-- * 'vcGenotypeLikelihood'
1257--
873--
1258−-- * 'cCallSetName'
874+-- * 'vcCallSetName'
1259--
875--
1260−-- * 'cPhaseset'
876+-- * 'vcPhaseset'
1261--
877--
1262−-- * 'cCallSetId'
878+-- * 'vcCallSetId'
1263--
879--
1264−-- * 'cGenotype'
880+-- * 'vcGenotype'
1265--
881--
1266−-- * 'cInfo'
882+-- * 'vcInfo'
1267−call
883+variantCall
1268− :: Call
884+ :: VariantCall
1269−call =
885+variantCall =
1270− Call
886+ VariantCall
1271− { _cGenotypeLikelihood = Nothing
887+ { _vcGenotypeLikelihood = Nothing
1272− , _cCallSetName = Nothing
888+ , _vcCallSetName = Nothing
1273− , _cPhaseset = Nothing
889+ , _vcPhaseset = Nothing
1274− , _cCallSetId = Nothing
890+ , _vcCallSetId = Nothing
1275− , _cGenotype = Nothing
891+ , _vcGenotype = Nothing
1276− , _cInfo = Nothing
892+ , _vcInfo = Nothing
1277 }
893 }
1278
894
1279-- | The genotype likelihoods for this variant call. Each array entry
895-- | The genotype likelihoods for this variant call. Each array entry
@@ -1281,57 +897,60 @@ call =
1281-- ordering is defined by the GL tag in the VCF spec. If Phred-scaled
897-- ordering is defined by the GL tag in the VCF spec. If Phred-scaled
1282-- genotype likelihood scores (PL) are available and log10(P) genotype
898-- genotype likelihood scores (PL) are available and log10(P) genotype
1283-- likelihood scores (GL) are not, PL scores are converted to GL scores. If
899-- likelihood scores (GL) are not, PL scores are converted to GL scores. If
1284−-- both are available, PL scores are stored in info.
900+-- both are available, PL scores are stored in \`info\`.
1285−cGenotypeLikelihood :: Lens' Call [Double]
901+vcGenotypeLikelihood :: Lens' VariantCall [Double]
1286−cGenotypeLikelihood
902+vcGenotypeLikelihood
1287− = lens _cGenotypeLikelihood
903+ = lens _vcGenotypeLikelihood
1288− (\ s a -> s{_cGenotypeLikelihood = a})
904+ (\ s a -> s{_vcGenotypeLikelihood = a})
1289 . _Default
905 . _Default
1290 . _Coerce
906 . _Coerce
1291
907
1292-- | The name of the call set this variant call belongs to.
908-- | The name of the call set this variant call belongs to.
1293−cCallSetName :: Lens' Call (Maybe Text)
909+vcCallSetName :: Lens' VariantCall (Maybe Text)
1294−cCallSetName
910+vcCallSetName
1295− = lens _cCallSetName (\ s a -> s{_cCallSetName = a})
911+ = lens _vcCallSetName
912+ (\ s a -> s{_vcCallSetName = a})
1296
913
1297-- | If this field is present, this variant call\'s genotype ordering implies
914-- | If this field is present, this variant call\'s genotype ordering implies
1298-- the phase of the bases and is consistent with any other variant calls in
915-- the phase of the bases and is consistent with any other variant calls in
1299-- the same reference sequence which have the same phaseset value. When
916-- the same reference sequence which have the same phaseset value. When
1300-- importing data from VCF, if the genotype data was phased but no phase
917-- importing data from VCF, if the genotype data was phased but no phase
1301−-- set was specified this field will be set to *.
918+-- set was specified this field will be set to \`*\`.
1302−cPhaseset :: Lens' Call (Maybe Text)
919+vcPhaseset :: Lens' VariantCall (Maybe Text)
1303−cPhaseset
920+vcPhaseset
1304− = lens _cPhaseset (\ s a -> s{_cPhaseset = a})
921+ = lens _vcPhaseset (\ s a -> s{_vcPhaseset = a})
1305
922
1306-- | The ID of the call set this variant call belongs to.
923-- | The ID of the call set this variant call belongs to.
1307−cCallSetId :: Lens' Call (Maybe Text)
924+vcCallSetId :: Lens' VariantCall (Maybe Text)
1308−cCallSetId
925+vcCallSetId
1309− = lens _cCallSetId (\ s a -> s{_cCallSetId = a})
926+ = lens _vcCallSetId (\ s a -> s{_vcCallSetId = a})
1310
927
1311-- | The genotype of this variant call. Each value represents either the
928-- | The genotype of this variant call. Each value represents either the
1312−-- value of the referenceBases field or a 1-based index into
929+-- value of the \`referenceBases\` field or a 1-based index into
1313−-- alternateBases. If a variant had a referenceBases value of T and an
930+-- \`alternateBases\`. If a variant had a \`referenceBases\` value of \`T\`
1314−-- alternateBases value of [\"A\", \"C\"], and the genotype was [2, 1],
931+-- and an \`alternateBases\` value of \`[\"A\", \"C\"]\`, and the
1315−-- that would mean the call represented the heterozygous value CA for this
932+-- \`genotype\` was \`[2, 1]\`, that would mean the call represented the
933+-- heterozygous value \`CA\` for this variant. If the \`genotype\` was
1316−-- variant. If the genotype was instead [0, 1], the represented value would
934+-- instead \`[0, 1]\`, the represented value would be \`TA\`. Ordering of
1317−-- be TA. Ordering of the genotype values is important if the phaseset is
935+-- the genotype values is important if the \`phaseset\` is present. If a
1318−-- present. If a genotype is not called (that is, a . is present in the GT
936+-- genotype is not called (that is, a \`.\` is present in the GT string) -1
1319−-- string) -1 is returned.
937+-- is returned.
1320−cGenotype :: Lens' Call [Int32]
938+vcGenotype :: Lens' VariantCall [Int32]
1321−cGenotype
939+vcGenotype
1322− = lens _cGenotype (\ s a -> s{_cGenotype = a}) .
940+ = lens _vcGenotype (\ s a -> s{_vcGenotype = a}) .
1323 _Default
941 _Default
1324 . _Coerce
942 . _Coerce
1325
943
944+-- | A map of additional variant call information. This must be of the form
1326−-- | A string which maps to an array of values.
945+-- map (string key mapping to a list of string values).
1327−cInfo :: Lens' Call (Maybe CallInfo)
946+vcInfo :: Lens' VariantCall (Maybe VariantCallInfo)
1328−cInfo = lens _cInfo (\ s a -> s{_cInfo = a})
947+vcInfo = lens _vcInfo (\ s a -> s{_vcInfo = a})
1329
948
1330−instance FromJSON Call where
949+instance FromJSON VariantCall where
1331 parseJSON
950 parseJSON
1332− = withObject "Call"
951+ = withObject "VariantCall"
1333 (\ o ->
952 (\ o ->
1334− Call <$>
953+ VariantCall <$>
1335 (o .:? "genotypeLikelihood" .!= mempty) <*>
954 (o .:? "genotypeLikelihood" .!= mempty) <*>
1336 (o .:? "callSetName")
955 (o .:? "callSetName")
1337 <*> (o .:? "phaseset")
956 <*> (o .:? "phaseset")
@@ -1339,168 +958,16 @@ instance FromJSON Call where
1339 <*> (o .:? "genotype" .!= mempty)
958 <*> (o .:? "genotype" .!= mempty)
1340 <*> (o .:? "info"))
959 <*> (o .:? "info"))
1341
960
1342−instance ToJSON Call where
961+instance ToJSON VariantCall where
1343− toJSON Call{..}
962+ toJSON VariantCall{..}
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{..}
1422 = object
963 = object
1423 (catMaybes
964 (catMaybes
1424− [("start" .=) <$> _qrStart,
965+ [("genotypeLikelihood" .=) <$> _vcGenotypeLikelihood,
1425− ("referenceId" .=) <$> _qrReferenceId,
966+ ("callSetName" .=) <$> _vcCallSetName,
1426− ("referenceName" .=) <$> _qrReferenceName,
967+ ("phaseset" .=) <$> _vcPhaseset,
1427− ("end" .=) <$> _qrEnd])
968+ ("callSetId" .=) <$> _vcCallSetId,
1428−
969+ ("genotype" .=) <$> _vcGenotype,
1429−--
970+ ("info" .=) <$> _vcInfo])
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])
1504
971
1505-- | A read group is all the data that\'s processed the same way by the
972-- | A read group is all the data that\'s processed the same way by the
1506-- sequencer.
973-- sequencer.
@@ -1508,8 +975,8 @@ instance ToJSON MergeVariantsRequest where
1508-- /See:/ 'readGroup' smart constructor.
975-- /See:/ 'readGroup' smart constructor.
1509data ReadGroup = ReadGroup
976data ReadGroup = ReadGroup
1510 { _rgReferenceSetId :: !(Maybe Text)
977 { _rgReferenceSetId :: !(Maybe Text)
1511− , _rgPrograms :: !(Maybe [ReadGroupProgram])
978+ , _rgPrograms :: !(Maybe [Program])
1512− , _rgExperiment :: !(Maybe ReadGroupExperiment)
979+ , _rgExperiment :: !(Maybe Experiment)
1513 , _rgName :: !(Maybe Text)
980 , _rgName :: !(Maybe Text)
1514 , _rgDatasetId :: !(Maybe Text)
981 , _rgDatasetId :: !(Maybe Text)
1515 , _rgId :: !(Maybe Text)
982 , _rgId :: !(Maybe Text)
@@ -1569,14 +1036,14 @@ rgReferenceSetId
1569-- identical for all read groups within a read group set. For this reason,
1036-- identical for all read groups within a read group set. For this reason,
1570-- only the first read group in a returned set will have this field
1037-- only the first read group in a returned set will have this field
1571-- populated.
1038-- populated.
1572−rgPrograms :: Lens' ReadGroup [ReadGroupProgram]
1039+rgPrograms :: Lens' ReadGroup [Program]
1573rgPrograms
1040rgPrograms
1574 = lens _rgPrograms (\ s a -> s{_rgPrograms = a}) .
1041 = lens _rgPrograms (\ s a -> s{_rgPrograms = a}) .
1575 _Default
1042 _Default
1576 . _Coerce
1043 . _Coerce
1577
1044
1578-- | The experiment used to generate this read group.
1045-- | The experiment used to generate this read group.
1579−rgExperiment :: Lens' ReadGroup (Maybe ReadGroupExperiment)
1046+rgExperiment :: Lens' ReadGroup (Maybe Experiment)
1580rgExperiment
1047rgExperiment
1581 = lens _rgExperiment (\ s a -> s{_rgExperiment = a})
1048 = lens _rgExperiment (\ s a -> s{_rgExperiment = a})
1582
1049
@@ -1590,8 +1057,9 @@ rgDatasetId :: Lens' ReadGroup (Maybe Text)
1590rgDatasetId
1057rgDatasetId
1591 = lens _rgDatasetId (\ s a -> s{_rgDatasetId = a})
1058 = lens _rgDatasetId (\ s a -> s{_rgDatasetId = a})
1592
1059
1593−-- | The generated unique read group ID. Note: This is different than the
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
1594−-- \'RG ID field in the SAM spec. For that value, see the name field.
1062+-- value, see the \`name\` field.
1595rgId :: Lens' ReadGroup (Maybe Text)
1063rgId :: Lens' ReadGroup (Maybe Text)
1596rgId = lens _rgId (\ s a -> s{_rgId = a})
1064rgId = lens _rgId (\ s a -> s{_rgId = a})
1597
1065
@@ -1616,7 +1084,8 @@ rgDescription
1616 = lens _rgDescription
1084 = lens _rgDescription
1617 (\ s a -> s{_rgDescription = a})
1085 (\ s a -> s{_rgDescription = a})
1618
1086
1087+-- | A map of additional read group information. This must be of the form map
1619−-- | A string which maps to an array of values.
1088+-- (string key mapping to a list of string values).
1620rgInfo :: Lens' ReadGroup (Maybe ReadGroupInfo)
1089rgInfo :: Lens' ReadGroup (Maybe ReadGroupInfo)
1621rgInfo = lens _rgInfo (\ s a -> s{_rgInfo = a})
1090rgInfo = lens _rgInfo (\ s a -> s{_rgInfo = a})
1622
1091
@@ -1651,24 +1120,107 @@ instance ToJSON ReadGroup where
1651 ("description" .=) <$> _rgDescription,
1120 ("description" .=) <$> _rgDescription,
1652 ("info" .=) <$> _rgInfo])
1121 ("info" .=) <$> _rgInfo])
1653
1122
1654−-- |
1123+-- | This resource represents a long-running operation that is the result of
1124+-- a network API call.
1655--
1125--
1656−-- /See:/ 'searchReferenceSetsRequest' smart constructor.
1126+-- /See:/ 'operation' smart constructor.
1657−data SearchReferenceSetsRequest = SearchReferenceSetsRequest
1127+data Operation = Operation
1658− { _srsrMD5checksums :: !(Maybe [Text])
1128+ { _oDone :: !(Maybe Bool)
1659− , _srsrAccessions :: !(Maybe [Text])
1129+ , _oError :: !(Maybe Status)
1660− , _srsrPageToken :: !(Maybe Text)
1130+ , _oResponse :: !(Maybe OperationResponse)
1661− , _srsrAssemblyId :: !(Maybe Text)
1131+ , _oName :: !(Maybe Text)
1662− , _srsrPageSize :: !(Maybe Int32)
1132+ , _oMetadata :: !(Maybe OperationSchema)
1663 } deriving (Eq,Show,Data,Typeable,Generic)
1133 } deriving (Eq,Show,Data,Typeable,Generic)
1664
1134
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.
1666--
1136--
1667-- Use one of the following lenses to modify other fields as desired:
1137-- Use one of the following lenses to modify other fields as desired:
1668--
1138--
1669−-- * 'srsrMD5checksums'
1139+-- * 'oDone'
1670--
1140--
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+--
1671−-- * 'srsrAccessions'
1223+-- * 'srsrAccessions'
1672--
1224--
1673-- * 'srsrPageToken'
1225-- * 'srsrPageToken'
1674--
1226--
@@ -1686,8 +1238,8 @@ searchReferenceSetsRequest =
1686 , _srsrPageSize = Nothing
1238 , _srsrPageSize = Nothing
1687 }
1239 }
1688
1240
1689−-- | If present, return references for which the md5checksum matches. See
1241+-- | If present, return references for which the \`md5checksum\` matches. See
1690−-- ReferenceSet.md5checksum for details.
1242+-- \`ReferenceSet.md5checksum\` for details.
1691srsrMD5checksums :: Lens' SearchReferenceSetsRequest [Text]
1243srsrMD5checksums :: Lens' SearchReferenceSetsRequest [Text]
1692srsrMD5checksums
1244srsrMD5checksums
1693 = lens _srsrMD5checksums
1245 = lens _srsrMD5checksums
@@ -1697,9 +1249,9 @@ srsrMD5checksums
1697
1249
1698-- | If present, return references for which the accession matches any of
1250-- | If present, return references for which the accession matches any of
1699-- these strings. Best to give a version number, for example
1251-- these strings. Best to give a version number, for example
1700−-- GCF_000001405.26. If only the main accession number is given then all
1252+-- \`GCF_000001405.26\`. If only the main accession number is given then
1701−-- records with that main accession will be returned, whichever version.
1253+-- all records with that main accession will be returned, whichever
1702−-- Note that different versions will have different sequences.
1254+-- version. Note that different versions will have different sequences.
1703srsrAccessions :: Lens' SearchReferenceSetsRequest [Text]
1255srsrAccessions :: Lens' SearchReferenceSetsRequest [Text]
1704srsrAccessions
1256srsrAccessions
1705 = lens _srsrAccessions
1257 = lens _srsrAccessions
@@ -1709,14 +1261,14 @@ srsrAccessions
1709
1261
1710-- | The continuation token, which is used to page through large result sets.
1262-- | The continuation token, which is used to page through large result sets.
1711-- To get the next page of results, set this parameter to the value of
1263-- 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.
1713srsrPageToken :: Lens' SearchReferenceSetsRequest (Maybe Text)
1265srsrPageToken :: Lens' SearchReferenceSetsRequest (Maybe Text)
1714srsrPageToken
1266srsrPageToken
1715 = lens _srsrPageToken
1267 = lens _srsrPageToken
1716 (\ s a -> s{_srsrPageToken = a})
1268 (\ s a -> s{_srsrPageToken = a})
1717
1269
1718-- | If present, return reference sets for which a substring of their
1270-- | 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).
1720srsrAssemblyId :: Lens' SearchReferenceSetsRequest (Maybe Text)
1272srsrAssemblyId :: Lens' SearchReferenceSetsRequest (Maybe Text)
1721srsrAssemblyId
1273srsrAssemblyId
1722 = lens _srsrAssemblyId
1274 = lens _srsrAssemblyId
@@ -1748,6 +1300,29 @@ instance ToJSON SearchReferenceSetsRequest where
1748 ("assemblyId" .=) <$> _srsrAssemblyId,
1300 ("assemblyId" .=) <$> _srsrAssemblyId,
1749 ("pageSize" .=) <$> _srsrPageSize])
1301 ("pageSize" .=) <$> _srsrPageSize])
1750
1302
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+
1751--
1326--
1752-- /See:/ 'searchReferencesResponse' smart constructor.
1327-- /See:/ 'searchReferencesResponse' smart constructor.
1753data SearchReferencesResponse = SearchReferencesResponse
1328data SearchReferencesResponse = SearchReferencesResponse
@@ -1802,6 +1377,108 @@ instance ToJSON SearchReferencesResponse where
1802 [("nextPageToken" .=) <$> _srrNextPageToken,
1377 [("nextPageToken" .=) <$> _srrNextPageToken,
1803 ("references" .=) <$> _srrReferences])
1378 ("references" .=) <$> _srrReferences])
1804
1379
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+
1805-- | A call set is a collection of variant calls, typically for one sample.
1482-- | A call set is a collection of variant calls, typically for one sample.
1806-- It belongs to a variant set.
1483-- It belongs to a variant set.
1807--
1484--
@@ -1851,7 +1528,7 @@ csCreated
1851csName :: Lens' CallSet (Maybe Text)
1528csName :: Lens' CallSet (Maybe Text)
1852csName = lens _csName (\ s a -> s{_csName = a})
1529csName = lens _csName (\ s a -> s{_csName = a})
1853
1530
1854−-- | The Google generated ID of the call set, immutable.
1531+-- | The server-generated call set ID, unique across all call sets.
1855csId :: Lens' CallSet (Maybe Text)
1532csId :: Lens' CallSet (Maybe Text)
1856csId = lens _csId (\ s a -> s{_csId = a})
1533csId = lens _csId (\ s a -> s{_csId = a})
1857
1534
@@ -1860,7 +1537,10 @@ csSampleId :: Lens' CallSet (Maybe Text)
1860csSampleId
1537csSampleId
1861 = lens _csSampleId (\ s a -> s{_csSampleId = a})
1538 = lens _csSampleId (\ s a -> s{_csSampleId = a})
1862
1539
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).
1864csVariantSetIds :: Lens' CallSet [Text]
1544csVariantSetIds :: Lens' CallSet [Text]
1865csVariantSetIds
1545csVariantSetIds
1866 = lens _csVariantSetIds
1546 = lens _csVariantSetIds
@@ -1868,7 +1548,8 @@ csVariantSetIds
1868 . _Default
1548 . _Default
1869 . _Coerce
1549 . _Coerce
1870
1550
1551+-- | A map of additional call set information. This must be of the form map
1871−-- | A string which maps to an array of values.
1552+-- (string key mapping to a list of string values).
1872csInfo :: Lens' CallSet (Maybe CallSetInfo)
1553csInfo :: Lens' CallSet (Maybe CallSetInfo)
1873csInfo = lens _csInfo (\ s a -> s{_csInfo = a})
1554csInfo = lens _csInfo (\ s a -> s{_csInfo = a})
1874
1555
@@ -1941,120 +1622,6 @@ instance ToJSON CoverageBucket where
1941 [("range" .=) <$> _cbRange,
1622 [("range" .=) <$> _cbRange,
1942 ("meanCoverage" .=) <$> _cbMeanCoverage])
1623 ("meanCoverage" .=) <$> _cbMeanCoverage])
1943
1624
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−
2058-- | The read group set search request.
1625-- | The read group set search request.
2059--
1626--
2060-- /See:/ 'searchReadGroupSetsRequest' smart constructor.
1627-- /See:/ 'searchReadGroupSetsRequest' smart constructor.
@@ -2103,7 +1670,7 @@ srgsrName
2103
1670
2104-- | The continuation token, which is used to page through large result sets.
1671-- | The continuation token, which is used to page through large result sets.
2105-- To get the next page of results, set this parameter to the value of
1672-- 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.
2107srgsrPageToken :: Lens' SearchReadGroupSetsRequest (Maybe Text)
1674srgsrPageToken :: Lens' SearchReadGroupSetsRequest (Maybe Text)
2108srgsrPageToken
1675srgsrPageToken
2109 = lens _srgsrPageToken
1676 = lens _srgsrPageToken
@@ -2134,55 +1701,6 @@ instance ToJSON SearchReadGroupSetsRequest where
2134 ("pageToken" .=) <$> _srgsrPageToken,
1701 ("pageToken" .=) <$> _srgsrPageToken,
2135 ("pageSize" .=) <$> _srgsrPageSize])
1702 ("pageSize" .=) <$> _srgsrPageSize])
2136
1703
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−
2186-- | A reference is a canonical assembled DNA sequence, intended to act as a
1704-- | A reference is a canonical assembled DNA sequence, intended to act as a
2187-- reference coordinate space for other genomic annotations. A single
1705-- reference coordinate space for other genomic annotations. A single
2188-- reference might represent the human chromosome 1 or mitochandrial DNA,
1706-- reference might represent the human chromosome 1 or mitochandrial DNA,
@@ -2235,7 +1753,7 @@ refLength
2235 = lens _refLength (\ s a -> s{_refLength = a})
1753 = lens _refLength (\ s a -> s{_refLength = a})
2236
1754
2237-- | All known corresponding accession IDs in INSDC (GenBank\/ENA\/DDBJ)
1755-- | 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\`.
2239refSourceAccessions :: Lens' Reference [Text]
1757refSourceAccessions :: Lens' Reference [Text]
2240refSourceAccessions
1758refSourceAccessions
2241 = lens _refSourceAccessions
1759 = lens _refSourceAccessions
@@ -2251,7 +1769,7 @@ refMD5checksum
2251 = lens _refMD5checksum
1769 = lens _refMD5checksum
2252 (\ s a -> s{_refMD5checksum = a})
1770 (\ s a -> s{_refMD5checksum = a})
2253
1771
2254−-- | The name of this reference, for example 22.
1772+-- | The name of this reference, for example \`22\`.
2255refName :: Lens' Reference (Maybe Text)
1773refName :: Lens' Reference (Maybe Text)
2256refName = lens _refName (\ s a -> s{_refName = a})
1774refName = lens _refName (\ s a -> s{_refName = a})
2257
1775
@@ -2262,7 +1780,7 @@ refNcbiTaxonId
2262 = lens _refNcbiTaxonId
1780 = lens _refNcbiTaxonId
2263 (\ s a -> s{_refNcbiTaxonId = a})
1781 (\ s a -> s{_refNcbiTaxonId = a})
2264
1782
2265−-- | The Google generated immutable ID of the reference.
1783+-- | The server-generated reference ID, unique across all references.
2266refId :: Lens' Reference (Maybe Text)
1784refId :: Lens' Reference (Maybe Text)
2267refId = lens _refId (\ s a -> s{_refId = a})
1785refId = lens _refId (\ s a -> s{_refId = a})
2268
1786
@@ -2283,7 +1801,7 @@ instance FromJSON Reference where
2283 <*> (o .:? "name")
1801 <*> (o .:? "name")
2284 <*> (o .:? "ncbiTaxonId")
1802 <*> (o .:? "ncbiTaxonId")
2285 <*> (o .:? "id")
1803 <*> (o .:? "id")
2286− <*> (o .:? "sourceURI"))
1804+ <*> (o .:? "sourceUri"))
2287
1805
2288instance ToJSON Reference where
1806instance ToJSON Reference where
2289 toJSON Reference{..}
1807 toJSON Reference{..}
@@ -2295,46 +1813,32 @@ instance ToJSON Reference where
2295 ("name" .=) <$> _refName,
1813 ("name" .=) <$> _refName,
2296 ("ncbiTaxonId" .=) <$> _refNcbiTaxonId,
1814 ("ncbiTaxonId" .=) <$> _refNcbiTaxonId,
2297 ("id" .=) <$> _refId,
1815 ("id" .=) <$> _refId,
2298− ("sourceURI" .=) <$> _refSourceURI])
1816+ ("sourceUri" .=) <$> _refSourceURI])
2299
1817
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).
2300--
1820--
2301−-- /See:/ 'batchAnnotationsResponse' smart constructor.
1821+-- /See:/ 'variantCallInfo' smart constructor.
2302−newtype BatchAnnotationsResponse = BatchAnnotationsResponse
1822+data VariantCallInfo =
2303− { _barEntries :: Maybe [BatchAnnotationsResponseEntry]
1823+ VariantCallInfo
2304− } deriving (Eq,Show,Data,Typeable,Generic)
1824+ deriving (Eq,Show,Data,Typeable,Generic)
2305
1825
2306−-- | Creates a value of 'BatchAnnotationsResponse' with the minimum fields required to make a request.
1826+-- | Creates a value of 'VariantCallInfo' with the minimum fields required to make a request.
2307−--
2308−-- Use one of the following lenses to modify other fields as desired:
2309--
1827--
2310−-- * 'barEntries'
1828+variantCallInfo
2311−batchAnnotationsResponse
1829+ :: VariantCallInfo
2312− :: BatchAnnotationsResponse
1830+variantCallInfo = VariantCallInfo
2313−batchAnnotationsResponse =
2314− BatchAnnotationsResponse
2315− { _barEntries = Nothing
2316− }
2317
1831
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
2327 parseJSON
1833 parseJSON
2328− = withObject "BatchAnnotationsResponse"
1834+ = withObject "VariantCallInfo"
2329− (\ o ->
1835+ (\ o -> pure VariantCallInfo)
2330− BatchAnnotationsResponse <$>
2331− (o .:? "entries" .!= mempty))
2332
1836
2333−instance ToJSON BatchAnnotationsResponse where
1837+instance ToJSON VariantCallInfo where
2334− toJSON BatchAnnotationsResponse{..}
1838+ toJSON = const emptyObject
2335− = object (catMaybes [("entries" .=) <$> _barEntries])
2336
1839
1840+-- | A map of additional read group information. This must be of the form map
2337−-- | A string which maps to an array of values.
1841+-- (string key mapping to a list of string values).
2338--
1842--
2339-- /See:/ 'readGroupInfo' smart constructor.
1843-- /See:/ 'readGroupInfo' smart constructor.
2340data ReadGroupInfo =
1844data ReadGroupInfo =
@@ -2355,108 +1859,25 @@ instance FromJSON ReadGroupInfo where
2355instance ToJSON ReadGroupInfo where
1859instance ToJSON ReadGroupInfo where
2356 toJSON = const emptyObject
1860 toJSON = const emptyObject
2357
1861
2358−-- | The jobs search request.
2359--
1862--
2360−-- /See:/ 'searchJobsRequest' smart constructor.
1863+-- /See:/ 'statusDetailsItem' smart constructor.
2361−data SearchJobsRequest = SearchJobsRequest
1864+data StatusDetailsItem =
2362− { _sjrCreatedAfter :: !(Maybe Int64)
1865+ StatusDetailsItem
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)
1866+ deriving (Eq,Show,Data,Typeable,Generic)
2369
1867
2370−-- | Creates a value of 'SearchJobsRequest' with the minimum fields required to make a request.
1868+-- | Creates a value of 'StatusDetailsItem' 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'
2379--
1869--
2380−-- * 'sjrPageToken'
1870+statusDetailsItem
2381−--
1871+ :: StatusDetailsItem
2382−-- * 'sjrPageSize'
1872+statusDetailsItem = StatusDetailsItem
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
2410
1873
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
2439 parseJSON
1875 parseJSON
2440− = withObject "SearchJobsRequest"
1876+ = withObject "StatusDetailsItem"
2441− (\ o ->
1877+ (\ o -> pure StatusDetailsItem)
2442− SearchJobsRequest <$>
2443− (o .:? "createdAfter") <*>
2444− (o .:? "status" .!= mempty)
2445− <*> (o .:? "projectNumber")
2446− <*> (o .:? "pageToken")
2447− <*> (o .:? "pageSize")
2448− <*> (o .:? "createdBefore"))
2449
1878
2450−instance ToJSON SearchJobsRequest where
1879+instance ToJSON StatusDetailsItem where
2451− toJSON SearchJobsRequest{..}
1880+ toJSON = const emptyObject
2452− = object
2453− (catMaybes
2454− [("createdAfter" .=) <$> _sjrCreatedAfter,
2455− ("status" .=) <$> _sjrStatus,
2456− ("projectNumber" .=) <$> _sjrProjectNumber,
2457− ("pageToken" .=) <$> _sjrPageToken,
2458− ("pageSize" .=) <$> _sjrPageSize,
2459− ("createdBefore" .=) <$> _sjrCreatedBefore])
2460
1881
2461-- | The call set search response.
1882-- | The call set search response.
2462--
1883--
@@ -2512,180 +1933,41 @@ instance ToJSON SearchCallSetsResponse where
2512 [("nextPageToken" .=) <$> _scsrNextPageToken,
1933 [("nextPageToken" .=) <$> _scsrNextPageToken,
2513 ("callSets" .=) <$> _scsrCallSets])
1934 ("callSets" .=) <$> _scsrCallSets])
2514
1935
2515−-- | The job creation request.
1936+-- | Request message for \`SetIamPolicy\` method.
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'
2536--
1937--
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.
1938+-- /See:/ 'setIAMPolicyRequest' smart constructor.
2628−data JobRequest = JobRequest
1939+newtype SetIAMPolicyRequest = SetIAMPolicyRequest
2629− { _jrDestination :: !(Maybe [Text])
1940+ { _siprPolicy :: Maybe Policy
2630− , _jrSource :: !(Maybe [Text])
2631− , _jrType :: !(Maybe JobRequestType)
2632 } deriving (Eq,Show,Data,Typeable,Generic)
1941 } deriving (Eq,Show,Data,Typeable,Generic)
2633
1942
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.
2635--
1944--
2636-- Use one of the following lenses to modify other fields as desired:
1945-- Use one of the following lenses to modify other fields as desired:
2637--
1946--
2638−-- * 'jrDestination'
1947+-- * 'siprPolicy'
2639−--
1948+setIAMPolicyRequest
2640−-- * 'jrSource'
1949+ :: SetIAMPolicyRequest
2641−--
1950+setIAMPolicyRequest =
2642−-- * 'jrType'
1951+ SetIAMPolicyRequest
2643−jobRequest
2644− :: JobRequest
2645−jobRequest =
2646− JobRequest
2647− { _jrDestination = Nothing
2648− , _jrSource = Nothing
2649− , _jrType = Nothing
1952+ { _siprPolicy = Nothing
2650 }
1953 }
2651
1954
2652−-- | The data destination of the request, for example, a Google BigQuery
1955+-- | REQUIRED: The complete policy to be applied to the \`resource\`. The
2653−-- Table or Dataset ID.
1956+-- size of the policy is limited to a few 10s of KB. An empty policy is a
2654−jrDestination :: Lens' JobRequest [Text]
1957+-- valid policy but certain Cloud Platform services (such as Projects)
2655−jrDestination
1958+-- might reject them.
2656− = lens _jrDestination
1959+siprPolicy :: Lens' SetIAMPolicyRequest (Maybe Policy)
2657− (\ s a -> s{_jrDestination = a})
1960+siprPolicy
2658− . _Default
1961+ = lens _siprPolicy (\ s a -> s{_siprPolicy = a})
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
2668
1962
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
2674 parseJSON
1964 parseJSON
2675− = withObject "JobRequest"
1965+ = withObject "SetIAMPolicyRequest"
2676− (\ o ->
1966+ (\ o -> SetIAMPolicyRequest <$> (o .:? "policy"))
2677− JobRequest <$>
2678− (o .:? "destination" .!= mempty) <*>
2679− (o .:? "source" .!= mempty)
2680− <*> (o .:? "type"))
2681
1967
2682−instance ToJSON JobRequest where
1968+instance ToJSON SetIAMPolicyRequest where
2683− toJSON JobRequest{..}
1969+ toJSON SetIAMPolicyRequest{..}
2684− = object
2685− (catMaybes
1970+ = object (catMaybes [("policy" .=) <$> _siprPolicy])
2686− [("destination" .=) <$> _jrDestination,
2687− ("source" .=) <$> _jrSource,
2688− ("type" .=) <$> _jrType])
2689
1971
2690-- | The read search request.
1972-- | The read search request.
2691--
1973--
@@ -2731,13 +2013,13 @@ searchReadsRequest =
2731 }
2013 }
2732
2014
2733-- | The start position of the range on the reference, 0-based inclusive. If
2015-- | 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.
2735srrStart :: Lens' SearchReadsRequest (Maybe Int64)
2017srrStart :: Lens' SearchReadsRequest (Maybe Int64)
2736srrStart = lens _srrStart (\ s a -> s{_srrStart = a})
2018srrStart = lens _srrStart (\ s a -> s{_srrStart = a})
2737
2019
2738-- | The IDs of the read groups within which to search for reads. All
2020-- | The IDs of the read groups within which to search for reads. All
2739-- specified read groups must belong to the same read group sets. Must
2021-- 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\`.
2741srrReadGroupIds :: Lens' SearchReadsRequest [Text]
2023srrReadGroupIds :: Lens' SearchReadsRequest [Text]
2742srrReadGroupIds
2024srrReadGroupIds
2743 = lens _srrReadGroupIds
2025 = lens _srrReadGroupIds
@@ -2745,21 +2027,21 @@ srrReadGroupIds
2745 . _Default
2027 . _Default
2746 . _Coerce
2028 . _Coerce
2747
2029
2748−-- | The reference sequence name, for example chr1, 1, or chrX. If set to *,
2030+-- | The reference sequence name, for example \`chr1\`, \`1\`, or \`chrX\`.
2749−-- only unmapped reads are returned.
2031+-- If set to *, only unmapped reads are returned.
2750srrReferenceName :: Lens' SearchReadsRequest (Maybe Text)
2032srrReferenceName :: Lens' SearchReadsRequest (Maybe Text)
2751srrReferenceName
2033srrReferenceName
2752 = lens _srrReferenceName
2034 = lens _srrReferenceName
2753 (\ s a -> s{_srrReferenceName = a})
2035 (\ s a -> s{_srrReferenceName = a})
2754
2036
2755-- | The end position of the range on the reference, 0-based exclusive. If
2037-- | 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.
2757srrEnd :: Lens' SearchReadsRequest (Maybe Int64)
2039srrEnd :: Lens' SearchReadsRequest (Maybe Int64)
2758srrEnd = lens _srrEnd (\ s a -> s{_srrEnd = a})
2040srrEnd = lens _srrEnd (\ s a -> s{_srrEnd = a})
2759
2041
2760-- | The continuation token, which is used to page through large result sets.
2042-- | The continuation token, which is used to page through large result sets.
2761-- To get the next page of results, set this parameter to the value of
2043-- 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.
2763srrPageToken :: Lens' SearchReadsRequest (Maybe Text)
2045srrPageToken :: Lens' SearchReadsRequest (Maybe Text)
2764srrPageToken
2046srrPageToken
2765 = lens _srrPageToken (\ s a -> s{_srrPageToken = a})
2047 = lens _srrPageToken (\ s a -> s{_srrPageToken = a})
@@ -2773,7 +2055,7 @@ srrPageSize
2773-- | The IDs of the read groups sets within which to search for reads. All
2055-- | The IDs of the read groups sets within which to search for reads. All
2774-- specified read group sets must be aligned against a common set of
2056-- specified read group sets must be aligned against a common set of
2775-- reference sequences; this defines the genomic coordinates for the query.
2057-- 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\`.
2777srrReadGroupSetIds :: Lens' SearchReadsRequest [Text]
2059srrReadGroupSetIds :: Lens' SearchReadsRequest [Text]
2778srrReadGroupSetIds
2060srrReadGroupSetIds
2779 = lens _srrReadGroupSetIds
2061 = lens _srrReadGroupSetIds
@@ -2805,7 +2087,32 @@ instance ToJSON SearchReadsRequest where
2805 ("pageSize" .=) <$> _srrPageSize,
2087 ("pageSize" .=) <$> _srrPageSize,
2806 ("readGroupSetIds" .=) <$> _srrReadGroupSetIds])
2088 ("readGroupSetIds" .=) <$> _srrReadGroupSetIds])
2807
2089
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
2808−-- | A string which maps to an array of values.
2115+-- (string key mapping to a list of string values).
2809--
2116--
2810-- /See:/ 'variantInfo' smart constructor.
2117-- /See:/ 'variantInfo' smart constructor.
2811data VariantInfo =
2118data VariantInfo =
@@ -2825,6 +2132,82 @@ instance FromJSON VariantInfo where
2825instance ToJSON VariantInfo where
2132instance ToJSON VariantInfo where
2826 toJSON = const emptyObject
2133 toJSON = const emptyObject
2827
2134
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+
2828-- | The search variant sets request.
2211-- | The search variant sets request.
2829--
2212--
2830-- /See:/ 'searchVariantSetsRequest' smart constructor.
2213-- /See:/ 'searchVariantSetsRequest' smart constructor.
@@ -2863,7 +2246,7 @@ svsrDatasetIds
2863
2246
2864-- | The continuation token, which is used to page through large result sets.
2247-- | The continuation token, which is used to page through large result sets.
2865-- To get the next page of results, set this parameter to the value of
2248-- 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.
2867svsrPageToken :: Lens' SearchVariantSetsRequest (Maybe Text)
2250svsrPageToken :: Lens' SearchVariantSetsRequest (Maybe Text)
2868svsrPageToken
2251svsrPageToken
2869 = lens _svsrPageToken
2252 = lens _svsrPageToken
@@ -2891,409 +2274,35 @@ instance ToJSON SearchVariantSetsRequest where
2891 ("pageToken" .=) <$> _svsrPageToken,
2274 ("pageToken" .=) <$> _svsrPageToken,
2892 ("pageSize" .=) <$> _svsrPageSize])
2275 ("pageSize" .=) <$> _svsrPageSize])
2893
2276
2277+-- | The variant search response.
2894--
2278--
2895−-- /See:/ 'readGroupProgram' smart constructor.
2279+-- /See:/ 'searchVariantsResponse' smart constructor.
2896−data ReadGroupProgram = ReadGroupProgram
2280+data SearchVariantsResponse = SearchVariantsResponse
2897− { _rgpPrevProgramId :: !(Maybe Text)
2281+ { _svrVariants :: !(Maybe [Variant])
2898− , _rgpName :: !(Maybe Text)
2282+ , _svrNextPageToken :: !(Maybe Text)
2899− , _rgpVersion :: !(Maybe Text)
2900− , _rgpId :: !(Maybe Text)
2901− , _rgpCommandLine :: !(Maybe Text)
2902 } deriving (Eq,Show,Data,Typeable,Generic)
2283 } deriving (Eq,Show,Data,Typeable,Generic)
2903
2284
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.
2905--
2286--
2906-- Use one of the following lenses to modify other fields as desired:
2287-- Use one of the following lenses to modify other fields as desired:
2907--
2288--
2908−-- * 'rgpPrevProgramId'
2289+-- * 'svrVariants'
2909−--
2910−-- * 'rgpName'
2911−--
2912−-- * 'rgpVersion'
2913−--
2914−-- * 'rgpId'
2915--
2290--
2916−-- * 'rgpCommandLine'
2291+-- * 'svrNextPageToken'
2917−readGroupProgram
2292+searchVariantsResponse
2918− :: ReadGroupProgram
2293+ :: SearchVariantsResponse
2919−readGroupProgram =
2294+searchVariantsResponse =
2920− ReadGroupProgram
2295+ SearchVariantsResponse
2921− { _rgpPrevProgramId = Nothing
2922− , _rgpName = Nothing
2923− , _rgpVersion = Nothing
2924− , _rgpId = Nothing
2296+ { _svrVariants = Nothing
2925− , _rgpCommandLine = Nothing
2297+ , _svrNextPageToken = Nothing
2926 }
2298 }
2927
2299
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.
2300+-- | The list of matching Variants.
3292−svrVariants :: Lens' SearchVariantsResponse [Variant]
2301+svrVariants :: Lens' SearchVariantsResponse [Variant]
3293−svrVariants
2302+svrVariants
3294− = lens _svrVariants (\ s a -> s{_svrVariants = a}) .
2303+ = lens _svrVariants (\ s a -> s{_svrVariants = a}) .
3295− _Default
2304+ _Default
3296− . _Coerce
2305+ . _Coerce
3297
2306
3298-- | The continuation token, which is used to page through large result sets.
2307-- | The continuation token, which is used to page through large result sets.
3299-- Provide this value in a subsequent request to return the next page of
2308-- Provide this value in a subsequent request to return the next page of
@@ -3319,40 +2328,6 @@ instance ToJSON SearchVariantsResponse where
3319 [("variants" .=) <$> _svrVariants,
2328 [("variants" .=) <$> _svrVariants,
3320 ("nextPageToken" .=) <$> _svrNextPageToken])
2329 ("nextPageToken" .=) <$> _svrNextPageToken])
3321
2330
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−
3356-- | The call set search request.
2331-- | The call set search request.
3357--
2332--
3358-- /See:/ 'searchCallSetsRequest' smart constructor.
2333-- /See:/ 'searchCallSetsRequest' smart constructor.
@@ -3391,7 +2366,7 @@ scsrName = lens _scsrName (\ s a -> s{_scsrName = a})
3391
2366
3392-- | The continuation token, which is used to page through large result sets.
2367-- | The continuation token, which is used to page through large result sets.
3393-- To get the next page of results, set this parameter to the value of
2368-- 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.
3395scsrPageToken :: Lens' SearchCallSetsRequest (Maybe Text)
2370scsrPageToken :: Lens' SearchCallSetsRequest (Maybe Text)
3396scsrPageToken
2371scsrPageToken
3397 = lens _scsrPageToken
2372 = lens _scsrPageToken
@@ -3487,83 +2462,83 @@ instance ToJSON SearchReadsResponse where
3487 [("nextPageToken" .=) <$> _sNextPageToken,
2462 [("nextPageToken" .=) <$> _sNextPageToken,
3488 ("alignments" .=) <$> _sAlignments])
2463 ("alignments" .=) <$> _sAlignments])
3489
2464
3490−-- | Describes a paired-end FASTQ file source for alignment.
3491--
2465--
3492−-- /See:/ 'pairedFastqSource' smart constructor.
2466+-- /See:/ 'program' smart constructor.
3493−data PairedFastqSource = PairedFastqSource
2467+data Program = Program
2468+ { _pPrevProgramId :: !(Maybe Text)
3494− { _pfsFirstSourceURIs :: !(Maybe [Text])
2469+ , _pName :: !(Maybe Text)
3495− , _pfsMetadata :: !(Maybe FastqMetadata)
2470+ , _pVersion :: !(Maybe Text)
3496− , _pfsSecondSourceURIs :: !(Maybe [Text])
2471+ , _pId :: !(Maybe Text)
2472+ , _pCommandLine :: !(Maybe Text)
3497 } deriving (Eq,Show,Data,Typeable,Generic)
2473 } deriving (Eq,Show,Data,Typeable,Generic)
3498
2474
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.
3500--
2476--
3501-- Use one of the following lenses to modify other fields as desired:
2477-- Use one of the following lenses to modify other fields as desired:
3502--
2478--
3503−-- * 'pfsFirstSourceURIs'
2479+-- * 'pPrevProgramId'
3504--
2480--
3505−-- * 'pfsMetadata'
2481+-- * 'pName'
3506--
2482--
3507−-- * 'pfsSecondSourceURIs'
2483+-- * 'pVersion'
3508−pairedFastqSource
2484+--
3509− :: PairedFastqSource
2485+-- * 'pId'
3510−pairedFastqSource =
2486+--
3511− PairedFastqSource
2487+-- * 'pCommandLine'
3512− { _pfsFirstSourceURIs = Nothing
2488+program
2489+ :: Program
2490+program =
2491+ Program
2492+ { _pPrevProgramId = Nothing
2493+ , _pName = Nothing
2494+ , _pVersion = Nothing
3513− , _pfsMetadata = Nothing
2495+ , _pId = Nothing
3514− , _pfsSecondSourceURIs = Nothing
2496+ , _pCommandLine = Nothing
3515 }
2497 }
3516
2498
3517−-- | A list of URIs pointing at paired end FASTQ files in Google Cloud
2499+-- | The ID of the program run before this one.
3518−-- Storage which will be aligned. The first of each paired file should be
2500+pPrevProgramId :: Lens' Program (Maybe Text)
3519−-- specified here, in an order that matches the second of each paired file
2501+pPrevProgramId
3520−-- specified in secondSourceUris. For example: firstSourceUris:
2502+ = lens _pPrevProgramId
3521−-- [file1_1.fq, file2_1.fq], secondSourceUris: [file1_2.fq, file2_2.fq].
2503+ (\ s a -> s{_pPrevProgramId = a})
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
3529
2504
3530−-- | Optionally specifies the metadata to be associated with the final
2505+-- | The name of the program.
3531−-- aligned read group set.
2506+pName :: Lens' Program (Maybe Text)
3532−pfsMetadata :: Lens' PairedFastqSource (Maybe FastqMetadata)
2507+pName = lens _pName (\ s a -> s{_pName = a})
3533−pfsMetadata
2508+
3534− = lens _pfsMetadata (\ s a -> s{_pfsMetadata = a})
2509+-- | The version of the program run.
3535−
2510+pVersion :: Lens' Program (Maybe Text)
3536−-- | A list of URIs pointing at paired end FASTQ files in Google Cloud
2511+pVersion = lens _pVersion (\ s a -> s{_pVersion = a})
3537−-- Storage which will be aligned. The second of each paired file should be
2512+
3538−-- specified here, in an order that matches the first of each paired file
2513+-- | The user specified locally unique ID of the program. Used along with
3539−-- specified in firstSourceUris. For example: firstSourceUris: [file1_1.fq,
2514+-- \`prevProgramId\` to define an ordering between programs.
3540−-- file2_1.fq], secondSourceUris: [file1_2.fq, file2_2.fq]. The caller must
2515+pId :: Lens' Program (Maybe Text)
3541−-- have READ permissions for these files.
2516+pId = lens _pId (\ s a -> s{_pId = a})
3542−pfsSecondSourceURIs :: Lens' PairedFastqSource [Text]
3543−pfsSecondSourceURIs
3544− = lens _pfsSecondSourceURIs
3545− (\ s a -> s{_pfsSecondSourceURIs = a})
3546− . _Default
3547− . _Coerce
3548
2517
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+
3549−instance FromJSON PairedFastqSource where
2523+instance FromJSON Program where
3550 parseJSON
2524 parseJSON
3551− = withObject "PairedFastqSource"
2525+ = withObject "Program"
3552 (\ o ->
2526 (\ o ->
3553− PairedFastqSource <$>
2527+ Program <$>
3554− (o .:? "firstSourceUris" .!= mempty) <*>
2528+ (o .:? "prevProgramId") <*> (o .:? "name") <*>
3555− (o .:? "metadata")
2529+ (o .:? "version")
3556− <*> (o .:? "secondSourceUris" .!= mempty))
2530+ <*> (o .:? "id")
2531+ <*> (o .:? "commandLine"))
3557
2532
3558−instance ToJSON PairedFastqSource where
2533+instance ToJSON Program where
3559− toJSON PairedFastqSource{..}
2534+ toJSON Program{..}
3560 = object
2535 = object
3561 (catMaybes
2536 (catMaybes
3562− [("firstSourceUris" .=) <$> _pfsFirstSourceURIs,
2537+ [("prevProgramId" .=) <$> _pPrevProgramId,
3563− ("metadata" .=) <$> _pfsMetadata,
2538+ ("name" .=) <$> _pName, ("version" .=) <$> _pVersion,
3564− ("secondSourceUris" .=) <$> _pfsSecondSourceURIs])
2539+ ("id" .=) <$> _pId,
2540+ ("commandLine" .=) <$> _pCommandLine])
3565
2541
3566−-- |
3567--
2542--
3568-- /See:/ 'searchReferencesRequest' smart constructor.
2543-- /See:/ 'searchReferencesRequest' smart constructor.
3569data SearchReferencesRequest = SearchReferencesRequest
2544data SearchReferencesRequest = SearchReferencesRequest
@@ -3604,8 +2579,8 @@ sReferenceSetId
3604 = lens _sReferenceSetId
2579 = lens _sReferenceSetId
3605 (\ s a -> s{_sReferenceSetId = a})
2580 (\ s a -> s{_sReferenceSetId = a})
3606
2581
3607−-- | If present, return references for which the md5checksum matches. See
2582+-- | If present, return references for which the \`md5checksum\` matches. See
3608−-- Reference.md5checksum for construction details.
2583+-- \`Reference.md5checksum\` for construction details.
3609sMD5checksums :: Lens' SearchReferencesRequest [Text]
2584sMD5checksums :: Lens' SearchReferencesRequest [Text]
3610sMD5checksums
2585sMD5checksums
3611 = lens _sMD5checksums
2586 = lens _sMD5checksums
@@ -3614,9 +2589,9 @@ sMD5checksums
3614 . _Coerce
2589 . _Coerce
3615
2590
3616-- | If present, return references for which the accession matches this
2591-- | If present, return references for which the accession matches this
3617−-- string. Best to give a version number, for example GCF_000001405.26. If
2592+-- string. Best to give a version number, for example \`GCF_000001405.26\`.
3618−-- only the main accession number is given then all records with that main
2593+-- If only the main accession number is given then all records with that
3619−-- accession will be returned, whichever version. Note that different
2594+-- main accession will be returned, whichever version. Note that different
3620-- versions will have different sequences.
2595-- versions will have different sequences.
3621sAccessions :: Lens' SearchReferencesRequest [Text]
2596sAccessions :: Lens' SearchReferencesRequest [Text]
3622sAccessions
2597sAccessions
@@ -3626,7 +2601,7 @@ sAccessions
3626
2601
3627-- | The continuation token, which is used to page through large result sets.
2602-- | The continuation token, which is used to page through large result sets.
3628-- To get the next page of results, set this parameter to the value of
2603-- 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.
3630sPageToken :: Lens' SearchReferencesRequest (Maybe Text)
2605sPageToken :: Lens' SearchReferencesRequest (Maybe Text)
3631sPageToken
2606sPageToken
3632 = lens _sPageToken (\ s a -> s{_sPageToken = a})
2607 = lens _sPageToken (\ s a -> s{_sPageToken = a})
@@ -3711,7 +2686,7 @@ instance ToJSON SearchReferenceSetsResponse where
3711 [("nextPageToken" .=) <$> _srsrNextPageToken,
2686 [("nextPageToken" .=) <$> _srsrNextPageToken,
3712 ("referenceSets" .=) <$> _srsrReferenceSets])
2687 ("referenceSets" .=) <$> _srsrReferenceSets])
3713
2688
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.
3715--
2690--
3716-- /See:/ 'range' smart constructor.
2691-- /See:/ 'range' smart constructor.
3717data Range = Range
2692data Range = Range
@@ -3738,19 +2713,17 @@ range =
3738 , _rEnd = Nothing
2713 , _rEnd = Nothing
3739 }
2714 }
3740
2715
3741−-- | The start position of the range on the reference, 0-based inclusive. If
2716+-- | The start position of the range on the reference, 0-based inclusive.
3742−-- specified, referenceName must also be specified.
3743rStart :: Lens' Range (Maybe Int64)
2717rStart :: Lens' Range (Maybe Int64)
3744rStart = lens _rStart (\ s a -> s{_rStart = a})
2718rStart = lens _rStart (\ s a -> s{_rStart = a})
3745
2719
3746−-- | The reference sequence name, for example chr1, 1, or chrX.
2720+-- | The reference sequence name, for example \`chr1\`, \`1\`, or \`chrX\`.
3747rReferenceName :: Lens' Range (Maybe Text)
2721rReferenceName :: Lens' Range (Maybe Text)
3748rReferenceName
2722rReferenceName
3749 = lens _rReferenceName
2723 = lens _rReferenceName
3750 (\ s a -> s{_rReferenceName = a})
2724 (\ s a -> s{_rReferenceName = a})
3751
2725
3752−-- | The end position of the range on the reference, 0-based exclusive. If
2726+-- | The end position of the range on the reference, 0-based exclusive.
3753−-- specified, referenceName must also be specified.
3754rEnd :: Lens' Range (Maybe Int64)
2727rEnd :: Lens' Range (Maybe Int64)
3755rEnd = lens _rEnd (\ s a -> s{_rEnd = a})
2728rEnd = lens _rEnd (\ s a -> s{_rEnd = a})
3756
2729
@@ -3773,8 +2746,8 @@ instance ToJSON Range where
3773-- | A read group set is a logical collection of read groups, which are
2746-- | A read group set is a logical collection of read groups, which are
3774-- collections of reads produced by a sequencer. A read group set typically
2747-- collections of reads produced by a sequencer. A read group set typically
3775-- models reads corresponding to one sample, sequenced one way, and aligned
2748-- 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
2749+-- 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.
2750+-- belongs to one read group set. * A read belongs to one read group.
3778--
2751--
3779-- /See:/ 'readGroupSet' smart constructor.
2752-- /See:/ 'readGroupSet' smart constructor.
3780data ReadGroupSet = ReadGroupSet
2753data ReadGroupSet = ReadGroupSet
@@ -3833,11 +2806,11 @@ rgsDatasetId :: Lens' ReadGroupSet (Maybe Text)
3833rgsDatasetId
2806rgsDatasetId
3834 = lens _rgsDatasetId (\ s a -> s{_rgsDatasetId = a})
2807 = lens _rgsDatasetId (\ s a -> s{_rgsDatasetId = a})
3835
2808
3836−-- | The read group set ID.
2809+-- | The server-generated read group set ID, unique for all read group sets.
3837rgsId :: Lens' ReadGroupSet (Maybe Text)
2810rgsId :: Lens' ReadGroupSet (Maybe Text)
3838rgsId = lens _rgsId (\ s a -> s{_rgsId = a})
2811rgsId = lens _rgsId (\ s a -> s{_rgsId = a})
3839
2812
3840−-- | A string which maps to an array of values.
2813+-- | A map of additional read group set information.
3841rgsInfo :: Lens' ReadGroupSet (Maybe ReadGroupSetInfo)
2814rgsInfo :: Lens' ReadGroupSet (Maybe ReadGroupSetInfo)
3842rgsInfo = lens _rgsInfo (\ s a -> s{_rgsInfo = a})
2815rgsInfo = lens _rgsInfo (\ s a -> s{_rgsInfo = a})
3843
2816
@@ -3879,232 +2852,113 @@ instance ToJSON ReadGroupSet where
3879 ("readGroups" .=) <$> _rgsReadGroups,
2852 ("readGroups" .=) <$> _rgsReadGroups,
3880 ("filename" .=) <$> _rgsFilename])
2853 ("filename" .=) <$> _rgsFilename])
3881
2854
3882−-- | A Job represents an ongoing process that can be monitored for status
2855+-- | The read group set export request.
3883−-- information.
3884−--
2856+--
3885−-- /See:/ 'job' smart constructor.
2857+-- /See:/ 'exportReadGroupSetRequest' smart constructor.
3886−data Job = Job
2858+data ExportReadGroupSetRequest = ExportReadGroupSetRequest
3887− { _jDetailedStatus :: !(Maybe Text)
2859+ { _ergsrReferenceNames :: !(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)
2860+ , _ergsrExportURI :: !(Maybe Text)
3894− , _jErrors :: !(Maybe [Text])
2861+ , _ergsrProjectId :: !(Maybe Text)
3895− , _jRequest :: !(Maybe JobRequest)
3896 } deriving (Eq,Show,Data,Typeable,Generic)
2862 } deriving (Eq,Show,Data,Typeable,Generic)
3897
2863
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.
3899--
2865--
3900-- Use one of the following lenses to modify other fields as desired:
2866-- Use one of the following lenses to modify other fields as desired:
3901--
2867--
3902−-- * 'jDetailedStatus'
2868+-- * 'ergsrReferenceNames'
3903−--
3904−-- * 'jStatus'
3905−--
3906−-- * 'jCreated'
3907−--
3908−-- * 'jProjectNumber'
3909−--
3910−-- * 'jWarnings'
3911−--
3912−-- * 'jImportedIds'
3913−--
3914−-- * 'jId'
3915--
2869--
3916−-- * 'jErrors'
2870+-- * 'ergsrExportURI'
3917--
2871--
3918−-- * 'jRequest'
2872+-- * 'ergsrProjectId'
3919−job
2873+exportReadGroupSetRequest
3920− :: Job
2874+ :: ExportReadGroupSetRequest
3921−job =
2875+exportReadGroupSetRequest =
3922− Job
2876+ ExportReadGroupSetRequest
3923− { _jDetailedStatus = Nothing
2877+ { _ergsrReferenceNames = Nothing
3924− , _jStatus = Nothing
2878+ , _ergsrExportURI = Nothing
3925− , _jCreated = Nothing
2879+ , _ergsrProjectId = Nothing
3926− , _jProjectNumber = Nothing
3927− , _jWarnings = Nothing
3928− , _jImportedIds = Nothing
3929− , _jId = Nothing
3930− , _jErrors = Nothing
3931− , _jRequest = Nothing
3932 }
2880 }
3933
2881
3934−-- | A more detailed description of this job\'s current status.
2882+-- | The reference names to export. If this is not specified, all reference
3935−jDetailedStatus :: Lens' Job (Maybe Text)
2883+-- sequences, including unmapped reads, are exported. Use \`*\` to export
3936−jDetailedStatus
2884+-- only unmapped reads.
3937− = lens _jDetailedStatus
2885+ergsrReferenceNames :: Lens' ExportReadGroupSetRequest [Text]
3938− (\ s a -> s{_jDetailedStatus = a})
2886+ergsrReferenceNames
3939−
2887+ = lens _ergsrReferenceNames
3940−-- | The status of this job.
2888+ (\ s a -> s{_ergsrReferenceNames = a})
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})
3966 . _Default
2889 . _Default
3967 . _Coerce
2890 . _Coerce
3968
2891
3969−-- | The job ID.
2892+-- | Required. A Google Cloud Storage URI for the exported BAM file. The
3970−jId :: Lens' Job (Maybe Text)
2893+-- currently authenticated user must have write access to the new file. An
3971−jId = lens _jId (\ s a -> s{_jId = a})
2894+-- error will be returned if the URI already contains data.
3972−
2895+ergsrExportURI :: Lens' ExportReadGroupSetRequest (Maybe Text)
3973−-- | Any errors that occurred during processing.
2896+ergsrExportURI
3974−jErrors :: Lens' Job [Text]
2897+ = lens _ergsrExportURI
3975−jErrors
2898+ (\ s a -> s{_ergsrExportURI = a})
3976− = lens _jErrors (\ s a -> s{_jErrors = a}) . _Default
3977− . _Coerce
3978
2899
3979−-- | A summarized representation of the original service request.
2900+-- | Required. The Google Developers Console project ID that owns this
3980−jRequest :: Lens' Job (Maybe JobRequest)
2901+-- export.
3981−jRequest = lens _jRequest (\ s a -> s{_jRequest = a})
2902+ergsrProjectId :: Lens' ExportReadGroupSetRequest (Maybe Text)
2903+ergsrProjectId
2904+ = lens _ergsrProjectId
2905+ (\ s a -> s{_ergsrProjectId = a})
3982
2906
3983−instance FromJSON Job where
2907+instance FromJSON ExportReadGroupSetRequest where
3984 parseJSON
2908 parseJSON
3985− = withObject "Job"
2909+ = withObject "ExportReadGroupSetRequest"
3986 (\ o ->
2910 (\ o ->
3987− Job <$>
2911+ ExportReadGroupSetRequest <$>
3988− (o .:? "detailedStatus") <*> (o .:? "status") <*>
2912+ (o .:? "referenceNames" .!= mempty) <*>
3989− (o .:? "created")
2913+ (o .:? "exportUri")
3990− <*> (o .:? "projectNumber")
2914+ <*> (o .:? "projectId"))
3991− <*> (o .:? "warnings" .!= mempty)
3992− <*> (o .:? "importedIds" .!= mempty)
3993− <*> (o .:? "id")
3994− <*> (o .:? "errors" .!= mempty)
3995− <*> (o .:? "request"))
3996
2915
3997−instance ToJSON Job where
2916+instance ToJSON ExportReadGroupSetRequest where
3998− toJSON Job{..}
2917+ toJSON ExportReadGroupSetRequest{..}
3999 = object
2918 = object
4000 (catMaybes
2919 (catMaybes
4001− [("detailedStatus" .=) <$> _jDetailedStatus,
2920+ [("referenceNames" .=) <$> _ergsrReferenceNames,
4002− ("status" .=) <$> _jStatus,
2921+ ("exportUri" .=) <$> _ergsrExportURI,
4003− ("created" .=) <$> _jCreated,
2922+ ("projectId" .=) <$> _ergsrProjectId])
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])
4076
2923
4077-- | The variant data import response.
2924-- | The variant data import response.
4078--
2925--
4079-- /See:/ 'importVariantsResponse' smart constructor.
2926-- /See:/ 'importVariantsResponse' smart constructor.
4080newtype ImportVariantsResponse = ImportVariantsResponse
2927newtype ImportVariantsResponse = ImportVariantsResponse
4081− { _ivrJobId :: Maybe Text
2928+ { _ivrCallSetIds :: Maybe [Text]
4082 } deriving (Eq,Show,Data,Typeable,Generic)
2929 } deriving (Eq,Show,Data,Typeable,Generic)
4083
2930
4084-- | Creates a value of 'ImportVariantsResponse' with the minimum fields required to make a request.
2931-- | Creates a value of 'ImportVariantsResponse' with the minimum fields required to make a request.
4085--
2932--
4086-- Use one of the following lenses to modify other fields as desired:
2933-- Use one of the following lenses to modify other fields as desired:
4087--
2934--
4088−-- * 'ivrJobId'
2935+-- * 'ivrCallSetIds'
4089importVariantsResponse
2936importVariantsResponse
4090 :: ImportVariantsResponse
2937 :: ImportVariantsResponse
4091importVariantsResponse =
2938importVariantsResponse =
4092 ImportVariantsResponse
2939 ImportVariantsResponse
4093− { _ivrJobId = Nothing
2940+ { _ivrCallSetIds = Nothing
4094 }
2941 }
4095
2942
4096−-- | A job ID that can be used to get status information.
2943+-- | IDs of the call sets that were created.
4097−ivrJobId :: Lens' ImportVariantsResponse (Maybe Text)
2944+ivrCallSetIds :: Lens' ImportVariantsResponse [Text]
4098−ivrJobId = lens _ivrJobId (\ s a -> s{_ivrJobId = a})
2945+ivrCallSetIds
2946+ = lens _ivrCallSetIds
2947+ (\ s a -> s{_ivrCallSetIds = a})
2948+ . _Default
2949+ . _Coerce
4099
2950
4100instance FromJSON ImportVariantsResponse where
2951instance FromJSON ImportVariantsResponse where
4101 parseJSON
2952 parseJSON
4102 = withObject "ImportVariantsResponse"
2953 = withObject "ImportVariantsResponse"
2954+ (\ o ->
4103− (\ o -> ImportVariantsResponse <$> (o .:? "jobId"))
2955+ ImportVariantsResponse <$>
2956+ (o .:? "callSetIds" .!= mempty))
4104
2957
4105instance ToJSON ImportVariantsResponse where
2958instance ToJSON ImportVariantsResponse where
4106 toJSON ImportVariantsResponse{..}
2959 toJSON ImportVariantsResponse{..}
4107− = object (catMaybes [("jobId" .=) <$> _ivrJobId])
2960+ = object
2961+ (catMaybes [("callSetIds" .=) <$> _ivrCallSetIds])
4108
2962
4109--
2963--
4110-- /See:/ 'listCoverageBucketsResponse' smart constructor.
2964-- /See:/ 'listCoverageBucketsResponse' smart constructor.
@@ -4144,7 +2998,7 @@ lcbrNextPageToken
4144-- | The length of each coverage bucket in base pairs. Note that buckets at
2998-- | The length of each coverage bucket in base pairs. Note that buckets at
4145-- the end of a reference sequence may be shorter. This value is omitted if
2999-- the end of a reference sequence may be shorter. This value is omitted if
4146-- the bucket width is infinity (the default behaviour, with no range or
3000-- the bucket width is infinity (the default behaviour, with no range or
4147−-- targetBucketWidth).
3001+-- \`targetBucketWidth\`).
4148lcbrBucketWidth :: Lens' ListCoverageBucketsResponse (Maybe Int64)
3002lcbrBucketWidth :: Lens' ListCoverageBucketsResponse (Maybe Int64)
4149lcbrBucketWidth
3003lcbrBucketWidth
4150 = lens _lcbrBucketWidth
3004 = lens _lcbrBucketWidth
@@ -4152,8 +3006,8 @@ lcbrBucketWidth
4152
3006
4153-- | The coverage buckets. The list of buckets is sparse; a bucket with 0
3007-- | The coverage buckets. The list of buckets is sparse; a bucket with 0
4154-- overlapping reads is not returned. A bucket never crosses more than one
3008-- overlapping reads is not returned. A bucket never crosses more than one
4155−-- reference sequence. Each bucket has width bucketWidth, unless its end is
3009+-- reference sequence. Each bucket has width \`bucketWidth\`, unless its
4156−-- the end of the reference sequence.
3010+-- end is the end of the reference sequence.
4157lcbrCoverageBuckets :: Lens' ListCoverageBucketsResponse [CoverageBucket]
3011lcbrCoverageBuckets :: Lens' ListCoverageBucketsResponse [CoverageBucket]
4158lcbrCoverageBuckets
3012lcbrCoverageBuckets
4159 = lens _lcbrCoverageBuckets
3013 = lens _lcbrCoverageBuckets
@@ -4177,39 +3031,89 @@ instance ToJSON ListCoverageBucketsResponse where
4177 ("bucketWidth" .=) <$> _lcbrBucketWidth,
3031 ("bucketWidth" .=) <$> _lcbrBucketWidth,
4178 ("coverageBuckets" .=) <$> _lcbrCoverageBuckets])
3032 ("coverageBuckets" .=) <$> _lcbrCoverageBuckets])
4179
3033
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+
4180-- | The read group set import response.
3078-- | The read group set import response.
4181--
3079--
4182-- /See:/ 'importReadGroupSetsResponse' smart constructor.
3080-- /See:/ 'importReadGroupSetsResponse' smart constructor.
4183newtype ImportReadGroupSetsResponse = ImportReadGroupSetsResponse
3081newtype ImportReadGroupSetsResponse = ImportReadGroupSetsResponse
4184− { _irgsrJobId :: Maybe Text
3082+ { _irgsrReadGroupSetIds :: Maybe [Text]
4185 } deriving (Eq,Show,Data,Typeable,Generic)
3083 } deriving (Eq,Show,Data,Typeable,Generic)
4186
3084
4187-- | Creates a value of 'ImportReadGroupSetsResponse' with the minimum fields required to make a request.
3085-- | Creates a value of 'ImportReadGroupSetsResponse' with the minimum fields required to make a request.
4188--
3086--
4189-- Use one of the following lenses to modify other fields as desired:
3087-- Use one of the following lenses to modify other fields as desired:
4190--
3088--
4191−-- * 'irgsrJobId'
3089+-- * 'irgsrReadGroupSetIds'
4192importReadGroupSetsResponse
3090importReadGroupSetsResponse
4193 :: ImportReadGroupSetsResponse
3091 :: ImportReadGroupSetsResponse
4194importReadGroupSetsResponse =
3092importReadGroupSetsResponse =
4195 ImportReadGroupSetsResponse
3093 ImportReadGroupSetsResponse
4196− { _irgsrJobId = Nothing
3094+ { _irgsrReadGroupSetIds = Nothing
4197 }
3095 }
4198
3096
4199−-- | A job ID that can be used to get status information.
3097+-- | IDs of the read group sets that were created.
4200−irgsrJobId :: Lens' ImportReadGroupSetsResponse (Maybe Text)
3098+irgsrReadGroupSetIds :: Lens' ImportReadGroupSetsResponse [Text]
4201−irgsrJobId
3099+irgsrReadGroupSetIds
4202− = lens _irgsrJobId (\ s a -> s{_irgsrJobId = a})
3100+ = lens _irgsrReadGroupSetIds
3101+ (\ s a -> s{_irgsrReadGroupSetIds = a})
3102+ . _Default
3103+ . _Coerce
4203
3104
4204instance FromJSON ImportReadGroupSetsResponse where
3105instance FromJSON ImportReadGroupSetsResponse where
4205 parseJSON
3106 parseJSON
4206 = withObject "ImportReadGroupSetsResponse"
3107 = withObject "ImportReadGroupSetsResponse"
4207 (\ o ->
3108 (\ o ->
4208− ImportReadGroupSetsResponse <$> (o .:? "jobId"))
3109+ ImportReadGroupSetsResponse <$>
3110+ (o .:? "readGroupSetIds" .!= mempty))
4209
3111
4210instance ToJSON ImportReadGroupSetsResponse where
3112instance ToJSON ImportReadGroupSetsResponse where
4211 toJSON ImportReadGroupSetsResponse{..}
3113 toJSON ImportReadGroupSetsResponse{..}
3114+ = object
4212− = object (catMaybes [("jobId" .=) <$> _irgsrJobId])
3115+ (catMaybes
3116+ [("readGroupSetIds" .=) <$> _irgsrReadGroupSetIds])
4213
3117
4214-- | A linear alignment can be represented by one CIGAR string. Describes the
3118-- | A linear alignment can be represented by one CIGAR string. Describes the
4215-- mapped position and local alignment of the read to the reference.
3119-- mapped position and local alignment of the read to the reference.
@@ -4236,280 +3140,44 @@ linearAlignment =
4236 LinearAlignment
3140 LinearAlignment
4237 { _laCigar = Nothing
3141 { _laCigar = Nothing
4238 , _laMAppingQuality = Nothing
3142 , _laMAppingQuality = Nothing
4239− , _laPosition = Nothing
3143+ , _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
4455 }
3144 }
4456
3145
4457−-- | The ID of the reference set that defines the coordinate space for this
3146+-- | Represents the local alignment of this sequence (alignment matches,
4458−-- set\'s annotations.
3147+-- indels, etc) against the reference.
4459−asReferenceSetId :: Lens' AnnotationSet (Maybe Text)
3148+laCigar :: Lens' LinearAlignment [CigarUnit]
4460−asReferenceSetId
3149+laCigar
4461− = lens _asReferenceSetId
3150+ = lens _laCigar (\ s a -> s{_laCigar = a}) . _Default
4462− (\ s a -> s{_asReferenceSetId = a})
3151+ . _Coerce
4463−
3152+
4464−-- | The display name for this annotation set.
3153+-- | The mapping quality of this alignment. Represents how likely the read
4465−asName :: Lens' AnnotationSet (Maybe Text)
3154+-- maps to this position as opposed to other locations.
4466−asName = lens _asName (\ s a -> s{_asName = a})
3155+laMAppingQuality :: Lens' LinearAlignment (Maybe Int32)
4467−
3156+laMAppingQuality
4468−-- | The ID of the containing dataset.
3157+ = lens _laMAppingQuality
4469−asDatasetId :: Lens' AnnotationSet (Maybe Text)
3158+ (\ s a -> s{_laMAppingQuality = a})
4470−asDatasetId
3159+
4471− = lens _asDatasetId (\ s a -> s{_asDatasetId = a})
3160+-- | The position of this alignment.
4472−
3161+laPosition :: Lens' LinearAlignment (Maybe Position)
4473−-- | The generated unique ID for this annotation set.
3162+laPosition
4474−asId :: Lens' AnnotationSet (Maybe Text)
3163+ = lens _laPosition (\ s a -> s{_laPosition = a})
4475−asId = lens _asId (\ s a -> s{_asId = a})
3164+
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
3165+instance FromJSON LinearAlignment where
4492 parseJSON
3166 parseJSON
4493− = withObject "AnnotationSet"
3167+ = withObject "LinearAlignment"
4494 (\ o ->
3168 (\ o ->
4495− AnnotationSet <$>
3169+ LinearAlignment <$>
4496− (o .:? "referenceSetId") <*> (o .:? "name") <*>
3170+ (o .:? "cigar" .!= mempty) <*>
4497− (o .:? "datasetId")
3171+ (o .:? "mappingQuality")
4498− <*> (o .:? "id")
3172+ <*> (o .:? "position"))
4499− <*> (o .:? "type")
4500− <*> (o .:? "sourceUri")
4501− <*> (o .:? "info"))
4502
3173
4503−instance ToJSON AnnotationSet where
3174+instance ToJSON LinearAlignment where
4504− toJSON AnnotationSet{..}
3175+ toJSON LinearAlignment{..}
4505 = object
3176 = object
4506 (catMaybes
3177 (catMaybes
4507− [("referenceSetId" .=) <$> _asReferenceSetId,
3178+ [("cigar" .=) <$> _laCigar,
4508− ("name" .=) <$> _asName,
3179+ ("mappingQuality" .=) <$> _laMAppingQuality,
4509− ("datasetId" .=) <$> _asDatasetId,
3180+ ("position" .=) <$> _laPosition])
4510− ("id" .=) <$> _asId, ("type" .=) <$> _asType,
4511− ("sourceUri" .=) <$> _asSourceURI,
4512− ("info" .=) <$> _asInfo])
4513
3181
4514-- | A variant set is a collection of call sets and variants. It contains
3182-- | A variant set is a collection of call sets and variants. It contains
4515-- summary statistics of those contents. A variant set belongs to a
3183-- summary statistics of those contents. A variant set belongs to a
@@ -4519,7 +3187,7 @@ instance ToJSON AnnotationSet where
4519data VariantSet = VariantSet
3187data VariantSet = VariantSet
4520 { _vsDatasetId :: !(Maybe Text)
3188 { _vsDatasetId :: !(Maybe Text)
4521 , _vsReferenceBounds :: !(Maybe [ReferenceBound])
3189 , _vsReferenceBounds :: !(Maybe [ReferenceBound])
4522− , _vsMetadata :: !(Maybe [Metadata])
3190+ , _vsMetadata :: !(Maybe [VariantSetMetadata])
4523 , _vsId :: !(Maybe Text)
3191 , _vsId :: !(Maybe Text)
4524 } deriving (Eq,Show,Data,Typeable,Generic)
3192 } deriving (Eq,Show,Data,Typeable,Generic)
4525
3193
@@ -4544,7 +3212,7 @@ variantSet =
4544 , _vsId = Nothing
3212 , _vsId = Nothing
4545 }
3213 }
4546
3214
4547−-- | The dataset to which this variant set belongs. Immutable.
3215+-- | The dataset to which this variant set belongs.
4548vsDatasetId :: Lens' VariantSet (Maybe Text)
3216vsDatasetId :: Lens' VariantSet (Maybe Text)
4549vsDatasetId
3217vsDatasetId
4550 = lens _vsDatasetId (\ s a -> s{_vsDatasetId = a})
3218 = lens _vsDatasetId (\ s a -> s{_vsDatasetId = a})
@@ -4559,13 +3227,13 @@ vsReferenceBounds
4559 . _Coerce
3227 . _Coerce
4560
3228
4561-- | The metadata associated with this variant set.
3229-- | The metadata associated with this variant set.
4562−vsMetadata :: Lens' VariantSet [Metadata]
3230+vsMetadata :: Lens' VariantSet [VariantSetMetadata]
4563vsMetadata
3231vsMetadata
4564 = lens _vsMetadata (\ s a -> s{_vsMetadata = a}) .
3232 = lens _vsMetadata (\ s a -> s{_vsMetadata = a}) .
4565 _Default
3233 _Default
4566 . _Coerce
3234 . _Coerce
4567
3235
4568−-- | The Google-generated ID of the variant set. Immutable.
3236+-- | The server-generated variant set ID, unique across all variant sets.
4569vsId :: Lens' VariantSet (Maybe Text)
3237vsId :: Lens' VariantSet (Maybe Text)
4570vsId = lens _vsId (\ s a -> s{_vsId = a})
3238vsId = lens _vsId (\ s a -> s{_vsId = a})
4571
3239
@@ -4588,6 +3256,47 @@ instance ToJSON VariantSet where
4588 ("metadata" .=) <$> _vsMetadata,
3256 ("metadata" .=) <$> _vsMetadata,
4589 ("id" .=) <$> _vsId])
3257 ("id" .=) <$> _vsId])
4590
3258
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+
4591-- | The dataset list response.
3300-- | The dataset list response.
4592--
3301--
4593-- /See:/ 'listDatasetsResponse' smart constructor.
3302-- /See:/ 'listDatasetsResponse' smart constructor.
@@ -4649,7 +3358,7 @@ data ImportReadGroupSetsRequest = ImportReadGroupSetsRequest
4649 { _irgsrReferenceSetId :: !(Maybe Text)
3358 { _irgsrReferenceSetId :: !(Maybe Text)
4650 , _irgsrDatasetId :: !(Maybe Text)
3359 , _irgsrDatasetId :: !(Maybe Text)
4651 , _irgsrSourceURIs :: !(Maybe [Text])
3360 , _irgsrSourceURIs :: !(Maybe [Text])
4652− , _irgsrPartitionStrategy :: !(Maybe ImportReadGroupSetsRequestPartitionStrategy)
3361+ , _irgsrPartitionStrategy :: !(Maybe Text)
4653 } deriving (Eq,Show,Data,Typeable,Generic)
3362 } deriving (Eq,Show,Data,Typeable,Generic)
4654
3363
4655-- | Creates a value of 'ImportReadGroupSetsRequest' with the minimum fields required to make a request.
3364-- | Creates a value of 'ImportReadGroupSetsRequest' with the minimum fields required to make a request.
@@ -4690,7 +3399,9 @@ irgsrDatasetId
4690 = lens _irgsrDatasetId
3399 = lens _irgsrDatasetId
4691 (\ s a -> s{_irgsrDatasetId = a})
3400 (\ s a -> s{_irgsrDatasetId = a})
4692
3401
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.
4694irgsrSourceURIs :: Lens' ImportReadGroupSetsRequest [Text]
3405irgsrSourceURIs :: Lens' ImportReadGroupSetsRequest [Text]
4695irgsrSourceURIs
3406irgsrSourceURIs
4696 = lens _irgsrSourceURIs
3407 = lens _irgsrSourceURIs
@@ -4700,7 +3411,7 @@ irgsrSourceURIs
4700
3411
4701-- | The partition strategy describes how read groups are partitioned into
3412-- | The partition strategy describes how read groups are partitioned into
4702-- read group sets.
3413-- read group sets.
4703−irgsrPartitionStrategy :: Lens' ImportReadGroupSetsRequest (Maybe ImportReadGroupSetsRequestPartitionStrategy)
3414+irgsrPartitionStrategy :: Lens' ImportReadGroupSetsRequest (Maybe Text)
4704irgsrPartitionStrategy
3415irgsrPartitionStrategy
4705 = lens _irgsrPartitionStrategy
3416 = lens _irgsrPartitionStrategy
4706 (\ s a -> s{_irgsrPartitionStrategy = a})
3417 (\ s a -> s{_irgsrPartitionStrategy = a})
@@ -4728,7 +3439,8 @@ instance ToJSON ImportReadGroupSetsRequest where
4728--
3439--
4729-- /See:/ 'importVariantsRequest' smart constructor.
3440-- /See:/ 'importVariantsRequest' smart constructor.
4730data ImportVariantsRequest = ImportVariantsRequest
3441data ImportVariantsRequest = ImportVariantsRequest
3442+ { _ivrVariantSetId :: !(Maybe Text)
4731− { _ivrFormat :: !(Maybe ImportVariantsRequestFormat)
3443+ , _ivrFormat :: !(Maybe Text)
4732 , _ivrNormalizeReferenceNames :: !(Maybe Bool)
3444 , _ivrNormalizeReferenceNames :: !(Maybe Bool)
4733 , _ivrSourceURIs :: !(Maybe [Text])
3445 , _ivrSourceURIs :: !(Maybe [Text])
4734 } deriving (Eq,Show,Data,Typeable,Generic)
3446 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -4737,6 +3449,8 @@ data ImportVariantsRequest = ImportVariantsRequest
4737--
3449--
4738-- Use one of the following lenses to modify other fields as desired:
3450-- Use one of the following lenses to modify other fields as desired:
4739--
3451--
3452+-- * 'ivrVariantSetId'
3453+--
4740-- * 'ivrFormat'
3454-- * 'ivrFormat'
4741--
3455--
4742-- * 'ivrNormalizeReferenceNames'
3456-- * 'ivrNormalizeReferenceNames'
@@ -4746,14 +3460,21 @@ importVariantsRequest
4746 :: ImportVariantsRequest
3460 :: ImportVariantsRequest
4747importVariantsRequest =
3461importVariantsRequest =
4748 ImportVariantsRequest
3462 ImportVariantsRequest
3463+ { _ivrVariantSetId = Nothing
4749− { _ivrFormat = Nothing
3464+ , _ivrFormat = Nothing
4750 , _ivrNormalizeReferenceNames = Nothing
3465 , _ivrNormalizeReferenceNames = Nothing
4751 , _ivrSourceURIs = Nothing
3466 , _ivrSourceURIs = Nothing
4752 }
3467 }
4753
3468
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+
4754-- | The format of the variant data being imported. If unspecified, defaults
3475-- | The format of the variant data being imported. If unspecified, defaults
4755−-- to to \"VCF\".
3476+-- to to \`VCF\`.
4756−ivrFormat :: Lens' ImportVariantsRequest (Maybe ImportVariantsRequestFormat)
3477+ivrFormat :: Lens' ImportVariantsRequest (Maybe Text)
4757ivrFormat
3478ivrFormat
4758 = lens _ivrFormat (\ s a -> s{_ivrFormat = a})
3479 = lens _ivrFormat (\ s a -> s{_ivrFormat = a})
4759
3480
@@ -4770,8 +3491,9 @@ ivrNormalizeReferenceNames
4770 (\ s a -> s{_ivrNormalizeReferenceNames = a})
3491 (\ s a -> s{_ivrNormalizeReferenceNames = a})
4771
3492
4772-- | A list of URIs referencing variant files in Google Cloud Storage. URIs
3493-- | A list of URIs referencing variant files in Google Cloud Storage. URIs
4773−-- can include wildcards as described here. Note that recursive wildcards
3494+-- can include wildcards [as described
3495+-- here](https:\/\/cloud.google.com\/storage\/docs\/gsutil\/addlhelp\/WildcardNames).
4774−-- (\'**\') are not supported.
3496+-- Note that recursive wildcards (\'**\') are not supported.
4775ivrSourceURIs :: Lens' ImportVariantsRequest [Text]
3497ivrSourceURIs :: Lens' ImportVariantsRequest [Text]
4776ivrSourceURIs
3498ivrSourceURIs
4777 = lens _ivrSourceURIs
3499 = lens _ivrSourceURIs
@@ -4784,7 +3506,7 @@ instance FromJSON ImportVariantsRequest where
4784 = withObject "ImportVariantsRequest"
3506 = withObject "ImportVariantsRequest"
4785 (\ o ->
3507 (\ o ->
4786 ImportVariantsRequest <$>
3508 ImportVariantsRequest <$>
4787− (o .:? "format") <*>
3509+ (o .:? "variantSetId") <*> (o .:? "format") <*>
4788 (o .:? "normalizeReferenceNames")
3510 (o .:? "normalizeReferenceNames")
4789 <*> (o .:? "sourceUris" .!= mempty))
3511 <*> (o .:? "sourceUris" .!= mempty))
4790
3512
@@ -4792,61 +3514,17 @@ instance ToJSON ImportVariantsRequest where
4792 toJSON ImportVariantsRequest{..}
3514 toJSON ImportVariantsRequest{..}
4793 = object
3515 = object
4794 (catMaybes
3516 (catMaybes
3517+ [("variantSetId" .=) <$> _ivrVariantSetId,
4795− [("format" .=) <$> _ivrFormat,
3518+ ("format" .=) <$> _ivrFormat,
4796 ("normalizeReferenceNames" .=) <$>
3519 ("normalizeReferenceNames" .=) <$>
4797 _ivrNormalizeReferenceNames,
3520 _ivrNormalizeReferenceNames,
4798 ("sourceUris" .=) <$> _ivrSourceURIs])
3521 ("sourceUris" .=) <$> _ivrSourceURIs])
4799
3522
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−
4845-- | A single CIGAR operation.
3523-- | A single CIGAR operation.
4846--
3524--
4847-- /See:/ 'cigarUnit' smart constructor.
3525-- /See:/ 'cigarUnit' smart constructor.
4848data CigarUnit = CigarUnit
3526data CigarUnit = CigarUnit
4849− { _cuOperation :: !(Maybe CigarUnitOperation)
3527+ { _cuOperation :: !(Maybe Text)
4850 , _cuOperationLength :: !(Maybe Int64)
3528 , _cuOperationLength :: !(Maybe Int64)
4851 , _cuReferenceSequence :: !(Maybe Text)
3529 , _cuReferenceSequence :: !(Maybe Text)
4852 } deriving (Eq,Show,Data,Typeable,Generic)
3530 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -4869,19 +3547,19 @@ cigarUnit =
4869 , _cuReferenceSequence = Nothing
3547 , _cuReferenceSequence = Nothing
4870 }
3548 }
4871
3549
4872−cuOperation :: Lens' CigarUnit (Maybe CigarUnitOperation)
3550+cuOperation :: Lens' CigarUnit (Maybe Text)
4873cuOperation
3551cuOperation
4874 = lens _cuOperation (\ s a -> s{_cuOperation = a})
3552 = lens _cuOperation (\ s a -> s{_cuOperation = a})
4875
3553
4876−-- | The number of bases that the operation runs for. Required.
3554+-- | The number of genomic bases that the operation runs for. Required.
4877cuOperationLength :: Lens' CigarUnit (Maybe Int64)
3555cuOperationLength :: Lens' CigarUnit (Maybe Int64)
4878cuOperationLength
3556cuOperationLength
4879 = lens _cuOperationLength
3557 = lens _cuOperationLength
4880 (\ s a -> s{_cuOperationLength = a})
3558 (\ s a -> s{_cuOperationLength = a})
4881
3559
4882−-- | referenceSequence is only used at mismatches (SEQUENCE_MISMATCH) and
3560+-- | \`referenceSequence\` is only used at mismatches (\`SEQUENCE_MISMATCH\`)
4883−-- deletions (DELETE). Filling this field replaces SAM\'s MD tag. If the
3561+-- and deletions (\`DELETE\`). Filling this field replaces SAM\'s MD tag.
4884−-- relevant information is not available, this field is unset.
3562+-- If the relevant information is not available, this field is unset.
4885cuReferenceSequence :: Lens' CigarUnit (Maybe Text)
3563cuReferenceSequence :: Lens' CigarUnit (Maybe Text)
4886cuReferenceSequence
3564cuReferenceSequence
4887 = lens _cuReferenceSequence
3565 = lens _cuReferenceSequence
@@ -4903,107 +3581,78 @@ instance ToJSON CigarUnit where
4903 ("operationLength" .=) <$> _cuOperationLength,
3581 ("operationLength" .=) <$> _cuOperationLength,
4904 ("referenceSequence" .=) <$> _cuReferenceSequence])
3582 ("referenceSequence" .=) <$> _cuReferenceSequence])
4905
3583
4906−-- | The read group set align request.
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).
4907−--
3597+--
4908−-- /See:/ 'alignReadGroupSetsRequest' smart constructor.
3598+-- /See:/ 'policy' smart constructor.
4909−data AlignReadGroupSetsRequest = AlignReadGroupSetsRequest
3599+data Policy = Policy
4910− { _argsrInterleavedFastqSource :: !(Maybe InterleavedFastqSource)
3600+ { _polEtag :: !(Maybe Word8)
4911− , _argsrReadGroupSetId :: !(Maybe Text)
3601+ , _polVersion :: !(Maybe Int32)
4912− , _argsrBamSourceURIs :: !(Maybe [Text])
3602+ , _polBindings :: !(Maybe [Binding])
4913− , _argsrPairedFastqSource :: !(Maybe PairedFastqSource)
4914− , _argsrDatasetId :: !(Maybe Text)
4915 } deriving (Eq,Show,Data,Typeable,Generic)
3603 } deriving (Eq,Show,Data,Typeable,Generic)
4916
3604
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.
4918--
3606--
4919-- Use one of the following lenses to modify other fields as desired:
3607-- Use one of the following lenses to modify other fields as desired:
4920--
3608--
4921−-- * 'argsrInterleavedFastqSource'
3609+-- * 'polEtag'
4922−--
4923−-- * 'argsrReadGroupSetId'
4924--
3610--
4925−-- * 'argsrBamSourceURIs'
3611+-- * 'polVersion'
4926--
3612--
4927−-- * 'argsrPairedFastqSource'
3613+-- * 'polBindings'
4928−--
3614+policy
4929−-- * 'argsrDatasetId'
3615+ :: Policy
4930−alignReadGroupSetsRequest
3616+policy =
4931− :: AlignReadGroupSetsRequest
3617+ Policy
4932−alignReadGroupSetsRequest =
3618+ { _polEtag = Nothing
4933− AlignReadGroupSetsRequest
3619+ , _polVersion = Nothing
4934− { _argsrInterleavedFastqSource = Nothing
3620+ , _polBindings = Nothing
4935− , _argsrReadGroupSetId = Nothing
4936− , _argsrBamSourceURIs = Nothing
4937− , _argsrPairedFastqSource = Nothing
4938− , _argsrDatasetId = Nothing
4939 }
3621 }
4940
3622
4941−-- | The interleaved FASTQ source files for alignment, where both members of
3623+-- | Can be used to perform a read-modify-write.
4942−-- each pair of reads are found on consecutive records within the same
3624+polEtag :: Lens' Policy (Maybe Word8)
4943−-- FASTQ file. Exactly one of readGroupSetId, bamSourceUris,
3625+polEtag = lens _polEtag (\ s a -> s{_polEtag = a})
4944−-- interleavedFastqSource or pairedFastqSource must be provided.
3626+
4945−argsrInterleavedFastqSource :: Lens' AlignReadGroupSetsRequest (Maybe InterleavedFastqSource)
3627+-- | Version of the \`Policy\`. The default version is 0.
4946−argsrInterleavedFastqSource
3628+polVersion :: Lens' Policy (Maybe Int32)
4947− = lens _argsrInterleavedFastqSource
3629+polVersion
4948− (\ s a -> s{_argsrInterleavedFastqSource = a})
3630+ = lens _polVersion (\ s a -> s{_polVersion = a})
4949−
3631+
4950−-- | The ID of the read group set which will be aligned. A new read group set
3632+-- | Associates a list of \`members\` to a \`role\`. Multiple \`bindings\`
4951−-- will be generated to hold the aligned data, the originals will not be
3633+-- must not be specified for the same \`role\`. \`bindings\` with no
4952−-- modified. The caller must have READ permissions for this read group set.
3634+-- members will result in an error.
4953−-- Exactly one of readGroupSetId, bamSourceUris, interleavedFastqSource or
3635+polBindings :: Lens' Policy [Binding]
4954−-- pairedFastqSource must be provided.
3636+polBindings
4955−argsrReadGroupSetId :: Lens' AlignReadGroupSetsRequest (Maybe Text)
3637+ = lens _polBindings (\ s a -> s{_polBindings = a}) .
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
3638+ _Default
4968 . _Coerce
3639 . _Coerce
4969
3640
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
4987 parseJSON
3642 parseJSON
4988− = withObject "AlignReadGroupSetsRequest"
3643+ = withObject "Policy"
4989 (\ o ->
3644 (\ o ->
4990− AlignReadGroupSetsRequest <$>
3645+ Policy <$>
4991− (o .:? "interleavedFastqSource") <*>
3646+ (o .:? "etag") <*> (o .:? "version") <*>
4992− (o .:? "readGroupSetId")
4993− <*> (o .:? "bamSourceUris" .!= mempty)
3647+ (o .:? "bindings" .!= mempty))
4994− <*> (o .:? "pairedFastqSource")
3648+
4995− <*> (o .:? "datasetId"))
4996−
4997−instance ToJSON AlignReadGroupSetsRequest where
3649+instance ToJSON Policy where
4998− toJSON AlignReadGroupSetsRequest{..}
3650+ toJSON Policy{..}
4999 = object
3651 = object
5000 (catMaybes
3652 (catMaybes
5001− [("interleavedFastqSource" .=) <$>
3653+ [("etag" .=) <$> _polEtag,
5002− _argsrInterleavedFastqSource,
3654+ ("version" .=) <$> _polVersion,
5003− ("readGroupSetId" .=) <$> _argsrReadGroupSetId,
3655+ ("bindings" .=) <$> _polBindings])
5004− ("bamSourceUris" .=) <$> _argsrBamSourceURIs,
5005− ("pairedFastqSource" .=) <$> _argsrPairedFastqSource,
5006− ("datasetId" .=) <$> _argsrDatasetId])
5007
3656
5008-- | The variant data export request.
3657-- | The variant data export request.
5009--
3658--
@@ -5011,9 +3660,9 @@ instance ToJSON AlignReadGroupSetsRequest where
5011data ExportVariantSetRequest = ExportVariantSetRequest
3660data ExportVariantSetRequest = ExportVariantSetRequest
5012 { _evsrBigQueryDataset :: !(Maybe Text)
3661 { _evsrBigQueryDataset :: !(Maybe Text)
5013 , _evsrBigQueryTable :: !(Maybe Text)
3662 , _evsrBigQueryTable :: !(Maybe Text)
5014− , _evsrFormat :: !(Maybe ExportVariantSetRequestFormat)
3663+ , _evsrFormat :: !(Maybe Text)
5015− , _evsrProjectNumber :: !(Maybe Int64)
5016 , _evsrCallSetIds :: !(Maybe [Text])
3664 , _evsrCallSetIds :: !(Maybe [Text])
3665+ , _evsrProjectId :: !(Maybe Text)
5017 } deriving (Eq,Show,Data,Typeable,Generic)
3666 } deriving (Eq,Show,Data,Typeable,Generic)
5018
3667
5019-- | Creates a value of 'ExportVariantSetRequest' with the minimum fields required to make a request.
3668-- | Creates a value of 'ExportVariantSetRequest' with the minimum fields required to make a request.
@@ -5026,9 +3675,9 @@ data ExportVariantSetRequest = ExportVariantSetRequest
5026--
3675--
5027-- * 'evsrFormat'
3676-- * 'evsrFormat'
5028--
3677--
5029−-- * 'evsrProjectNumber'
5030−--
5031-- * 'evsrCallSetIds'
3678-- * 'evsrCallSetIds'
3679+--
3680+-- * 'evsrProjectId'
5032exportVariantSetRequest
3681exportVariantSetRequest
5033 :: ExportVariantSetRequest
3682 :: ExportVariantSetRequest
5034exportVariantSetRequest =
3683exportVariantSetRequest =
@@ -5036,8 +3685,8 @@ exportVariantSetRequest =
5036 { _evsrBigQueryDataset = Nothing
3685 { _evsrBigQueryDataset = Nothing
5037 , _evsrBigQueryTable = Nothing
3686 , _evsrBigQueryTable = Nothing
5038 , _evsrFormat = Nothing
3687 , _evsrFormat = Nothing
5039− , _evsrProjectNumber = Nothing
5040 , _evsrCallSetIds = Nothing
3688 , _evsrCallSetIds = Nothing
3689+ , _evsrProjectId = Nothing
5041 }
3690 }
5042
3691
5043-- | Required. The BigQuery dataset to export data to. This dataset must
3692-- | Required. The BigQuery dataset to export data to. This dataset must
@@ -5056,18 +3705,10 @@ evsrBigQueryTable
5056 (\ s a -> s{_evsrBigQueryTable = a})
3705 (\ s a -> s{_evsrBigQueryTable = a})
5057
3706
5058-- | The format for the exported data.
3707-- | The format for the exported data.
5059−evsrFormat :: Lens' ExportVariantSetRequest (Maybe ExportVariantSetRequestFormat)
3708+evsrFormat :: Lens' ExportVariantSetRequest (Maybe Text)
5060evsrFormat
3709evsrFormat
5061 = lens _evsrFormat (\ s a -> s{_evsrFormat = a})
3710 = lens _evsrFormat (\ s a -> s{_evsrFormat = a})
5062
3711
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−
5071-- | If provided, only variant call information from the specified call sets
3712-- | If provided, only variant call information from the specified call sets
5072-- will be exported. By default all variant calls are exported.
3713-- will be exported. By default all variant calls are exported.
5073evsrCallSetIds :: Lens' ExportVariantSetRequest [Text]
3714evsrCallSetIds :: Lens' ExportVariantSetRequest [Text]
@@ -5077,6 +3718,14 @@ evsrCallSetIds
5077 . _Default
3718 . _Default
5078 . _Coerce
3719 . _Coerce
5079
3720
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+
5080instance FromJSON ExportVariantSetRequest where
3729instance FromJSON ExportVariantSetRequest where
5081 parseJSON
3730 parseJSON
5082 = withObject "ExportVariantSetRequest"
3731 = withObject "ExportVariantSetRequest"
@@ -5084,8 +3733,8 @@ instance FromJSON ExportVariantSetRequest where
5084 ExportVariantSetRequest <$>
3733 ExportVariantSetRequest <$>
5085 (o .:? "bigqueryDataset") <*> (o .:? "bigqueryTable")
3734 (o .:? "bigqueryDataset") <*> (o .:? "bigqueryTable")
5086 <*> (o .:? "format")
3735 <*> (o .:? "format")
5087− <*> (o .:? "projectNumber")
5088− <*> (o .:? "callSetIds" .!= mempty))
3736+ <*> (o .:? "callSetIds" .!= mempty)
3737+ <*> (o .:? "projectId"))
5089
3738
5090instance ToJSON ExportVariantSetRequest where
3739instance ToJSON ExportVariantSetRequest where
5091 toJSON ExportVariantSetRequest{..}
3740 toJSON ExportVariantSetRequest{..}
@@ -5094,139 +3743,84 @@ instance ToJSON ExportVariantSetRequest where
5094 [("bigqueryDataset" .=) <$> _evsrBigQueryDataset,
3743 [("bigqueryDataset" .=) <$> _evsrBigQueryDataset,
5095 ("bigqueryTable" .=) <$> _evsrBigQueryTable,
3744 ("bigqueryTable" .=) <$> _evsrBigQueryTable,
5096 ("format" .=) <$> _evsrFormat,
3745 ("format" .=) <$> _evsrFormat,
5097− ("projectNumber" .=) <$> _evsrProjectNumber,
5098− ("callSetIds" .=) <$> _evsrCallSetIds])
3746+ ("callSetIds" .=) <$> _evsrCallSetIds,
5099−
3747+ ("projectId" .=) <$> _evsrProjectId])
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])
5133
3748
3749+-- | Metadata describing an Operation.
5134--
3750--
5135−-- /See:/ 'searchAnnotationsRequest' smart constructor.
3751+-- /See:/ 'operationMetadata' smart constructor.
5136−data SearchAnnotationsRequest = SearchAnnotationsRequest
3752+data OperationMetadata = OperationMetadata
5137− { _sarRange :: !(Maybe QueryRange)
3753+ { _omEvents :: !(Maybe [OperationEvent])
5138− , _sarPageToken :: !(Maybe Text)
3754+ , _omProjectId :: !(Maybe Text)
5139− , _sarAnnotationSetIds :: !(Maybe [Text])
3755+ , _omCreateTime :: !(Maybe Text)
5140− , _sarPageSize :: !(Maybe Int32)
3756+ , _omRequest :: !(Maybe OperationMetadataRequest)
5141 } deriving (Eq,Show,Data,Typeable,Generic)
3757 } deriving (Eq,Show,Data,Typeable,Generic)
5142
3758
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.
5144--
3760--
5145-- Use one of the following lenses to modify other fields as desired:
3761-- Use one of the following lenses to modify other fields as desired:
5146--
3762--
5147−-- * 'sarRange'
3763+-- * 'omEvents'
5148--
3764--
5149−-- * 'sarPageToken'
3765+-- * 'omProjectId'
5150--
3766--
5151−-- * 'sarAnnotationSetIds'
3767+-- * 'omCreateTime'
5152--
3768--
5153−-- * 'sarPageSize'
3769+-- * 'omRequest'
5154−searchAnnotationsRequest
3770+operationMetadata
5155− :: SearchAnnotationsRequest
3771+ :: OperationMetadata
5156−searchAnnotationsRequest =
3772+operationMetadata =
5157− SearchAnnotationsRequest
3773+ OperationMetadata
5158− { _sarRange = Nothing
3774+ { _omEvents = Nothing
5159− , _sarPageToken = Nothing
3775+ , _omProjectId = Nothing
5160− , _sarAnnotationSetIds = Nothing
3776+ , _omCreateTime = Nothing
5161− , _sarPageSize = Nothing
3777+ , _omRequest = Nothing
5162 }
3778 }
5163
3779
5164−-- | If specified, this query matches only annotations that overlap this
3780+-- | Optional event messages that were generated during the job\'s execution.
5165−-- range.
3781+-- This also contains any warnings that were generated during import or
5166−sarRange :: Lens' SearchAnnotationsRequest (Maybe QueryRange)
3782+-- export.
5167−sarRange = lens _sarRange (\ s a -> s{_sarRange = a})
3783+omEvents :: Lens' OperationMetadata [OperationEvent]
5168−
3784+omEvents
5169−-- | The continuation token, which is used to page through large result sets.
3785+ = lens _omEvents (\ s a -> s{_omEvents = a}) .
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
3786+ _Default
5184 . _Coerce
3787 . _Coerce
5185
3788
5186−-- | Specifies number of results to return in a single page. If unspecified,
3789+-- | The Google Cloud Project in which the job is scoped.
5187−-- it will default to 256. The maximum value is 2048.
3790+omProjectId :: Lens' OperationMetadata (Maybe Text)
5188−sarPageSize :: Lens' SearchAnnotationsRequest (Maybe Int32)
3791+omProjectId
5189−sarPageSize
3792+ = lens _omProjectId (\ s a -> s{_omProjectId = a})
5190− = lens _sarPageSize (\ s a -> s{_sarPageSize = 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})
5191
3806
5192−instance FromJSON SearchAnnotationsRequest where
3807+instance FromJSON OperationMetadata where
5193 parseJSON
3808 parseJSON
5194− = withObject "SearchAnnotationsRequest"
3809+ = withObject "OperationMetadata"
5195 (\ o ->
3810 (\ o ->
5196− SearchAnnotationsRequest <$>
3811+ OperationMetadata <$>
5197− (o .:? "range") <*> (o .:? "pageToken") <*>
3812+ (o .:? "events" .!= mempty) <*> (o .:? "projectId")
5198− (o .:? "annotationSetIds" .!= mempty)
3813+ <*> (o .:? "createTime")
5199− <*> (o .:? "pageSize"))
3814+ <*> (o .:? "request"))
5200
3815
5201−instance ToJSON SearchAnnotationsRequest where
3816+instance ToJSON OperationMetadata where
5202− toJSON SearchAnnotationsRequest{..}
3817+ toJSON OperationMetadata{..}
5203 = object
3818 = object
5204 (catMaybes
3819 (catMaybes
5205− [("range" .=) <$> _sarRange,
3820+ [("events" .=) <$> _omEvents,
5206− ("pageToken" .=) <$> _sarPageToken,
3821+ ("projectId" .=) <$> _omProjectId,
5207− ("annotationSetIds" .=) <$> _sarAnnotationSetIds,
3822+ ("createTime" .=) <$> _omCreateTime,
5208− ("pageSize" .=) <$> _sarPageSize])
3823+ ("request" .=) <$> _omRequest])
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
5230
3824
5231-- | The search variant sets response.
3825-- | The search variant sets response.
5232--
3826--
@@ -5371,7 +3965,7 @@ svrMaxCalls
5371
3965
5372-- | The continuation token, which is used to page through large result sets.
3966-- | The continuation token, which is used to page through large result sets.
5373-- To get the next page of results, set this parameter to the value of
3967-- 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.
5375svrPageToken :: Lens' SearchVariantsRequest (Maybe Text)
3969svrPageToken :: Lens' SearchVariantsRequest (Maybe Text)
5376svrPageToken
3970svrPageToken
5377 = lens _svrPageToken (\ s a -> s{_svrPageToken = a})
3971 = lens _svrPageToken (\ s a -> s{_svrPageToken = a})
@@ -5426,159 +4020,8 @@ instance ToJSON SearchVariantsRequest where
5426 ("variantSetIds" .=) <$> _svrVariantSetIds,
4020 ("variantSetIds" .=) <$> _svrVariantSetIds,
5427 ("pageSize" .=) <$> _svrPageSize])
4021 ("pageSize" .=) <$> _svrPageSize])
5428
4022
5429−-- | A string which maps to an array of values.
4023+-- | A map of additional call set information. This must be of the form map
5430−--
4024+-- (string key mapping to a list of string values).
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.
5582--
4025--
5583-- /See:/ 'callSetInfo' smart constructor.
4026-- /See:/ 'callSetInfo' smart constructor.
5584data CallSetInfo =
4027data CallSetInfo =
@@ -5598,265 +4041,85 @@ instance FromJSON CallSetInfo where
5598instance ToJSON CallSetInfo where
4041instance ToJSON CallSetInfo where
5599 toJSON = const emptyObject
4042 toJSON = const emptyObject
5600
4043
5601−-- | A 0-based half-open genomic coordinate range over a reference sequence,
4044+-- | Remaining structured metadata key-value pairs. This must be of the form
5602−-- for representing the position of a genomic resource.
4045+-- map (string key mapping to a list of string values).
5603--
4046--
5604−-- /See:/ 'rangePosition' smart constructor.
4047+-- /See:/ 'variantSetMetadataInfo' smart constructor.
5605−data RangePosition = RangePosition
4048+data VariantSetMetadataInfo =
5606− { _rpStart :: !(Maybe Int64)
4049+ VariantSetMetadataInfo
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)
4050+ deriving (Eq,Show,Data,Typeable,Generic)
5695
4051
5696−-- | Creates a value of 'Transcript' with the minimum fields required to make a request.
4052+-- | Creates a value of 'VariantSetMetadataInfo' 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'
5701--
4053--
5702−-- * 'tCodingSequence'
4054+variantSetMetadataInfo
5703−--
4055+ :: VariantSetMetadataInfo
5704−-- * 'tExons'
4056+variantSetMetadataInfo = VariantSetMetadataInfo
5705−transcript
5706− :: Transcript
5707−transcript =
5708− Transcript
5709− { _tGeneId = Nothing
5710− , _tCodingSequence = Nothing
5711− , _tExons = Nothing
5712− }
5713
4057
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
5747 parseJSON
4059 parseJSON
5748− = withObject "Transcript"
4060+ = withObject "VariantSetMetadataInfo"
5749− (\ o ->
4061+ (\ o -> pure VariantSetMetadataInfo)
5750− Transcript <$>
5751− (o .:? "geneId") <*> (o .:? "codingSequence") <*>
5752− (o .:? "exons" .!= mempty))
5753
4062
5754−instance ToJSON Transcript where
4063+instance ToJSON VariantSetMetadataInfo where
5755− toJSON Transcript{..}
4064+ toJSON = const emptyObject
5756− = object
5757− (catMaybes
5758− [("geneId" .=) <$> _tGeneId,
5759− ("codingSequence" .=) <$> _tCodingSequence,
5760− ("exons" .=) <$> _tExons])
5761
4065
4066+-- | If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned.
4067+-- If importing Variants, an ImportVariantsResponse is returned. For
4068+-- exports, an empty response is returned.
5762--
4069--
5763−-- /See:/ 'transcriptCodingSequence' smart constructor.
4070+-- /See:/ 'operationResponse' smart constructor.
5764−data TranscriptCodingSequence = TranscriptCodingSequence
4071+data OperationResponse =
5765− { _tcsStart :: !(Maybe Int64)
4072+ OperationResponse
5766− , _tcsEnd :: !(Maybe Int64)
5767− } deriving (Eq,Show,Data,Typeable,Generic)
4073+ deriving (Eq,Show,Data,Typeable,Generic)
5768
4074
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.
5770--
4076--
5771−-- Use one of the following lenses to modify other fields as desired:
4077+operationResponse
5772−--
4078+ :: OperationResponse
5773−-- * 'tcsStart'
4079+operationResponse = OperationResponse
5774−--
5775−-- * 'tcsEnd'
5776−transcriptCodingSequence
5777− :: TranscriptCodingSequence
5778−transcriptCodingSequence =
5779− TranscriptCodingSequence
5780− { _tcsStart = Nothing
5781− , _tcsEnd = Nothing
5782− }
5783
4080
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
5797 parseJSON
4082 parseJSON
5798− = withObject "TranscriptCodingSequence"
4083+ = withObject "OperationResponse"
5799− (\ o ->
4084+ (\ o -> pure OperationResponse)
5800− TranscriptCodingSequence <$>
5801− (o .:? "start") <*> (o .:? "end"))
5802
4085
5803−instance ToJSON TranscriptCodingSequence where
4086+instance ToJSON OperationResponse where
5804− toJSON TranscriptCodingSequence{..}
4087+ toJSON = const emptyObject
5805− = object
5806− (catMaybes
5807− [("start" .=) <$> _tcsStart, ("end" .=) <$> _tcsEnd])
5808
4088
5809−-- | The job search response.
4089+-- | An event that occurred during an Operation.
5810--
4090--
5811−-- /See:/ 'searchJobsResponse' smart constructor.
4091+-- /See:/ 'operationEvent' smart constructor.
5812−data SearchJobsResponse = SearchJobsResponse
4092+newtype OperationEvent = OperationEvent
5813− { _sjrNextPageToken :: !(Maybe Text)
4093+ { _oeDescription :: Maybe Text
5814− , _sjrJobs :: !(Maybe [Job])
5815 } deriving (Eq,Show,Data,Typeable,Generic)
4094 } deriving (Eq,Show,Data,Typeable,Generic)
5816
4095
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.
5818--
4097--
5819-- Use one of the following lenses to modify other fields as desired:
4098-- Use one of the following lenses to modify other fields as desired:
5820--
4099--
5821−-- * 'sjrNextPageToken'
4100+-- * 'oeDescription'
5822−--
4101+operationEvent
5823−-- * 'sjrJobs'
4102+ :: OperationEvent
5824−searchJobsResponse
4103+operationEvent =
5825− :: SearchJobsResponse
4104+ OperationEvent
5826−searchJobsResponse =
4105+ { _oeDescription = Nothing
5827− SearchJobsResponse
5828− { _sjrNextPageToken = Nothing
5829− , _sjrJobs = Nothing
5830 }
4106 }
5831
4107
5832−-- | The continuation token which is used to page through large result sets.
4108+-- | Required description of event.
5833−-- Provide this value is a subsequent request to return the next page of
4109+oeDescription :: Lens' OperationEvent (Maybe Text)
5834−-- results. This field will be empty if there are no more results.
4110+oeDescription
5835−sjrNextPageToken :: Lens' SearchJobsResponse (Maybe Text)
4111+ = lens _oeDescription
5836−sjrNextPageToken
4112+ (\ s a -> s{_oeDescription = a})
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
5845
4113
5846−instance FromJSON SearchJobsResponse where
4114+instance FromJSON OperationEvent where
5847 parseJSON
4115 parseJSON
5848− = withObject "SearchJobsResponse"
4116+ = withObject "OperationEvent"
5849− (\ o ->
4117+ (\ o -> OperationEvent <$> (o .:? "description"))
5850− SearchJobsResponse <$>
5851− (o .:? "nextPageToken") <*>
5852− (o .:? "jobs" .!= mempty))
5853
4118
5854−instance ToJSON SearchJobsResponse where
4119+instance ToJSON OperationEvent where
5855− toJSON SearchJobsResponse{..}
4120+ toJSON OperationEvent{..}
5856 = object
4121 = object
5857− (catMaybes
4122+ (catMaybes [("description" .=) <$> _oeDescription])
5858− [("nextPageToken" .=) <$> _sjrNextPageToken,
5859− ("jobs" .=) <$> _sjrJobs])
5860
4123
5861-- | ReferenceBound records an upper bound for the starting coordinate of
4124-- | ReferenceBound records an upper bound for the starting coordinate of
5862-- variants in a particular reference.
4125-- variants in a particular reference.
@@ -5908,6 +4171,88 @@ instance ToJSON ReferenceBound where
5908 [("upperBound" .=) <$> _rbUpperBound,
4171 [("upperBound" .=) <$> _rbUpperBound,
5909 ("referenceName" .=) <$> _rbReferenceName])
4172 ("referenceName" .=) <$> _rbReferenceName])
5910
4173
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+
5911-- | An abstraction for referring to a genomic position, in relation to some
4256-- | An abstraction for referring to a genomic position, in relation to some
5912-- already known reference. For now, represents a genomic position as a
4257-- already known reference. For now, represents a genomic position as a
5913-- reference name, a base number on that reference (0-based), and a
4258-- reference name, a base number on that reference (0-based), and a
@@ -6028,7 +4373,7 @@ instance ToJSON SearchReadGroupSetsResponse where
6028 [("nextPageToken" .=) <$> _srgsrNextPageToken,
4373 [("nextPageToken" .=) <$> _srgsrNextPageToken,
6029 ("readGroupSets" .=) <$> _srgsrReadGroupSets])
4374 ("readGroupSets" .=) <$> _srgsrReadGroupSets])
6030
4375
6031−-- | A string which maps to an array of values.
4376+-- | A map of additional read group set information.
6032--
4377--
6033-- /See:/ 'readGroupSetInfo' smart constructor.
4378-- /See:/ 'readGroupSetInfo' smart constructor.
6034data ReadGroupSetInfo =
4379data ReadGroupSetInfo =
@@ -6050,10 +4395,10 @@ instance ToJSON ReadGroupSetInfo where
6050 toJSON = const emptyObject
4395 toJSON = const emptyObject
6051
4396
6052-- | A reference set is a set of references which typically comprise a
4397-- | A reference set is a set of references which typically comprise a
6053−-- reference assembly for a species, such as GRCh38 which is representative
4398+-- reference assembly for a species, such as \`GRCh38\` which is
6054−-- of the human genome. A reference set defines a common coordinate space
4399+-- representative of the human genome. A reference set defines a common
6055−-- for comparing reference-aligned experimental data. A reference set
4400+-- coordinate space for comparing reference-aligned experimental data. A
6056−-- contains 1 or more references.
4401+-- reference set contains 1 or more references.
6057--
4402--
6058-- /See:/ 'referenceSet' smart constructor.
4403-- /See:/ 'referenceSet' smart constructor.
6059data ReferenceSet = ReferenceSet
4404data ReferenceSet = ReferenceSet
@@ -6101,7 +4446,7 @@ referenceSet =
6101 }
4446 }
6102
4447
6103-- | All known corresponding accession IDs in INSDC (GenBank\/ENA\/DDBJ)
4448-- | 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\`.
6105rsSourceAccessions :: Lens' ReferenceSet [Text]
4450rsSourceAccessions :: Lens' ReferenceSet [Text]
6106rsSourceAccessions
4451rsSourceAccessions
6107 = lens _rsSourceAccessions
4452 = lens _rsSourceAccessions
@@ -6110,7 +4455,7 @@ rsSourceAccessions
6110 . _Coerce
4455 . _Coerce
6111
4456
6112-- | The IDs of the reference objects that are part of this set.
4457-- | 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.
6114rsReferenceIds :: Lens' ReferenceSet [Text]
4459rsReferenceIds :: Lens' ReferenceSet [Text]
6115rsReferenceIds
4460rsReferenceIds
6116 = lens _rsReferenceIds
4461 = lens _rsReferenceIds
@@ -6120,7 +4465,7 @@ rsReferenceIds
6120
4465
6121-- | Order-independent MD5 checksum which identifies this reference set. The
4466-- | Order-independent MD5 checksum which identifies this reference set. The
6122-- checksum is computed by sorting all lower case hexidecimal string
4467-- 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
6124-- lexicographic order, concatenating, and taking the MD5 of that value.
4469-- lexicographic order, concatenating, and taking the MD5 of that value.
6125-- The resulting value is represented in lower case hexadecimal format.
4470-- The resulting value is represented in lower case hexadecimal format.
6126rsMD5checksum :: Lens' ReferenceSet (Maybe Text)
4471rsMD5checksum :: Lens' ReferenceSet (Maybe Text)
@@ -6130,7 +4475,7 @@ rsMD5checksum
6130
4475
6131-- | ID from http:\/\/www.ncbi.nlm.nih.gov\/taxonomy (e.g. 9606->human)
4476-- | ID from http:\/\/www.ncbi.nlm.nih.gov\/taxonomy (e.g. 9606->human)
6132-- indicating the species which this assembly is intended to model. Note
4477-- 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
6134-- assemblies may contain reference sequences which do not belong to the
4479-- assemblies may contain reference sequences which do not belong to the
6135-- modeled species, e.g. EBV in a human reference genome.
4480-- modeled species, e.g. EBV in a human reference genome.
6136rsNcbiTaxonId :: Lens' ReferenceSet (Maybe Int32)
4481rsNcbiTaxonId :: Lens' ReferenceSet (Maybe Int32)
@@ -6138,11 +4483,11 @@ rsNcbiTaxonId
6138 = lens _rsNcbiTaxonId
4483 = lens _rsNcbiTaxonId
6139 (\ s a -> s{_rsNcbiTaxonId = a})
4484 (\ s a -> s{_rsNcbiTaxonId = a})
6140
4485
6141−-- | The Google generated immutable ID of the reference set.
4486+-- | The server-generated reference set ID, unique across all reference sets.
6142rsId :: Lens' ReferenceSet (Maybe Text)
4487rsId :: Lens' ReferenceSet (Maybe Text)
6143rsId = lens _rsId (\ s a -> s{_rsId = a})
4488rsId = lens _rsId (\ s a -> s{_rsId = a})
6144
4489
6145−-- | Public id of this reference set, such as GRCh37.
4490+-- | Public id of this reference set, such as \`GRCh37\`.
6146rsAssemblyId :: Lens' ReferenceSet (Maybe Text)
4491rsAssemblyId :: Lens' ReferenceSet (Maybe Text)
6147rsAssemblyId
4492rsAssemblyId
6148 = lens _rsAssemblyId (\ s a -> s{_rsAssemblyId = a})
4493 = lens _rsAssemblyId (\ s a -> s{_rsAssemblyId = a})
@@ -6169,7 +4514,7 @@ instance FromJSON ReferenceSet where
6169 <*> (o .:? "ncbiTaxonId")
4514 <*> (o .:? "ncbiTaxonId")
6170 <*> (o .:? "id")
4515 <*> (o .:? "id")
6171 <*> (o .:? "assemblyId")
4516 <*> (o .:? "assemblyId")
6172− <*> (o .:? "sourceURI")
4517+ <*> (o .:? "sourceUri")
6173 <*> (o .:? "description"))
4518 <*> (o .:? "description"))
6174
4519
6175instance ToJSON ReferenceSet where
4520instance ToJSON ReferenceSet where
@@ -6182,5 +4527,5 @@ instance ToJSON ReferenceSet where
6182 ("ncbiTaxonId" .=) <$> _rsNcbiTaxonId,
4527 ("ncbiTaxonId" .=) <$> _rsNcbiTaxonId,
6183 ("id" .=) <$> _rsId,
4528 ("id" .=) <$> _rsId,
6184 ("assemblyId" .=) <$> _rsAssemblyId,
4529 ("assemblyId" .=) <$> _rsAssemblyId,
6185− ("sourceURI" .=) <$> _rsSourceURI,
4530+ ("sourceUri" .=) <$> _rsSourceURI,
6186 ("description" .=) <$> _rsDescription])
4531 ("description" .=) <$> _rsDescription])
gogol-genomics/gen/Network/Google/Genomics/Types/Sum.hs−613
@@ -17,616 +17,3 @@
17module Network.Google.Genomics.Types.Sum where
17module Network.Google.Genomics.Types.Sum where
18
18
19import Network.Google.Prelude
19import 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 @@
22--
22--
23-- | Creates a new call set.
23-- | Creates a new call set.
24--
24--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsCallsetsCreate@.
25+-- /See:/ < Genomics API Reference> for @GenomicsCallsetsCreate@.
26module Network.Google.Resource.Genomics.Callsets.Create
26module Network.Google.Resource.Genomics.Callsets.Create
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
@@ -33,13 +33,19 @@ module Network.Google.Resource.Genomics.Callsets.Create
33 , CallsetsCreate'
33 , CallsetsCreate'
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36+ , ccXgafv
36 , ccQuotaUser
37 , ccQuotaUser
37 , ccPrettyPrint
38 , ccPrettyPrint
38− , ccUserIP
39+ , ccUploadProtocol
40+ , ccPp
41+ , ccAccessToken
42+ , ccUploadType
39 , ccPayload
43 , ccPayload
44+ , ccBearerToken
40 , ccKey
45 , ccKey
41 , ccOAuthToken
46 , ccOAuthToken
42 , ccFields
47 , ccFields
48+ , ccCallback
43 ) where
49 ) where
44
50
45import Network.Google.Genomics.Types
51import Network.Google.Genomics.Types
@@ -48,63 +54,99 @@ import Network.Google.Prelude
48-- | A resource alias for @GenomicsCallsetsCreate@ method which the
54-- | A resource alias for @GenomicsCallsetsCreate@ method which the
49-- 'CallsetsCreate'' request conforms to.
55-- 'CallsetsCreate'' request conforms to.
50type CallsetsCreateResource =
56type CallsetsCreateResource =
51− "callsets" :>
57+ "v1" :>
52− QueryParam "quotaUser" Text :>
58+ "callsets" :>
53− QueryParam "prettyPrint" Bool :>
59+ QueryParam "$.xgafv" Text :>
54− QueryParam "userIp" Text :>
60+ QueryParam "upload_protocol" Text :>
55− QueryParam "fields" 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 :>
56− QueryParam "key" AuthKey :>
69+ QueryParam "key" AuthKey :>
57− QueryParam "oauth_token" OAuthToken :>
70+ QueryParam "oauth_token" OAuthToken :>
58− QueryParam "alt" AltJSON :>
71+ QueryParam "alt" AltJSON :>
59− ReqBody '[JSON] CallSet :> Post '[JSON] CallSet
72+ ReqBody '[JSON] CallSet :>
73+ Post '[JSON] CallSet
60
74
61-- | Creates a new call set.
75-- | Creates a new call set.
62--
76--
63-- /See:/ 'callsetsCreate'' smart constructor.
77-- /See:/ 'callsetsCreate'' smart constructor.
64data CallsetsCreate' = CallsetsCreate'
78data CallsetsCreate' = CallsetsCreate'
79+ { _ccXgafv :: !(Maybe Text)
65− { _ccQuotaUser :: !(Maybe Text)
80+ , _ccQuotaUser :: !(Maybe Text)
66− , _ccPrettyPrint :: !Bool
81+ , _ccPrettyPrint :: !Bool
82+ , _ccUploadProtocol :: !(Maybe Text)
83+ , _ccPp :: !Bool
84+ , _ccAccessToken :: !(Maybe Text)
67− , _ccUserIP :: !(Maybe Text)
85+ , _ccUploadType :: !(Maybe Text)
68− , _ccPayload :: !CallSet
86+ , _ccPayload :: !CallSet
87+ , _ccBearerToken :: !(Maybe Text)
69− , _ccKey :: !(Maybe AuthKey)
88+ , _ccKey :: !(Maybe AuthKey)
70− , _ccOAuthToken :: !(Maybe OAuthToken)
89+ , _ccOAuthToken :: !(Maybe OAuthToken)
71− , _ccFields :: !(Maybe Text)
90+ , _ccFields :: !(Maybe Text)
91+ , _ccCallback :: !(Maybe Text)
72 } deriving (Eq,Show,Data,Typeable,Generic)
92 } deriving (Eq,Show,Data,Typeable,Generic)
73
93
74-- | Creates a value of 'CallsetsCreate'' with the minimum fields required to make a request.
94-- | Creates a value of 'CallsetsCreate'' with the minimum fields required to make a request.
75--
95--
76-- Use one of the following lenses to modify other fields as desired:
96-- Use one of the following lenses to modify other fields as desired:
77--
97--
98+-- * 'ccXgafv'
99+--
78-- * 'ccQuotaUser'
100-- * 'ccQuotaUser'
79--
101--
80-- * 'ccPrettyPrint'
102-- * 'ccPrettyPrint'
81--
103--
82−-- * 'ccUserIP'
104+-- * 'ccUploadProtocol'
105+--
106+-- * 'ccPp'
107+--
108+-- * 'ccAccessToken'
109+--
110+-- * 'ccUploadType'
83--
111--
84-- * 'ccPayload'
112-- * 'ccPayload'
85--
113--
114+-- * 'ccBearerToken'
115+--
86-- * 'ccKey'
116-- * 'ccKey'
87--
117--
88-- * 'ccOAuthToken'
118-- * 'ccOAuthToken'
89--
119--
90-- * 'ccFields'
120-- * 'ccFields'
121+--
122+-- * 'ccCallback'
91callsetsCreate'
123callsetsCreate'
92 :: CallSet -- ^ 'payload'
124 :: CallSet -- ^ 'payload'
93 -> CallsetsCreate'
125 -> CallsetsCreate'
94callsetsCreate' pCcPayload_ =
126callsetsCreate' pCcPayload_ =
95 CallsetsCreate'
127 CallsetsCreate'
128+ { _ccXgafv = Nothing
96− { _ccQuotaUser = Nothing
129+ , _ccQuotaUser = Nothing
97 , _ccPrettyPrint = True
130 , _ccPrettyPrint = True
98− , _ccUserIP = Nothing
131+ , _ccUploadProtocol = Nothing
132+ , _ccPp = True
133+ , _ccAccessToken = Nothing
134+ , _ccUploadType = Nothing
99 , _ccPayload = pCcPayload_
135 , _ccPayload = pCcPayload_
136+ , _ccBearerToken = Nothing
100 , _ccKey = Nothing
137 , _ccKey = Nothing
101 , _ccOAuthToken = Nothing
138 , _ccOAuthToken = Nothing
102 , _ccFields = Nothing
139 , _ccFields = Nothing
140+ , _ccCallback = Nothing
103 }
141 }
104
142
143+-- | V1 error format.
144+ccXgafv :: Lens' CallsetsCreate' (Maybe Text)
145+ccXgafv = lens _ccXgafv (\ s a -> s{_ccXgafv = a})
146+
105-- | Available to use for quota purposes for server-side applications. Can be
147-- | 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
148-- any arbitrary string assigned to a user, but should not exceed 40
107−-- characters. Overrides userIp if both are provided.
149+-- characters.
108ccQuotaUser :: Lens' CallsetsCreate' (Maybe Text)
150ccQuotaUser :: Lens' CallsetsCreate' (Maybe Text)
109ccQuotaUser
151ccQuotaUser
110 = lens _ccQuotaUser (\ s a -> s{_ccQuotaUser = a})
152 = lens _ccQuotaUser (\ s a -> s{_ccQuotaUser = a})
@@ -115,16 +157,38 @@ ccPrettyPrint
115 = lens _ccPrettyPrint
157 = lens _ccPrettyPrint
116 (\ s a -> s{_ccPrettyPrint = a})
158 (\ s a -> s{_ccPrettyPrint = a})
117
159
118−-- | IP address of the site where the request originates. Use this if you
160+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
119−-- want to enforce per-user limits.
161+ccUploadProtocol :: Lens' CallsetsCreate' (Maybe Text)
162+ccUploadProtocol
163+ = lens _ccUploadProtocol
164+ (\ s a -> s{_ccUploadProtocol = a})
165+
166+-- | Pretty-print response.
120−ccUserIP :: Lens' CallsetsCreate' (Maybe Text)
167+ccPp :: Lens' CallsetsCreate' Bool
121−ccUserIP = lens _ccUserIP (\ s a -> s{_ccUserIP = a})
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})
122
180
123-- | Multipart request metadata.
181-- | Multipart request metadata.
124ccPayload :: Lens' CallsetsCreate' CallSet
182ccPayload :: Lens' CallsetsCreate' CallSet
125ccPayload
183ccPayload
126 = lens _ccPayload (\ s a -> s{_ccPayload = a})
184 = lens _ccPayload (\ s a -> s{_ccPayload = a})
127
185
186+-- | OAuth bearer token.
187+ccBearerToken :: Lens' CallsetsCreate' (Maybe Text)
188+ccBearerToken
189+ = lens _ccBearerToken
190+ (\ s a -> s{_ccBearerToken = a})
191+
128-- | API key. Your API key identifies your project and provides you with API
192-- | API key. Your API key identifies your project and provides you with API
129-- access, quota, and reports. Required unless you provide an OAuth 2.0
193-- access, quota, and reports. Required unless you provide an OAuth 2.0
130-- token.
194-- token.
@@ -140,6 +204,11 @@ ccOAuthToken
140ccFields :: Lens' CallsetsCreate' (Maybe Text)
204ccFields :: Lens' CallsetsCreate' (Maybe Text)
141ccFields = lens _ccFields (\ s a -> s{_ccFields = a})
205ccFields = lens _ccFields (\ s a -> s{_ccFields = a})
142
206
207+-- | JSONP
208+ccCallback :: Lens' CallsetsCreate' (Maybe Text)
209+ccCallback
210+ = lens _ccCallback (\ s a -> s{_ccCallback = a})
211+
143instance GoogleAuth CallsetsCreate' where
212instance GoogleAuth CallsetsCreate' where
144 _AuthKey = ccKey . _Just
213 _AuthKey = ccKey . _Just
145 _AuthToken = ccOAuthToken . _Just
214 _AuthToken = ccOAuthToken . _Just
@@ -148,7 +217,13 @@ instance GoogleRequest CallsetsCreate' where
148 type Rs CallsetsCreate' = CallSet
217 type Rs CallsetsCreate' = CallSet
149 request = requestWith genomicsRequest
218 request = requestWith genomicsRequest
150 requestWith rq CallsetsCreate'{..}
219 requestWith rq CallsetsCreate'{..}
220+ = go _ccXgafv _ccUploadProtocol (Just _ccPp)
221+ _ccAccessToken
222+ _ccUploadType
223+ _ccBearerToken
224+ _ccCallback
225+ _ccQuotaUser
151− = go _ccQuotaUser (Just _ccPrettyPrint) _ccUserIP
226+ (Just _ccPrettyPrint)
152 _ccFields
227 _ccFields
153 _ccKey
228 _ccKey
154 _ccOAuthToken
229 _ccOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Callsets/Delete.hs+104−29
@@ -22,7 +22,7 @@
22--
22--
23-- | Deletes a call set.
23-- | Deletes a call set.
24--
24--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsCallsetsDelete@.
25+-- /See:/ < Genomics API Reference> for @GenomicsCallsetsDelete@.
26module Network.Google.Resource.Genomics.Callsets.Delete
26module Network.Google.Resource.Genomics.Callsets.Delete
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
@@ -33,13 +33,19 @@ module Network.Google.Resource.Genomics.Callsets.Delete
33 , CallsetsDelete'
33 , CallsetsDelete'
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36+ , cdXgafv
36 , cdQuotaUser
37 , cdQuotaUser
37 , cdPrettyPrint
38 , cdPrettyPrint
38− , cdUserIP
39+ , cdUploadProtocol
40+ , cdPp
41+ , cdAccessToken
42+ , cdUploadType
43+ , cdBearerToken
39 , cdKey
44 , cdKey
40 , cdCallSetId
45 , cdCallSetId
41 , cdOAuthToken
46 , cdOAuthToken
42 , cdFields
47 , cdFields
48+ , cdCallback
43 ) where
49 ) where
44
50
45import Network.Google.Genomics.Types
51import Network.Google.Genomics.Types
@@ -48,38 +54,62 @@ import Network.Google.Prelude
48-- | A resource alias for @GenomicsCallsetsDelete@ method which the
54-- | A resource alias for @GenomicsCallsetsDelete@ method which the
49-- 'CallsetsDelete'' request conforms to.
55-- 'CallsetsDelete'' request conforms to.
50type CallsetsDeleteResource =
56type CallsetsDeleteResource =
51− "callsets" :>
57+ "v1" :>
58+ "callsets" :>
52− Capture "callSetId" Text :>
59+ Capture "callSetId" Text :>
53− QueryParam "quotaUser" Text :>
54− QueryParam "prettyPrint" Bool :>
60+ QueryParam "$.xgafv" Text :>
55− QueryParam "userIp" Text :>
61+ QueryParam "upload_protocol" Text :>
56− QueryParam "fields" 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 :>
57− QueryParam "key" AuthKey :>
70+ QueryParam "key" AuthKey :>
58− QueryParam "oauth_token" OAuthToken :>
71+ QueryParam "oauth_token" OAuthToken :>
59− QueryParam "alt" AltJSON :> Delete '[JSON] ()
72+ QueryParam "alt" AltJSON :>
73+ Delete '[JSON] Empty
60
74
61-- | Deletes a call set.
75-- | Deletes a call set.
62--
76--
63-- /See:/ 'callsetsDelete'' smart constructor.
77-- /See:/ 'callsetsDelete'' smart constructor.
64data CallsetsDelete' = CallsetsDelete'
78data CallsetsDelete' = CallsetsDelete'
79+ { _cdXgafv :: !(Maybe Text)
65− { _cdQuotaUser :: !(Maybe Text)
80+ , _cdQuotaUser :: !(Maybe Text)
66− , _cdPrettyPrint :: !Bool
81+ , _cdPrettyPrint :: !Bool
82+ , _cdUploadProtocol :: !(Maybe Text)
83+ , _cdPp :: !Bool
84+ , _cdAccessToken :: !(Maybe Text)
85+ , _cdUploadType :: !(Maybe Text)
67− , _cdUserIP :: !(Maybe Text)
86+ , _cdBearerToken :: !(Maybe Text)
68− , _cdKey :: !(Maybe AuthKey)
87+ , _cdKey :: !(Maybe AuthKey)
69− , _cdCallSetId :: !Text
88+ , _cdCallSetId :: !Text
70− , _cdOAuthToken :: !(Maybe OAuthToken)
89+ , _cdOAuthToken :: !(Maybe OAuthToken)
71− , _cdFields :: !(Maybe Text)
90+ , _cdFields :: !(Maybe Text)
91+ , _cdCallback :: !(Maybe Text)
72 } deriving (Eq,Show,Data,Typeable,Generic)
92 } deriving (Eq,Show,Data,Typeable,Generic)
73
93
74-- | Creates a value of 'CallsetsDelete'' with the minimum fields required to make a request.
94-- | Creates a value of 'CallsetsDelete'' with the minimum fields required to make a request.
75--
95--
76-- Use one of the following lenses to modify other fields as desired:
96-- Use one of the following lenses to modify other fields as desired:
77--
97--
98+-- * 'cdXgafv'
99+--
78-- * 'cdQuotaUser'
100-- * 'cdQuotaUser'
79--
101--
80-- * 'cdPrettyPrint'
102-- * 'cdPrettyPrint'
81--
103--
82−-- * 'cdUserIP'
104+-- * 'cdUploadProtocol'
105+--
106+-- * 'cdPp'
107+--
108+-- * 'cdAccessToken'
109+--
110+-- * 'cdUploadType'
111+--
112+-- * 'cdBearerToken'
83--
113--
84-- * 'cdKey'
114-- * 'cdKey'
85--
115--
@@ -88,23 +118,35 @@ data CallsetsDelete' = CallsetsDelete'
88-- * 'cdOAuthToken'
118-- * 'cdOAuthToken'
89--
119--
90-- * 'cdFields'
120-- * 'cdFields'
121+--
122+-- * 'cdCallback'
91callsetsDelete'
123callsetsDelete'
92 :: Text -- ^ 'callSetId'
124 :: Text -- ^ 'callSetId'
93 -> CallsetsDelete'
125 -> CallsetsDelete'
94callsetsDelete' pCdCallSetId_ =
126callsetsDelete' pCdCallSetId_ =
95 CallsetsDelete'
127 CallsetsDelete'
128+ { _cdXgafv = Nothing
96− { _cdQuotaUser = Nothing
129+ , _cdQuotaUser = Nothing
97 , _cdPrettyPrint = True
130 , _cdPrettyPrint = True
98− , _cdUserIP = Nothing
131+ , _cdUploadProtocol = Nothing
132+ , _cdPp = True
133+ , _cdAccessToken = Nothing
134+ , _cdUploadType = Nothing
135+ , _cdBearerToken = Nothing
99 , _cdKey = Nothing
136 , _cdKey = Nothing
100 , _cdCallSetId = pCdCallSetId_
137 , _cdCallSetId = pCdCallSetId_
101 , _cdOAuthToken = Nothing
138 , _cdOAuthToken = Nothing
102 , _cdFields = Nothing
139 , _cdFields = Nothing
140+ , _cdCallback = Nothing
103 }
141 }
104
142
143+-- | V1 error format.
144+cdXgafv :: Lens' CallsetsDelete' (Maybe Text)
145+cdXgafv = lens _cdXgafv (\ s a -> s{_cdXgafv = a})
146+
105-- | Available to use for quota purposes for server-side applications. Can be
147-- | 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
148-- any arbitrary string assigned to a user, but should not exceed 40
107−-- characters. Overrides userIp if both are provided.
149+-- characters.
108cdQuotaUser :: Lens' CallsetsDelete' (Maybe Text)
150cdQuotaUser :: Lens' CallsetsDelete' (Maybe Text)
109cdQuotaUser
151cdQuotaUser
110 = lens _cdQuotaUser (\ s a -> s{_cdQuotaUser = a})
152 = lens _cdQuotaUser (\ s a -> s{_cdQuotaUser = a})
@@ -115,10 +157,32 @@ cdPrettyPrint
115 = lens _cdPrettyPrint
157 = lens _cdPrettyPrint
116 (\ s a -> s{_cdPrettyPrint = a})
158 (\ s a -> s{_cdPrettyPrint = a})
117
159
118−-- | IP address of the site where the request originates. Use this if you
160+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
119−-- want to enforce per-user limits.
161+cdUploadProtocol :: Lens' CallsetsDelete' (Maybe Text)
162+cdUploadProtocol
163+ = lens _cdUploadProtocol
164+ (\ s a -> s{_cdUploadProtocol = a})
165+
166+-- | Pretty-print response.
120−cdUserIP :: Lens' CallsetsDelete' (Maybe Text)
167+cdPp :: Lens' CallsetsDelete' Bool
121−cdUserIP = lens _cdUserIP (\ s a -> s{_cdUserIP = a})
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})
122
186
123-- | API key. Your API key identifies your project and provides you with API
187-- | API key. Your API key identifies your project and provides you with API
124-- access, quota, and reports. Required unless you provide an OAuth 2.0
188-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -140,16 +204,27 @@ cdOAuthToken
140cdFields :: Lens' CallsetsDelete' (Maybe Text)
204cdFields :: Lens' CallsetsDelete' (Maybe Text)
141cdFields = lens _cdFields (\ s a -> s{_cdFields = a})
205cdFields = lens _cdFields (\ s a -> s{_cdFields = a})
142
206
207+-- | JSONP
208+cdCallback :: Lens' CallsetsDelete' (Maybe Text)
209+cdCallback
210+ = lens _cdCallback (\ s a -> s{_cdCallback = a})
211+
143instance GoogleAuth CallsetsDelete' where
212instance GoogleAuth CallsetsDelete' where
144 _AuthKey = cdKey . _Just
213 _AuthKey = cdKey . _Just
145 _AuthToken = cdOAuthToken . _Just
214 _AuthToken = cdOAuthToken . _Just
146
215
147instance GoogleRequest CallsetsDelete' where
216instance GoogleRequest CallsetsDelete' where
148− type Rs CallsetsDelete' = ()
217+ type Rs CallsetsDelete' = Empty
149 request = requestWith genomicsRequest
218 request = requestWith genomicsRequest
150 requestWith rq CallsetsDelete'{..}
219 requestWith rq CallsetsDelete'{..}
220+ = go _cdCallSetId _cdXgafv _cdUploadProtocol
221+ (Just _cdPp)
222+ _cdAccessToken
223+ _cdUploadType
224+ _cdBearerToken
225+ _cdCallback
226+ _cdQuotaUser
151− = go _cdCallSetId _cdQuotaUser (Just _cdPrettyPrint)
227+ (Just _cdPrettyPrint)
152− _cdUserIP
153 _cdFields
228 _cdFields
154 _cdKey
229 _cdKey
155 _cdOAuthToken
230 _cdOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Callsets/Get.hs+103−28
@@ -22,7 +22,7 @@
22--
22--
23-- | Gets a call set by ID.
23-- | Gets a call set by ID.
24--
24--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsCallsetsGet@.
25+-- /See:/ < Genomics API Reference> for @GenomicsCallsetsGet@.
26module Network.Google.Resource.Genomics.Callsets.Get
26module Network.Google.Resource.Genomics.Callsets.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
@@ -33,13 +33,19 @@ module Network.Google.Resource.Genomics.Callsets.Get
33 , CallsetsGet'
33 , CallsetsGet'
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36+ , cgXgafv
36 , cgQuotaUser
37 , cgQuotaUser
37 , cgPrettyPrint
38 , cgPrettyPrint
38− , cgUserIP
39+ , cgUploadProtocol
40+ , cgPp
41+ , cgAccessToken
42+ , cgUploadType
43+ , cgBearerToken
39 , cgKey
44 , cgKey
40 , cgCallSetId
45 , cgCallSetId
41 , cgOAuthToken
46 , cgOAuthToken
42 , cgFields
47 , cgFields
48+ , cgCallback
43 ) where
49 ) where
44
50
45import Network.Google.Genomics.Types
51import Network.Google.Genomics.Types
@@ -48,38 +54,62 @@ import Network.Google.Prelude
48-- | A resource alias for @GenomicsCallsetsGet@ method which the
54-- | A resource alias for @GenomicsCallsetsGet@ method which the
49-- 'CallsetsGet'' request conforms to.
55-- 'CallsetsGet'' request conforms to.
50type CallsetsGetResource =
56type CallsetsGetResource =
51− "callsets" :>
57+ "v1" :>
58+ "callsets" :>
52− Capture "callSetId" Text :>
59+ Capture "callSetId" Text :>
53− QueryParam "quotaUser" Text :>
54− QueryParam "prettyPrint" Bool :>
60+ QueryParam "$.xgafv" Text :>
55− QueryParam "userIp" Text :>
61+ QueryParam "upload_protocol" Text :>
56− QueryParam "fields" 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 :>
57− QueryParam "key" AuthKey :>
70+ QueryParam "key" AuthKey :>
58− QueryParam "oauth_token" OAuthToken :>
71+ QueryParam "oauth_token" OAuthToken :>
59− QueryParam "alt" AltJSON :> Get '[JSON] CallSet
72+ QueryParam "alt" AltJSON :>
73+ Get '[JSON] CallSet
60
74
61-- | Gets a call set by ID.
75-- | Gets a call set by ID.
62--
76--
63-- /See:/ 'callsetsGet'' smart constructor.
77-- /See:/ 'callsetsGet'' smart constructor.
64data CallsetsGet' = CallsetsGet'
78data CallsetsGet' = CallsetsGet'
79+ { _cgXgafv :: !(Maybe Text)
65− { _cgQuotaUser :: !(Maybe Text)
80+ , _cgQuotaUser :: !(Maybe Text)
66− , _cgPrettyPrint :: !Bool
81+ , _cgPrettyPrint :: !Bool
82+ , _cgUploadProtocol :: !(Maybe Text)
83+ , _cgPp :: !Bool
84+ , _cgAccessToken :: !(Maybe Text)
85+ , _cgUploadType :: !(Maybe Text)
67− , _cgUserIP :: !(Maybe Text)
86+ , _cgBearerToken :: !(Maybe Text)
68− , _cgKey :: !(Maybe AuthKey)
87+ , _cgKey :: !(Maybe AuthKey)
69− , _cgCallSetId :: !Text
88+ , _cgCallSetId :: !Text
70− , _cgOAuthToken :: !(Maybe OAuthToken)
89+ , _cgOAuthToken :: !(Maybe OAuthToken)
71− , _cgFields :: !(Maybe Text)
90+ , _cgFields :: !(Maybe Text)
91+ , _cgCallback :: !(Maybe Text)
72 } deriving (Eq,Show,Data,Typeable,Generic)
92 } deriving (Eq,Show,Data,Typeable,Generic)
73
93
74-- | Creates a value of 'CallsetsGet'' with the minimum fields required to make a request.
94-- | Creates a value of 'CallsetsGet'' with the minimum fields required to make a request.
75--
95--
76-- Use one of the following lenses to modify other fields as desired:
96-- Use one of the following lenses to modify other fields as desired:
77--
97--
98+-- * 'cgXgafv'
99+--
78-- * 'cgQuotaUser'
100-- * 'cgQuotaUser'
79--
101--
80-- * 'cgPrettyPrint'
102-- * 'cgPrettyPrint'
81--
103--
82−-- * 'cgUserIP'
104+-- * 'cgUploadProtocol'
105+--
106+-- * 'cgPp'
107+--
108+-- * 'cgAccessToken'
109+--
110+-- * 'cgUploadType'
111+--
112+-- * 'cgBearerToken'
83--
113--
84-- * 'cgKey'
114-- * 'cgKey'
85--
115--
@@ -88,23 +118,35 @@ data CallsetsGet' = CallsetsGet'
88-- * 'cgOAuthToken'
118-- * 'cgOAuthToken'
89--
119--
90-- * 'cgFields'
120-- * 'cgFields'
121+--
122+-- * 'cgCallback'
91callsetsGet'
123callsetsGet'
92 :: Text -- ^ 'callSetId'
124 :: Text -- ^ 'callSetId'
93 -> CallsetsGet'
125 -> CallsetsGet'
94callsetsGet' pCgCallSetId_ =
126callsetsGet' pCgCallSetId_ =
95 CallsetsGet'
127 CallsetsGet'
128+ { _cgXgafv = Nothing
96− { _cgQuotaUser = Nothing
129+ , _cgQuotaUser = Nothing
97 , _cgPrettyPrint = True
130 , _cgPrettyPrint = True
98− , _cgUserIP = Nothing
131+ , _cgUploadProtocol = Nothing
132+ , _cgPp = True
133+ , _cgAccessToken = Nothing
134+ , _cgUploadType = Nothing
135+ , _cgBearerToken = Nothing
99 , _cgKey = Nothing
136 , _cgKey = Nothing
100 , _cgCallSetId = pCgCallSetId_
137 , _cgCallSetId = pCgCallSetId_
101 , _cgOAuthToken = Nothing
138 , _cgOAuthToken = Nothing
102 , _cgFields = Nothing
139 , _cgFields = Nothing
140+ , _cgCallback = Nothing
103 }
141 }
104
142
143+-- | V1 error format.
144+cgXgafv :: Lens' CallsetsGet' (Maybe Text)
145+cgXgafv = lens _cgXgafv (\ s a -> s{_cgXgafv = a})
146+
105-- | Available to use for quota purposes for server-side applications. Can be
147-- | 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
148-- any arbitrary string assigned to a user, but should not exceed 40
107−-- characters. Overrides userIp if both are provided.
149+-- characters.
108cgQuotaUser :: Lens' CallsetsGet' (Maybe Text)
150cgQuotaUser :: Lens' CallsetsGet' (Maybe Text)
109cgQuotaUser
151cgQuotaUser
110 = lens _cgQuotaUser (\ s a -> s{_cgQuotaUser = a})
152 = lens _cgQuotaUser (\ s a -> s{_cgQuotaUser = a})
@@ -115,10 +157,32 @@ cgPrettyPrint
115 = lens _cgPrettyPrint
157 = lens _cgPrettyPrint
116 (\ s a -> s{_cgPrettyPrint = a})
158 (\ s a -> s{_cgPrettyPrint = a})
117
159
118−-- | IP address of the site where the request originates. Use this if you
160+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
119−-- want to enforce per-user limits.
161+cgUploadProtocol :: Lens' CallsetsGet' (Maybe Text)
162+cgUploadProtocol
163+ = lens _cgUploadProtocol
164+ (\ s a -> s{_cgUploadProtocol = a})
165+
166+-- | Pretty-print response.
120−cgUserIP :: Lens' CallsetsGet' (Maybe Text)
167+cgPp :: Lens' CallsetsGet' Bool
121−cgUserIP = lens _cgUserIP (\ s a -> s{_cgUserIP = a})
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})
122
186
123-- | API key. Your API key identifies your project and provides you with API
187-- | API key. Your API key identifies your project and provides you with API
124-- access, quota, and reports. Required unless you provide an OAuth 2.0
188-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -140,6 +204,11 @@ cgOAuthToken
140cgFields :: Lens' CallsetsGet' (Maybe Text)
204cgFields :: Lens' CallsetsGet' (Maybe Text)
141cgFields = lens _cgFields (\ s a -> s{_cgFields = a})
205cgFields = lens _cgFields (\ s a -> s{_cgFields = a})
142
206
207+-- | JSONP
208+cgCallback :: Lens' CallsetsGet' (Maybe Text)
209+cgCallback
210+ = lens _cgCallback (\ s a -> s{_cgCallback = a})
211+
143instance GoogleAuth CallsetsGet' where
212instance GoogleAuth CallsetsGet' where
144 _AuthKey = cgKey . _Just
213 _AuthKey = cgKey . _Just
145 _AuthToken = cgOAuthToken . _Just
214 _AuthToken = cgOAuthToken . _Just
@@ -148,8 +217,14 @@ instance GoogleRequest CallsetsGet' where
148 type Rs CallsetsGet' = CallSet
217 type Rs CallsetsGet' = CallSet
149 request = requestWith genomicsRequest
218 request = requestWith genomicsRequest
150 requestWith rq CallsetsGet'{..}
219 requestWith rq CallsetsGet'{..}
220+ = go _cgCallSetId _cgXgafv _cgUploadProtocol
221+ (Just _cgPp)
222+ _cgAccessToken
223+ _cgUploadType
224+ _cgBearerToken
225+ _cgCallback
226+ _cgQuotaUser
151− = go _cgCallSetId _cgQuotaUser (Just _cgPrettyPrint)
227+ (Just _cgPrettyPrint)
152− _cgUserIP
153 _cgFields
228 _cgFields
154 _cgKey
229 _cgKey
155 _cgOAuthToken
230 _cgOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Callsets/Patch.hs+119−30
@@ -22,7 +22,7 @@
22--
22--
23-- | Updates a call set. This method supports patch semantics.
23-- | Updates a call set. This method supports patch semantics.
24--
24--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsCallsetsPatch@.
25+-- /See:/ < Genomics API Reference> for @GenomicsCallsetsPatch@.
26module Network.Google.Resource.Genomics.Callsets.Patch
26module Network.Google.Resource.Genomics.Callsets.Patch
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
@@ -33,14 +33,21 @@ module Network.Google.Resource.Genomics.Callsets.Patch
33 , CallsetsPatch'
33 , CallsetsPatch'
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36+ , cpXgafv
36 , cpQuotaUser
37 , cpQuotaUser
37 , cpPrettyPrint
38 , cpPrettyPrint
38− , cpUserIP
39+ , cpUploadProtocol
40+ , cpUpdateMask
41+ , cpPp
42+ , cpAccessToken
43+ , cpUploadType
39 , cpPayload
44 , cpPayload
45+ , cpBearerToken
40 , cpKey
46 , cpKey
41 , cpCallSetId
47 , cpCallSetId
42 , cpOAuthToken
48 , cpOAuthToken
43 , cpFields
49 , cpFields
50+ , cpCallback
44 ) where
51 ) where
45
52
46import Network.Google.Genomics.Types
53import Network.Google.Genomics.Types
@@ -49,43 +56,71 @@ import Network.Google.Prelude
49-- | A resource alias for @GenomicsCallsetsPatch@ method which the
56-- | A resource alias for @GenomicsCallsetsPatch@ method which the
50-- 'CallsetsPatch'' request conforms to.
57-- 'CallsetsPatch'' request conforms to.
51type CallsetsPatchResource =
58type CallsetsPatchResource =
52− "callsets" :>
59+ "v1" :>
60+ "callsets" :>
53− Capture "callSetId" Text :>
61+ Capture "callSetId" Text :>
54− QueryParam "quotaUser" Text :>
55− QueryParam "prettyPrint" Bool :>
62+ QueryParam "$.xgafv" Text :>
56− QueryParam "userIp" 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 :>
57− QueryParam "fields" Text :>
72+ QueryParam "fields" Text :>
58− QueryParam "key" AuthKey :>
73+ QueryParam "key" AuthKey :>
59− QueryParam "oauth_token" OAuthToken :>
74+ QueryParam "oauth_token" OAuthToken :>
60− QueryParam "alt" AltJSON :>
75+ QueryParam "alt" AltJSON :>
61− ReqBody '[JSON] CallSet :> Patch '[JSON] CallSet
76+ ReqBody '[JSON] CallSet :>
77+ Patch '[JSON] CallSet
62
78
63-- | Updates a call set. This method supports patch semantics.
79-- | Updates a call set. This method supports patch semantics.
64--
80--
65-- /See:/ 'callsetsPatch'' smart constructor.
81-- /See:/ 'callsetsPatch'' smart constructor.
66data CallsetsPatch' = CallsetsPatch'
82data CallsetsPatch' = CallsetsPatch'
83+ { _cpXgafv :: !(Maybe Text)
67− { _cpQuotaUser :: !(Maybe Text)
84+ , _cpQuotaUser :: !(Maybe Text)
68− , _cpPrettyPrint :: !Bool
85+ , _cpPrettyPrint :: !Bool
86+ , _cpUploadProtocol :: !(Maybe Text)
87+ , _cpUpdateMask :: !(Maybe Text)
88+ , _cpPp :: !Bool
89+ , _cpAccessToken :: !(Maybe Text)
69− , _cpUserIP :: !(Maybe Text)
90+ , _cpUploadType :: !(Maybe Text)
70− , _cpPayload :: !CallSet
91+ , _cpPayload :: !CallSet
92+ , _cpBearerToken :: !(Maybe Text)
71− , _cpKey :: !(Maybe AuthKey)
93+ , _cpKey :: !(Maybe AuthKey)
72− , _cpCallSetId :: !Text
94+ , _cpCallSetId :: !Text
73− , _cpOAuthToken :: !(Maybe OAuthToken)
95+ , _cpOAuthToken :: !(Maybe OAuthToken)
74− , _cpFields :: !(Maybe Text)
96+ , _cpFields :: !(Maybe Text)
97+ , _cpCallback :: !(Maybe Text)
75 } deriving (Eq,Show,Data,Typeable,Generic)
98 } deriving (Eq,Show,Data,Typeable,Generic)
76
99
77-- | Creates a value of 'CallsetsPatch'' with the minimum fields required to make a request.
100-- | Creates a value of 'CallsetsPatch'' with the minimum fields required to make a request.
78--
101--
79-- Use one of the following lenses to modify other fields as desired:
102-- Use one of the following lenses to modify other fields as desired:
80--
103--
104+-- * 'cpXgafv'
105+--
81-- * 'cpQuotaUser'
106-- * 'cpQuotaUser'
82--
107--
83-- * 'cpPrettyPrint'
108-- * 'cpPrettyPrint'
84--
109--
85−-- * 'cpUserIP'
110+-- * 'cpUploadProtocol'
111+--
112+-- * 'cpUpdateMask'
113+--
114+-- * 'cpPp'
115+--
116+-- * 'cpAccessToken'
117+--
118+-- * 'cpUploadType'
86--
119--
87-- * 'cpPayload'
120-- * 'cpPayload'
88--
121--
122+-- * 'cpBearerToken'
123+--
89-- * 'cpKey'
124-- * 'cpKey'
90--
125--
91-- * 'cpCallSetId'
126-- * 'cpCallSetId'
@@ -93,25 +128,38 @@ data CallsetsPatch' = CallsetsPatch'
93-- * 'cpOAuthToken'
128-- * 'cpOAuthToken'
94--
129--
95-- * 'cpFields'
130-- * 'cpFields'
131+--
132+-- * 'cpCallback'
96callsetsPatch'
133callsetsPatch'
97 :: CallSet -- ^ 'payload'
134 :: CallSet -- ^ 'payload'
98 -> Text -- ^ 'callSetId'
135 -> Text -- ^ 'callSetId'
99 -> CallsetsPatch'
136 -> CallsetsPatch'
100callsetsPatch' pCpPayload_ pCpCallSetId_ =
137callsetsPatch' pCpPayload_ pCpCallSetId_ =
101 CallsetsPatch'
138 CallsetsPatch'
139+ { _cpXgafv = Nothing
102− { _cpQuotaUser = Nothing
140+ , _cpQuotaUser = Nothing
103 , _cpPrettyPrint = True
141 , _cpPrettyPrint = True
104− , _cpUserIP = Nothing
142+ , _cpUploadProtocol = Nothing
143+ , _cpUpdateMask = Nothing
144+ , _cpPp = True
145+ , _cpAccessToken = Nothing
146+ , _cpUploadType = Nothing
105 , _cpPayload = pCpPayload_
147 , _cpPayload = pCpPayload_
148+ , _cpBearerToken = Nothing
106 , _cpKey = Nothing
149 , _cpKey = Nothing
107 , _cpCallSetId = pCpCallSetId_
150 , _cpCallSetId = pCpCallSetId_
108 , _cpOAuthToken = Nothing
151 , _cpOAuthToken = Nothing
109 , _cpFields = Nothing
152 , _cpFields = Nothing
153+ , _cpCallback = Nothing
110 }
154 }
111
155
156+-- | V1 error format.
157+cpXgafv :: Lens' CallsetsPatch' (Maybe Text)
158+cpXgafv = lens _cpXgafv (\ s a -> s{_cpXgafv = a})
159+
112-- | Available to use for quota purposes for server-side applications. Can be
160-- | 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
161-- any arbitrary string assigned to a user, but should not exceed 40
114−-- characters. Overrides userIp if both are provided.
162+-- characters.
115cpQuotaUser :: Lens' CallsetsPatch' (Maybe Text)
163cpQuotaUser :: Lens' CallsetsPatch' (Maybe Text)
116cpQuotaUser
164cpQuotaUser
117 = lens _cpQuotaUser (\ s a -> s{_cpQuotaUser = a})
165 = lens _cpQuotaUser (\ s a -> s{_cpQuotaUser = a})
@@ -122,16 +170,45 @@ cpPrettyPrint
122 = lens _cpPrettyPrint
170 = lens _cpPrettyPrint
123 (\ s a -> s{_cpPrettyPrint = a})
171 (\ s a -> s{_cpPrettyPrint = a})
124
172
125−-- | IP address of the site where the request originates. Use this if you
173+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
126−-- want to enforce per-user limits.
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.
127−cpUserIP :: Lens' CallsetsPatch' (Maybe Text)
187+cpPp :: Lens' CallsetsPatch' Bool
128−cpUserIP = lens _cpUserIP (\ s a -> s{_cpUserIP = a})
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})
129
200
130-- | Multipart request metadata.
201-- | Multipart request metadata.
131cpPayload :: Lens' CallsetsPatch' CallSet
202cpPayload :: Lens' CallsetsPatch' CallSet
132cpPayload
203cpPayload
133 = lens _cpPayload (\ s a -> s{_cpPayload = a})
204 = lens _cpPayload (\ s a -> s{_cpPayload = a})
134
205
206+-- | OAuth bearer token.
207+cpBearerToken :: Lens' CallsetsPatch' (Maybe Text)
208+cpBearerToken
209+ = lens _cpBearerToken
210+ (\ s a -> s{_cpBearerToken = a})
211+
135-- | API key. Your API key identifies your project and provides you with API
212-- | 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
213-- access, quota, and reports. Required unless you provide an OAuth 2.0
137-- token.
214-- token.
@@ -152,6 +229,11 @@ cpOAuthToken
152cpFields :: Lens' CallsetsPatch' (Maybe Text)
229cpFields :: Lens' CallsetsPatch' (Maybe Text)
153cpFields = lens _cpFields (\ s a -> s{_cpFields = a})
230cpFields = lens _cpFields (\ s a -> s{_cpFields = a})
154
231
232+-- | JSONP
233+cpCallback :: Lens' CallsetsPatch' (Maybe Text)
234+cpCallback
235+ = lens _cpCallback (\ s a -> s{_cpCallback = a})
236+
155instance GoogleAuth CallsetsPatch' where
237instance GoogleAuth CallsetsPatch' where
156 _AuthKey = cpKey . _Just
238 _AuthKey = cpKey . _Just
157 _AuthToken = cpOAuthToken . _Just
239 _AuthToken = cpOAuthToken . _Just
@@ -160,8 +242,15 @@ instance GoogleRequest CallsetsPatch' where
160 type Rs CallsetsPatch' = CallSet
242 type Rs CallsetsPatch' = CallSet
161 request = requestWith genomicsRequest
243 request = requestWith genomicsRequest
162 requestWith rq CallsetsPatch'{..}
244 requestWith rq CallsetsPatch'{..}
245+ = go _cpCallSetId _cpXgafv _cpUploadProtocol
246+ _cpUpdateMask
247+ (Just _cpPp)
248+ _cpAccessToken
249+ _cpUploadType
250+ _cpBearerToken
251+ _cpCallback
252+ _cpQuotaUser
163− = go _cpCallSetId _cpQuotaUser (Just _cpPrettyPrint)
253+ (Just _cpPrettyPrint)
164− _cpUserIP
165 _cpFields
254 _cpFields
166 _cpKey
255 _cpKey
167 _cpOAuthToken
256 _cpOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Callsets/Search.hs+105−31
@@ -21,9 +21,9 @@
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23-- | Gets a list of call sets matching the criteria. Implements
23-- | 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).
25--
25--
26−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsCallsetsSearch@.
26+-- /See:/ < Genomics API Reference> for @GenomicsCallsetsSearch@.
27module Network.Google.Resource.Genomics.Callsets.Search
27module Network.Google.Resource.Genomics.Callsets.Search
28 (
28 (
29 -- * REST Resource
29 -- * REST Resource
@@ -34,13 +34,19 @@ module Network.Google.Resource.Genomics.Callsets.Search
34 , CallsetsSearch'
34 , CallsetsSearch'
35
35
36 -- * Request Lenses
36 -- * Request Lenses
37+ , csXgafv
37 , csQuotaUser
38 , csQuotaUser
38 , csPrettyPrint
39 , csPrettyPrint
39− , csUserIP
40+ , csUploadProtocol
41+ , csPp
42+ , csAccessToken
43+ , csUploadType
40 , csPayload
44 , csPayload
45+ , csBearerToken
41 , csKey
46 , csKey
42 , csOAuthToken
47 , csOAuthToken
43 , csFields
48 , csFields
49+ , csCallback
44 ) where
50 ) where
45
51
46import Network.Google.Genomics.Types
52import Network.Google.Genomics.Types
@@ -49,66 +55,101 @@ import Network.Google.Prelude
49-- | A resource alias for @GenomicsCallsetsSearch@ method which the
55-- | A resource alias for @GenomicsCallsetsSearch@ method which the
50-- 'CallsetsSearch'' request conforms to.
56-- 'CallsetsSearch'' request conforms to.
51type CallsetsSearchResource =
57type CallsetsSearchResource =
52− "callsets" :>
58+ "v1" :>
53− "search" :>
59+ "callsets" :>
54− QueryParam "quotaUser" Text :>
60+ "search" :>
55− QueryParam "prettyPrint" Bool :>
61+ QueryParam "$.xgafv" Text :>
56− QueryParam "userIp" Text :>
62+ QueryParam "upload_protocol" Text :>
57− QueryParam "fields" 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 :>
58− QueryParam "key" AuthKey :>
71+ QueryParam "key" AuthKey :>
59− QueryParam "oauth_token" OAuthToken :>
72+ QueryParam "oauth_token" OAuthToken :>
60− QueryParam "alt" AltJSON :>
73+ QueryParam "alt" AltJSON :>
61− ReqBody '[JSON] SearchCallSetsRequest :>
74+ ReqBody '[JSON] SearchCallSetsRequest :>
62− Post '[JSON] SearchCallSetsResponse
75+ Post '[JSON] SearchCallSetsResponse
63
76
64-- | Gets a list of call sets matching the criteria. Implements
77-- | 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).
66--
79--
67-- /See:/ 'callsetsSearch'' smart constructor.
80-- /See:/ 'callsetsSearch'' smart constructor.
68data CallsetsSearch' = CallsetsSearch'
81data CallsetsSearch' = CallsetsSearch'
82+ { _csXgafv :: !(Maybe Text)
69− { _csQuotaUser :: !(Maybe Text)
83+ , _csQuotaUser :: !(Maybe Text)
70− , _csPrettyPrint :: !Bool
84+ , _csPrettyPrint :: !Bool
85+ , _csUploadProtocol :: !(Maybe Text)
86+ , _csPp :: !Bool
87+ , _csAccessToken :: !(Maybe Text)
71− , _csUserIP :: !(Maybe Text)
88+ , _csUploadType :: !(Maybe Text)
72− , _csPayload :: !SearchCallSetsRequest
89+ , _csPayload :: !SearchCallSetsRequest
90+ , _csBearerToken :: !(Maybe Text)
73− , _csKey :: !(Maybe AuthKey)
91+ , _csKey :: !(Maybe AuthKey)
74− , _csOAuthToken :: !(Maybe OAuthToken)
92+ , _csOAuthToken :: !(Maybe OAuthToken)
75− , _csFields :: !(Maybe Text)
93+ , _csFields :: !(Maybe Text)
94+ , _csCallback :: !(Maybe Text)
76 } deriving (Eq,Show,Data,Typeable,Generic)
95 } deriving (Eq,Show,Data,Typeable,Generic)
77
96
78-- | Creates a value of 'CallsetsSearch'' with the minimum fields required to make a request.
97-- | Creates a value of 'CallsetsSearch'' with the minimum fields required to make a request.
79--
98--
80-- Use one of the following lenses to modify other fields as desired:
99-- Use one of the following lenses to modify other fields as desired:
81--
100--
101+-- * 'csXgafv'
102+--
82-- * 'csQuotaUser'
103-- * 'csQuotaUser'
83--
104--
84-- * 'csPrettyPrint'
105-- * 'csPrettyPrint'
85--
106--
86−-- * 'csUserIP'
107+-- * 'csUploadProtocol'
108+--
109+-- * 'csPp'
110+--
111+-- * 'csAccessToken'
112+--
113+-- * 'csUploadType'
87--
114--
88-- * 'csPayload'
115-- * 'csPayload'
89--
116--
117+-- * 'csBearerToken'
118+--
90-- * 'csKey'
119-- * 'csKey'
91--
120--
92-- * 'csOAuthToken'
121-- * 'csOAuthToken'
93--
122--
94-- * 'csFields'
123-- * 'csFields'
124+--
125+-- * 'csCallback'
95callsetsSearch'
126callsetsSearch'
96 :: SearchCallSetsRequest -- ^ 'payload'
127 :: SearchCallSetsRequest -- ^ 'payload'
97 -> CallsetsSearch'
128 -> CallsetsSearch'
98callsetsSearch' pCsPayload_ =
129callsetsSearch' pCsPayload_ =
99 CallsetsSearch'
130 CallsetsSearch'
131+ { _csXgafv = Nothing
100− { _csQuotaUser = Nothing
132+ , _csQuotaUser = Nothing
101 , _csPrettyPrint = True
133 , _csPrettyPrint = True
102− , _csUserIP = Nothing
134+ , _csUploadProtocol = Nothing
135+ , _csPp = True
136+ , _csAccessToken = Nothing
137+ , _csUploadType = Nothing
103 , _csPayload = pCsPayload_
138 , _csPayload = pCsPayload_
139+ , _csBearerToken = Nothing
104 , _csKey = Nothing
140 , _csKey = Nothing
105 , _csOAuthToken = Nothing
141 , _csOAuthToken = Nothing
106 , _csFields = Nothing
142 , _csFields = Nothing
143+ , _csCallback = Nothing
107 }
144 }
108
145
146+-- | V1 error format.
147+csXgafv :: Lens' CallsetsSearch' (Maybe Text)
148+csXgafv = lens _csXgafv (\ s a -> s{_csXgafv = a})
149+
109-- | Available to use for quota purposes for server-side applications. Can be
150-- | Available to use for quota purposes for server-side applications. Can be
110-- any arbitrary string assigned to a user, but should not exceed 40
151-- any arbitrary string assigned to a user, but should not exceed 40
111−-- characters. Overrides userIp if both are provided.
152+-- characters.
112csQuotaUser :: Lens' CallsetsSearch' (Maybe Text)
153csQuotaUser :: Lens' CallsetsSearch' (Maybe Text)
113csQuotaUser
154csQuotaUser
114 = lens _csQuotaUser (\ s a -> s{_csQuotaUser = a})
155 = lens _csQuotaUser (\ s a -> s{_csQuotaUser = a})
@@ -119,16 +160,38 @@ csPrettyPrint
119 = lens _csPrettyPrint
160 = lens _csPrettyPrint
120 (\ s a -> s{_csPrettyPrint = a})
161 (\ s a -> s{_csPrettyPrint = a})
121
162
122−-- | IP address of the site where the request originates. Use this if you
163+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
123−-- want to enforce per-user limits.
164+csUploadProtocol :: Lens' CallsetsSearch' (Maybe Text)
165+csUploadProtocol
166+ = lens _csUploadProtocol
167+ (\ s a -> s{_csUploadProtocol = a})
168+
169+-- | Pretty-print response.
124−csUserIP :: Lens' CallsetsSearch' (Maybe Text)
170+csPp :: Lens' CallsetsSearch' Bool
125−csUserIP = lens _csUserIP (\ s a -> s{_csUserIP = a})
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})
126
183
127-- | Multipart request metadata.
184-- | Multipart request metadata.
128csPayload :: Lens' CallsetsSearch' SearchCallSetsRequest
185csPayload :: Lens' CallsetsSearch' SearchCallSetsRequest
129csPayload
186csPayload
130 = lens _csPayload (\ s a -> s{_csPayload = a})
187 = lens _csPayload (\ s a -> s{_csPayload = a})
131
188
189+-- | OAuth bearer token.
190+csBearerToken :: Lens' CallsetsSearch' (Maybe Text)
191+csBearerToken
192+ = lens _csBearerToken
193+ (\ s a -> s{_csBearerToken = a})
194+
132-- | API key. Your API key identifies your project and provides you with API
195-- | 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
196-- access, quota, and reports. Required unless you provide an OAuth 2.0
134-- token.
197-- token.
@@ -144,6 +207,11 @@ csOAuthToken
144csFields :: Lens' CallsetsSearch' (Maybe Text)
207csFields :: Lens' CallsetsSearch' (Maybe Text)
145csFields = lens _csFields (\ s a -> s{_csFields = a})
208csFields = lens _csFields (\ s a -> s{_csFields = a})
146
209
210+-- | JSONP
211+csCallback :: Lens' CallsetsSearch' (Maybe Text)
212+csCallback
213+ = lens _csCallback (\ s a -> s{_csCallback = a})
214+
147instance GoogleAuth CallsetsSearch' where
215instance GoogleAuth CallsetsSearch' where
148 _AuthKey = csKey . _Just
216 _AuthKey = csKey . _Just
149 _AuthToken = csOAuthToken . _Just
217 _AuthToken = csOAuthToken . _Just
@@ -152,7 +220,13 @@ instance GoogleRequest CallsetsSearch' where
152 type Rs CallsetsSearch' = SearchCallSetsResponse
220 type Rs CallsetsSearch' = SearchCallSetsResponse
153 request = requestWith genomicsRequest
221 request = requestWith genomicsRequest
154 requestWith rq CallsetsSearch'{..}
222 requestWith rq CallsetsSearch'{..}
223+ = go _csXgafv _csUploadProtocol (Just _csPp)
224+ _csAccessToken
225+ _csUploadType
226+ _csBearerToken
227+ _csCallback
228+ _csQuotaUser
155− = go _csQuotaUser (Just _csPrettyPrint) _csUserIP
229+ (Just _csPrettyPrint)
156 _csFields
230 _csFields
157 _csKey
231 _csKey
158 _csOAuthToken
232 _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 @@
22--
22--
23-- | Creates a new dataset.
23-- | Creates a new dataset.
24--
24--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsDatasetsCreate@.
25+-- /See:/ < Genomics API Reference> for @GenomicsDatasetsCreate@.
26module Network.Google.Resource.Genomics.Datasets.Create
26module Network.Google.Resource.Genomics.Datasets.Create
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
@@ -33,13 +33,19 @@ module Network.Google.Resource.Genomics.Datasets.Create
33 , DatasetsCreate'
33 , DatasetsCreate'
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36+ , dcXgafv
36 , dcQuotaUser
37 , dcQuotaUser
37 , dcPrettyPrint
38 , dcPrettyPrint
38− , dcUserIP
39+ , dcUploadProtocol
40+ , dcPp
41+ , dcAccessToken
42+ , dcUploadType
39 , dcPayload
43 , dcPayload
44+ , dcBearerToken
40 , dcKey
45 , dcKey
41 , dcOAuthToken
46 , dcOAuthToken
42 , dcFields
47 , dcFields
48+ , dcCallback
43 ) where
49 ) where
44
50
45import Network.Google.Genomics.Types
51import Network.Google.Genomics.Types
@@ -48,63 +54,99 @@ import Network.Google.Prelude
48-- | A resource alias for @GenomicsDatasetsCreate@ method which the
54-- | A resource alias for @GenomicsDatasetsCreate@ method which the
49-- 'DatasetsCreate'' request conforms to.
55-- 'DatasetsCreate'' request conforms to.
50type DatasetsCreateResource =
56type DatasetsCreateResource =
51− "datasets" :>
57+ "v1" :>
52− QueryParam "quotaUser" Text :>
58+ "datasets" :>
53− QueryParam "prettyPrint" Bool :>
59+ QueryParam "$.xgafv" Text :>
54− QueryParam "userIp" Text :>
60+ QueryParam "upload_protocol" Text :>
55− QueryParam "fields" 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 :>
56− QueryParam "key" AuthKey :>
69+ QueryParam "key" AuthKey :>
57− QueryParam "oauth_token" OAuthToken :>
70+ QueryParam "oauth_token" OAuthToken :>
58− QueryParam "alt" AltJSON :>
71+ QueryParam "alt" AltJSON :>
59− ReqBody '[JSON] Dataset :> Post '[JSON] Dataset
72+ ReqBody '[JSON] Dataset :>
73+ Post '[JSON] Dataset
60
74
61-- | Creates a new dataset.
75-- | Creates a new dataset.
62--
76--
63-- /See:/ 'datasetsCreate'' smart constructor.
77-- /See:/ 'datasetsCreate'' smart constructor.
64data DatasetsCreate' = DatasetsCreate'
78data DatasetsCreate' = DatasetsCreate'
79+ { _dcXgafv :: !(Maybe Text)
65− { _dcQuotaUser :: !(Maybe Text)
80+ , _dcQuotaUser :: !(Maybe Text)
66− , _dcPrettyPrint :: !Bool
81+ , _dcPrettyPrint :: !Bool
82+ , _dcUploadProtocol :: !(Maybe Text)
83+ , _dcPp :: !Bool
84+ , _dcAccessToken :: !(Maybe Text)
67− , _dcUserIP :: !(Maybe Text)
85+ , _dcUploadType :: !(Maybe Text)
68− , _dcPayload :: !Dataset
86+ , _dcPayload :: !Dataset
87+ , _dcBearerToken :: !(Maybe Text)
69− , _dcKey :: !(Maybe AuthKey)
88+ , _dcKey :: !(Maybe AuthKey)
70− , _dcOAuthToken :: !(Maybe OAuthToken)
89+ , _dcOAuthToken :: !(Maybe OAuthToken)
71− , _dcFields :: !(Maybe Text)
90+ , _dcFields :: !(Maybe Text)
91+ , _dcCallback :: !(Maybe Text)
72 } deriving (Eq,Show,Data,Typeable,Generic)
92 } deriving (Eq,Show,Data,Typeable,Generic)
73
93
74-- | Creates a value of 'DatasetsCreate'' with the minimum fields required to make a request.
94-- | Creates a value of 'DatasetsCreate'' with the minimum fields required to make a request.
75--
95--
76-- Use one of the following lenses to modify other fields as desired:
96-- Use one of the following lenses to modify other fields as desired:
77--
97--
98+-- * 'dcXgafv'
99+--
78-- * 'dcQuotaUser'
100-- * 'dcQuotaUser'
79--
101--
80-- * 'dcPrettyPrint'
102-- * 'dcPrettyPrint'
81--
103--
82−-- * 'dcUserIP'
104+-- * 'dcUploadProtocol'
105+--
106+-- * 'dcPp'
107+--
108+-- * 'dcAccessToken'
109+--
110+-- * 'dcUploadType'
83--
111--
84-- * 'dcPayload'
112-- * 'dcPayload'
85--
113--
114+-- * 'dcBearerToken'
115+--
86-- * 'dcKey'
116-- * 'dcKey'
87--
117--
88-- * 'dcOAuthToken'
118-- * 'dcOAuthToken'
89--
119--
90-- * 'dcFields'
120-- * 'dcFields'
121+--
122+-- * 'dcCallback'
91datasetsCreate'
123datasetsCreate'
92 :: Dataset -- ^ 'payload'
124 :: Dataset -- ^ 'payload'
93 -> DatasetsCreate'
125 -> DatasetsCreate'
94datasetsCreate' pDcPayload_ =
126datasetsCreate' pDcPayload_ =
95 DatasetsCreate'
127 DatasetsCreate'
128+ { _dcXgafv = Nothing
96− { _dcQuotaUser = Nothing
129+ , _dcQuotaUser = Nothing
97 , _dcPrettyPrint = True
130 , _dcPrettyPrint = True
98− , _dcUserIP = Nothing
131+ , _dcUploadProtocol = Nothing
132+ , _dcPp = True
133+ , _dcAccessToken = Nothing
134+ , _dcUploadType = Nothing
99 , _dcPayload = pDcPayload_
135 , _dcPayload = pDcPayload_
136+ , _dcBearerToken = Nothing
100 , _dcKey = Nothing
137 , _dcKey = Nothing
101 , _dcOAuthToken = Nothing
138 , _dcOAuthToken = Nothing
102 , _dcFields = Nothing
139 , _dcFields = Nothing
140+ , _dcCallback = Nothing
103 }
141 }
104
142
143+-- | V1 error format.
144+dcXgafv :: Lens' DatasetsCreate' (Maybe Text)
145+dcXgafv = lens _dcXgafv (\ s a -> s{_dcXgafv = a})
146+
105-- | Available to use for quota purposes for server-side applications. Can be
147-- | 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
148-- any arbitrary string assigned to a user, but should not exceed 40
107−-- characters. Overrides userIp if both are provided.
149+-- characters.
108dcQuotaUser :: Lens' DatasetsCreate' (Maybe Text)
150dcQuotaUser :: Lens' DatasetsCreate' (Maybe Text)
109dcQuotaUser
151dcQuotaUser
110 = lens _dcQuotaUser (\ s a -> s{_dcQuotaUser = a})
152 = lens _dcQuotaUser (\ s a -> s{_dcQuotaUser = a})
@@ -115,16 +157,38 @@ dcPrettyPrint
115 = lens _dcPrettyPrint
157 = lens _dcPrettyPrint
116 (\ s a -> s{_dcPrettyPrint = a})
158 (\ s a -> s{_dcPrettyPrint = a})
117
159
118−-- | IP address of the site where the request originates. Use this if you
160+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
119−-- want to enforce per-user limits.
161+dcUploadProtocol :: Lens' DatasetsCreate' (Maybe Text)
162+dcUploadProtocol
163+ = lens _dcUploadProtocol
164+ (\ s a -> s{_dcUploadProtocol = a})
165+
166+-- | Pretty-print response.
120−dcUserIP :: Lens' DatasetsCreate' (Maybe Text)
167+dcPp :: Lens' DatasetsCreate' Bool
121−dcUserIP = lens _dcUserIP (\ s a -> s{_dcUserIP = a})
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})
122
180
123-- | Multipart request metadata.
181-- | Multipart request metadata.
124dcPayload :: Lens' DatasetsCreate' Dataset
182dcPayload :: Lens' DatasetsCreate' Dataset
125dcPayload
183dcPayload
126 = lens _dcPayload (\ s a -> s{_dcPayload = a})
184 = lens _dcPayload (\ s a -> s{_dcPayload = a})
127
185
186+-- | OAuth bearer token.
187+dcBearerToken :: Lens' DatasetsCreate' (Maybe Text)
188+dcBearerToken
189+ = lens _dcBearerToken
190+ (\ s a -> s{_dcBearerToken = a})
191+
128-- | API key. Your API key identifies your project and provides you with API
192-- | API key. Your API key identifies your project and provides you with API
129-- access, quota, and reports. Required unless you provide an OAuth 2.0
193-- access, quota, and reports. Required unless you provide an OAuth 2.0
130-- token.
194-- token.
@@ -140,6 +204,11 @@ dcOAuthToken
140dcFields :: Lens' DatasetsCreate' (Maybe Text)
204dcFields :: Lens' DatasetsCreate' (Maybe Text)
141dcFields = lens _dcFields (\ s a -> s{_dcFields = a})
205dcFields = lens _dcFields (\ s a -> s{_dcFields = a})
142
206
207+-- | JSONP
208+dcCallback :: Lens' DatasetsCreate' (Maybe Text)
209+dcCallback
210+ = lens _dcCallback (\ s a -> s{_dcCallback = a})
211+
143instance GoogleAuth DatasetsCreate' where
212instance GoogleAuth DatasetsCreate' where
144 _AuthKey = dcKey . _Just
213 _AuthKey = dcKey . _Just
145 _AuthToken = dcOAuthToken . _Just
214 _AuthToken = dcOAuthToken . _Just
@@ -148,7 +217,13 @@ instance GoogleRequest DatasetsCreate' where
148 type Rs DatasetsCreate' = Dataset
217 type Rs DatasetsCreate' = Dataset
149 request = requestWith genomicsRequest
218 request = requestWith genomicsRequest
150 requestWith rq DatasetsCreate'{..}
219 requestWith rq DatasetsCreate'{..}
220+ = go _dcXgafv _dcUploadProtocol (Just _dcPp)
221+ _dcAccessToken
222+ _dcUploadType
223+ _dcBearerToken
224+ _dcCallback
225+ _dcQuotaUser
151− = go _dcQuotaUser (Just _dcPrettyPrint) _dcUserIP
226+ (Just _dcPrettyPrint)
152 _dcFields
227 _dcFields
153 _dcKey
228 _dcKey
154 _dcOAuthToken
229 _dcOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/Delete.hs+104−29
@@ -22,7 +22,7 @@
22--
22--
23-- | Deletes a dataset.
23-- | Deletes a dataset.
24--
24--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsDatasetsDelete@.
25+-- /See:/ < Genomics API Reference> for @GenomicsDatasetsDelete@.
26module Network.Google.Resource.Genomics.Datasets.Delete
26module Network.Google.Resource.Genomics.Datasets.Delete
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
@@ -33,13 +33,19 @@ module Network.Google.Resource.Genomics.Datasets.Delete
33 , DatasetsDelete'
33 , DatasetsDelete'
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36+ , ddXgafv
36 , ddQuotaUser
37 , ddQuotaUser
37 , ddPrettyPrint
38 , ddPrettyPrint
38− , ddUserIP
39+ , ddUploadProtocol
40+ , ddPp
41+ , ddAccessToken
42+ , ddUploadType
43+ , ddBearerToken
39 , ddKey
44 , ddKey
40 , ddDatasetId
45 , ddDatasetId
41 , ddOAuthToken
46 , ddOAuthToken
42 , ddFields
47 , ddFields
48+ , ddCallback
43 ) where
49 ) where
44
50
45import Network.Google.Genomics.Types
51import Network.Google.Genomics.Types
@@ -48,38 +54,62 @@ import Network.Google.Prelude
48-- | A resource alias for @GenomicsDatasetsDelete@ method which the
54-- | A resource alias for @GenomicsDatasetsDelete@ method which the
49-- 'DatasetsDelete'' request conforms to.
55-- 'DatasetsDelete'' request conforms to.
50type DatasetsDeleteResource =
56type DatasetsDeleteResource =
51− "datasets" :>
57+ "v1" :>
58+ "datasets" :>
52− Capture "datasetId" Text :>
59+ Capture "datasetId" Text :>
53− QueryParam "quotaUser" Text :>
54− QueryParam "prettyPrint" Bool :>
60+ QueryParam "$.xgafv" Text :>
55− QueryParam "userIp" Text :>
61+ QueryParam "upload_protocol" Text :>
56− QueryParam "fields" 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 :>
57− QueryParam "key" AuthKey :>
70+ QueryParam "key" AuthKey :>
58− QueryParam "oauth_token" OAuthToken :>
71+ QueryParam "oauth_token" OAuthToken :>
59− QueryParam "alt" AltJSON :> Delete '[JSON] ()
72+ QueryParam "alt" AltJSON :>
73+ Delete '[JSON] Empty
60
74
61-- | Deletes a dataset.
75-- | Deletes a dataset.
62--
76--
63-- /See:/ 'datasetsDelete'' smart constructor.
77-- /See:/ 'datasetsDelete'' smart constructor.
64data DatasetsDelete' = DatasetsDelete'
78data DatasetsDelete' = DatasetsDelete'
79+ { _ddXgafv :: !(Maybe Text)
65− { _ddQuotaUser :: !(Maybe Text)
80+ , _ddQuotaUser :: !(Maybe Text)
66− , _ddPrettyPrint :: !Bool
81+ , _ddPrettyPrint :: !Bool
82+ , _ddUploadProtocol :: !(Maybe Text)
83+ , _ddPp :: !Bool
84+ , _ddAccessToken :: !(Maybe Text)
85+ , _ddUploadType :: !(Maybe Text)
67− , _ddUserIP :: !(Maybe Text)
86+ , _ddBearerToken :: !(Maybe Text)
68− , _ddKey :: !(Maybe AuthKey)
87+ , _ddKey :: !(Maybe AuthKey)
69− , _ddDatasetId :: !Text
88+ , _ddDatasetId :: !Text
70− , _ddOAuthToken :: !(Maybe OAuthToken)
89+ , _ddOAuthToken :: !(Maybe OAuthToken)
71− , _ddFields :: !(Maybe Text)
90+ , _ddFields :: !(Maybe Text)
91+ , _ddCallback :: !(Maybe Text)
72 } deriving (Eq,Show,Data,Typeable,Generic)
92 } deriving (Eq,Show,Data,Typeable,Generic)
73
93
74-- | Creates a value of 'DatasetsDelete'' with the minimum fields required to make a request.
94-- | Creates a value of 'DatasetsDelete'' with the minimum fields required to make a request.
75--
95--
76-- Use one of the following lenses to modify other fields as desired:
96-- Use one of the following lenses to modify other fields as desired:
77--
97--
98+-- * 'ddXgafv'
99+--
78-- * 'ddQuotaUser'
100-- * 'ddQuotaUser'
79--
101--
80-- * 'ddPrettyPrint'
102-- * 'ddPrettyPrint'
81--
103--
82−-- * 'ddUserIP'
104+-- * 'ddUploadProtocol'
105+--
106+-- * 'ddPp'
107+--
108+-- * 'ddAccessToken'
109+--
110+-- * 'ddUploadType'
111+--
112+-- * 'ddBearerToken'
83--
113--
84-- * 'ddKey'
114-- * 'ddKey'
85--
115--
@@ -88,23 +118,35 @@ data DatasetsDelete' = DatasetsDelete'
88-- * 'ddOAuthToken'
118-- * 'ddOAuthToken'
89--
119--
90-- * 'ddFields'
120-- * 'ddFields'
121+--
122+-- * 'ddCallback'
91datasetsDelete'
123datasetsDelete'
92 :: Text -- ^ 'datasetId'
124 :: Text -- ^ 'datasetId'
93 -> DatasetsDelete'
125 -> DatasetsDelete'
94datasetsDelete' pDdDatasetId_ =
126datasetsDelete' pDdDatasetId_ =
95 DatasetsDelete'
127 DatasetsDelete'
128+ { _ddXgafv = Nothing
96− { _ddQuotaUser = Nothing
129+ , _ddQuotaUser = Nothing
97 , _ddPrettyPrint = True
130 , _ddPrettyPrint = True
98− , _ddUserIP = Nothing
131+ , _ddUploadProtocol = Nothing
132+ , _ddPp = True
133+ , _ddAccessToken = Nothing
134+ , _ddUploadType = Nothing
135+ , _ddBearerToken = Nothing
99 , _ddKey = Nothing
136 , _ddKey = Nothing
100 , _ddDatasetId = pDdDatasetId_
137 , _ddDatasetId = pDdDatasetId_
101 , _ddOAuthToken = Nothing
138 , _ddOAuthToken = Nothing
102 , _ddFields = Nothing
139 , _ddFields = Nothing
140+ , _ddCallback = Nothing
103 }
141 }
104
142
143+-- | V1 error format.
144+ddXgafv :: Lens' DatasetsDelete' (Maybe Text)
145+ddXgafv = lens _ddXgafv (\ s a -> s{_ddXgafv = a})
146+
105-- | Available to use for quota purposes for server-side applications. Can be
147-- | 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
148-- any arbitrary string assigned to a user, but should not exceed 40
107−-- characters. Overrides userIp if both are provided.
149+-- characters.
108ddQuotaUser :: Lens' DatasetsDelete' (Maybe Text)
150ddQuotaUser :: Lens' DatasetsDelete' (Maybe Text)
109ddQuotaUser
151ddQuotaUser
110 = lens _ddQuotaUser (\ s a -> s{_ddQuotaUser = a})
152 = lens _ddQuotaUser (\ s a -> s{_ddQuotaUser = a})
@@ -115,10 +157,32 @@ ddPrettyPrint
115 = lens _ddPrettyPrint
157 = lens _ddPrettyPrint
116 (\ s a -> s{_ddPrettyPrint = a})
158 (\ s a -> s{_ddPrettyPrint = a})
117
159
118−-- | IP address of the site where the request originates. Use this if you
160+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
119−-- want to enforce per-user limits.
161+ddUploadProtocol :: Lens' DatasetsDelete' (Maybe Text)
162+ddUploadProtocol
163+ = lens _ddUploadProtocol
164+ (\ s a -> s{_ddUploadProtocol = a})
165+
166+-- | Pretty-print response.
120−ddUserIP :: Lens' DatasetsDelete' (Maybe Text)
167+ddPp :: Lens' DatasetsDelete' Bool
121−ddUserIP = lens _ddUserIP (\ s a -> s{_ddUserIP = a})
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})
122
186
123-- | API key. Your API key identifies your project and provides you with API
187-- | API key. Your API key identifies your project and provides you with API
124-- access, quota, and reports. Required unless you provide an OAuth 2.0
188-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -140,16 +204,27 @@ ddOAuthToken
140ddFields :: Lens' DatasetsDelete' (Maybe Text)
204ddFields :: Lens' DatasetsDelete' (Maybe Text)
141ddFields = lens _ddFields (\ s a -> s{_ddFields = a})
205ddFields = lens _ddFields (\ s a -> s{_ddFields = a})
142
206
207+-- | JSONP
208+ddCallback :: Lens' DatasetsDelete' (Maybe Text)
209+ddCallback
210+ = lens _ddCallback (\ s a -> s{_ddCallback = a})
211+
143instance GoogleAuth DatasetsDelete' where
212instance GoogleAuth DatasetsDelete' where
144 _AuthKey = ddKey . _Just
213 _AuthKey = ddKey . _Just
145 _AuthToken = ddOAuthToken . _Just
214 _AuthToken = ddOAuthToken . _Just
146
215
147instance GoogleRequest DatasetsDelete' where
216instance GoogleRequest DatasetsDelete' where
148− type Rs DatasetsDelete' = ()
217+ type Rs DatasetsDelete' = Empty
149 request = requestWith genomicsRequest
218 request = requestWith genomicsRequest
150 requestWith rq DatasetsDelete'{..}
219 requestWith rq DatasetsDelete'{..}
220+ = go _ddDatasetId _ddXgafv _ddUploadProtocol
221+ (Just _ddPp)
222+ _ddAccessToken
223+ _ddUploadType
224+ _ddBearerToken
225+ _ddCallback
226+ _ddQuotaUser
151− = go _ddDatasetId _ddQuotaUser (Just _ddPrettyPrint)
227+ (Just _ddPrettyPrint)
152− _ddUserIP
153 _ddFields
228 _ddFields
154 _ddKey
229 _ddKey
155 _ddOAuthToken
230 _ddOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/Get.hs+103−28
@@ -22,7 +22,7 @@
22--
22--
23-- | Gets a dataset by ID.
23-- | Gets a dataset by ID.
24--
24--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsDatasetsGet@.
25+-- /See:/ < Genomics API Reference> for @GenomicsDatasetsGet@.
26module Network.Google.Resource.Genomics.Datasets.Get
26module Network.Google.Resource.Genomics.Datasets.Get
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
@@ -33,13 +33,19 @@ module Network.Google.Resource.Genomics.Datasets.Get
33 , DatasetsGet'
33 , DatasetsGet'
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36+ , dgXgafv
36 , dgQuotaUser
37 , dgQuotaUser
37 , dgPrettyPrint
38 , dgPrettyPrint
38− , dgUserIP
39+ , dgUploadProtocol
40+ , dgPp
41+ , dgAccessToken
42+ , dgUploadType
43+ , dgBearerToken
39 , dgKey
44 , dgKey
40 , dgDatasetId
45 , dgDatasetId
41 , dgOAuthToken
46 , dgOAuthToken
42 , dgFields
47 , dgFields
48+ , dgCallback
43 ) where
49 ) where
44
50
45import Network.Google.Genomics.Types
51import Network.Google.Genomics.Types
@@ -48,38 +54,62 @@ import Network.Google.Prelude
48-- | A resource alias for @GenomicsDatasetsGet@ method which the
54-- | A resource alias for @GenomicsDatasetsGet@ method which the
49-- 'DatasetsGet'' request conforms to.
55-- 'DatasetsGet'' request conforms to.
50type DatasetsGetResource =
56type DatasetsGetResource =
51− "datasets" :>
57+ "v1" :>
58+ "datasets" :>
52− Capture "datasetId" Text :>
59+ Capture "datasetId" Text :>
53− QueryParam "quotaUser" Text :>
54− QueryParam "prettyPrint" Bool :>
60+ QueryParam "$.xgafv" Text :>
55− QueryParam "userIp" Text :>
61+ QueryParam "upload_protocol" Text :>
56− QueryParam "fields" 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 :>
57− QueryParam "key" AuthKey :>
70+ QueryParam "key" AuthKey :>
58− QueryParam "oauth_token" OAuthToken :>
71+ QueryParam "oauth_token" OAuthToken :>
59− QueryParam "alt" AltJSON :> Get '[JSON] Dataset
72+ QueryParam "alt" AltJSON :>
73+ Get '[JSON] Dataset
60
74
61-- | Gets a dataset by ID.
75-- | Gets a dataset by ID.
62--
76--
63-- /See:/ 'datasetsGet'' smart constructor.
77-- /See:/ 'datasetsGet'' smart constructor.
64data DatasetsGet' = DatasetsGet'
78data DatasetsGet' = DatasetsGet'
79+ { _dgXgafv :: !(Maybe Text)
65− { _dgQuotaUser :: !(Maybe Text)
80+ , _dgQuotaUser :: !(Maybe Text)
66− , _dgPrettyPrint :: !Bool
81+ , _dgPrettyPrint :: !Bool
82+ , _dgUploadProtocol :: !(Maybe Text)
83+ , _dgPp :: !Bool
84+ , _dgAccessToken :: !(Maybe Text)
85+ , _dgUploadType :: !(Maybe Text)
67− , _dgUserIP :: !(Maybe Text)
86+ , _dgBearerToken :: !(Maybe Text)
68− , _dgKey :: !(Maybe AuthKey)
87+ , _dgKey :: !(Maybe AuthKey)
69− , _dgDatasetId :: !Text
88+ , _dgDatasetId :: !Text
70− , _dgOAuthToken :: !(Maybe OAuthToken)
89+ , _dgOAuthToken :: !(Maybe OAuthToken)
71− , _dgFields :: !(Maybe Text)
90+ , _dgFields :: !(Maybe Text)
91+ , _dgCallback :: !(Maybe Text)
72 } deriving (Eq,Show,Data,Typeable,Generic)
92 } deriving (Eq,Show,Data,Typeable,Generic)
73
93
74-- | Creates a value of 'DatasetsGet'' with the minimum fields required to make a request.
94-- | Creates a value of 'DatasetsGet'' with the minimum fields required to make a request.
75--
95--
76-- Use one of the following lenses to modify other fields as desired:
96-- Use one of the following lenses to modify other fields as desired:
77--
97--
98+-- * 'dgXgafv'
99+--
78-- * 'dgQuotaUser'
100-- * 'dgQuotaUser'
79--
101--
80-- * 'dgPrettyPrint'
102-- * 'dgPrettyPrint'
81--
103--
82−-- * 'dgUserIP'
104+-- * 'dgUploadProtocol'
105+--
106+-- * 'dgPp'
107+--
108+-- * 'dgAccessToken'
109+--
110+-- * 'dgUploadType'
111+--
112+-- * 'dgBearerToken'
83--
113--
84-- * 'dgKey'
114-- * 'dgKey'
85--
115--
@@ -88,23 +118,35 @@ data DatasetsGet' = DatasetsGet'
88-- * 'dgOAuthToken'
118-- * 'dgOAuthToken'
89--
119--
90-- * 'dgFields'
120-- * 'dgFields'
121+--
122+-- * 'dgCallback'
91datasetsGet'
123datasetsGet'
92 :: Text -- ^ 'datasetId'
124 :: Text -- ^ 'datasetId'
93 -> DatasetsGet'
125 -> DatasetsGet'
94datasetsGet' pDgDatasetId_ =
126datasetsGet' pDgDatasetId_ =
95 DatasetsGet'
127 DatasetsGet'
128+ { _dgXgafv = Nothing
96− { _dgQuotaUser = Nothing
129+ , _dgQuotaUser = Nothing
97 , _dgPrettyPrint = True
130 , _dgPrettyPrint = True
98− , _dgUserIP = Nothing
131+ , _dgUploadProtocol = Nothing
132+ , _dgPp = True
133+ , _dgAccessToken = Nothing
134+ , _dgUploadType = Nothing
135+ , _dgBearerToken = Nothing
99 , _dgKey = Nothing
136 , _dgKey = Nothing
100 , _dgDatasetId = pDgDatasetId_
137 , _dgDatasetId = pDgDatasetId_
101 , _dgOAuthToken = Nothing
138 , _dgOAuthToken = Nothing
102 , _dgFields = Nothing
139 , _dgFields = Nothing
140+ , _dgCallback = Nothing
103 }
141 }
104
142
143+-- | V1 error format.
144+dgXgafv :: Lens' DatasetsGet' (Maybe Text)
145+dgXgafv = lens _dgXgafv (\ s a -> s{_dgXgafv = a})
146+
105-- | Available to use for quota purposes for server-side applications. Can be
147-- | 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
148-- any arbitrary string assigned to a user, but should not exceed 40
107−-- characters. Overrides userIp if both are provided.
149+-- characters.
108dgQuotaUser :: Lens' DatasetsGet' (Maybe Text)
150dgQuotaUser :: Lens' DatasetsGet' (Maybe Text)
109dgQuotaUser
151dgQuotaUser
110 = lens _dgQuotaUser (\ s a -> s{_dgQuotaUser = a})
152 = lens _dgQuotaUser (\ s a -> s{_dgQuotaUser = a})
@@ -115,10 +157,32 @@ dgPrettyPrint
115 = lens _dgPrettyPrint
157 = lens _dgPrettyPrint
116 (\ s a -> s{_dgPrettyPrint = a})
158 (\ s a -> s{_dgPrettyPrint = a})
117
159
118−-- | IP address of the site where the request originates. Use this if you
160+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
119−-- want to enforce per-user limits.
161+dgUploadProtocol :: Lens' DatasetsGet' (Maybe Text)
162+dgUploadProtocol
163+ = lens _dgUploadProtocol
164+ (\ s a -> s{_dgUploadProtocol = a})
165+
166+-- | Pretty-print response.
120−dgUserIP :: Lens' DatasetsGet' (Maybe Text)
167+dgPp :: Lens' DatasetsGet' Bool
121−dgUserIP = lens _dgUserIP (\ s a -> s{_dgUserIP = a})
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})
122
186
123-- | API key. Your API key identifies your project and provides you with API
187-- | API key. Your API key identifies your project and provides you with API
124-- access, quota, and reports. Required unless you provide an OAuth 2.0
188-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -140,6 +204,11 @@ dgOAuthToken
140dgFields :: Lens' DatasetsGet' (Maybe Text)
204dgFields :: Lens' DatasetsGet' (Maybe Text)
141dgFields = lens _dgFields (\ s a -> s{_dgFields = a})
205dgFields = lens _dgFields (\ s a -> s{_dgFields = a})
142
206
207+-- | JSONP
208+dgCallback :: Lens' DatasetsGet' (Maybe Text)
209+dgCallback
210+ = lens _dgCallback (\ s a -> s{_dgCallback = a})
211+
143instance GoogleAuth DatasetsGet' where
212instance GoogleAuth DatasetsGet' where
144 _AuthKey = dgKey . _Just
213 _AuthKey = dgKey . _Just
145 _AuthToken = dgOAuthToken . _Just
214 _AuthToken = dgOAuthToken . _Just
@@ -148,8 +217,14 @@ instance GoogleRequest DatasetsGet' where
148 type Rs DatasetsGet' = Dataset
217 type Rs DatasetsGet' = Dataset
149 request = requestWith genomicsRequest
218 request = requestWith genomicsRequest
150 requestWith rq DatasetsGet'{..}
219 requestWith rq DatasetsGet'{..}
220+ = go _dgDatasetId _dgXgafv _dgUploadProtocol
221+ (Just _dgPp)
222+ _dgAccessToken
223+ _dgUploadType
224+ _dgBearerToken
225+ _dgCallback
226+ _dgQuotaUser
151− = go _dgDatasetId _dgQuotaUser (Just _dgPrettyPrint)
227+ (Just _dgPrettyPrint)
152− _dgUserIP
153 _dgFields
228 _dgFields
154 _dgKey
229 _dgKey
155 _dgOAuthToken
230 _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 @@
22--
22--
23-- | Lists datasets within a project.
23-- | Lists datasets within a project.
24--
24--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsDatasetsList@.
25+-- /See:/ < Genomics API Reference> for @GenomicsDatasetsList@.
26module Network.Google.Resource.Genomics.Datasets.List
26module Network.Google.Resource.Genomics.Datasets.List
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
@@ -33,15 +33,21 @@ module Network.Google.Resource.Genomics.Datasets.List
33 , DatasetsList'
33 , DatasetsList'
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36+ , dlXgafv
36 , dlQuotaUser
37 , dlQuotaUser
37 , dlPrettyPrint
38 , dlPrettyPrint
38− , dlUserIP
39+ , dlUploadProtocol
39− , dlProjectNumber
40+ , dlPp
41+ , dlAccessToken
42+ , dlUploadType
43+ , dlBearerToken
40 , dlKey
44 , dlKey
41 , dlPageToken
45 , dlPageToken
46+ , dlProjectId
42 , dlOAuthToken
47 , dlOAuthToken
43 , dlPageSize
48 , dlPageSize
44 , dlFields
49 , dlFields
50+ , dlCallback
45 ) where
51 ) where
46
52
47import Network.Google.Genomics.Types
53import Network.Google.Genomics.Types
@@ -50,73 +56,108 @@ import Network.Google.Prelude
50-- | A resource alias for @GenomicsDatasetsList@ method which the
56-- | A resource alias for @GenomicsDatasetsList@ method which the
51-- 'DatasetsList'' request conforms to.
57-- 'DatasetsList'' request conforms to.
52type DatasetsListResource =
58type DatasetsListResource =
53− "datasets" :>
59+ "v1" :>
54− QueryParam "projectNumber" Int64 :>
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 :>
55− QueryParam "pageToken" Text :>
67+ QueryParam "pageToken" Text :>
68+ QueryParam "projectId" Text :>
56− QueryParam "pageSize" Int32 :>
69+ QueryParam "pageSize" Int32 :>
70+ QueryParam "callback" Text :>
57− QueryParam "quotaUser" Text :>
71+ QueryParam "quotaUser" Text :>
58− QueryParam "prettyPrint" Bool :>
72+ QueryParam "prettyPrint" Bool :>
59− QueryParam "userIp" Text :>
60− QueryParam "fields" Text :>
73+ QueryParam "fields" Text :>
61− QueryParam "key" AuthKey :>
74+ QueryParam "key" AuthKey :>
62− QueryParam "oauth_token" OAuthToken :>
75+ QueryParam "oauth_token" OAuthToken :>
63− QueryParam "alt" AltJSON :>
76+ QueryParam "alt" AltJSON :>
64− Get '[JSON] ListDatasetsResponse
77+ Get '[JSON] ListDatasetsResponse
65
78
66-- | Lists datasets within a project.
79-- | Lists datasets within a project.
67--
80--
68-- /See:/ 'datasetsList'' smart constructor.
81-- /See:/ 'datasetsList'' smart constructor.
69data DatasetsList' = DatasetsList'
82data DatasetsList' = DatasetsList'
83+ { _dlXgafv :: !(Maybe Text)
70− { _dlQuotaUser :: !(Maybe Text)
84+ , _dlQuotaUser :: !(Maybe Text)
71− , _dlPrettyPrint :: !Bool
85+ , _dlPrettyPrint :: !Bool
86+ , _dlUploadProtocol :: !(Maybe Text)
87+ , _dlPp :: !Bool
72− , _dlUserIP :: !(Maybe Text)
88+ , _dlAccessToken :: !(Maybe Text)
73− , _dlProjectNumber :: !(Maybe Int64)
89+ , _dlUploadType :: !(Maybe Text)
90+ , _dlBearerToken :: !(Maybe Text)
74− , _dlKey :: !(Maybe AuthKey)
91+ , _dlKey :: !(Maybe AuthKey)
75− , _dlPageToken :: !(Maybe Text)
92+ , _dlPageToken :: !(Maybe Text)
93+ , _dlProjectId :: !(Maybe Text)
76− , _dlOAuthToken :: !(Maybe OAuthToken)
94+ , _dlOAuthToken :: !(Maybe OAuthToken)
77− , _dlPageSize :: !(Maybe Int32)
95+ , _dlPageSize :: !(Maybe Int32)
78− , _dlFields :: !(Maybe Text)
96+ , _dlFields :: !(Maybe Text)
97+ , _dlCallback :: !(Maybe Text)
79 } deriving (Eq,Show,Data,Typeable,Generic)
98 } deriving (Eq,Show,Data,Typeable,Generic)
80
99
81-- | Creates a value of 'DatasetsList'' with the minimum fields required to make a request.
100-- | Creates a value of 'DatasetsList'' with the minimum fields required to make a request.
82--
101--
83-- Use one of the following lenses to modify other fields as desired:
102-- Use one of the following lenses to modify other fields as desired:
84--
103--
104+-- * 'dlXgafv'
105+--
85-- * 'dlQuotaUser'
106-- * 'dlQuotaUser'
86--
107--
87-- * 'dlPrettyPrint'
108-- * 'dlPrettyPrint'
88--
109--
89−-- * 'dlUserIP'
110+-- * 'dlUploadProtocol'
111+--
112+-- * 'dlPp'
113+--
114+-- * 'dlAccessToken'
115+--
116+-- * 'dlUploadType'
90--
117--
91−-- * 'dlProjectNumber'
118+-- * 'dlBearerToken'
92--
119--
93-- * 'dlKey'
120-- * 'dlKey'
94--
121--
95-- * 'dlPageToken'
122-- * 'dlPageToken'
96--
123--
124+-- * 'dlProjectId'
125+--
97-- * 'dlOAuthToken'
126-- * 'dlOAuthToken'
98--
127--
99-- * 'dlPageSize'
128-- * 'dlPageSize'
100--
129--
101-- * 'dlFields'
130-- * 'dlFields'
131+--
132+-- * 'dlCallback'
102datasetsList'
133datasetsList'
103 :: DatasetsList'
134 :: DatasetsList'
104datasetsList' =
135datasetsList' =
105 DatasetsList'
136 DatasetsList'
137+ { _dlXgafv = Nothing
106− { _dlQuotaUser = Nothing
138+ , _dlQuotaUser = Nothing
107 , _dlPrettyPrint = True
139 , _dlPrettyPrint = True
108− , _dlUserIP = Nothing
140+ , _dlUploadProtocol = Nothing
109− , _dlProjectNumber = Nothing
141+ , _dlPp = True
142+ , _dlAccessToken = Nothing
143+ , _dlUploadType = Nothing
144+ , _dlBearerToken = Nothing
110 , _dlKey = Nothing
145 , _dlKey = Nothing
111 , _dlPageToken = Nothing
146 , _dlPageToken = Nothing
147+ , _dlProjectId = Nothing
112 , _dlOAuthToken = Nothing
148 , _dlOAuthToken = Nothing
113 , _dlPageSize = Nothing
149 , _dlPageSize = Nothing
114 , _dlFields = Nothing
150 , _dlFields = Nothing
151+ , _dlCallback = Nothing
115 }
152 }
116
153
154+-- | V1 error format.
155+dlXgafv :: Lens' DatasetsList' (Maybe Text)
156+dlXgafv = lens _dlXgafv (\ s a -> s{_dlXgafv = a})
157+
117-- | Available to use for quota purposes for server-side applications. Can be
158-- | 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
159-- any arbitrary string assigned to a user, but should not exceed 40
119−-- characters. Overrides userIp if both are provided.
160+-- characters.
120dlQuotaUser :: Lens' DatasetsList' (Maybe Text)
161dlQuotaUser :: Lens' DatasetsList' (Maybe Text)
121dlQuotaUser
162dlQuotaUser
122 = lens _dlQuotaUser (\ s a -> s{_dlQuotaUser = a})
163 = lens _dlQuotaUser (\ s a -> s{_dlQuotaUser = a})
@@ -127,16 +168,32 @@ dlPrettyPrint
127 = lens _dlPrettyPrint
168 = lens _dlPrettyPrint
128 (\ s a -> s{_dlPrettyPrint = a})
169 (\ s a -> s{_dlPrettyPrint = a})
129
170
130−-- | IP address of the site where the request originates. Use this if you
171+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
131−-- want to enforce per-user limits.
132−dlUserIP :: Lens' DatasetsList' (Maybe Text)
172+dlUploadProtocol :: Lens' DatasetsList' (Maybe Text)
133−dlUserIP = lens _dlUserIP (\ s a -> s{_dlUserIP = a})
173+dlUploadProtocol
174+ = lens _dlUploadProtocol
175+ (\ s a -> s{_dlUploadProtocol = a})
134
176
135−-- | Required. The project to list datasets for.
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.
136−dlProjectNumber :: Lens' DatasetsList' (Maybe Int64)
193+dlBearerToken :: Lens' DatasetsList' (Maybe Text)
137−dlProjectNumber
194+dlBearerToken
138− = lens _dlProjectNumber
195+ = lens _dlBearerToken
139− (\ s a -> s{_dlProjectNumber = a})
196+ (\ s a -> s{_dlBearerToken = a})
140
197
141-- | API key. Your API key identifies your project and provides you with API
198-- | API key. Your API key identifies your project and provides you with API
142-- access, quota, and reports. Required unless you provide an OAuth 2.0
199-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -146,18 +203,23 @@ dlKey = lens _dlKey (\ s a -> s{_dlKey = a})
146
203
147-- | The continuation token, which is used to page through large result sets.
204-- | The continuation token, which is used to page through large result sets.
148-- To get the next page of results, set this parameter to the value of
205-- 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.
150dlPageToken :: Lens' DatasetsList' (Maybe Text)
207dlPageToken :: Lens' DatasetsList' (Maybe Text)
151dlPageToken
208dlPageToken
152 = lens _dlPageToken (\ s a -> s{_dlPageToken = a})
209 = lens _dlPageToken (\ s a -> s{_dlPageToken = a})
153
210
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+
154-- | OAuth 2.0 token for the current user.
216-- | OAuth 2.0 token for the current user.
155dlOAuthToken :: Lens' DatasetsList' (Maybe OAuthToken)
217dlOAuthToken :: Lens' DatasetsList' (Maybe OAuthToken)
156dlOAuthToken
218dlOAuthToken
157 = lens _dlOAuthToken (\ s a -> s{_dlOAuthToken = a})
219 = lens _dlOAuthToken (\ s a -> s{_dlOAuthToken = a})
158
220
159-- | The maximum number of results returned by this request. If unspecified,
221-- | The maximum number of results returned by this request. If unspecified,
160−-- defaults to 50.
222+-- defaults to 50. The maximum value is 1024.
161dlPageSize :: Lens' DatasetsList' (Maybe Int32)
223dlPageSize :: Lens' DatasetsList' (Maybe Int32)
162dlPageSize
224dlPageSize
163 = lens _dlPageSize (\ s a -> s{_dlPageSize = a})
225 = lens _dlPageSize (\ s a -> s{_dlPageSize = a})
@@ -166,6 +228,11 @@ dlPageSize
166dlFields :: Lens' DatasetsList' (Maybe Text)
228dlFields :: Lens' DatasetsList' (Maybe Text)
167dlFields = lens _dlFields (\ s a -> s{_dlFields = a})
229dlFields = lens _dlFields (\ s a -> s{_dlFields = a})
168
230
231+-- | JSONP
232+dlCallback :: Lens' DatasetsList' (Maybe Text)
233+dlCallback
234+ = lens _dlCallback (\ s a -> s{_dlCallback = a})
235+
169instance GoogleAuth DatasetsList' where
236instance GoogleAuth DatasetsList' where
170 _AuthKey = dlKey . _Just
237 _AuthKey = dlKey . _Just
171 _AuthToken = dlOAuthToken . _Just
238 _AuthToken = dlOAuthToken . _Just
@@ -174,10 +241,16 @@ instance GoogleRequest DatasetsList' where
174 type Rs DatasetsList' = ListDatasetsResponse
241 type Rs DatasetsList' = ListDatasetsResponse
175 request = requestWith genomicsRequest
242 request = requestWith genomicsRequest
176 requestWith rq DatasetsList'{..}
243 requestWith rq DatasetsList'{..}
244+ = go _dlXgafv _dlUploadProtocol (Just _dlPp)
245+ _dlAccessToken
246+ _dlUploadType
247+ _dlBearerToken
177− = go _dlProjectNumber _dlPageToken _dlPageSize
248+ _dlPageToken
249+ _dlProjectId
250+ _dlPageSize
251+ _dlCallback
178 _dlQuotaUser
252 _dlQuotaUser
179 (Just _dlPrettyPrint)
253 (Just _dlPrettyPrint)
180− _dlUserIP
181 _dlFields
254 _dlFields
182 _dlKey
255 _dlKey
183 _dlOAuthToken
256 _dlOAuthToken
gogol-genomics/gen/Network/Google/Resource/Genomics/Datasets/Patch.hs+119−30
@@ -22,7 +22,7 @@
22--
22--
23-- | Updates a dataset. This method supports patch semantics.
23-- | Updates a dataset. This method supports patch semantics.
24--
24--
25−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsDatasetsPatch@.
25+-- /See:/ < Genomics API Reference> for @GenomicsDatasetsPatch@.
26module Network.Google.Resource.Genomics.Datasets.Patch
26module Network.Google.Resource.Genomics.Datasets.Patch
27 (
27 (
28 -- * REST Resource
28 -- * REST Resource
@@ -33,14 +33,21 @@ module Network.Google.Resource.Genomics.Datasets.Patch
33 , DatasetsPatch'
33 , DatasetsPatch'
34
34
35 -- * Request Lenses
35 -- * Request Lenses
36+ , dpXgafv
36 , dpQuotaUser
37 , dpQuotaUser
37 , dpPrettyPrint
38 , dpPrettyPrint
38− , dpUserIP
39+ , dpUploadProtocol
40+ , dpUpdateMask
41+ , dpPp
42+ , dpAccessToken
43+ , dpUploadType
39 , dpPayload
44 , dpPayload
45+ , dpBearerToken
40 , dpKey
46 , dpKey
41 , dpDatasetId
47 , dpDatasetId
42 , dpOAuthToken
48 , dpOAuthToken
43 , dpFields
49 , dpFields
50+ , dpCallback
44 ) where
51 ) where
45
52
46import Network.Google.Genomics.Types
53import Network.Google.Genomics.Types
@@ -49,43 +56,71 @@ import Network.Google.Prelude
49-- | A resource alias for @GenomicsDatasetsPatch@ method which the
56-- | A resource alias for @GenomicsDatasetsPatch@ method which the
50-- 'DatasetsPatch'' request conforms to.
57-- 'DatasetsPatch'' request conforms to.
51type DatasetsPatchResource =
58type DatasetsPatchResource =
52− "datasets" :>
59+ "v1" :>
60+ "datasets" :>
53− Capture "datasetId" Text :>
61+ Capture "datasetId" Text :>
54− QueryParam "quotaUser" Text :>
55− QueryParam "prettyPrint" Bool :>
62+ QueryParam "$.xgafv" Text :>
56− QueryParam "userIp" 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 :>
57− QueryParam "fields" Text :>
72+ QueryParam "fields" Text :>
58− QueryParam "key" AuthKey :>
73+ QueryParam "key" AuthKey :>
59− QueryParam "oauth_token" OAuthToken :>
74+ QueryParam "oauth_token" OAuthToken :>
60− QueryParam "alt" AltJSON :>
75+ QueryParam "alt" AltJSON :>
61− ReqBody '[JSON] Dataset :> Patch '[JSON] Dataset
76+ ReqBody '[JSON] Dataset :>
77+ Patch '[JSON] Dataset
62
78
63-- | Updates a dataset. This method supports patch semantics.
79-- | Updates a dataset. This method supports patch semantics.
64--
80--
65-- /See:/ 'datasetsPatch'' smart constructor.
81-- /See:/ 'datasetsPatch'' smart constructor.
66data DatasetsPatch' = DatasetsPatch'
82data DatasetsPatch' = DatasetsPatch'
83+ { _dpXgafv :: !(Maybe Text)
67− { _dpQuotaUser :: !(Maybe Text)
84+ , _dpQuotaUser :: !(Maybe Text)
68− , _dpPrettyPrint :: !Bool
85+ , _dpPrettyPrint :: !Bool
86+ , _dpUploadProtocol :: !(Maybe Text)
87+ , _dpUpdateMask :: !(Maybe Text)
88+ , _dpPp :: !Bool
89+ , _dpAccessToken :: !(Maybe Text)
69− , _dpUserIP :: !(Maybe Text)
90+ , _dpUploadType :: !(Maybe Text)
70− , _dpPayload :: !Dataset
91+ , _dpPayload :: !Dataset
92+ , _dpBearerToken :: !(Maybe Text)
71− , _dpKey :: !(Maybe AuthKey)
93+ , _dpKey :: !(Maybe AuthKey)
72− , _dpDatasetId :: !Text
94+ , _dpDatasetId :: !Text
73− , _dpOAuthToken :: !(Maybe OAuthToken)
95+ , _dpOAuthToken :: !(Maybe OAuthToken)
74− , _dpFields :: !(Maybe Text)
96+ , _dpFields :: !(Maybe Text)
97+ , _dpCallback :: !(Maybe Text)
75 } deriving (Eq,Show,Data,Typeable,Generic)
98 } deriving (Eq,Show,Data,Typeable,Generic)
76
99
77-- | Creates a value of 'DatasetsPatch'' with the minimum fields required to make a request.
100-- | Creates a value of 'DatasetsPatch'' with the minimum fields required to make a request.
78--
101--
79-- Use one of the following lenses to modify other fields as desired:
102-- Use one of the following lenses to modify other fields as desired:
80--
103--
104+-- * 'dpXgafv'
105+--
81-- * 'dpQuotaUser'
106-- * 'dpQuotaUser'
82--
107--
83-- * 'dpPrettyPrint'
108-- * 'dpPrettyPrint'
84--
109--
85−-- * 'dpUserIP'
110+-- * 'dpUploadProtocol'
111+--
112+-- * 'dpUpdateMask'
113+--
114+-- * 'dpPp'
115+--
116+-- * 'dpAccessToken'
117+--
118+-- * 'dpUploadType'
86--
119--
87-- * 'dpPayload'
120-- * 'dpPayload'
88--
121--
122+-- * 'dpBearerToken'
123+--
89-- * 'dpKey'
124-- * 'dpKey'
90--
125--
91-- * 'dpDatasetId'
126-- * 'dpDatasetId'
@@ -93,25 +128,38 @@ data DatasetsPatch' = DatasetsPatch'
93-- * 'dpOAuthToken'
128-- * 'dpOAuthToken'
94--
129--
95-- * 'dpFields'
130-- * 'dpFields'
131+--
132+-- * 'dpCallback'
96datasetsPatch'
133datasetsPatch'
97 :: Dataset -- ^ 'payload'
134 :: Dataset -- ^ 'payload'
98 -> Text -- ^ 'datasetId'
135 -> Text -- ^ 'datasetId'
99 -> DatasetsPatch'
136 -> DatasetsPatch'
100datasetsPatch' pDpPayload_ pDpDatasetId_ =
137datasetsPatch' pDpPayload_ pDpDatasetId_ =
101 DatasetsPatch'
138 DatasetsPatch'
139+ { _dpXgafv = Nothing
102− { _dpQuotaUser = Nothing
140+ , _dpQuotaUser = Nothing
103 , _dpPrettyPrint = True
141 , _dpPrettyPrint = True
104− , _dpUserIP = Nothing
142+ , _dpUploadProtocol = Nothing
143+ , _dpUpdateMask = Nothing
144+ , _dpPp = True
145+ , _dpAccessToken = Nothing
146+ , _dpUploadType = Nothing
105 , _dpPayload = pDpPayload_
147 , _dpPayload = pDpPayload_
148+ , _dpBearerToken = Nothing
106 , _dpKey = Nothing
149 , _dpKey = Nothing
107 , _dpDatasetId = pDpDatasetId_
150 , _dpDatasetId = pDpDatasetId_
108 , _dpOAuthToken = Nothing
151 , _dpOAuthToken = Nothing
109 , _dpFields = Nothing
152 , _dpFields = Nothing
153+ , _dpCallback = Nothing
110 }
154 }
111
155
156+-- | V1 error format.
157+dpXgafv :: Lens' DatasetsPatch' (Maybe Text)
158+dpXgafv = lens _dpXgafv (\ s a -> s{_dpXgafv = a})
159+
112-- | Available to use for quota purposes for server-side applications. Can be
160-- | 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
161-- any arbitrary string assigned to a user, but should not exceed 40
114−-- characters. Overrides userIp if both are provided.
162+-- characters.
115dpQuotaUser :: Lens' DatasetsPatch' (Maybe Text)
163dpQuotaUser :: Lens' DatasetsPatch' (Maybe Text)
116dpQuotaUser
164dpQuotaUser
117 = lens _dpQuotaUser (\ s a -> s{_dpQuotaUser = a})
165 = lens _dpQuotaUser (\ s a -> s{_dpQuotaUser = a})
@@ -122,16 +170,45 @@ dpPrettyPrint
122 = lens _dpPrettyPrint
170 = lens _dpPrettyPrint
123 (\ s a -> s{_dpPrettyPrint = a})
171 (\ s a -> s{_dpPrettyPrint = a})
124
172
125−-- | IP address of the site where the request originates. Use this if you
173+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
126−-- want to enforce per-user limits.
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.
127−dpUserIP :: Lens' DatasetsPatch' (Maybe Text)
187+dpPp :: Lens' DatasetsPatch' Bool
128−dpUserIP = lens _dpUserIP (\ s a -> s{_dpUserIP = a})
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})
129
200
130-- | Multipart request metadata.
201-- | Multipart request metadata.
131dpPayload :: Lens' DatasetsPatch' Dataset
202dpPayload :: Lens' DatasetsPatch' Dataset
132dpPayload
203dpPayload
133 = lens _dpPayload (\ s a -> s{_dpPayload = a})
204 = lens _dpPayload (\ s a -> s{_dpPayload = a})
134
205
206+-- | OAuth bearer token.
207+dpBearerToken :: Lens' DatasetsPatch' (Maybe Text)
208+dpBearerToken
209+ = lens _dpBearerToken
210+ (\ s a -> s{_dpBearerToken = a})
211+
135-- | API key. Your API key identifies your project and provides you with API
212-- | 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
213-- access, quota, and reports. Required unless you provide an OAuth 2.0
137-- token.
214-- token.
@@ -152,6 +229,11 @@ dpOAuthToken
152dpFields :: Lens' DatasetsPatch' (Maybe Text)
229dpFields :: Lens' DatasetsPatch' (Maybe Text)
153dpFields = lens _dpFields (\ s a -> s{_dpFields = a})
230dpFields = lens _dpFields (\ s a -> s{_dpFields = a})
154
231
232+-- | JSONP
233+dpCallback :: Lens' DatasetsPatch' (Maybe Text)
234+dpCallback
235+ = lens _dpCallback (\ s a -> s{_dpCallback = a})
236+
155instance GoogleAuth DatasetsPatch' where
237instance GoogleAuth DatasetsPatch' where
156 _AuthKey = dpKey . _Just
238 _AuthKey = dpKey . _Just
157 _AuthToken = dpOAuthToken . _Just
239 _AuthToken = dpOAuthToken . _Just
@@ -160,8 +242,15 @@ instance GoogleRequest DatasetsPatch' where
160 type Rs DatasetsPatch' = Dataset
242 type Rs DatasetsPatch' = Dataset
161 request = requestWith genomicsRequest
243 request = requestWith genomicsRequest
162 requestWith rq DatasetsPatch'{..}
244 requestWith rq DatasetsPatch'{..}
245+ = go _dpDatasetId _dpXgafv _dpUploadProtocol
246+ _dpUpdateMask
247+ (Just _dpPp)
248+ _dpAccessToken
249+ _dpUploadType
250+ _dpBearerToken
251+ _dpCallback
252+ _dpQuotaUser
163− = go _dpDatasetId _dpQuotaUser (Just _dpPrettyPrint)
253+ (Just _dpPrettyPrint)
164− _dpUserIP
165 _dpFields
254 _dpFields
166 _dpKey
255 _dpKey
167 _dpOAuthToken
256 _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 @@
24-- API. This operation is only possible for a week after the deletion
24-- API. This operation is only possible for a week after the deletion
25-- occurred.
25-- occurred.
26--
26--
27−-- /See:/ <https://developers.google.com/genomics/v1beta2/reference Genomics API Reference> for @GenomicsDatasetsUndelete@.
27+-- /See:/ < Genomics API Reference> for @GenomicsDatasetsUndelete@.
28module Network.Google.Resource.Genomics.Datasets.Undelete
28module Network.Google.Resource.Genomics.Datasets.Undelete
29 (
29 (
30 -- * REST Resource
30 -- * REST Resource
@@ -35,13 +35,20 @@ module Network.Google.Resource.Genomics.Datasets.Undelete
35 , DatasetsUndelete'
35 , DatasetsUndelete'
36
36
37 -- * Request Lenses
37 -- * Request Lenses
38+ , duXgafv
38 , duQuotaUser
39 , duQuotaUser
39 , duPrettyPrint
40 , duPrettyPrint
40− , duUserIP
41+ , duUploadProtocol
42+ , duPp
43+ , duAccessToken
44+ , duUploadType
45+ , duPayload
46+ , duBearerToken
41 , duKey
47 , duKey
42 , duDatasetId
48 , duDatasetId
43 , duOAuthToken
49 , duOAuthToken
44 , duFields
50 , duFields
51+ , duCallback
45 ) where
52 ) where
46
53
47import Network.Google.Genomics.Types
54import Network.Google.Genomics.Types
@@ -50,16 +57,24 @@ import Network.Google.Prelude
50-- | A resource alias for @GenomicsDatasetsUndelete@ method which the
57-- | A resource alias for @GenomicsDatasetsUndelete@ method which the
51-- 'DatasetsUndelete'' request conforms to.
58-- 'DatasetsUndelete'' request conforms to.
52type DatasetsUndeleteResource =
59type DatasetsUndeleteResource =
53− "datasets" :>
60+ "v1" :>
54− Capture "datasetId" Text :>
61+ "datasets" :>
55− "undelete" :>
62+ CaptureMode "datasetId" "undelete" Text :>
56− QueryParam "quotaUser" Text :>
63+ QueryParam "$.xgafv" Text :>
57− QueryParam "prettyPrint" Bool :>
64+ QueryParam "upload_protocol" Text :>
58− QueryParam "userIp" 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 :>
59− QueryParam "fields" Text :>
72+ QueryParam "fields" Text :>
60− QueryParam "key" AuthKey :>
73+ QueryParam "key" AuthKey :>
61− QueryParam "oauth_token" OAuthToken :>
74+ QueryParam "oauth_token" OAuthToken :>
62− QueryParam "alt" AltJSON :> Post '[JSON] Dataset
75+ QueryParam "alt" AltJSON :>
76+ ReqBody '[JSON] UndeleteDatasetRequest :>
77+ Post '[JSON] Dataset
63
78
64-- | Undeletes a dataset by restoring a dataset which was deleted via this
79-- | Undeletes a dataset by restoring a dataset which was deleted via this
65-- API. This operation is only possible for a week after the deletion
80-- API. This operation is only possible for a week after the deletion
@@ -67,24 +82,43 @@ type DatasetsUndeleteResource =
67--
82--
68-- /See:/ 'datasetsUndelete'' smart constructor.
83-- /See:/ 'datasetsUndelete'' smart constructor.
69data DatasetsUndelete' = DatasetsUndelete'
84data DatasetsUndelete' = DatasetsUndelete'
85+ { _duXgafv :: !(Maybe Text)
70− { _duQuotaUser :: !(Maybe Text)
86+ , _duQuotaUser :: !(Maybe Text)
71− , _duPrettyPrint :: !Bool
87+ , _duPrettyPrint :: !Bool
88+ , _duUploadProtocol :: !(Maybe Text)
89+ , _duPp :: !Bool
90+ , _duAccessToken :: !(Maybe Text)
91+ , _duUploadType :: !(Maybe Text)
92+ , _duPayload :: !UndeleteDatasetRequest
72− , _duUserIP :: !(Maybe Text)
93+ , _duBearerToken :: !(Maybe Text)
73− , _duKey :: !(Maybe AuthKey)
94+ , _duKey :: !(Maybe AuthKey)
74− , _duDatasetId :: !Text
95+ , _duDatasetId :: !Text
75− , _duOAuthToken :: !(Maybe OAuthToken)
96+ , _duOAuthToken :: !(Maybe OAuthToken)
76− , _duFields :: !(Maybe Text)
97+ , _duFields :: !(Maybe Text)
98+ , _duCallback :: !(Maybe Text)
77 } deriving (Eq,Show,Data,Typeable,Generic)
99 } deriving (Eq,Show,Data,Typeable,Generic)
78
100
79-- | Creates a value of 'DatasetsUndelete'' with the minimum fields required to make a request.
101-- | Creates a value of 'DatasetsUndelete'' with the minimum fields required to make a request.
80--
102--
81-- Use one of the following lenses to modify other fields as desired:
103-- Use one of the following lenses to modify other fields as desired:
82--
104--
105+-- * 'duXgafv'
106+--
83-- * 'duQuotaUser'
107-- * 'duQuotaUser'
84--
108--
85-- * 'duPrettyPrint'
109-- * 'duPrettyPrint'
86--
110--
87−-- * 'duUserIP'
111+-- * 'duUploadProtocol'
112+--
113+-- * 'duPp'
114+--
115+-- * 'duAccessToken'
116+--
117+-- * 'duUploadType'
118+--
119+-- * 'duPayload'
120+--
121+-- * 'duBearerToken'
88--
122--
89-- * 'duKey'
123-- * 'duKey'
90--
124--
@@ -93,23 +127,37 @@ data DatasetsUndelete' = DatasetsUndelete'
93-- * 'duOAuthToken'
127-- * 'duOAuthToken'
94--
128--
95-- * 'duFields'
129-- * 'duFields'
130+--
131+-- * 'duCallback'
96datasetsUndelete'
132datasetsUndelete'
133+ :: UndeleteDatasetRequest -- ^ 'payload'
97− :: Text -- ^ 'datasetId'
134+ -> Text -- ^ 'datasetId'
98 -> DatasetsUndelete'
135 -> DatasetsUndelete'
99−datasetsUndelete' pDuDatasetId_ =
136+datasetsUndelete' pDuPayload_ pDuDatasetId_ =
100 DatasetsUndelete'
137 DatasetsUndelete'
138+ { _duXgafv = Nothing
101− { _duQuotaUser = Nothing
139+ , _duQuotaUser = Nothing
102 , _duPrettyPrint = True
140 , _duPrettyPrint = True
103− , _duUserIP = Nothing
141+ , _duUploadProtocol = Nothing
142+ , _duPp = True
143+ , _duAccessToken = Nothing
144+ , _duUploadType = Nothing
145+ , _duPayload = pDuPayload_
146+ , _duBearerToken = Nothing
104 , _duKey = Nothing
147 , _duKey = Nothing
105 , _duDatasetId = pDuDatasetId_
148 , _duDatasetId = pDuDatasetId_
106 , _duOAuthToken = Nothing
149 , _duOAuthToken = Nothing
107 , _duFields = Nothing
150 , _duFields = Nothing
151+ , _duCallback = Nothing
108 }
152 }
109
153
154+-- | V1 error format.
155+duXgafv :: Lens' DatasetsUndelete' (Maybe Text)
156+duXgafv = lens _duXgafv (\ s a -> s{_duXgafv = a})
157+
110-- | Available to use for quota purposes for server-side applications. Can be
158-- | 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
159-- any arbitrary string assigned to a user, but should not exceed 40
112−-- characters. Overrides userIp if both are provided.
160+-- characters.
113duQuotaUser :: Lens' DatasetsUndelete' (Maybe Text)
161duQuotaUser :: Lens' DatasetsUndelete' (Maybe Text)
114duQuotaUser
162duQuotaUser
115 = lens _duQuotaUser (\ s a -> s{_duQuotaUser = a})
163 = lens _duQuotaUser (\ s a -> s{_duQuotaUser = a})
@@ -120,10 +168,37 @@ duPrettyPrint
120 = lens _duPrettyPrint
168 = lens _duPrettyPrint
121 (\ s a -> s{_duPrettyPrint = a})
169 (\ s a -> s{_duPrettyPrint = a})
122
170
123−-- | IP address of the site where the request originates. Use this if you
171+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
124−-- want to enforce per-user limits.
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.
125−duUserIP :: Lens' DatasetsUndelete' (Maybe Text)
198+duBearerToken :: Lens' DatasetsUndelete' (Maybe Text)
126−duUserIP = lens _duUserIP (\ s a -> s{_duUserIP = a})
199+duBearerToken
200+ = lens _duBearerToken
201+ (\ s a -> s{_duBearerToken = a})
127
202
128-- | API key. Your API key identifies your project and provides you with API
203-- | API key. Your API key identifies your project and provides you with API
129-- access, quota, and reports. Required unless you provide an OAuth 2.0
204-- access, quota, and reports. Required unless you provide an OAuth 2.0
@@ -145,6 +220,11 @@ duOAuthToken
145duFields :: Lens' DatasetsUndelete' (Maybe Text)
220duFields :: Lens' DatasetsUndelete' (Maybe Text)
146duFields = lens _duFields (\ s a -> s{_duFields = a})
221duFields = lens _duFields (\ s a -> s{_duFields = a})
147
222
223+-- | JSONP
224+duCallback :: Lens' DatasetsUndelete' (Maybe Text)
225+duCallback
226+ = lens _duCallback (\ s a -> s{_duCallback = a})
227+
148instance GoogleAuth DatasetsUndelete' where
228instance GoogleAuth DatasetsUndelete' where
149 _AuthKey = duKey . _Just
229 _AuthKey = duKey . _Just
150 _AuthToken = duOAuthToken . _Just
230 _AuthToken = duOAuthToken . _Just
@@ -153,12 +233,19 @@ instance GoogleRequest DatasetsUndelete' where
153 type Rs DatasetsUndelete' = Dataset
233 type Rs DatasetsUndelete' = Dataset
154 request = requestWith genomicsRequest
234 request = requestWith genomicsRequest
155 requestWith rq DatasetsUndelete'{..}
235 requestWith rq DatasetsUndelete'{..}
236+ = go _duDatasetId _duXgafv _duUploadProtocol
237+ (Just _duPp)
238+ _duAccessToken
239+ _duUploadType
240+ _duBearerToken
241+ _duCallback
242+ _duQuotaUser
156− = go _duDatasetId _duQuotaUser (Just _duPrettyPrint)
243+ (Just _duPrettyPrint)
157− _duUserIP
158 _duFields
244 _duFields
159 _duKey
245 _duKey
160 _duOAuthToken
246 _duOAuthToken
161 (Just AltJSON)
247 (Just AltJSON)
248+ _duPayload
162 where go
249 where go
163 = clientBuild
250 = clientBuild
164 (Proxy :: Proxy DatasetsUndeleteResource)
251 (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.