on develop help sign in
Regenerating gogol-kgsearch
commite23a9119abe40cfdcd3de6a3995f658832fea6d9 authorBrendan Hay <brendan.g.hay@gmail.com> dateFri 28 Oct 2016, 08:23 (10 years ago) parenta2c2011
20 files changed+317−4049
gogol-kgsearch/README.md+1−1 gogol-kgsearch/gen/Network/Google/KnowledgeGraphSearch.hs+14−200 gogol-kgsearch/gen/Network/Google/KnowledgeGraphSearch/Types.hs+9−131 gogol-kgsearch/gen/Network/Google/KnowledgeGraphSearch/Types/Product.hs+42−1065 gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Create.hs−188 gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Delete.hs−175 gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Get.hs−175 gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/GetIAMPolicy.hs−178 gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Keys/Create.hs−193 gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Keys/Delete.hs−177 gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Keys/Get.hs−193 gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Keys/List.hs−198 gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/List.hs−203 gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/SetIAMPolicy.hs−193 gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/SignBlob.hs−192 gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/TestIAMPermissions.hs−198 gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Update.hs−194 gogol-kgsearch/gen/Network/Google/Resource/IAM/Roles/QueryGrantableRoles.hs−177 gogol-kgsearch/gen/Network/Google/Resource/Kgsearch/Entities/Search.hs+247 gogol-kgsearch/gogol-kgsearch.cabal+4−18
gogol-kgsearch/README.md+1−1
@@ -13,7 +13,7 @@
1313
1414## Description
1515
16−A client library for the Google Identity and Access Management (IAM).
16+A client library for the Google Knowledge Graph Search.
1717
1818
1919## Contribute
gogol-kgsearch/gen/Network/Google/KnowledgeGraphSearch.hs+14−200
@@ -13,226 +13,40 @@
1313-- Stability : auto-generated
1414-- Portability : non-portable (GHC extensions)
1515--
16−-- Manages identity and access control for Google Cloud Platform resources,
17−-- including the creation of service accounts, which you can use to
18−-- authenticate to Google and make API calls.
16+-- Knowledge Graph Search API allows developers to search the Google
17+-- Knowledge Graph for entities.
1918--
20−-- /See:/ <https://cloud.google.com/iam/ Google Identity and Access Management (IAM) API Reference>
19+-- /See:/ <https://developers.google.com/knowledge-graph/ Knowledge Graph Search API Reference>
2120module Network.Google.KnowledgeGraphSearch
2221 (
2322 -- * Service Configuration
2423 knowledgeGraphSearchService
2524
26− -- * OAuth Scopes
27− , cloudPlatformScope
28−
2925 -- * API Declaration
3026 , KnowledgeGraphSearchAPI
3127
3228 -- * Resources
3329
34− -- ** iam.projects.serviceAccounts.create
35− , module Network.Google.Resource.IAM.Projects.ServiceAccounts.Create
36−
37− -- ** iam.projects.serviceAccounts.delete
38− , module Network.Google.Resource.IAM.Projects.ServiceAccounts.Delete
39−
40− -- ** iam.projects.serviceAccounts.get
41− , module Network.Google.Resource.IAM.Projects.ServiceAccounts.Get
42−
43− -- ** iam.projects.serviceAccounts.getIamPolicy
44− , module Network.Google.Resource.IAM.Projects.ServiceAccounts.GetIAMPolicy
45−
46− -- ** iam.projects.serviceAccounts.keys.create
47− , module Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.Create
48−
49− -- ** iam.projects.serviceAccounts.keys.delete
50− , module Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.Delete
51−
52− -- ** iam.projects.serviceAccounts.keys.get
53− , module Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.Get
54−
55− -- ** iam.projects.serviceAccounts.keys.list
56− , module Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.List
57−
58− -- ** iam.projects.serviceAccounts.list
59− , module Network.Google.Resource.IAM.Projects.ServiceAccounts.List
60−
61− -- ** iam.projects.serviceAccounts.setIamPolicy
62− , module Network.Google.Resource.IAM.Projects.ServiceAccounts.SetIAMPolicy
63−
64− -- ** iam.projects.serviceAccounts.signBlob
65− , module Network.Google.Resource.IAM.Projects.ServiceAccounts.SignBlob
66−
67− -- ** iam.projects.serviceAccounts.testIamPermissions
68− , module Network.Google.Resource.IAM.Projects.ServiceAccounts.TestIAMPermissions
69−
70− -- ** iam.projects.serviceAccounts.update
71− , module Network.Google.Resource.IAM.Projects.ServiceAccounts.Update
72−
73− -- ** iam.roles.queryGrantableRoles
74− , module Network.Google.Resource.IAM.Roles.QueryGrantableRoles
30+ -- ** kgsearch.entities.search
31+ , module Network.Google.Resource.Kgsearch.Entities.Search
7532
7633 -- * Types
7734
78− -- ** Empty
79− , Empty
80− , empty
81−
82− -- ** AuditData
83− , AuditData
84− , auditData
85− , adPolicyDelta
86−
87− -- ** ServiceAccountKey
88− , ServiceAccountKey
89− , serviceAccountKey
90− , sakValidAfterTime
91− , sakPrivateKeyData
92− , sakPublicKeyData
93− , sakName
94− , sakPrivateKeyType
95− , sakValidBeforeTime
96− , sakKeyAlgorithm
97−
98− -- ** CreateServiceAccountKeyRequest
99− , CreateServiceAccountKeyRequest
100− , createServiceAccountKeyRequest
101− , csakrPrivateKeyType
102− , csakrKeyAlgorithm
103−
104− -- ** SetIAMPolicyRequest
105− , SetIAMPolicyRequest
106− , setIAMPolicyRequest
107− , siprPolicy
108−
109− -- ** BindingDelta
110− , BindingDelta
111− , bindingDelta
112− , bdAction
113− , bdRole
114− , bdMember
115−
116− -- ** SignBlobRequest
117− , SignBlobRequest
118− , signBlobRequest
119− , sbrBytesToSign
120−
121− -- ** ListServiceAccountKeysResponse
122− , ListServiceAccountKeysResponse
123− , listServiceAccountKeysResponse
124− , lsakrKeys
125−
126− -- ** Role
127− , Role
128− , role'
129− , rName
130− , rTitle
131− , rDescription
132−
133− -- ** ServiceAccount
134− , ServiceAccount
135− , serviceAccount
136− , saEmail
137− , saEtag
138− , saUniqueId
139− , saName
140− , saDisplayName
141− , saProjectId
142− , saOAuth2ClientId
143−
144− -- ** QueryGrantableRolesResponse
145− , QueryGrantableRolesResponse
146− , queryGrantableRolesResponse
147− , qgrrRoles
148−
149− -- ** TestIAMPermissionsRequest
150− , TestIAMPermissionsRequest
151− , testIAMPermissionsRequest
152− , tiprPermissions
153−
154− -- ** TestIAMPermissionsResponse
155− , TestIAMPermissionsResponse
156− , testIAMPermissionsResponse
157− , tiamprPermissions
158−
159− -- ** Policy
160− , Policy
161− , policy
162− , pEtag
163− , pVersion
164− , pBindings
165−
166− -- ** PolicyDelta
167− , PolicyDelta
168− , policyDelta
169− , pdBindingDeltas
170−
171− -- ** QueryGrantableRolesRequest
172− , QueryGrantableRolesRequest
173− , queryGrantableRolesRequest
174− , qgrrFullResourceName
175−
176− -- ** SignBlobResponse
177− , SignBlobResponse
178− , signBlobResponse
179− , sbrSignature
180− , sbrKeyId
181−
182− -- ** ListServiceAccountsResponse
183− , ListServiceAccountsResponse
184− , listServiceAccountsResponse
185− , lsarNextPageToken
186− , lsarAccounts
187−
188− -- ** CreateServiceAccountRequest
189− , CreateServiceAccountRequest
190− , createServiceAccountRequest
191− , csarServiceAccount
192− , csarAccountId
193−
194− -- ** Binding
195− , Binding
196− , binding
197− , bMembers
198− , bRole
35+ -- ** SearchResponse
36+ , SearchResponse
37+ , searchResponse
38+ , srContext
39+ , srItemListElement
40+ , srType
19941 ) where
20042
20143import Network.Google.KnowledgeGraphSearch.Types
20244import Network.Google.Prelude
203−import Network.Google.Resource.IAM.Projects.ServiceAccounts.Create
204−import Network.Google.Resource.IAM.Projects.ServiceAccounts.Delete
205−import Network.Google.Resource.IAM.Projects.ServiceAccounts.Get
206−import Network.Google.Resource.IAM.Projects.ServiceAccounts.GetIAMPolicy
207−import Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.Create
208−import Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.Delete
209−import Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.Get
210−import Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.List
211−import Network.Google.Resource.IAM.Projects.ServiceAccounts.List
212−import Network.Google.Resource.IAM.Projects.ServiceAccounts.SetIAMPolicy
213−import Network.Google.Resource.IAM.Projects.ServiceAccounts.SignBlob
214−import Network.Google.Resource.IAM.Projects.ServiceAccounts.TestIAMPermissions
215−import Network.Google.Resource.IAM.Projects.ServiceAccounts.Update
216−import Network.Google.Resource.IAM.Roles.QueryGrantableRoles
45+import Network.Google.Resource.Kgsearch.Entities.Search
21746
21847{- $resources
21948TODO
22049-}
22150
222−-- | Represents the entirety of the methods and resources available for the Google Identity and Access Management (IAM) API service.
223−type KnowledgeGraphSearchAPI =
224− RolesQueryGrantableRolesResource :<|>
225− ProjectsServiceAccountsKeysListResource
226− :<|> ProjectsServiceAccountsKeysGetResource
227− :<|> ProjectsServiceAccountsKeysCreateResource
228− :<|> ProjectsServiceAccountsKeysDeleteResource
229− :<|> ProjectsServiceAccountsListResource
230− :<|> ProjectsServiceAccountsGetIAMPolicyResource
231− :<|> ProjectsServiceAccountsGetResource
232− :<|> ProjectsServiceAccountsCreateResource
233− :<|> ProjectsServiceAccountsSetIAMPolicyResource
234− :<|> ProjectsServiceAccountsSignBlobResource
235− :<|>
236− ProjectsServiceAccountsTestIAMPermissionsResource
237− :<|> ProjectsServiceAccountsDeleteResource
238− :<|> ProjectsServiceAccountsUpdateResource
51+-- | Represents the entirety of the methods and resources available for the Knowledge Graph Search API service.
52+type KnowledgeGraphSearchAPI = EntitiesSearchResource
gogol-kgsearch/gen/Network/Google/KnowledgeGraphSearch/Types.hs+9−131
@@ -19,142 +19,20 @@ module Network.Google.KnowledgeGraphSearch.Types
1919 -- * Service Configuration
2020 knowledgeGraphSearchService
2121
22− -- * OAuth Scopes
23− , cloudPlatformScope
24−
25− -- * Empty
26− , Empty
27− , empty
28−
29− -- * AuditData
30− , AuditData
31− , auditData
32− , adPolicyDelta
33−
34− -- * ServiceAccountKey
35− , ServiceAccountKey
36− , serviceAccountKey
37− , sakValidAfterTime
38− , sakPrivateKeyData
39− , sakPublicKeyData
40− , sakName
41− , sakPrivateKeyType
42− , sakValidBeforeTime
43− , sakKeyAlgorithm
44−
45− -- * CreateServiceAccountKeyRequest
46− , CreateServiceAccountKeyRequest
47− , createServiceAccountKeyRequest
48− , csakrPrivateKeyType
49− , csakrKeyAlgorithm
50−
51− -- * SetIAMPolicyRequest
52− , SetIAMPolicyRequest
53− , setIAMPolicyRequest
54− , siprPolicy
55−
56− -- * BindingDelta
57− , BindingDelta
58− , bindingDelta
59− , bdAction
60− , bdRole
61− , bdMember
62−
63− -- * SignBlobRequest
64− , SignBlobRequest
65− , signBlobRequest
66− , sbrBytesToSign
67−
68− -- * ListServiceAccountKeysResponse
69− , ListServiceAccountKeysResponse
70− , listServiceAccountKeysResponse
71− , lsakrKeys
72−
73− -- * Role
74− , Role
75− , role'
76− , rName
77− , rTitle
78− , rDescription
79−
80− -- * ServiceAccount
81− , ServiceAccount
82− , serviceAccount
83− , saEmail
84− , saEtag
85− , saUniqueId
86− , saName
87− , saDisplayName
88− , saProjectId
89− , saOAuth2ClientId
90−
91− -- * QueryGrantableRolesResponse
92− , QueryGrantableRolesResponse
93− , queryGrantableRolesResponse
94− , qgrrRoles
95−
96− -- * TestIAMPermissionsRequest
97− , TestIAMPermissionsRequest
98− , testIAMPermissionsRequest
99− , tiprPermissions
100−
101− -- * TestIAMPermissionsResponse
102− , TestIAMPermissionsResponse
103− , testIAMPermissionsResponse
104− , tiamprPermissions
105−
106− -- * Policy
107− , Policy
108− , policy
109− , pEtag
110− , pVersion
111− , pBindings
112−
113− -- * PolicyDelta
114− , PolicyDelta
115− , policyDelta
116− , pdBindingDeltas
117−
118− -- * QueryGrantableRolesRequest
119− , QueryGrantableRolesRequest
120− , queryGrantableRolesRequest
121− , qgrrFullResourceName
122−
123− -- * SignBlobResponse
124− , SignBlobResponse
125− , signBlobResponse
126− , sbrSignature
127− , sbrKeyId
128−
129− -- * ListServiceAccountsResponse
130− , ListServiceAccountsResponse
131− , listServiceAccountsResponse
132− , lsarNextPageToken
133− , lsarAccounts
134−
135− -- * CreateServiceAccountRequest
136− , CreateServiceAccountRequest
137− , createServiceAccountRequest
138− , csarServiceAccount
139− , csarAccountId
140−
141− -- * Binding
142− , Binding
143− , binding
144− , bMembers
145− , bRole
22+ -- * SearchResponse
23+ , SearchResponse
24+ , searchResponse
25+ , srContext
26+ , srItemListElement
27+ , srType
14628 ) where
14729
14830import Network.Google.KnowledgeGraphSearch.Types.Product
14931import Network.Google.KnowledgeGraphSearch.Types.Sum
15032import Network.Google.Prelude
15133
152−-- | Default request referring to version 'v1' of the Google Identity and Access Management (IAM) API. This contains the host and root path used as a starting point for constructing service requests.
34+-- | Default request referring to version 'v1' of the Knowledge Graph Search API. This contains the host and root path used as a starting point for constructing service requests.
15335knowledgeGraphSearchService :: ServiceConfig
15436knowledgeGraphSearchService
155− = defaultService (ServiceId "iam:v1")
156− "iam.googleapis.com"
157−
158−-- | View and manage your data across Google Cloud Platform services
159−cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]
160−cloudPlatformScope = Proxy;
37+ = defaultService (ServiceId "kgsearch:v1")
38+ "kgsearch.googleapis.com"
gogol-kgsearch/gen/Network/Google/KnowledgeGraphSearch/Types/Product.hs+42−1065
@@ -20,1088 +20,65 @@ module Network.Google.KnowledgeGraphSearch.Types.Product where
2020import Network.Google.KnowledgeGraphSearch.Types.Sum
2121import Network.Google.Prelude
2222
23−-- | A generic empty message that you can re-use to avoid defining duplicated
24−-- empty messages in your APIs. A typical example is to use it as the
25−-- request or the response type of an API method. For instance: service Foo
26−-- { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The
27−-- JSON representation for \`Empty\` is empty JSON object \`{}\`.
23+-- | Response message includes the context and a list of matching results
24+-- which contain the detail of associated entities.
2825--
29−-- /See:/ 'empty' smart constructor.
30−data Empty =
31− Empty'
32− deriving (Eq,Show,Data,Typeable,Generic)
33−
34−-- | Creates a value of 'Empty' with the minimum fields required to make a request.
35−--
36−empty
37− :: Empty
38−empty = Empty'
39−
40−instance FromJSON Empty where
41− parseJSON = withObject "Empty" (\ o -> pure Empty')
42−
43−instance ToJSON Empty where
44− toJSON = const emptyObject
45−
46−-- | Audit log information specific to Cloud IAM. This message is serialized
47−-- as an \`Any\` type in the \`ServiceData\` message of an \`AuditLog\`
48−-- message.
49−--
50−-- /See:/ 'auditData' smart constructor.
51−newtype AuditData = AuditData'
52− { _adPolicyDelta :: Maybe PolicyDelta
53− } deriving (Eq,Show,Data,Typeable,Generic)
54−
55−-- | Creates a value of 'AuditData' with the minimum fields required to make a request.
56−--
57−-- Use one of the following lenses to modify other fields as desired:
58−--
59−-- * 'adPolicyDelta'
60−auditData
61− :: AuditData
62−auditData =
63− AuditData'
64− { _adPolicyDelta = Nothing
65− }
66−
67−-- | Policy delta between the original policy and the newly set policy.
68−adPolicyDelta :: Lens' AuditData (Maybe PolicyDelta)
69−adPolicyDelta
70− = lens _adPolicyDelta
71− (\ s a -> s{_adPolicyDelta = a})
72−
73−instance FromJSON AuditData where
74− parseJSON
75− = withObject "AuditData"
76− (\ o -> AuditData' <$> (o .:? "policyDelta"))
77−
78−instance ToJSON AuditData where
79− toJSON AuditData'{..}
80− = object
81− (catMaybes [("policyDelta" .=) <$> _adPolicyDelta])
82−
83−-- | Represents a service account key. A service account has two sets of
84−-- key-pairs: user-managed, and system-managed. User-managed key-pairs can
85−-- be created and deleted by users. Users are responsible for rotating
86−-- these keys periodically to ensure security of their service accounts.
87−-- Users retain the private key of these key-pairs, and Google retains ONLY
88−-- the public key. System-managed key-pairs are managed automatically by
89−-- Google, and rotated daily without user intervention. The private key
90−-- never leaves Google\'s servers to maximize security. Public keys for all
91−-- service accounts are also published at the OAuth2 Service Account API.
92−--
93−-- /See:/ 'serviceAccountKey' smart constructor.
94−data ServiceAccountKey = ServiceAccountKey'
95− { _sakValidAfterTime :: !(Maybe Text)
96− , _sakPrivateKeyData :: !(Maybe Base64)
97− , _sakPublicKeyData :: !(Maybe Base64)
98− , _sakName :: !(Maybe Text)
99− , _sakPrivateKeyType :: !(Maybe Text)
100− , _sakValidBeforeTime :: !(Maybe Text)
101− , _sakKeyAlgorithm :: !(Maybe Text)
102− } deriving (Eq,Show,Data,Typeable,Generic)
103−
104−-- | Creates a value of 'ServiceAccountKey' with the minimum fields required to make a request.
105−--
106−-- Use one of the following lenses to modify other fields as desired:
107−--
108−-- * 'sakValidAfterTime'
109−--
110−-- * 'sakPrivateKeyData'
111−--
112−-- * 'sakPublicKeyData'
113−--
114−-- * 'sakName'
115−--
116−-- * 'sakPrivateKeyType'
117−--
118−-- * 'sakValidBeforeTime'
119−--
120−-- * 'sakKeyAlgorithm'
121−serviceAccountKey
122− :: ServiceAccountKey
123−serviceAccountKey =
124− ServiceAccountKey'
125− { _sakValidAfterTime = Nothing
126− , _sakPrivateKeyData = Nothing
127− , _sakPublicKeyData = Nothing
128− , _sakName = Nothing
129− , _sakPrivateKeyType = Nothing
130− , _sakValidBeforeTime = Nothing
131− , _sakKeyAlgorithm = Nothing
132− }
133−
134−-- | The key can be used after this timestamp.
135−sakValidAfterTime :: Lens' ServiceAccountKey (Maybe Text)
136−sakValidAfterTime
137− = lens _sakValidAfterTime
138− (\ s a -> s{_sakValidAfterTime = a})
139−
140−-- | The private key data. Only provided in \`CreateServiceAccountKey\`
141−-- responses.
142−sakPrivateKeyData :: Lens' ServiceAccountKey (Maybe ByteString)
143−sakPrivateKeyData
144− = lens _sakPrivateKeyData
145− (\ s a -> s{_sakPrivateKeyData = a})
146− . mapping _Base64
147−
148−-- | The public key data. Only provided in \`GetServiceAccountKey\`
149−-- responses.
150−sakPublicKeyData :: Lens' ServiceAccountKey (Maybe ByteString)
151−sakPublicKeyData
152− = lens _sakPublicKeyData
153− (\ s a -> s{_sakPublicKeyData = a})
154− . mapping _Base64
155−
156−-- | The resource name of the service account key in the following format
157−-- \`projects\/{project}\/serviceAccounts\/{account}\/keys\/{key}\`.
158−sakName :: Lens' ServiceAccountKey (Maybe Text)
159−sakName = lens _sakName (\ s a -> s{_sakName = a})
160−
161−-- | The output format for the private key. Only provided in
162−-- \`CreateServiceAccountKey\` responses, not in \`GetServiceAccountKey\`
163−-- or \`ListServiceAccountKey\` responses. Google never exposes
164−-- system-managed private keys, and never retains user-managed private
165−-- keys.
166−sakPrivateKeyType :: Lens' ServiceAccountKey (Maybe Text)
167−sakPrivateKeyType
168− = lens _sakPrivateKeyType
169− (\ s a -> s{_sakPrivateKeyType = a})
170−
171−-- | The key can be used before this timestamp.
172−sakValidBeforeTime :: Lens' ServiceAccountKey (Maybe Text)
173−sakValidBeforeTime
174− = lens _sakValidBeforeTime
175− (\ s a -> s{_sakValidBeforeTime = a})
176−
177−-- | Specifies the algorithm (and possibly key size) for the key.
178−sakKeyAlgorithm :: Lens' ServiceAccountKey (Maybe Text)
179−sakKeyAlgorithm
180− = lens _sakKeyAlgorithm
181− (\ s a -> s{_sakKeyAlgorithm = a})
182−
183−instance FromJSON ServiceAccountKey where
184− parseJSON
185− = withObject "ServiceAccountKey"
186− (\ o ->
187− ServiceAccountKey' <$>
188− (o .:? "validAfterTime") <*> (o .:? "privateKeyData")
189− <*> (o .:? "publicKeyData")
190− <*> (o .:? "name")
191− <*> (o .:? "privateKeyType")
192− <*> (o .:? "validBeforeTime")
193− <*> (o .:? "keyAlgorithm"))
194−
195−instance ToJSON ServiceAccountKey where
196− toJSON ServiceAccountKey'{..}
197− = object
198− (catMaybes
199− [("validAfterTime" .=) <$> _sakValidAfterTime,
200− ("privateKeyData" .=) <$> _sakPrivateKeyData,
201− ("publicKeyData" .=) <$> _sakPublicKeyData,
202− ("name" .=) <$> _sakName,
203− ("privateKeyType" .=) <$> _sakPrivateKeyType,
204− ("validBeforeTime" .=) <$> _sakValidBeforeTime,
205− ("keyAlgorithm" .=) <$> _sakKeyAlgorithm])
206−
207−-- | The service account key create request.
208−--
209−-- /See:/ 'createServiceAccountKeyRequest' smart constructor.
210−data CreateServiceAccountKeyRequest = CreateServiceAccountKeyRequest'
211− { _csakrPrivateKeyType :: !(Maybe Text)
212− , _csakrKeyAlgorithm :: !(Maybe Text)
213− } deriving (Eq,Show,Data,Typeable,Generic)
214−
215−-- | Creates a value of 'CreateServiceAccountKeyRequest' with the minimum fields required to make a request.
216−--
217−-- Use one of the following lenses to modify other fields as desired:
218−--
219−-- * 'csakrPrivateKeyType'
220−--
221−-- * 'csakrKeyAlgorithm'
222−createServiceAccountKeyRequest
223− :: CreateServiceAccountKeyRequest
224−createServiceAccountKeyRequest =
225− CreateServiceAccountKeyRequest'
226− { _csakrPrivateKeyType = Nothing
227− , _csakrKeyAlgorithm = Nothing
228− }
229−
230−-- | The output format of the private key. \`GOOGLE_CREDENTIALS_FILE\` is the
231−-- default output format.
232−csakrPrivateKeyType :: Lens' CreateServiceAccountKeyRequest (Maybe Text)
233−csakrPrivateKeyType
234− = lens _csakrPrivateKeyType
235− (\ s a -> s{_csakrPrivateKeyType = a})
236−
237−-- | Which type of key and algorithm to use for the key. The default is
238−-- currently a 4K RSA key. However this may change in the future.
239−csakrKeyAlgorithm :: Lens' CreateServiceAccountKeyRequest (Maybe Text)
240−csakrKeyAlgorithm
241− = lens _csakrKeyAlgorithm
242− (\ s a -> s{_csakrKeyAlgorithm = a})
243−
244−instance FromJSON CreateServiceAccountKeyRequest
245− where
246− parseJSON
247− = withObject "CreateServiceAccountKeyRequest"
248− (\ o ->
249− CreateServiceAccountKeyRequest' <$>
250− (o .:? "privateKeyType") <*> (o .:? "keyAlgorithm"))
251−
252−instance ToJSON CreateServiceAccountKeyRequest where
253− toJSON CreateServiceAccountKeyRequest'{..}
254− = object
255− (catMaybes
256− [("privateKeyType" .=) <$> _csakrPrivateKeyType,
257− ("keyAlgorithm" .=) <$> _csakrKeyAlgorithm])
258−
259−-- | Request message for \`SetIamPolicy\` method.
260−--
261−-- /See:/ 'setIAMPolicyRequest' smart constructor.
262−newtype SetIAMPolicyRequest = SetIAMPolicyRequest'
263− { _siprPolicy :: Maybe Policy
264− } deriving (Eq,Show,Data,Typeable,Generic)
265−
266−-- | Creates a value of 'SetIAMPolicyRequest' with the minimum fields required to make a request.
267−--
268−-- Use one of the following lenses to modify other fields as desired:
269−--
270−-- * 'siprPolicy'
271−setIAMPolicyRequest
272− :: SetIAMPolicyRequest
273−setIAMPolicyRequest =
274− SetIAMPolicyRequest'
275− { _siprPolicy = Nothing
276− }
277−
278−-- | REQUIRED: The complete policy to be applied to the \`resource\`. The
279−-- size of the policy is limited to a few 10s of KB. An empty policy is a
280−-- valid policy but certain Cloud Platform services (such as Projects)
281−-- might reject them.
282−siprPolicy :: Lens' SetIAMPolicyRequest (Maybe Policy)
283−siprPolicy
284− = lens _siprPolicy (\ s a -> s{_siprPolicy = a})
285−
286−instance FromJSON SetIAMPolicyRequest where
287− parseJSON
288− = withObject "SetIAMPolicyRequest"
289− (\ o -> SetIAMPolicyRequest' <$> (o .:? "policy"))
290−
291−instance ToJSON SetIAMPolicyRequest where
292− toJSON SetIAMPolicyRequest'{..}
293− = object (catMaybes [("policy" .=) <$> _siprPolicy])
294−
295−-- | One delta entry for Binding. Each individual change (only one member in
296−-- each entry) to a binding will be a separate entry.
297−--
298−-- /See:/ 'bindingDelta' smart constructor.
299−data BindingDelta = BindingDelta'
300− { _bdAction :: !(Maybe Text)
301− , _bdRole :: !(Maybe Text)
302− , _bdMember :: !(Maybe Text)
303− } deriving (Eq,Show,Data,Typeable,Generic)
304−
305−-- | Creates a value of 'BindingDelta' with the minimum fields required to make a request.
306−--
307−-- Use one of the following lenses to modify other fields as desired:
308−--
309−-- * 'bdAction'
310−--
311−-- * 'bdRole'
312−--
313−-- * 'bdMember'
314−bindingDelta
315− :: BindingDelta
316−bindingDelta =
317− BindingDelta'
318− { _bdAction = Nothing
319− , _bdRole = Nothing
320− , _bdMember = Nothing
321− }
322−
323−-- | The action that was performed on a Binding. Required
324−bdAction :: Lens' BindingDelta (Maybe Text)
325−bdAction = lens _bdAction (\ s a -> s{_bdAction = a})
326−
327−-- | Role that is assigned to \`members\`. For example, \`roles\/viewer\`,
328−-- \`roles\/editor\`, or \`roles\/owner\`. Required
329−bdRole :: Lens' BindingDelta (Maybe Text)
330−bdRole = lens _bdRole (\ s a -> s{_bdRole = a})
331−
332−-- | A single identity requesting access for a Cloud Platform resource.
333−-- Follows the same format of Binding.members. Required
334−bdMember :: Lens' BindingDelta (Maybe Text)
335−bdMember = lens _bdMember (\ s a -> s{_bdMember = a})
336−
337−instance FromJSON BindingDelta where
338− parseJSON
339− = withObject "BindingDelta"
340− (\ o ->
341− BindingDelta' <$>
342− (o .:? "action") <*> (o .:? "role") <*>
343− (o .:? "member"))
344−
345−instance ToJSON BindingDelta where
346− toJSON BindingDelta'{..}
347− = object
348− (catMaybes
349− [("action" .=) <$> _bdAction,
350− ("role" .=) <$> _bdRole,
351− ("member" .=) <$> _bdMember])
352−
353−-- | The service account sign blob request.
354−--
355−-- /See:/ 'signBlobRequest' smart constructor.
356−newtype SignBlobRequest = SignBlobRequest'
357− { _sbrBytesToSign :: Maybe Base64
358− } deriving (Eq,Show,Data,Typeable,Generic)
359−
360−-- | Creates a value of 'SignBlobRequest' with the minimum fields required to make a request.
361−--
362−-- Use one of the following lenses to modify other fields as desired:
363−--
364−-- * 'sbrBytesToSign'
365−signBlobRequest
366− :: SignBlobRequest
367−signBlobRequest =
368− SignBlobRequest'
369− { _sbrBytesToSign = Nothing
370− }
371−
372−-- | The bytes to sign.
373−sbrBytesToSign :: Lens' SignBlobRequest (Maybe ByteString)
374−sbrBytesToSign
375− = lens _sbrBytesToSign
376− (\ s a -> s{_sbrBytesToSign = a})
377− . mapping _Base64
378−
379−instance FromJSON SignBlobRequest where
380− parseJSON
381− = withObject "SignBlobRequest"
382− (\ o -> SignBlobRequest' <$> (o .:? "bytesToSign"))
383−
384−instance ToJSON SignBlobRequest where
385− toJSON SignBlobRequest'{..}
386− = object
387− (catMaybes [("bytesToSign" .=) <$> _sbrBytesToSign])
388−
389−-- | The service account keys list response.
390−--
391−-- /See:/ 'listServiceAccountKeysResponse' smart constructor.
392−newtype ListServiceAccountKeysResponse = ListServiceAccountKeysResponse'
393− { _lsakrKeys :: Maybe [ServiceAccountKey]
394− } deriving (Eq,Show,Data,Typeable,Generic)
395−
396−-- | Creates a value of 'ListServiceAccountKeysResponse' with the minimum fields required to make a request.
397−--
398−-- Use one of the following lenses to modify other fields as desired:
399−--
400−-- * 'lsakrKeys'
401−listServiceAccountKeysResponse
402− :: ListServiceAccountKeysResponse
403−listServiceAccountKeysResponse =
404− ListServiceAccountKeysResponse'
405− { _lsakrKeys = Nothing
406− }
407−
408−-- | The public keys for the service account.
409−lsakrKeys :: Lens' ListServiceAccountKeysResponse [ServiceAccountKey]
410−lsakrKeys
411− = lens _lsakrKeys (\ s a -> s{_lsakrKeys = a}) .
412− _Default
413− . _Coerce
414−
415−instance FromJSON ListServiceAccountKeysResponse
416− where
417− parseJSON
418− = withObject "ListServiceAccountKeysResponse"
419− (\ o ->
420− ListServiceAccountKeysResponse' <$>
421− (o .:? "keys" .!= mempty))
422−
423−instance ToJSON ListServiceAccountKeysResponse where
424− toJSON ListServiceAccountKeysResponse'{..}
425− = object (catMaybes [("keys" .=) <$> _lsakrKeys])
426−
427−-- | A role in the Identity and Access Management API.
428−--
429−-- /See:/ 'role'' smart constructor.
430−data Role = Role'
431− { _rName :: !(Maybe Text)
432− , _rTitle :: !(Maybe Text)
433− , _rDescription :: !(Maybe Text)
434− } deriving (Eq,Show,Data,Typeable,Generic)
435−
436−-- | Creates a value of 'Role' with the minimum fields required to make a request.
437−--
438−-- Use one of the following lenses to modify other fields as desired:
439−--
440−-- * 'rName'
441−--
442−-- * 'rTitle'
443−--
444−-- * 'rDescription'
445−role'
446− :: Role
447−role' =
448− Role'
449− { _rName = Nothing
450− , _rTitle = Nothing
451− , _rDescription = Nothing
452− }
453−
454−-- | The name of the role. When Role is used in CreateRole, the role name
455−-- must not be set. When Role is used in output and other input such as
456−-- UpdateRole, the role name is the complete path, e.g.,
457−-- roles\/logging.viewer for curated roles and
458−-- organizations\/{organization-id}\/roles\/logging.viewer for custom
459−-- roles.
460−rName :: Lens' Role (Maybe Text)
461−rName = lens _rName (\ s a -> s{_rName = a})
462−
463−-- | Optional. A human-readable title for the role. Typically this is limited
464−-- to 100 UTF-8 bytes.
465−rTitle :: Lens' Role (Maybe Text)
466−rTitle = lens _rTitle (\ s a -> s{_rTitle = a})
467−
468−-- | Optional. A human-readable description for the role.
469−rDescription :: Lens' Role (Maybe Text)
470−rDescription
471− = lens _rDescription (\ s a -> s{_rDescription = a})
472−
473−instance FromJSON Role where
474− parseJSON
475− = withObject "Role"
476− (\ o ->
477− Role' <$>
478− (o .:? "name") <*> (o .:? "title") <*>
479− (o .:? "description"))
480−
481−instance ToJSON Role where
482− toJSON Role'{..}
483− = object
484− (catMaybes
485− [("name" .=) <$> _rName, ("title" .=) <$> _rTitle,
486− ("description" .=) <$> _rDescription])
487−
488−-- | A service account in the Identity and Access Management API. To create a
489−-- service account, specify the \`project_id\` and the \`account_id\` for
490−-- the account. The \`account_id\` is unique within the project, and is
491−-- used to generate the service account email address and a stable
492−-- \`unique_id\`. If the account already exists, the account\'s resource
493−-- name is returned in util::Status\'s ResourceInfo.resource_name in the
494−-- format of projects\/{project}\/serviceAccounts\/{email}. The caller can
495−-- use the name in other methods to access the account. All other methods
496−-- can identify the service account using the format
497−-- \`projects\/{project}\/serviceAccounts\/{account}\`. Using \`-\` as a
498−-- wildcard for the project will infer the project from the account. The
499−-- \`account\` value can be the \`email\` address or the \`unique_id\` of
500−-- the service account.
501−--
502−-- /See:/ 'serviceAccount' smart constructor.
503−data ServiceAccount = ServiceAccount'
504− { _saEmail :: !(Maybe Text)
505− , _saEtag :: !(Maybe Base64)
506− , _saUniqueId :: !(Maybe Text)
507− , _saName :: !(Maybe Text)
508− , _saDisplayName :: !(Maybe Text)
509− , _saProjectId :: !(Maybe Text)
510− , _saOAuth2ClientId :: !(Maybe Text)
511− } deriving (Eq,Show,Data,Typeable,Generic)
512−
513−-- | Creates a value of 'ServiceAccount' with the minimum fields required to make a request.
514−--
515−-- Use one of the following lenses to modify other fields as desired:
516−--
517−-- * 'saEmail'
518−--
519−-- * 'saEtag'
520−--
521−-- * 'saUniqueId'
522−--
523−-- * 'saName'
524−--
525−-- * 'saDisplayName'
526−--
527−-- * 'saProjectId'
528−--
529−-- * 'saOAuth2ClientId'
530−serviceAccount
531− :: ServiceAccount
532−serviceAccount =
533− ServiceAccount'
534− { _saEmail = Nothing
535− , _saEtag = Nothing
536− , _saUniqueId = Nothing
537− , _saName = Nothing
538− , _saDisplayName = Nothing
539− , _saProjectId = Nothing
540− , _saOAuth2ClientId = Nothing
541− }
542−
543−-- | \'OutputOnly The email address of the service account.
544−saEmail :: Lens' ServiceAccount (Maybe Text)
545−saEmail = lens _saEmail (\ s a -> s{_saEmail = a})
546−
547−-- | Used to perform a consistent read-modify-write.
548−saEtag :: Lens' ServiceAccount (Maybe ByteString)
549−saEtag
550− = lens _saEtag (\ s a -> s{_saEtag = a}) .
551− mapping _Base64
552−
553−-- | \'OutputOnly The unique and stable id of the service account.
554−saUniqueId :: Lens' ServiceAccount (Maybe Text)
555−saUniqueId
556− = lens _saUniqueId (\ s a -> s{_saUniqueId = a})
557−
558−-- | The resource name of the service account in the following format:
559−-- \`projects\/{project}\/serviceAccounts\/{account}\`. Requests using
560−-- \`-\` as a wildcard for the project will infer the project from the
561−-- \`account\` and the \`account\` value can be the \`email\` address or
562−-- the \`unique_id\` of the service account. In responses the resource name
563−-- will always be in the format
564−-- \`projects\/{project}\/serviceAccounts\/{email}\`.
565−saName :: Lens' ServiceAccount (Maybe Text)
566−saName = lens _saName (\ s a -> s{_saName = a})
567−
568−-- | Optional. A user-specified description of the service account. Must be
569−-- fewer than 100 UTF-8 bytes.
570−saDisplayName :: Lens' ServiceAccount (Maybe Text)
571−saDisplayName
572− = lens _saDisplayName
573− (\ s a -> s{_saDisplayName = a})
574−
575−-- | \'OutputOnly The id of the project that owns the service account.
576−saProjectId :: Lens' ServiceAccount (Maybe Text)
577−saProjectId
578− = lens _saProjectId (\ s a -> s{_saProjectId = a})
579−
580−-- | \'OutputOnly. The OAuth2 client id for the service account. This is used
581−-- in conjunction with the OAuth2 clientconfig API to make three legged
582−-- OAuth2 (3LO) flows to access the data of Google users.
583−saOAuth2ClientId :: Lens' ServiceAccount (Maybe Text)
584−saOAuth2ClientId
585− = lens _saOAuth2ClientId
586− (\ s a -> s{_saOAuth2ClientId = a})
587−
588−instance FromJSON ServiceAccount where
589− parseJSON
590− = withObject "ServiceAccount"
591− (\ o ->
592− ServiceAccount' <$>
593− (o .:? "email") <*> (o .:? "etag") <*>
594− (o .:? "uniqueId")
595− <*> (o .:? "name")
596− <*> (o .:? "displayName")
597− <*> (o .:? "projectId")
598− <*> (o .:? "oauth2ClientId"))
599−
600−instance ToJSON ServiceAccount where
601− toJSON ServiceAccount'{..}
602− = object
603− (catMaybes
604− [("email" .=) <$> _saEmail, ("etag" .=) <$> _saEtag,
605− ("uniqueId" .=) <$> _saUniqueId,
606− ("name" .=) <$> _saName,
607− ("displayName" .=) <$> _saDisplayName,
608− ("projectId" .=) <$> _saProjectId,
609− ("oauth2ClientId" .=) <$> _saOAuth2ClientId])
610−
611−-- | The grantable role query response.
612−--
613−-- /See:/ 'queryGrantableRolesResponse' smart constructor.
614−newtype QueryGrantableRolesResponse = QueryGrantableRolesResponse'
615− { _qgrrRoles :: Maybe [Role]
616− } deriving (Eq,Show,Data,Typeable,Generic)
617−
618−-- | Creates a value of 'QueryGrantableRolesResponse' with the minimum fields required to make a request.
619−--
620−-- Use one of the following lenses to modify other fields as desired:
621−--
622−-- * 'qgrrRoles'
623−queryGrantableRolesResponse
624− :: QueryGrantableRolesResponse
625−queryGrantableRolesResponse =
626− QueryGrantableRolesResponse'
627− { _qgrrRoles = Nothing
628− }
629−
630−-- | The list of matching roles.
631−qgrrRoles :: Lens' QueryGrantableRolesResponse [Role]
632−qgrrRoles
633− = lens _qgrrRoles (\ s a -> s{_qgrrRoles = a}) .
634− _Default
635− . _Coerce
636−
637−instance FromJSON QueryGrantableRolesResponse where
638− parseJSON
639− = withObject "QueryGrantableRolesResponse"
640− (\ o ->
641− QueryGrantableRolesResponse' <$>
642− (o .:? "roles" .!= mempty))
643−
644−instance ToJSON QueryGrantableRolesResponse where
645− toJSON QueryGrantableRolesResponse'{..}
646− = object (catMaybes [("roles" .=) <$> _qgrrRoles])
647−
648−-- | Request message for \`TestIamPermissions\` method.
649−--
650−-- /See:/ 'testIAMPermissionsRequest' smart constructor.
651−newtype TestIAMPermissionsRequest = TestIAMPermissionsRequest'
652− { _tiprPermissions :: Maybe [Text]
653− } deriving (Eq,Show,Data,Typeable,Generic)
654−
655−-- | Creates a value of 'TestIAMPermissionsRequest' with the minimum fields required to make a request.
656−--
657−-- Use one of the following lenses to modify other fields as desired:
658−--
659−-- * 'tiprPermissions'
660−testIAMPermissionsRequest
661− :: TestIAMPermissionsRequest
662−testIAMPermissionsRequest =
663− TestIAMPermissionsRequest'
664− { _tiprPermissions = Nothing
665− }
666−
667−-- | The set of permissions to check for the \`resource\`. Permissions with
668−-- wildcards (such as \'*\' or \'storage.*\') are not allowed. For more
669−-- information see [IAM
670−-- Overview](https:\/\/cloud.google.com\/iam\/docs\/overview#permissions).
671−tiprPermissions :: Lens' TestIAMPermissionsRequest [Text]
672−tiprPermissions
673− = lens _tiprPermissions
674− (\ s a -> s{_tiprPermissions = a})
675− . _Default
676− . _Coerce
677−
678−instance FromJSON TestIAMPermissionsRequest where
679− parseJSON
680− = withObject "TestIAMPermissionsRequest"
681− (\ o ->
682− TestIAMPermissionsRequest' <$>
683− (o .:? "permissions" .!= mempty))
684−
685−instance ToJSON TestIAMPermissionsRequest where
686− toJSON TestIAMPermissionsRequest'{..}
687− = object
688− (catMaybes [("permissions" .=) <$> _tiprPermissions])
689−
690−-- | Response message for \`TestIamPermissions\` method.
691−--
692−-- /See:/ 'testIAMPermissionsResponse' smart constructor.
693−newtype TestIAMPermissionsResponse = TestIAMPermissionsResponse'
694− { _tiamprPermissions :: Maybe [Text]
695− } deriving (Eq,Show,Data,Typeable,Generic)
696−
697−-- | Creates a value of 'TestIAMPermissionsResponse' with the minimum fields required to make a request.
698−--
699−-- Use one of the following lenses to modify other fields as desired:
700−--
701−-- * 'tiamprPermissions'
702−testIAMPermissionsResponse
703− :: TestIAMPermissionsResponse
704−testIAMPermissionsResponse =
705− TestIAMPermissionsResponse'
706− { _tiamprPermissions = Nothing
707− }
708−
709−-- | A subset of \`TestPermissionsRequest.permissions\` that the caller is
710−-- allowed.
711−tiamprPermissions :: Lens' TestIAMPermissionsResponse [Text]
712−tiamprPermissions
713− = lens _tiamprPermissions
714− (\ s a -> s{_tiamprPermissions = a})
715− . _Default
716− . _Coerce
717−
718−instance FromJSON TestIAMPermissionsResponse where
719− parseJSON
720− = withObject "TestIAMPermissionsResponse"
721− (\ o ->
722− TestIAMPermissionsResponse' <$>
723− (o .:? "permissions" .!= mempty))
724−
725−instance ToJSON TestIAMPermissionsResponse where
726− toJSON TestIAMPermissionsResponse'{..}
727− = object
728− (catMaybes
729− [("permissions" .=) <$> _tiamprPermissions])
730−
731−-- | Defines an Identity and Access Management (IAM) policy. It is used to
732−-- specify access control policies for Cloud Platform resources. A
733−-- \`Policy\` consists of a list of \`bindings\`. A \`Binding\` binds a
734−-- list of \`members\` to a \`role\`, where the members can be user
735−-- accounts, Google groups, Google domains, and service accounts. A
736−-- \`role\` is a named list of permissions defined by IAM. **Example** {
737−-- \"bindings\": [ { \"role\": \"roles\/owner\", \"members\": [
738−-- \"user:mike\'example.com\", \"group:admins\'example.com\",
739−-- \"domain:google.com\",
740−-- \"serviceAccount:my-other-app\'appspot.gserviceaccount.com\", ] }, {
741−-- \"role\": \"roles\/viewer\", \"members\": [\"user:sean\'example.com\"] }
742−-- ] } For a description of IAM and its features, see the [IAM developer\'s
743−-- guide](https:\/\/cloud.google.com\/iam).
744−--
745−-- /See:/ 'policy' smart constructor.
746−data Policy = Policy'
747− { _pEtag :: !(Maybe Base64)
748− , _pVersion :: !(Maybe (Textual Int32))
749− , _pBindings :: !(Maybe [Binding])
750− } deriving (Eq,Show,Data,Typeable,Generic)
751−
752−-- | Creates a value of 'Policy' with the minimum fields required to make a request.
753−--
754−-- Use one of the following lenses to modify other fields as desired:
755−--
756−-- * 'pEtag'
757−--
758−-- * 'pVersion'
759−--
760−-- * 'pBindings'
761−policy
762− :: Policy
763−policy =
764− Policy'
765− { _pEtag = Nothing
766− , _pVersion = Nothing
767− , _pBindings = Nothing
768− }
769−
770−-- | \`etag\` is used for optimistic concurrency control as a way to help
771−-- prevent simultaneous updates of a policy from overwriting each other. It
772−-- is strongly suggested that systems make use of the \`etag\` in the
773−-- read-modify-write cycle to perform policy updates in order to avoid race
774−-- conditions: An \`etag\` is returned in the response to \`getIamPolicy\`,
775−-- and systems are expected to put that etag in the request to
776−-- \`setIamPolicy\` to ensure that their change will be applied to the same
777−-- version of the policy. If no \`etag\` is provided in the call to
778−-- \`setIamPolicy\`, then the existing policy is overwritten blindly.
779−pEtag :: Lens' Policy (Maybe ByteString)
780−pEtag
781− = lens _pEtag (\ s a -> s{_pEtag = a}) .
782− mapping _Base64
783−
784−-- | Version of the \`Policy\`. The default version is 0.
785−pVersion :: Lens' Policy (Maybe Int32)
786−pVersion
787− = lens _pVersion (\ s a -> s{_pVersion = a}) .
788− mapping _Coerce
789−
790−-- | Associates a list of \`members\` to a \`role\`. Multiple \`bindings\`
791−-- must not be specified for the same \`role\`. \`bindings\` with no
792−-- members will result in an error.
793−pBindings :: Lens' Policy [Binding]
794−pBindings
795− = lens _pBindings (\ s a -> s{_pBindings = a}) .
796− _Default
797− . _Coerce
798−
799−instance FromJSON Policy where
800− parseJSON
801− = withObject "Policy"
802− (\ o ->
803− Policy' <$>
804− (o .:? "etag") <*> (o .:? "version") <*>
805− (o .:? "bindings" .!= mempty))
806−
807−instance ToJSON Policy where
808− toJSON Policy'{..}
809− = object
810− (catMaybes
811− [("etag" .=) <$> _pEtag,
812− ("version" .=) <$> _pVersion,
813− ("bindings" .=) <$> _pBindings])
814−
815−-- | The difference delta between two policies.
816−--
817−-- /See:/ 'policyDelta' smart constructor.
818−newtype PolicyDelta = PolicyDelta'
819− { _pdBindingDeltas :: Maybe [BindingDelta]
820− } deriving (Eq,Show,Data,Typeable,Generic)
821−
822−-- | Creates a value of 'PolicyDelta' with the minimum fields required to make a request.
823−--
824−-- Use one of the following lenses to modify other fields as desired:
825−--
826−-- * 'pdBindingDeltas'
827−policyDelta
828− :: PolicyDelta
829−policyDelta =
830− PolicyDelta'
831− { _pdBindingDeltas = Nothing
832− }
833−
834−-- | The delta for Bindings between two policies.
835−pdBindingDeltas :: Lens' PolicyDelta [BindingDelta]
836−pdBindingDeltas
837− = lens _pdBindingDeltas
838− (\ s a -> s{_pdBindingDeltas = a})
839− . _Default
840− . _Coerce
841−
842−instance FromJSON PolicyDelta where
843− parseJSON
844− = withObject "PolicyDelta"
845− (\ o ->
846− PolicyDelta' <$> (o .:? "bindingDeltas" .!= mempty))
847−
848−instance ToJSON PolicyDelta where
849− toJSON PolicyDelta'{..}
850− = object
851− (catMaybes
852− [("bindingDeltas" .=) <$> _pdBindingDeltas])
853−
854−-- | The grantable role query request.
855−--
856−-- /See:/ 'queryGrantableRolesRequest' smart constructor.
857−newtype QueryGrantableRolesRequest = QueryGrantableRolesRequest'
858− { _qgrrFullResourceName :: Maybe Text
26+-- /See:/ 'searchResponse' smart constructor.
27+data SearchResponse = SearchResponse'
28+ { _srContext :: !(Maybe JSONValue)
29+ , _srItemListElement :: !(Maybe [JSONValue])
30+ , _srType :: !(Maybe JSONValue)
85931 } deriving (Eq,Show,Data,Typeable,Generic)
86032
861−-- | Creates a value of 'QueryGrantableRolesRequest' with the minimum fields required to make a request.
33+-- | Creates a value of 'SearchResponse' with the minimum fields required to make a request.
86234--
86335-- Use one of the following lenses to modify other fields as desired:
86436--
865−-- * 'qgrrFullResourceName'
866−queryGrantableRolesRequest
867− :: QueryGrantableRolesRequest
868−queryGrantableRolesRequest =
869− QueryGrantableRolesRequest'
870− { _qgrrFullResourceName = Nothing
871− }
872−
873−-- | Required. The full resource name to query from the list of grantable
874−-- roles. The name follows the Google Cloud Platform resource format. For
875−-- example, a Cloud Platform project with id \`my-project\` will be named
876−-- \`\/\/cloudresourcemanager.googleapis.com\/projects\/my-project\`.
877−qgrrFullResourceName :: Lens' QueryGrantableRolesRequest (Maybe Text)
878−qgrrFullResourceName
879− = lens _qgrrFullResourceName
880− (\ s a -> s{_qgrrFullResourceName = a})
881−
882−instance FromJSON QueryGrantableRolesRequest where
883− parseJSON
884− = withObject "QueryGrantableRolesRequest"
885− (\ o ->
886− QueryGrantableRolesRequest' <$>
887− (o .:? "fullResourceName"))
888−
889−instance ToJSON QueryGrantableRolesRequest where
890− toJSON QueryGrantableRolesRequest'{..}
891− = object
892− (catMaybes
893− [("fullResourceName" .=) <$> _qgrrFullResourceName])
894−
895−-- | The service account sign blob response.
896−--
897−-- /See:/ 'signBlobResponse' smart constructor.
898−data SignBlobResponse = SignBlobResponse'
899− { _sbrSignature :: !(Maybe Base64)
900− , _sbrKeyId :: !(Maybe Text)
901− } deriving (Eq,Show,Data,Typeable,Generic)
902−
903−-- | Creates a value of 'SignBlobResponse' with the minimum fields required to make a request.
904−--
905−-- Use one of the following lenses to modify other fields as desired:
37+-- * 'srContext'
90638--
907−-- * 'sbrSignature'
39+-- * 'srItemListElement'
90840--
909−-- * 'sbrKeyId'
910−signBlobResponse
911− :: SignBlobResponse
912−signBlobResponse =
913− SignBlobResponse'
914− { _sbrSignature = Nothing
915− , _sbrKeyId = Nothing
41+-- * 'srType'
42+searchResponse
43+ :: SearchResponse
44+searchResponse =
45+ SearchResponse'
46+ { _srContext = Nothing
47+ , _srItemListElement = Nothing
48+ , _srType = Nothing
91649 }
91750
918−-- | The signed blob.
919−sbrSignature :: Lens' SignBlobResponse (Maybe ByteString)
920−sbrSignature
921− = lens _sbrSignature (\ s a -> s{_sbrSignature = a})
922− . mapping _Base64
923−
924−-- | The id of the key used to sign the blob.
925−sbrKeyId :: Lens' SignBlobResponse (Maybe Text)
926−sbrKeyId = lens _sbrKeyId (\ s a -> s{_sbrKeyId = a})
927−
928−instance FromJSON SignBlobResponse where
929− parseJSON
930− = withObject "SignBlobResponse"
931− (\ o ->
932− SignBlobResponse' <$>
933− (o .:? "signature") <*> (o .:? "keyId"))
934−
935−instance ToJSON SignBlobResponse where
936− toJSON SignBlobResponse'{..}
937− = object
938− (catMaybes
939− [("signature" .=) <$> _sbrSignature,
940− ("keyId" .=) <$> _sbrKeyId])
51+-- | The local context applicable for the response. See more details at
52+-- http:\/\/www.w3.org\/TR\/json-ld\/#context-definitions.
53+srContext :: Lens' SearchResponse (Maybe JSONValue)
54+srContext
55+ = lens _srContext (\ s a -> s{_srContext = a})
94156
942−-- | The service account list response.
943−--
944−-- /See:/ 'listServiceAccountsResponse' smart constructor.
945−data ListServiceAccountsResponse = ListServiceAccountsResponse'
946− { _lsarNextPageToken :: !(Maybe Text)
947− , _lsarAccounts :: !(Maybe [ServiceAccount])
948− } deriving (Eq,Show,Data,Typeable,Generic)
949−
950−-- | Creates a value of 'ListServiceAccountsResponse' with the minimum fields required to make a request.
951−--
952−-- Use one of the following lenses to modify other fields as desired:
953−--
954−-- * 'lsarNextPageToken'
955−--
956−-- * 'lsarAccounts'
957−listServiceAccountsResponse
958− :: ListServiceAccountsResponse
959−listServiceAccountsResponse =
960− ListServiceAccountsResponse'
961− { _lsarNextPageToken = Nothing
962− , _lsarAccounts = Nothing
963− }
964−
965−-- | To retrieve the next page of results, set
966−-- ListServiceAccountsRequest.page_token to this value.
967−lsarNextPageToken :: Lens' ListServiceAccountsResponse (Maybe Text)
968−lsarNextPageToken
969− = lens _lsarNextPageToken
970− (\ s a -> s{_lsarNextPageToken = a})
971−
972−-- | The list of matching service accounts.
973−lsarAccounts :: Lens' ListServiceAccountsResponse [ServiceAccount]
974−lsarAccounts
975− = lens _lsarAccounts (\ s a -> s{_lsarAccounts = a})
57+-- | The item list of search results.
58+srItemListElement :: Lens' SearchResponse [JSONValue]
59+srItemListElement
60+ = lens _srItemListElement
61+ (\ s a -> s{_srItemListElement = a})
97662 . _Default
97763 . _Coerce
97864
979−instance FromJSON ListServiceAccountsResponse where
980− parseJSON
981− = withObject "ListServiceAccountsResponse"
982− (\ o ->
983− ListServiceAccountsResponse' <$>
984− (o .:? "nextPageToken") <*>
985− (o .:? "accounts" .!= mempty))
986−
987−instance ToJSON ListServiceAccountsResponse where
988− toJSON ListServiceAccountsResponse'{..}
989− = object
990− (catMaybes
991− [("nextPageToken" .=) <$> _lsarNextPageToken,
992− ("accounts" .=) <$> _lsarAccounts])
993−
994−-- | The service account create request.
995−--
996−-- /See:/ 'createServiceAccountRequest' smart constructor.
997−data CreateServiceAccountRequest = CreateServiceAccountRequest'
998− { _csarServiceAccount :: !(Maybe ServiceAccount)
999− , _csarAccountId :: !(Maybe Text)
1000− } deriving (Eq,Show,Data,Typeable,Generic)
1001−
1002−-- | Creates a value of 'CreateServiceAccountRequest' with the minimum fields required to make a request.
1003−--
1004−-- Use one of the following lenses to modify other fields as desired:
1005−--
1006−-- * 'csarServiceAccount'
1007−--
1008−-- * 'csarAccountId'
1009−createServiceAccountRequest
1010− :: CreateServiceAccountRequest
1011−createServiceAccountRequest =
1012− CreateServiceAccountRequest'
1013− { _csarServiceAccount = Nothing
1014− , _csarAccountId = Nothing
1015− }
1016−
1017−-- | The ServiceAccount resource to create. Currently, only the following
1018−-- values are user assignable: \`display_name\` .
1019−csarServiceAccount :: Lens' CreateServiceAccountRequest (Maybe ServiceAccount)
1020−csarServiceAccount
1021− = lens _csarServiceAccount
1022− (\ s a -> s{_csarServiceAccount = a})
1023−
1024−-- | Required. The account id that is used to generate the service account
1025−-- email address and a stable unique id. It is unique within a project,
1026−-- must be 6-30 characters long, and match the regular expression
1027−-- \`[a-z]([-a-z0-9]*[a-z0-9])\` to comply with RFC1035.
1028−csarAccountId :: Lens' CreateServiceAccountRequest (Maybe Text)
1029−csarAccountId
1030− = lens _csarAccountId
1031− (\ s a -> s{_csarAccountId = a})
1032−
1033−instance FromJSON CreateServiceAccountRequest where
1034− parseJSON
1035− = withObject "CreateServiceAccountRequest"
1036− (\ o ->
1037− CreateServiceAccountRequest' <$>
1038− (o .:? "serviceAccount") <*> (o .:? "accountId"))
1039−
1040−instance ToJSON CreateServiceAccountRequest where
1041− toJSON CreateServiceAccountRequest'{..}
1042− = object
1043− (catMaybes
1044− [("serviceAccount" .=) <$> _csarServiceAccount,
1045− ("accountId" .=) <$> _csarAccountId])
1046−
1047−-- | Associates \`members\` with a \`role\`.
1048−--
1049−-- /See:/ 'binding' smart constructor.
1050−data Binding = Binding'
1051− { _bMembers :: !(Maybe [Text])
1052− , _bRole :: !(Maybe Text)
1053− } deriving (Eq,Show,Data,Typeable,Generic)
1054−
1055−-- | Creates a value of 'Binding' with the minimum fields required to make a request.
1056−--
1057−-- Use one of the following lenses to modify other fields as desired:
1058−--
1059−-- * 'bMembers'
1060−--
1061−-- * 'bRole'
1062−binding
1063− :: Binding
1064−binding =
1065− Binding'
1066− { _bMembers = Nothing
1067− , _bRole = Nothing
1068− }
1069−
1070−-- | Specifies the identities requesting access for a Cloud Platform
1071−-- resource. \`members\` can have the following values: * \`allUsers\`: A
1072−-- special identifier that represents anyone who is on the internet; with
1073−-- or without a Google account. * \`allAuthenticatedUsers\`: A special
1074−-- identifier that represents anyone who is authenticated with a Google
1075−-- account or a service account. * \`user:{emailid}\`: An email address
1076−-- that represents a specific Google account. For example,
1077−-- \`alice\'gmail.com\` or \`joe\'example.com\`. *
1078−-- \`serviceAccount:{emailid}\`: An email address that represents a service
1079−-- account. For example, \`my-other-app\'appspot.gserviceaccount.com\`. *
1080−-- \`group:{emailid}\`: An email address that represents a Google group.
1081−-- For example, \`admins\'example.com\`. * \`domain:{domain}\`: A Google
1082−-- Apps domain name that represents all the users of that domain. For
1083−-- example, \`google.com\` or \`example.com\`.
1084−bMembers :: Lens' Binding [Text]
1085−bMembers
1086− = lens _bMembers (\ s a -> s{_bMembers = a}) .
1087− _Default
1088− . _Coerce
1089−
1090−-- | Role that is assigned to \`members\`. For example, \`roles\/viewer\`,
1091−-- \`roles\/editor\`, or \`roles\/owner\`. Required
1092−bRole :: Lens' Binding (Maybe Text)
1093−bRole = lens _bRole (\ s a -> s{_bRole = a})
65+-- | The schema type of top-level JSON-LD object, e.g. ItemList.
66+srType :: Lens' SearchResponse (Maybe JSONValue)
67+srType = lens _srType (\ s a -> s{_srType = a})
109468
1095−instance FromJSON Binding where
69+instance FromJSON SearchResponse where
109670 parseJSON
1097− = withObject "Binding"
71+ = withObject "SearchResponse"
109872 (\ o ->
1099− Binding' <$>
1100− (o .:? "members" .!= mempty) <*> (o .:? "role"))
73+ SearchResponse' <$>
74+ (o .:? "context") <*>
75+ (o .:? "itemListElement" .!= mempty)
76+ <*> (o .:? "type"))
110177
1102−instance ToJSON Binding where
1103− toJSON Binding'{..}
78+instance ToJSON SearchResponse where
79+ toJSON SearchResponse'{..}
110480 = object
110581 (catMaybes
1106− [("members" .=) <$> _bMembers,
1107− ("role" .=) <$> _bRole])
82+ [("context" .=) <$> _srContext,
83+ ("itemListElement" .=) <$> _srItemListElement,
84+ ("type" .=) <$> _srType])
gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Create.hsdeleted−188
@@ -1,188 +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.IAM.Projects.ServiceAccounts.Create
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Creates a ServiceAccount and returns it.
24−--
25−-- /See:/ <https://cloud.google.com/iam/ Google Identity and Access Management (IAM) API Reference> for @iam.projects.serviceAccounts.create@.
26−module Network.Google.Resource.IAM.Projects.ServiceAccounts.Create
27− (
28− -- * REST Resource
29− ProjectsServiceAccountsCreateResource
30−
31− -- * Creating a Request
32− , projectsServiceAccountsCreate
33− , ProjectsServiceAccountsCreate
34−
35− -- * Request Lenses
36− , psacXgafv
37− , psacUploadProtocol
38− , psacPp
39− , psacAccessToken
40− , psacUploadType
41− , psacPayload
42− , psacBearerToken
43− , psacName
44− , psacCallback
45− ) where
46−
47−import Network.Google.KnowledgeGraphSearch.Types
48−import Network.Google.Prelude
49−
50−-- | A resource alias for @iam.projects.serviceAccounts.create@ method which the
51−-- 'ProjectsServiceAccountsCreate' request conforms to.
52−type ProjectsServiceAccountsCreateResource =
53− "v1" :>
54− Capture "name" Text :>
55− "serviceAccounts" :>
56− QueryParam "$.xgafv" Text :>
57− QueryParam "upload_protocol" Text :>
58− QueryParam "pp" Bool :>
59− QueryParam "access_token" Text :>
60− QueryParam "uploadType" Text :>
61− QueryParam "bearer_token" Text :>
62− QueryParam "callback" Text :>
63− QueryParam "alt" AltJSON :>
64− ReqBody '[JSON] CreateServiceAccountRequest :>
65− Post '[JSON] ServiceAccount
66−
67−-- | Creates a ServiceAccount and returns it.
68−--
69−-- /See:/ 'projectsServiceAccountsCreate' smart constructor.
70−data ProjectsServiceAccountsCreate = ProjectsServiceAccountsCreate'
71− { _psacXgafv :: !(Maybe Text)
72− , _psacUploadProtocol :: !(Maybe Text)
73− , _psacPp :: !Bool
74− , _psacAccessToken :: !(Maybe Text)
75− , _psacUploadType :: !(Maybe Text)
76− , _psacPayload :: !CreateServiceAccountRequest
77− , _psacBearerToken :: !(Maybe Text)
78− , _psacName :: !Text
79− , _psacCallback :: !(Maybe Text)
80− } deriving (Eq,Show,Data,Typeable,Generic)
81−
82−-- | Creates a value of 'ProjectsServiceAccountsCreate' 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−-- * 'psacXgafv'
87−--
88−-- * 'psacUploadProtocol'
89−--
90−-- * 'psacPp'
91−--
92−-- * 'psacAccessToken'
93−--
94−-- * 'psacUploadType'
95−--
96−-- * 'psacPayload'
97−--
98−-- * 'psacBearerToken'
99−--
100−-- * 'psacName'
101−--
102−-- * 'psacCallback'
103−projectsServiceAccountsCreate
104− :: CreateServiceAccountRequest -- ^ 'psacPayload'
105− -> Text -- ^ 'psacName'
106− -> ProjectsServiceAccountsCreate
107−projectsServiceAccountsCreate pPsacPayload_ pPsacName_ =
108− ProjectsServiceAccountsCreate'
109− { _psacXgafv = Nothing
110− , _psacUploadProtocol = Nothing
111− , _psacPp = True
112− , _psacAccessToken = Nothing
113− , _psacUploadType = Nothing
114− , _psacPayload = pPsacPayload_
115− , _psacBearerToken = Nothing
116− , _psacName = pPsacName_
117− , _psacCallback = Nothing
118− }
119−
120−-- | V1 error format.
121−psacXgafv :: Lens' ProjectsServiceAccountsCreate (Maybe Text)
122−psacXgafv
123− = lens _psacXgafv (\ s a -> s{_psacXgafv = a})
124−
125−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
126−psacUploadProtocol :: Lens' ProjectsServiceAccountsCreate (Maybe Text)
127−psacUploadProtocol
128− = lens _psacUploadProtocol
129− (\ s a -> s{_psacUploadProtocol = a})
130−
131−-- | Pretty-print response.
132−psacPp :: Lens' ProjectsServiceAccountsCreate Bool
133−psacPp = lens _psacPp (\ s a -> s{_psacPp = a})
134−
135−-- | OAuth access token.
136−psacAccessToken :: Lens' ProjectsServiceAccountsCreate (Maybe Text)
137−psacAccessToken
138− = lens _psacAccessToken
139− (\ s a -> s{_psacAccessToken = a})
140−
141−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
142−psacUploadType :: Lens' ProjectsServiceAccountsCreate (Maybe Text)
143−psacUploadType
144− = lens _psacUploadType
145− (\ s a -> s{_psacUploadType = a})
146−
147−-- | Multipart request metadata.
148−psacPayload :: Lens' ProjectsServiceAccountsCreate CreateServiceAccountRequest
149−psacPayload
150− = lens _psacPayload (\ s a -> s{_psacPayload = a})
151−
152−-- | OAuth bearer token.
153−psacBearerToken :: Lens' ProjectsServiceAccountsCreate (Maybe Text)
154−psacBearerToken
155− = lens _psacBearerToken
156− (\ s a -> s{_psacBearerToken = a})
157−
158−-- | Required. The resource name of the project associated with the service
159−-- accounts, such as \`projects\/my-project-123\`.
160−psacName :: Lens' ProjectsServiceAccountsCreate Text
161−psacName = lens _psacName (\ s a -> s{_psacName = a})
162−
163−-- | JSONP
164−psacCallback :: Lens' ProjectsServiceAccountsCreate (Maybe Text)
165−psacCallback
166− = lens _psacCallback (\ s a -> s{_psacCallback = a})
167−
168−instance GoogleRequest ProjectsServiceAccountsCreate
169− where
170− type Rs ProjectsServiceAccountsCreate =
171− ServiceAccount
172− type Scopes ProjectsServiceAccountsCreate =
173− '["https://www.googleapis.com/auth/cloud-platform"]
174− requestClient ProjectsServiceAccountsCreate'{..}
175− = go _psacName _psacXgafv _psacUploadProtocol
176− (Just _psacPp)
177− _psacAccessToken
178− _psacUploadType
179− _psacBearerToken
180− _psacCallback
181− (Just AltJSON)
182− _psacPayload
183− knowledgeGraphSearchService
184− where go
185− = buildClient
186− (Proxy ::
187− Proxy ProjectsServiceAccountsCreateResource)
188− mempty
gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Delete.hsdeleted−175
@@ -1,175 +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.IAM.Projects.ServiceAccounts.Delete
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Deletes a ServiceAccount.
24−--
25−-- /See:/ <https://cloud.google.com/iam/ Google Identity and Access Management (IAM) API Reference> for @iam.projects.serviceAccounts.delete@.
26−module Network.Google.Resource.IAM.Projects.ServiceAccounts.Delete
27− (
28− -- * REST Resource
29− ProjectsServiceAccountsDeleteResource
30−
31− -- * Creating a Request
32− , projectsServiceAccountsDelete
33− , ProjectsServiceAccountsDelete
34−
35− -- * Request Lenses
36− , psadXgafv
37− , psadUploadProtocol
38− , psadPp
39− , psadAccessToken
40− , psadUploadType
41− , psadBearerToken
42− , psadName
43− , psadCallback
44− ) where
45−
46−import Network.Google.KnowledgeGraphSearch.Types
47−import Network.Google.Prelude
48−
49−-- | A resource alias for @iam.projects.serviceAccounts.delete@ method which the
50−-- 'ProjectsServiceAccountsDelete' request conforms to.
51−type ProjectsServiceAccountsDeleteResource =
52− "v1" :>
53− Capture "name" Text :>
54− QueryParam "$.xgafv" Text :>
55− QueryParam "upload_protocol" Text :>
56− QueryParam "pp" Bool :>
57− QueryParam "access_token" Text :>
58− QueryParam "uploadType" Text :>
59− QueryParam "bearer_token" Text :>
60− QueryParam "callback" Text :>
61− QueryParam "alt" AltJSON :> Delete '[JSON] Empty
62−
63−-- | Deletes a ServiceAccount.
64−--
65−-- /See:/ 'projectsServiceAccountsDelete' smart constructor.
66−data ProjectsServiceAccountsDelete = ProjectsServiceAccountsDelete'
67− { _psadXgafv :: !(Maybe Text)
68− , _psadUploadProtocol :: !(Maybe Text)
69− , _psadPp :: !Bool
70− , _psadAccessToken :: !(Maybe Text)
71− , _psadUploadType :: !(Maybe Text)
72− , _psadBearerToken :: !(Maybe Text)
73− , _psadName :: !Text
74− , _psadCallback :: !(Maybe Text)
75− } deriving (Eq,Show,Data,Typeable,Generic)
76−
77−-- | Creates a value of 'ProjectsServiceAccountsDelete' 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−-- * 'psadXgafv'
82−--
83−-- * 'psadUploadProtocol'
84−--
85−-- * 'psadPp'
86−--
87−-- * 'psadAccessToken'
88−--
89−-- * 'psadUploadType'
90−--
91−-- * 'psadBearerToken'
92−--
93−-- * 'psadName'
94−--
95−-- * 'psadCallback'
96−projectsServiceAccountsDelete
97− :: Text -- ^ 'psadName'
98− -> ProjectsServiceAccountsDelete
99−projectsServiceAccountsDelete pPsadName_ =
100− ProjectsServiceAccountsDelete'
101− { _psadXgafv = Nothing
102− , _psadUploadProtocol = Nothing
103− , _psadPp = True
104− , _psadAccessToken = Nothing
105− , _psadUploadType = Nothing
106− , _psadBearerToken = Nothing
107− , _psadName = pPsadName_
108− , _psadCallback = Nothing
109− }
110−
111−-- | V1 error format.
112−psadXgafv :: Lens' ProjectsServiceAccountsDelete (Maybe Text)
113−psadXgafv
114− = lens _psadXgafv (\ s a -> s{_psadXgafv = a})
115−
116−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
117−psadUploadProtocol :: Lens' ProjectsServiceAccountsDelete (Maybe Text)
118−psadUploadProtocol
119− = lens _psadUploadProtocol
120− (\ s a -> s{_psadUploadProtocol = a})
121−
122−-- | Pretty-print response.
123−psadPp :: Lens' ProjectsServiceAccountsDelete Bool
124−psadPp = lens _psadPp (\ s a -> s{_psadPp = a})
125−
126−-- | OAuth access token.
127−psadAccessToken :: Lens' ProjectsServiceAccountsDelete (Maybe Text)
128−psadAccessToken
129− = lens _psadAccessToken
130− (\ s a -> s{_psadAccessToken = a})
131−
132−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
133−psadUploadType :: Lens' ProjectsServiceAccountsDelete (Maybe Text)
134−psadUploadType
135− = lens _psadUploadType
136− (\ s a -> s{_psadUploadType = a})
137−
138−-- | OAuth bearer token.
139−psadBearerToken :: Lens' ProjectsServiceAccountsDelete (Maybe Text)
140−psadBearerToken
141− = lens _psadBearerToken
142− (\ s a -> s{_psadBearerToken = a})
143−
144−-- | The resource name of the service account in the following format:
145−-- \`projects\/{project}\/serviceAccounts\/{account}\`. Using \`-\` as a
146−-- wildcard for the project will infer the project from the account. The
147−-- \`account\` value can be the \`email\` address or the \`unique_id\` of
148−-- the service account.
149−psadName :: Lens' ProjectsServiceAccountsDelete Text
150−psadName = lens _psadName (\ s a -> s{_psadName = a})
151−
152−-- | JSONP
153−psadCallback :: Lens' ProjectsServiceAccountsDelete (Maybe Text)
154−psadCallback
155− = lens _psadCallback (\ s a -> s{_psadCallback = a})
156−
157−instance GoogleRequest ProjectsServiceAccountsDelete
158− where
159− type Rs ProjectsServiceAccountsDelete = Empty
160− type Scopes ProjectsServiceAccountsDelete =
161− '["https://www.googleapis.com/auth/cloud-platform"]
162− requestClient ProjectsServiceAccountsDelete'{..}
163− = go _psadName _psadXgafv _psadUploadProtocol
164− (Just _psadPp)
165− _psadAccessToken
166− _psadUploadType
167− _psadBearerToken
168− _psadCallback
169− (Just AltJSON)
170− knowledgeGraphSearchService
171− where go
172− = buildClient
173− (Proxy ::
174− Proxy ProjectsServiceAccountsDeleteResource)
175− mempty
gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Get.hsdeleted−175
@@ -1,175 +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.IAM.Projects.ServiceAccounts.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Gets a ServiceAccount.
24−--
25−-- /See:/ <https://cloud.google.com/iam/ Google Identity and Access Management (IAM) API Reference> for @iam.projects.serviceAccounts.get@.
26−module Network.Google.Resource.IAM.Projects.ServiceAccounts.Get
27− (
28− -- * REST Resource
29− ProjectsServiceAccountsGetResource
30−
31− -- * Creating a Request
32− , projectsServiceAccountsGet
33− , ProjectsServiceAccountsGet
34−
35− -- * Request Lenses
36− , psagXgafv
37− , psagUploadProtocol
38− , psagPp
39− , psagAccessToken
40− , psagUploadType
41− , psagBearerToken
42− , psagName
43− , psagCallback
44− ) where
45−
46−import Network.Google.KnowledgeGraphSearch.Types
47−import Network.Google.Prelude
48−
49−-- | A resource alias for @iam.projects.serviceAccounts.get@ method which the
50−-- 'ProjectsServiceAccountsGet' request conforms to.
51−type ProjectsServiceAccountsGetResource =
52− "v1" :>
53− Capture "name" Text :>
54− QueryParam "$.xgafv" Text :>
55− QueryParam "upload_protocol" Text :>
56− QueryParam "pp" Bool :>
57− QueryParam "access_token" Text :>
58− QueryParam "uploadType" Text :>
59− QueryParam "bearer_token" Text :>
60− QueryParam "callback" Text :>
61− QueryParam "alt" AltJSON :>
62− Get '[JSON] ServiceAccount
63−
64−-- | Gets a ServiceAccount.
65−--
66−-- /See:/ 'projectsServiceAccountsGet' smart constructor.
67−data ProjectsServiceAccountsGet = ProjectsServiceAccountsGet'
68− { _psagXgafv :: !(Maybe Text)
69− , _psagUploadProtocol :: !(Maybe Text)
70− , _psagPp :: !Bool
71− , _psagAccessToken :: !(Maybe Text)
72− , _psagUploadType :: !(Maybe Text)
73− , _psagBearerToken :: !(Maybe Text)
74− , _psagName :: !Text
75− , _psagCallback :: !(Maybe Text)
76− } deriving (Eq,Show,Data,Typeable,Generic)
77−
78−-- | Creates a value of 'ProjectsServiceAccountsGet' with the minimum fields required to make a request.
79−--
80−-- Use one of the following lenses to modify other fields as desired:
81−--
82−-- * 'psagXgafv'
83−--
84−-- * 'psagUploadProtocol'
85−--
86−-- * 'psagPp'
87−--
88−-- * 'psagAccessToken'
89−--
90−-- * 'psagUploadType'
91−--
92−-- * 'psagBearerToken'
93−--
94−-- * 'psagName'
95−--
96−-- * 'psagCallback'
97−projectsServiceAccountsGet
98− :: Text -- ^ 'psagName'
99− -> ProjectsServiceAccountsGet
100−projectsServiceAccountsGet pPsagName_ =
101− ProjectsServiceAccountsGet'
102− { _psagXgafv = Nothing
103− , _psagUploadProtocol = Nothing
104− , _psagPp = True
105− , _psagAccessToken = Nothing
106− , _psagUploadType = Nothing
107− , _psagBearerToken = Nothing
108− , _psagName = pPsagName_
109− , _psagCallback = Nothing
110− }
111−
112−-- | V1 error format.
113−psagXgafv :: Lens' ProjectsServiceAccountsGet (Maybe Text)
114−psagXgafv
115− = lens _psagXgafv (\ s a -> s{_psagXgafv = a})
116−
117−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
118−psagUploadProtocol :: Lens' ProjectsServiceAccountsGet (Maybe Text)
119−psagUploadProtocol
120− = lens _psagUploadProtocol
121− (\ s a -> s{_psagUploadProtocol = a})
122−
123−-- | Pretty-print response.
124−psagPp :: Lens' ProjectsServiceAccountsGet Bool
125−psagPp = lens _psagPp (\ s a -> s{_psagPp = a})
126−
127−-- | OAuth access token.
128−psagAccessToken :: Lens' ProjectsServiceAccountsGet (Maybe Text)
129−psagAccessToken
130− = lens _psagAccessToken
131− (\ s a -> s{_psagAccessToken = a})
132−
133−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
134−psagUploadType :: Lens' ProjectsServiceAccountsGet (Maybe Text)
135−psagUploadType
136− = lens _psagUploadType
137− (\ s a -> s{_psagUploadType = a})
138−
139−-- | OAuth bearer token.
140−psagBearerToken :: Lens' ProjectsServiceAccountsGet (Maybe Text)
141−psagBearerToken
142− = lens _psagBearerToken
143− (\ s a -> s{_psagBearerToken = a})
144−
145−-- | The resource name of the service account in the following format:
146−-- \`projects\/{project}\/serviceAccounts\/{account}\`. Using \`-\` as a
147−-- wildcard for the project will infer the project from the account. The
148−-- \`account\` value can be the \`email\` address or the \`unique_id\` of
149−-- the service account.
150−psagName :: Lens' ProjectsServiceAccountsGet Text
151−psagName = lens _psagName (\ s a -> s{_psagName = a})
152−
153−-- | JSONP
154−psagCallback :: Lens' ProjectsServiceAccountsGet (Maybe Text)
155−psagCallback
156− = lens _psagCallback (\ s a -> s{_psagCallback = a})
157−
158−instance GoogleRequest ProjectsServiceAccountsGet
159− where
160− type Rs ProjectsServiceAccountsGet = ServiceAccount
161− type Scopes ProjectsServiceAccountsGet =
162− '["https://www.googleapis.com/auth/cloud-platform"]
163− requestClient ProjectsServiceAccountsGet'{..}
164− = go _psagName _psagXgafv _psagUploadProtocol
165− (Just _psagPp)
166− _psagAccessToken
167− _psagUploadType
168− _psagBearerToken
169− _psagCallback
170− (Just AltJSON)
171− knowledgeGraphSearchService
172− where go
173− = buildClient
174− (Proxy :: Proxy ProjectsServiceAccountsGetResource)
175− mempty
gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/GetIAMPolicy.hsdeleted−178
@@ -1,178 +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.IAM.Projects.ServiceAccounts.GetIAMPolicy
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Returns the IAM access control policy for a ServiceAccount.
24−--
25−-- /See:/ <https://cloud.google.com/iam/ Google Identity and Access Management (IAM) API Reference> for @iam.projects.serviceAccounts.getIamPolicy@.
26−module Network.Google.Resource.IAM.Projects.ServiceAccounts.GetIAMPolicy
27− (
28− -- * REST Resource
29− ProjectsServiceAccountsGetIAMPolicyResource
30−
31− -- * Creating a Request
32− , projectsServiceAccountsGetIAMPolicy
33− , ProjectsServiceAccountsGetIAMPolicy
34−
35− -- * Request Lenses
36− , psagipXgafv
37− , psagipUploadProtocol
38− , psagipPp
39− , psagipAccessToken
40− , psagipUploadType
41− , psagipBearerToken
42− , psagipResource
43− , psagipCallback
44− ) where
45−
46−import Network.Google.KnowledgeGraphSearch.Types
47−import Network.Google.Prelude
48−
49−-- | A resource alias for @iam.projects.serviceAccounts.getIamPolicy@ method which the
50−-- 'ProjectsServiceAccountsGetIAMPolicy' request conforms to.
51−type ProjectsServiceAccountsGetIAMPolicyResource =
52− "v1" :>
53− CaptureMode "resource" "getIamPolicy" Text :>
54− QueryParam "$.xgafv" Text :>
55− QueryParam "upload_protocol" Text :>
56− QueryParam "pp" Bool :>
57− QueryParam "access_token" Text :>
58− QueryParam "uploadType" Text :>
59− QueryParam "bearer_token" Text :>
60− QueryParam "callback" Text :>
61− QueryParam "alt" AltJSON :> Post '[JSON] Policy
62−
63−-- | Returns the IAM access control policy for a ServiceAccount.
64−--
65−-- /See:/ 'projectsServiceAccountsGetIAMPolicy' smart constructor.
66−data ProjectsServiceAccountsGetIAMPolicy = ProjectsServiceAccountsGetIAMPolicy'
67− { _psagipXgafv :: !(Maybe Text)
68− , _psagipUploadProtocol :: !(Maybe Text)
69− , _psagipPp :: !Bool
70− , _psagipAccessToken :: !(Maybe Text)
71− , _psagipUploadType :: !(Maybe Text)
72− , _psagipBearerToken :: !(Maybe Text)
73− , _psagipResource :: !Text
74− , _psagipCallback :: !(Maybe Text)
75− } deriving (Eq,Show,Data,Typeable,Generic)
76−
77−-- | Creates a value of 'ProjectsServiceAccountsGetIAMPolicy' 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−-- * 'psagipXgafv'
82−--
83−-- * 'psagipUploadProtocol'
84−--
85−-- * 'psagipPp'
86−--
87−-- * 'psagipAccessToken'
88−--
89−-- * 'psagipUploadType'
90−--
91−-- * 'psagipBearerToken'
92−--
93−-- * 'psagipResource'
94−--
95−-- * 'psagipCallback'
96−projectsServiceAccountsGetIAMPolicy
97− :: Text -- ^ 'psagipResource'
98− -> ProjectsServiceAccountsGetIAMPolicy
99−projectsServiceAccountsGetIAMPolicy pPsagipResource_ =
100− ProjectsServiceAccountsGetIAMPolicy'
101− { _psagipXgafv = Nothing
102− , _psagipUploadProtocol = Nothing
103− , _psagipPp = True
104− , _psagipAccessToken = Nothing
105− , _psagipUploadType = Nothing
106− , _psagipBearerToken = Nothing
107− , _psagipResource = pPsagipResource_
108− , _psagipCallback = Nothing
109− }
110−
111−-- | V1 error format.
112−psagipXgafv :: Lens' ProjectsServiceAccountsGetIAMPolicy (Maybe Text)
113−psagipXgafv
114− = lens _psagipXgafv (\ s a -> s{_psagipXgafv = a})
115−
116−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
117−psagipUploadProtocol :: Lens' ProjectsServiceAccountsGetIAMPolicy (Maybe Text)
118−psagipUploadProtocol
119− = lens _psagipUploadProtocol
120− (\ s a -> s{_psagipUploadProtocol = a})
121−
122−-- | Pretty-print response.
123−psagipPp :: Lens' ProjectsServiceAccountsGetIAMPolicy Bool
124−psagipPp = lens _psagipPp (\ s a -> s{_psagipPp = a})
125−
126−-- | OAuth access token.
127−psagipAccessToken :: Lens' ProjectsServiceAccountsGetIAMPolicy (Maybe Text)
128−psagipAccessToken
129− = lens _psagipAccessToken
130− (\ s a -> s{_psagipAccessToken = a})
131−
132−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
133−psagipUploadType :: Lens' ProjectsServiceAccountsGetIAMPolicy (Maybe Text)
134−psagipUploadType
135− = lens _psagipUploadType
136− (\ s a -> s{_psagipUploadType = a})
137−
138−-- | OAuth bearer token.
139−psagipBearerToken :: Lens' ProjectsServiceAccountsGetIAMPolicy (Maybe Text)
140−psagipBearerToken
141− = lens _psagipBearerToken
142− (\ s a -> s{_psagipBearerToken = a})
143−
144−-- | REQUIRED: The resource for which the policy is being requested.
145−-- \`resource\` is usually specified as a path. For example, a Project
146−-- resource is specified as \`projects\/{project}\`.
147−psagipResource :: Lens' ProjectsServiceAccountsGetIAMPolicy Text
148−psagipResource
149− = lens _psagipResource
150− (\ s a -> s{_psagipResource = a})
151−
152−-- | JSONP
153−psagipCallback :: Lens' ProjectsServiceAccountsGetIAMPolicy (Maybe Text)
154−psagipCallback
155− = lens _psagipCallback
156− (\ s a -> s{_psagipCallback = a})
157−
158−instance GoogleRequest
159− ProjectsServiceAccountsGetIAMPolicy where
160− type Rs ProjectsServiceAccountsGetIAMPolicy = Policy
161− type Scopes ProjectsServiceAccountsGetIAMPolicy =
162− '["https://www.googleapis.com/auth/cloud-platform"]
163− requestClient
164− ProjectsServiceAccountsGetIAMPolicy'{..}
165− = go _psagipResource _psagipXgafv
166− _psagipUploadProtocol
167− (Just _psagipPp)
168− _psagipAccessToken
169− _psagipUploadType
170− _psagipBearerToken
171− _psagipCallback
172− (Just AltJSON)
173− knowledgeGraphSearchService
174− where go
175− = buildClient
176− (Proxy ::
177− Proxy ProjectsServiceAccountsGetIAMPolicyResource)
178− mempty
gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Keys/Create.hsdeleted−193
@@ -1,193 +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.IAM.Projects.ServiceAccounts.Keys.Create
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Creates a ServiceAccountKey and returns it.
24−--
25−-- /See:/ <https://cloud.google.com/iam/ Google Identity and Access Management (IAM) API Reference> for @iam.projects.serviceAccounts.keys.create@.
26−module Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.Create
27− (
28− -- * REST Resource
29− ProjectsServiceAccountsKeysCreateResource
30−
31− -- * Creating a Request
32− , projectsServiceAccountsKeysCreate
33− , ProjectsServiceAccountsKeysCreate
34−
35− -- * Request Lenses
36− , psakcXgafv
37− , psakcUploadProtocol
38− , psakcPp
39− , psakcAccessToken
40− , psakcUploadType
41− , psakcPayload
42− , psakcBearerToken
43− , psakcName
44− , psakcCallback
45− ) where
46−
47−import Network.Google.KnowledgeGraphSearch.Types
48−import Network.Google.Prelude
49−
50−-- | A resource alias for @iam.projects.serviceAccounts.keys.create@ method which the
51−-- 'ProjectsServiceAccountsKeysCreate' request conforms to.
52−type ProjectsServiceAccountsKeysCreateResource =
53− "v1" :>
54− Capture "name" Text :>
55− "keys" :>
56− QueryParam "$.xgafv" Text :>
57− QueryParam "upload_protocol" Text :>
58− QueryParam "pp" Bool :>
59− QueryParam "access_token" Text :>
60− QueryParam "uploadType" Text :>
61− QueryParam "bearer_token" Text :>
62− QueryParam "callback" Text :>
63− QueryParam "alt" AltJSON :>
64− ReqBody '[JSON] CreateServiceAccountKeyRequest :>
65− Post '[JSON] ServiceAccountKey
66−
67−-- | Creates a ServiceAccountKey and returns it.
68−--
69−-- /See:/ 'projectsServiceAccountsKeysCreate' smart constructor.
70−data ProjectsServiceAccountsKeysCreate = ProjectsServiceAccountsKeysCreate'
71− { _psakcXgafv :: !(Maybe Text)
72− , _psakcUploadProtocol :: !(Maybe Text)
73− , _psakcPp :: !Bool
74− , _psakcAccessToken :: !(Maybe Text)
75− , _psakcUploadType :: !(Maybe Text)
76− , _psakcPayload :: !CreateServiceAccountKeyRequest
77− , _psakcBearerToken :: !(Maybe Text)
78− , _psakcName :: !Text
79− , _psakcCallback :: !(Maybe Text)
80− } deriving (Eq,Show,Data,Typeable,Generic)
81−
82−-- | Creates a value of 'ProjectsServiceAccountsKeysCreate' 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−-- * 'psakcXgafv'
87−--
88−-- * 'psakcUploadProtocol'
89−--
90−-- * 'psakcPp'
91−--
92−-- * 'psakcAccessToken'
93−--
94−-- * 'psakcUploadType'
95−--
96−-- * 'psakcPayload'
97−--
98−-- * 'psakcBearerToken'
99−--
100−-- * 'psakcName'
101−--
102−-- * 'psakcCallback'
103−projectsServiceAccountsKeysCreate
104− :: CreateServiceAccountKeyRequest -- ^ 'psakcPayload'
105− -> Text -- ^ 'psakcName'
106− -> ProjectsServiceAccountsKeysCreate
107−projectsServiceAccountsKeysCreate pPsakcPayload_ pPsakcName_ =
108− ProjectsServiceAccountsKeysCreate'
109− { _psakcXgafv = Nothing
110− , _psakcUploadProtocol = Nothing
111− , _psakcPp = True
112− , _psakcAccessToken = Nothing
113− , _psakcUploadType = Nothing
114− , _psakcPayload = pPsakcPayload_
115− , _psakcBearerToken = Nothing
116− , _psakcName = pPsakcName_
117− , _psakcCallback = Nothing
118− }
119−
120−-- | V1 error format.
121−psakcXgafv :: Lens' ProjectsServiceAccountsKeysCreate (Maybe Text)
122−psakcXgafv
123− = lens _psakcXgafv (\ s a -> s{_psakcXgafv = a})
124−
125−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
126−psakcUploadProtocol :: Lens' ProjectsServiceAccountsKeysCreate (Maybe Text)
127−psakcUploadProtocol
128− = lens _psakcUploadProtocol
129− (\ s a -> s{_psakcUploadProtocol = a})
130−
131−-- | Pretty-print response.
132−psakcPp :: Lens' ProjectsServiceAccountsKeysCreate Bool
133−psakcPp = lens _psakcPp (\ s a -> s{_psakcPp = a})
134−
135−-- | OAuth access token.
136−psakcAccessToken :: Lens' ProjectsServiceAccountsKeysCreate (Maybe Text)
137−psakcAccessToken
138− = lens _psakcAccessToken
139− (\ s a -> s{_psakcAccessToken = a})
140−
141−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
142−psakcUploadType :: Lens' ProjectsServiceAccountsKeysCreate (Maybe Text)
143−psakcUploadType
144− = lens _psakcUploadType
145− (\ s a -> s{_psakcUploadType = a})
146−
147−-- | Multipart request metadata.
148−psakcPayload :: Lens' ProjectsServiceAccountsKeysCreate CreateServiceAccountKeyRequest
149−psakcPayload
150− = lens _psakcPayload (\ s a -> s{_psakcPayload = a})
151−
152−-- | OAuth bearer token.
153−psakcBearerToken :: Lens' ProjectsServiceAccountsKeysCreate (Maybe Text)
154−psakcBearerToken
155− = lens _psakcBearerToken
156− (\ s a -> s{_psakcBearerToken = a})
157−
158−-- | The resource name of the service account in the following format:
159−-- \`projects\/{project}\/serviceAccounts\/{account}\`. Using \`-\` as a
160−-- wildcard for the project will infer the project from the account. The
161−-- \`account\` value can be the \`email\` address or the \`unique_id\` of
162−-- the service account.
163−psakcName :: Lens' ProjectsServiceAccountsKeysCreate Text
164−psakcName
165− = lens _psakcName (\ s a -> s{_psakcName = a})
166−
167−-- | JSONP
168−psakcCallback :: Lens' ProjectsServiceAccountsKeysCreate (Maybe Text)
169−psakcCallback
170− = lens _psakcCallback
171− (\ s a -> s{_psakcCallback = a})
172−
173−instance GoogleRequest
174− ProjectsServiceAccountsKeysCreate where
175− type Rs ProjectsServiceAccountsKeysCreate =
176− ServiceAccountKey
177− type Scopes ProjectsServiceAccountsKeysCreate =
178− '["https://www.googleapis.com/auth/cloud-platform"]
179− requestClient ProjectsServiceAccountsKeysCreate'{..}
180− = go _psakcName _psakcXgafv _psakcUploadProtocol
181− (Just _psakcPp)
182− _psakcAccessToken
183− _psakcUploadType
184− _psakcBearerToken
185− _psakcCallback
186− (Just AltJSON)
187− _psakcPayload
188− knowledgeGraphSearchService
189− where go
190− = buildClient
191− (Proxy ::
192− Proxy ProjectsServiceAccountsKeysCreateResource)
193− mempty
gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Keys/Delete.hsdeleted−177
@@ -1,177 +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.IAM.Projects.ServiceAccounts.Keys.Delete
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Deletes a ServiceAccountKey.
24−--
25−-- /See:/ <https://cloud.google.com/iam/ Google Identity and Access Management (IAM) API Reference> for @iam.projects.serviceAccounts.keys.delete@.
26−module Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.Delete
27− (
28− -- * REST Resource
29− ProjectsServiceAccountsKeysDeleteResource
30−
31− -- * Creating a Request
32− , projectsServiceAccountsKeysDelete
33− , ProjectsServiceAccountsKeysDelete
34−
35− -- * Request Lenses
36− , psakdXgafv
37− , psakdUploadProtocol
38− , psakdPp
39− , psakdAccessToken
40− , psakdUploadType
41− , psakdBearerToken
42− , psakdName
43− , psakdCallback
44− ) where
45−
46−import Network.Google.KnowledgeGraphSearch.Types
47−import Network.Google.Prelude
48−
49−-- | A resource alias for @iam.projects.serviceAccounts.keys.delete@ method which the
50−-- 'ProjectsServiceAccountsKeysDelete' request conforms to.
51−type ProjectsServiceAccountsKeysDeleteResource =
52− "v1" :>
53− Capture "name" Text :>
54− QueryParam "$.xgafv" Text :>
55− QueryParam "upload_protocol" Text :>
56− QueryParam "pp" Bool :>
57− QueryParam "access_token" Text :>
58− QueryParam "uploadType" Text :>
59− QueryParam "bearer_token" Text :>
60− QueryParam "callback" Text :>
61− QueryParam "alt" AltJSON :> Delete '[JSON] Empty
62−
63−-- | Deletes a ServiceAccountKey.
64−--
65−-- /See:/ 'projectsServiceAccountsKeysDelete' smart constructor.
66−data ProjectsServiceAccountsKeysDelete = ProjectsServiceAccountsKeysDelete'
67− { _psakdXgafv :: !(Maybe Text)
68− , _psakdUploadProtocol :: !(Maybe Text)
69− , _psakdPp :: !Bool
70− , _psakdAccessToken :: !(Maybe Text)
71− , _psakdUploadType :: !(Maybe Text)
72− , _psakdBearerToken :: !(Maybe Text)
73− , _psakdName :: !Text
74− , _psakdCallback :: !(Maybe Text)
75− } deriving (Eq,Show,Data,Typeable,Generic)
76−
77−-- | Creates a value of 'ProjectsServiceAccountsKeysDelete' 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−-- * 'psakdXgafv'
82−--
83−-- * 'psakdUploadProtocol'
84−--
85−-- * 'psakdPp'
86−--
87−-- * 'psakdAccessToken'
88−--
89−-- * 'psakdUploadType'
90−--
91−-- * 'psakdBearerToken'
92−--
93−-- * 'psakdName'
94−--
95−-- * 'psakdCallback'
96−projectsServiceAccountsKeysDelete
97− :: Text -- ^ 'psakdName'
98− -> ProjectsServiceAccountsKeysDelete
99−projectsServiceAccountsKeysDelete pPsakdName_ =
100− ProjectsServiceAccountsKeysDelete'
101− { _psakdXgafv = Nothing
102− , _psakdUploadProtocol = Nothing
103− , _psakdPp = True
104− , _psakdAccessToken = Nothing
105− , _psakdUploadType = Nothing
106− , _psakdBearerToken = Nothing
107− , _psakdName = pPsakdName_
108− , _psakdCallback = Nothing
109− }
110−
111−-- | V1 error format.
112−psakdXgafv :: Lens' ProjectsServiceAccountsKeysDelete (Maybe Text)
113−psakdXgafv
114− = lens _psakdXgafv (\ s a -> s{_psakdXgafv = a})
115−
116−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
117−psakdUploadProtocol :: Lens' ProjectsServiceAccountsKeysDelete (Maybe Text)
118−psakdUploadProtocol
119− = lens _psakdUploadProtocol
120− (\ s a -> s{_psakdUploadProtocol = a})
121−
122−-- | Pretty-print response.
123−psakdPp :: Lens' ProjectsServiceAccountsKeysDelete Bool
124−psakdPp = lens _psakdPp (\ s a -> s{_psakdPp = a})
125−
126−-- | OAuth access token.
127−psakdAccessToken :: Lens' ProjectsServiceAccountsKeysDelete (Maybe Text)
128−psakdAccessToken
129− = lens _psakdAccessToken
130− (\ s a -> s{_psakdAccessToken = a})
131−
132−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
133−psakdUploadType :: Lens' ProjectsServiceAccountsKeysDelete (Maybe Text)
134−psakdUploadType
135− = lens _psakdUploadType
136− (\ s a -> s{_psakdUploadType = a})
137−
138−-- | OAuth bearer token.
139−psakdBearerToken :: Lens' ProjectsServiceAccountsKeysDelete (Maybe Text)
140−psakdBearerToken
141− = lens _psakdBearerToken
142− (\ s a -> s{_psakdBearerToken = a})
143−
144−-- | The resource name of the service account key in the following format:
145−-- \`projects\/{project}\/serviceAccounts\/{account}\/keys\/{key}\`. Using
146−-- \`-\` as a wildcard for the project will infer the project from the
147−-- account. The \`account\` value can be the \`email\` address or the
148−-- \`unique_id\` of the service account.
149−psakdName :: Lens' ProjectsServiceAccountsKeysDelete Text
150−psakdName
151− = lens _psakdName (\ s a -> s{_psakdName = a})
152−
153−-- | JSONP
154−psakdCallback :: Lens' ProjectsServiceAccountsKeysDelete (Maybe Text)
155−psakdCallback
156− = lens _psakdCallback
157− (\ s a -> s{_psakdCallback = a})
158−
159−instance GoogleRequest
160− ProjectsServiceAccountsKeysDelete where
161− type Rs ProjectsServiceAccountsKeysDelete = Empty
162− type Scopes ProjectsServiceAccountsKeysDelete =
163− '["https://www.googleapis.com/auth/cloud-platform"]
164− requestClient ProjectsServiceAccountsKeysDelete'{..}
165− = go _psakdName _psakdXgafv _psakdUploadProtocol
166− (Just _psakdPp)
167− _psakdAccessToken
168− _psakdUploadType
169− _psakdBearerToken
170− _psakdCallback
171− (Just AltJSON)
172− knowledgeGraphSearchService
173− where go
174− = buildClient
175− (Proxy ::
176− Proxy ProjectsServiceAccountsKeysDeleteResource)
177− mempty
gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Keys/Get.hsdeleted−193
@@ -1,193 +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.IAM.Projects.ServiceAccounts.Keys.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Gets the ServiceAccountKey by key id.
24−--
25−-- /See:/ <https://cloud.google.com/iam/ Google Identity and Access Management (IAM) API Reference> for @iam.projects.serviceAccounts.keys.get@.
26−module Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.Get
27− (
28− -- * REST Resource
29− ProjectsServiceAccountsKeysGetResource
30−
31− -- * Creating a Request
32− , projectsServiceAccountsKeysGet
33− , ProjectsServiceAccountsKeysGet
34−
35− -- * Request Lenses
36− , psakgXgafv
37− , psakgUploadProtocol
38− , psakgPp
39− , psakgAccessToken
40− , psakgUploadType
41− , psakgBearerToken
42− , psakgName
43− , psakgPublicKeyType
44− , psakgCallback
45− ) where
46−
47−import Network.Google.KnowledgeGraphSearch.Types
48−import Network.Google.Prelude
49−
50−-- | A resource alias for @iam.projects.serviceAccounts.keys.get@ method which the
51−-- 'ProjectsServiceAccountsKeysGet' request conforms to.
52−type ProjectsServiceAccountsKeysGetResource =
53− "v1" :>
54− Capture "name" Text :>
55− QueryParam "$.xgafv" Text :>
56− QueryParam "upload_protocol" Text :>
57− QueryParam "pp" Bool :>
58− QueryParam "access_token" Text :>
59− QueryParam "uploadType" Text :>
60− QueryParam "bearer_token" Text :>
61− QueryParam "publicKeyType" Text :>
62− QueryParam "callback" Text :>
63− QueryParam "alt" AltJSON :>
64− Get '[JSON] ServiceAccountKey
65−
66−-- | Gets the ServiceAccountKey by key id.
67−--
68−-- /See:/ 'projectsServiceAccountsKeysGet' smart constructor.
69−data ProjectsServiceAccountsKeysGet = ProjectsServiceAccountsKeysGet'
70− { _psakgXgafv :: !(Maybe Text)
71− , _psakgUploadProtocol :: !(Maybe Text)
72− , _psakgPp :: !Bool
73− , _psakgAccessToken :: !(Maybe Text)
74− , _psakgUploadType :: !(Maybe Text)
75− , _psakgBearerToken :: !(Maybe Text)
76− , _psakgName :: !Text
77− , _psakgPublicKeyType :: !(Maybe Text)
78− , _psakgCallback :: !(Maybe Text)
79− } deriving (Eq,Show,Data,Typeable,Generic)
80−
81−-- | Creates a value of 'ProjectsServiceAccountsKeysGet' 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−-- * 'psakgXgafv'
86−--
87−-- * 'psakgUploadProtocol'
88−--
89−-- * 'psakgPp'
90−--
91−-- * 'psakgAccessToken'
92−--
93−-- * 'psakgUploadType'
94−--
95−-- * 'psakgBearerToken'
96−--
97−-- * 'psakgName'
98−--
99−-- * 'psakgPublicKeyType'
100−--
101−-- * 'psakgCallback'
102−projectsServiceAccountsKeysGet
103− :: Text -- ^ 'psakgName'
104− -> ProjectsServiceAccountsKeysGet
105−projectsServiceAccountsKeysGet pPsakgName_ =
106− ProjectsServiceAccountsKeysGet'
107− { _psakgXgafv = Nothing
108− , _psakgUploadProtocol = Nothing
109− , _psakgPp = True
110− , _psakgAccessToken = Nothing
111− , _psakgUploadType = Nothing
112− , _psakgBearerToken = Nothing
113− , _psakgName = pPsakgName_
114− , _psakgPublicKeyType = Nothing
115− , _psakgCallback = Nothing
116− }
117−
118−-- | V1 error format.
119−psakgXgafv :: Lens' ProjectsServiceAccountsKeysGet (Maybe Text)
120−psakgXgafv
121− = lens _psakgXgafv (\ s a -> s{_psakgXgafv = a})
122−
123−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
124−psakgUploadProtocol :: Lens' ProjectsServiceAccountsKeysGet (Maybe Text)
125−psakgUploadProtocol
126− = lens _psakgUploadProtocol
127− (\ s a -> s{_psakgUploadProtocol = a})
128−
129−-- | Pretty-print response.
130−psakgPp :: Lens' ProjectsServiceAccountsKeysGet Bool
131−psakgPp = lens _psakgPp (\ s a -> s{_psakgPp = a})
132−
133−-- | OAuth access token.
134−psakgAccessToken :: Lens' ProjectsServiceAccountsKeysGet (Maybe Text)
135−psakgAccessToken
136− = lens _psakgAccessToken
137− (\ s a -> s{_psakgAccessToken = a})
138−
139−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
140−psakgUploadType :: Lens' ProjectsServiceAccountsKeysGet (Maybe Text)
141−psakgUploadType
142− = lens _psakgUploadType
143− (\ s a -> s{_psakgUploadType = a})
144−
145−-- | OAuth bearer token.
146−psakgBearerToken :: Lens' ProjectsServiceAccountsKeysGet (Maybe Text)
147−psakgBearerToken
148− = lens _psakgBearerToken
149− (\ s a -> s{_psakgBearerToken = a})
150−
151−-- | The resource name of the service account key in the following format:
152−-- \`projects\/{project}\/serviceAccounts\/{account}\/keys\/{key}\`. Using
153−-- \`-\` as a wildcard for the project will infer the project from the
154−-- account. The \`account\` value can be the \`email\` address or the
155−-- \`unique_id\` of the service account.
156−psakgName :: Lens' ProjectsServiceAccountsKeysGet Text
157−psakgName
158− = lens _psakgName (\ s a -> s{_psakgName = a})
159−
160−-- | The output format of the public key requested. X509_PEM is the default
161−-- output format.
162−psakgPublicKeyType :: Lens' ProjectsServiceAccountsKeysGet (Maybe Text)
163−psakgPublicKeyType
164− = lens _psakgPublicKeyType
165− (\ s a -> s{_psakgPublicKeyType = a})
166−
167−-- | JSONP
168−psakgCallback :: Lens' ProjectsServiceAccountsKeysGet (Maybe Text)
169−psakgCallback
170− = lens _psakgCallback
171− (\ s a -> s{_psakgCallback = a})
172−
173−instance GoogleRequest ProjectsServiceAccountsKeysGet
174− where
175− type Rs ProjectsServiceAccountsKeysGet =
176− ServiceAccountKey
177− type Scopes ProjectsServiceAccountsKeysGet =
178− '["https://www.googleapis.com/auth/cloud-platform"]
179− requestClient ProjectsServiceAccountsKeysGet'{..}
180− = go _psakgName _psakgXgafv _psakgUploadProtocol
181− (Just _psakgPp)
182− _psakgAccessToken
183− _psakgUploadType
184− _psakgBearerToken
185− _psakgPublicKeyType
186− _psakgCallback
187− (Just AltJSON)
188− knowledgeGraphSearchService
189− where go
190− = buildClient
191− (Proxy ::
192− Proxy ProjectsServiceAccountsKeysGetResource)
193− mempty
gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Keys/List.hsdeleted−198
@@ -1,198 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.List
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Lists ServiceAccountKeys.
24−--
25−-- /See:/ <https://cloud.google.com/iam/ Google Identity and Access Management (IAM) API Reference> for @iam.projects.serviceAccounts.keys.list@.
26−module Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.List
27− (
28− -- * REST Resource
29− ProjectsServiceAccountsKeysListResource
30−
31− -- * Creating a Request
32− , projectsServiceAccountsKeysList
33− , ProjectsServiceAccountsKeysList
34−
35− -- * Request Lenses
36− , psaklKeyTypes
37− , psaklXgafv
38− , psaklUploadProtocol
39− , psaklPp
40− , psaklAccessToken
41− , psaklUploadType
42− , psaklBearerToken
43− , psaklName
44− , psaklCallback
45− ) where
46−
47−import Network.Google.KnowledgeGraphSearch.Types
48−import Network.Google.Prelude
49−
50−-- | A resource alias for @iam.projects.serviceAccounts.keys.list@ method which the
51−-- 'ProjectsServiceAccountsKeysList' request conforms to.
52−type ProjectsServiceAccountsKeysListResource =
53− "v1" :>
54− Capture "name" Text :>
55− "keys" :>
56− QueryParams "keyTypes" Text :>
57− QueryParam "$.xgafv" Text :>
58− QueryParam "upload_protocol" Text :>
59− QueryParam "pp" Bool :>
60− QueryParam "access_token" Text :>
61− QueryParam "uploadType" Text :>
62− QueryParam "bearer_token" Text :>
63− QueryParam "callback" Text :>
64− QueryParam "alt" AltJSON :>
65− Get '[JSON] ListServiceAccountKeysResponse
66−
67−-- | Lists ServiceAccountKeys.
68−--
69−-- /See:/ 'projectsServiceAccountsKeysList' smart constructor.
70−data ProjectsServiceAccountsKeysList = ProjectsServiceAccountsKeysList'
71− { _psaklKeyTypes :: !(Maybe [Text])
72− , _psaklXgafv :: !(Maybe Text)
73− , _psaklUploadProtocol :: !(Maybe Text)
74− , _psaklPp :: !Bool
75− , _psaklAccessToken :: !(Maybe Text)
76− , _psaklUploadType :: !(Maybe Text)
77− , _psaklBearerToken :: !(Maybe Text)
78− , _psaklName :: !Text
79− , _psaklCallback :: !(Maybe Text)
80− } deriving (Eq,Show,Data,Typeable,Generic)
81−
82−-- | Creates a value of 'ProjectsServiceAccountsKeysList' 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−-- * 'psaklKeyTypes'
87−--
88−-- * 'psaklXgafv'
89−--
90−-- * 'psaklUploadProtocol'
91−--
92−-- * 'psaklPp'
93−--
94−-- * 'psaklAccessToken'
95−--
96−-- * 'psaklUploadType'
97−--
98−-- * 'psaklBearerToken'
99−--
100−-- * 'psaklName'
101−--
102−-- * 'psaklCallback'
103−projectsServiceAccountsKeysList
104− :: Text -- ^ 'psaklName'
105− -> ProjectsServiceAccountsKeysList
106−projectsServiceAccountsKeysList pPsaklName_ =
107− ProjectsServiceAccountsKeysList'
108− { _psaklKeyTypes = Nothing
109− , _psaklXgafv = Nothing
110− , _psaklUploadProtocol = Nothing
111− , _psaklPp = True
112− , _psaklAccessToken = Nothing
113− , _psaklUploadType = Nothing
114− , _psaklBearerToken = Nothing
115− , _psaklName = pPsaklName_
116− , _psaklCallback = Nothing
117− }
118−
119−-- | Filters the types of keys the user wants to include in the list
120−-- response. Duplicate key types are not allowed. If no key type is
121−-- provided, all keys are returned.
122−psaklKeyTypes :: Lens' ProjectsServiceAccountsKeysList [Text]
123−psaklKeyTypes
124− = lens _psaklKeyTypes
125− (\ s a -> s{_psaklKeyTypes = a})
126− . _Default
127− . _Coerce
128−
129−-- | V1 error format.
130−psaklXgafv :: Lens' ProjectsServiceAccountsKeysList (Maybe Text)
131−psaklXgafv
132− = lens _psaklXgafv (\ s a -> s{_psaklXgafv = a})
133−
134−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
135−psaklUploadProtocol :: Lens' ProjectsServiceAccountsKeysList (Maybe Text)
136−psaklUploadProtocol
137− = lens _psaklUploadProtocol
138− (\ s a -> s{_psaklUploadProtocol = a})
139−
140−-- | Pretty-print response.
141−psaklPp :: Lens' ProjectsServiceAccountsKeysList Bool
142−psaklPp = lens _psaklPp (\ s a -> s{_psaklPp = a})
143−
144−-- | OAuth access token.
145−psaklAccessToken :: Lens' ProjectsServiceAccountsKeysList (Maybe Text)
146−psaklAccessToken
147− = lens _psaklAccessToken
148− (\ s a -> s{_psaklAccessToken = a})
149−
150−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
151−psaklUploadType :: Lens' ProjectsServiceAccountsKeysList (Maybe Text)
152−psaklUploadType
153− = lens _psaklUploadType
154− (\ s a -> s{_psaklUploadType = a})
155−
156−-- | OAuth bearer token.
157−psaklBearerToken :: Lens' ProjectsServiceAccountsKeysList (Maybe Text)
158−psaklBearerToken
159− = lens _psaklBearerToken
160− (\ s a -> s{_psaklBearerToken = a})
161−
162−-- | The resource name of the service account in the following format:
163−-- \`projects\/{project}\/serviceAccounts\/{account}\`. Using \`-\` as a
164−-- wildcard for the project, will infer the project from the account. The
165−-- \`account\` value can be the \`email\` address or the \`unique_id\` of
166−-- the service account.
167−psaklName :: Lens' ProjectsServiceAccountsKeysList Text
168−psaklName
169− = lens _psaklName (\ s a -> s{_psaklName = a})
170−
171−-- | JSONP
172−psaklCallback :: Lens' ProjectsServiceAccountsKeysList (Maybe Text)
173−psaklCallback
174− = lens _psaklCallback
175− (\ s a -> s{_psaklCallback = a})
176−
177−instance GoogleRequest
178− ProjectsServiceAccountsKeysList where
179− type Rs ProjectsServiceAccountsKeysList =
180− ListServiceAccountKeysResponse
181− type Scopes ProjectsServiceAccountsKeysList =
182− '["https://www.googleapis.com/auth/cloud-platform"]
183− requestClient ProjectsServiceAccountsKeysList'{..}
184− = go _psaklName (_psaklKeyTypes ^. _Default)
185− _psaklXgafv
186− _psaklUploadProtocol
187− (Just _psaklPp)
188− _psaklAccessToken
189− _psaklUploadType
190− _psaklBearerToken
191− _psaklCallback
192− (Just AltJSON)
193− knowledgeGraphSearchService
194− where go
195− = buildClient
196− (Proxy ::
197− Proxy ProjectsServiceAccountsKeysListResource)
198− mempty
gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/List.hsdeleted−203
@@ -1,203 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.IAM.Projects.ServiceAccounts.List
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Lists ServiceAccounts for a project.
24−--
25−-- /See:/ <https://cloud.google.com/iam/ Google Identity and Access Management (IAM) API Reference> for @iam.projects.serviceAccounts.list@.
26−module Network.Google.Resource.IAM.Projects.ServiceAccounts.List
27− (
28− -- * REST Resource
29− ProjectsServiceAccountsListResource
30−
31− -- * Creating a Request
32− , projectsServiceAccountsList
33− , ProjectsServiceAccountsList
34−
35− -- * Request Lenses
36− , psalXgafv
37− , psalUploadProtocol
38− , psalPp
39− , psalAccessToken
40− , psalUploadType
41− , psalBearerToken
42− , psalName
43− , psalPageToken
44− , psalPageSize
45− , psalCallback
46− ) where
47−
48−import Network.Google.KnowledgeGraphSearch.Types
49−import Network.Google.Prelude
50−
51−-- | A resource alias for @iam.projects.serviceAccounts.list@ method which the
52−-- 'ProjectsServiceAccountsList' request conforms to.
53−type ProjectsServiceAccountsListResource =
54− "v1" :>
55− Capture "name" Text :>
56− "serviceAccounts" :>
57− QueryParam "$.xgafv" Text :>
58− QueryParam "upload_protocol" Text :>
59− QueryParam "pp" Bool :>
60− QueryParam "access_token" Text :>
61− QueryParam "uploadType" Text :>
62− QueryParam "bearer_token" Text :>
63− QueryParam "pageToken" Text :>
64− QueryParam "pageSize" (Textual Int32) :>
65− QueryParam "callback" Text :>
66− QueryParam "alt" AltJSON :>
67− Get '[JSON] ListServiceAccountsResponse
68−
69−-- | Lists ServiceAccounts for a project.
70−--
71−-- /See:/ 'projectsServiceAccountsList' smart constructor.
72−data ProjectsServiceAccountsList = ProjectsServiceAccountsList'
73− { _psalXgafv :: !(Maybe Text)
74− , _psalUploadProtocol :: !(Maybe Text)
75− , _psalPp :: !Bool
76− , _psalAccessToken :: !(Maybe Text)
77− , _psalUploadType :: !(Maybe Text)
78− , _psalBearerToken :: !(Maybe Text)
79− , _psalName :: !Text
80− , _psalPageToken :: !(Maybe Text)
81− , _psalPageSize :: !(Maybe (Textual Int32))
82− , _psalCallback :: !(Maybe Text)
83− } deriving (Eq,Show,Data,Typeable,Generic)
84−
85−-- | Creates a value of 'ProjectsServiceAccountsList' 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−-- * 'psalXgafv'
90−--
91−-- * 'psalUploadProtocol'
92−--
93−-- * 'psalPp'
94−--
95−-- * 'psalAccessToken'
96−--
97−-- * 'psalUploadType'
98−--
99−-- * 'psalBearerToken'
100−--
101−-- * 'psalName'
102−--
103−-- * 'psalPageToken'
104−--
105−-- * 'psalPageSize'
106−--
107−-- * 'psalCallback'
108−projectsServiceAccountsList
109− :: Text -- ^ 'psalName'
110− -> ProjectsServiceAccountsList
111−projectsServiceAccountsList pPsalName_ =
112− ProjectsServiceAccountsList'
113− { _psalXgafv = Nothing
114− , _psalUploadProtocol = Nothing
115− , _psalPp = True
116− , _psalAccessToken = Nothing
117− , _psalUploadType = Nothing
118− , _psalBearerToken = Nothing
119− , _psalName = pPsalName_
120− , _psalPageToken = Nothing
121− , _psalPageSize = Nothing
122− , _psalCallback = Nothing
123− }
124−
125−-- | V1 error format.
126−psalXgafv :: Lens' ProjectsServiceAccountsList (Maybe Text)
127−psalXgafv
128− = lens _psalXgafv (\ s a -> s{_psalXgafv = a})
129−
130−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
131−psalUploadProtocol :: Lens' ProjectsServiceAccountsList (Maybe Text)
132−psalUploadProtocol
133− = lens _psalUploadProtocol
134− (\ s a -> s{_psalUploadProtocol = a})
135−
136−-- | Pretty-print response.
137−psalPp :: Lens' ProjectsServiceAccountsList Bool
138−psalPp = lens _psalPp (\ s a -> s{_psalPp = a})
139−
140−-- | OAuth access token.
141−psalAccessToken :: Lens' ProjectsServiceAccountsList (Maybe Text)
142−psalAccessToken
143− = lens _psalAccessToken
144− (\ s a -> s{_psalAccessToken = a})
145−
146−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
147−psalUploadType :: Lens' ProjectsServiceAccountsList (Maybe Text)
148−psalUploadType
149− = lens _psalUploadType
150− (\ s a -> s{_psalUploadType = a})
151−
152−-- | OAuth bearer token.
153−psalBearerToken :: Lens' ProjectsServiceAccountsList (Maybe Text)
154−psalBearerToken
155− = lens _psalBearerToken
156− (\ s a -> s{_psalBearerToken = a})
157−
158−-- | Required. The resource name of the project associated with the service
159−-- accounts, such as \`projects\/my-project-123\`.
160−psalName :: Lens' ProjectsServiceAccountsList Text
161−psalName = lens _psalName (\ s a -> s{_psalName = a})
162−
163−-- | Optional pagination token returned in an earlier
164−-- ListServiceAccountsResponse.next_page_token.
165−psalPageToken :: Lens' ProjectsServiceAccountsList (Maybe Text)
166−psalPageToken
167− = lens _psalPageToken
168− (\ s a -> s{_psalPageToken = a})
169−
170−-- | Optional limit on the number of service accounts to include in the
171−-- response. Further accounts can subsequently be obtained by including the
172−-- ListServiceAccountsResponse.next_page_token in a subsequent request.
173−psalPageSize :: Lens' ProjectsServiceAccountsList (Maybe Int32)
174−psalPageSize
175− = lens _psalPageSize (\ s a -> s{_psalPageSize = a})
176− . mapping _Coerce
177−
178−-- | JSONP
179−psalCallback :: Lens' ProjectsServiceAccountsList (Maybe Text)
180−psalCallback
181− = lens _psalCallback (\ s a -> s{_psalCallback = a})
182−
183−instance GoogleRequest ProjectsServiceAccountsList
184− where
185− type Rs ProjectsServiceAccountsList =
186− ListServiceAccountsResponse
187− type Scopes ProjectsServiceAccountsList =
188− '["https://www.googleapis.com/auth/cloud-platform"]
189− requestClient ProjectsServiceAccountsList'{..}
190− = go _psalName _psalXgafv _psalUploadProtocol
191− (Just _psalPp)
192− _psalAccessToken
193− _psalUploadType
194− _psalBearerToken
195− _psalPageToken
196− _psalPageSize
197− _psalCallback
198− (Just AltJSON)
199− knowledgeGraphSearchService
200− where go
201− = buildClient
202− (Proxy :: Proxy ProjectsServiceAccountsListResource)
203− mempty
gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/SetIAMPolicy.hsdeleted−193
@@ -1,193 +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.IAM.Projects.ServiceAccounts.SetIAMPolicy
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Sets the IAM access control policy for a ServiceAccount.
24−--
25−-- /See:/ <https://cloud.google.com/iam/ Google Identity and Access Management (IAM) API Reference> for @iam.projects.serviceAccounts.setIamPolicy@.
26−module Network.Google.Resource.IAM.Projects.ServiceAccounts.SetIAMPolicy
27− (
28− -- * REST Resource
29− ProjectsServiceAccountsSetIAMPolicyResource
30−
31− -- * Creating a Request
32− , projectsServiceAccountsSetIAMPolicy
33− , ProjectsServiceAccountsSetIAMPolicy
34−
35− -- * Request Lenses
36− , psasipXgafv
37− , psasipUploadProtocol
38− , psasipPp
39− , psasipAccessToken
40− , psasipUploadType
41− , psasipPayload
42− , psasipBearerToken
43− , psasipResource
44− , psasipCallback
45− ) where
46−
47−import Network.Google.KnowledgeGraphSearch.Types
48−import Network.Google.Prelude
49−
50−-- | A resource alias for @iam.projects.serviceAccounts.setIamPolicy@ method which the
51−-- 'ProjectsServiceAccountsSetIAMPolicy' request conforms to.
52−type ProjectsServiceAccountsSetIAMPolicyResource =
53− "v1" :>
54− CaptureMode "resource" "setIamPolicy" Text :>
55− QueryParam "$.xgafv" Text :>
56− QueryParam "upload_protocol" Text :>
57− QueryParam "pp" Bool :>
58− QueryParam "access_token" Text :>
59− QueryParam "uploadType" Text :>
60− QueryParam "bearer_token" Text :>
61− QueryParam "callback" Text :>
62− QueryParam "alt" AltJSON :>
63− ReqBody '[JSON] SetIAMPolicyRequest :>
64− Post '[JSON] Policy
65−
66−-- | Sets the IAM access control policy for a ServiceAccount.
67−--
68−-- /See:/ 'projectsServiceAccountsSetIAMPolicy' smart constructor.
69−data ProjectsServiceAccountsSetIAMPolicy = ProjectsServiceAccountsSetIAMPolicy'
70− { _psasipXgafv :: !(Maybe Text)
71− , _psasipUploadProtocol :: !(Maybe Text)
72− , _psasipPp :: !Bool
73− , _psasipAccessToken :: !(Maybe Text)
74− , _psasipUploadType :: !(Maybe Text)
75− , _psasipPayload :: !SetIAMPolicyRequest
76− , _psasipBearerToken :: !(Maybe Text)
77− , _psasipResource :: !Text
78− , _psasipCallback :: !(Maybe Text)
79− } deriving (Eq,Show,Data,Typeable,Generic)
80−
81−-- | Creates a value of 'ProjectsServiceAccountsSetIAMPolicy' 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−-- * 'psasipXgafv'
86−--
87−-- * 'psasipUploadProtocol'
88−--
89−-- * 'psasipPp'
90−--
91−-- * 'psasipAccessToken'
92−--
93−-- * 'psasipUploadType'
94−--
95−-- * 'psasipPayload'
96−--
97−-- * 'psasipBearerToken'
98−--
99−-- * 'psasipResource'
100−--
101−-- * 'psasipCallback'
102−projectsServiceAccountsSetIAMPolicy
103− :: SetIAMPolicyRequest -- ^ 'psasipPayload'
104− -> Text -- ^ 'psasipResource'
105− -> ProjectsServiceAccountsSetIAMPolicy
106−projectsServiceAccountsSetIAMPolicy pPsasipPayload_ pPsasipResource_ =
107− ProjectsServiceAccountsSetIAMPolicy'
108− { _psasipXgafv = Nothing
109− , _psasipUploadProtocol = Nothing
110− , _psasipPp = True
111− , _psasipAccessToken = Nothing
112− , _psasipUploadType = Nothing
113− , _psasipPayload = pPsasipPayload_
114− , _psasipBearerToken = Nothing
115− , _psasipResource = pPsasipResource_
116− , _psasipCallback = Nothing
117− }
118−
119−-- | V1 error format.
120−psasipXgafv :: Lens' ProjectsServiceAccountsSetIAMPolicy (Maybe Text)
121−psasipXgafv
122− = lens _psasipXgafv (\ s a -> s{_psasipXgafv = a})
123−
124−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
125−psasipUploadProtocol :: Lens' ProjectsServiceAccountsSetIAMPolicy (Maybe Text)
126−psasipUploadProtocol
127− = lens _psasipUploadProtocol
128− (\ s a -> s{_psasipUploadProtocol = a})
129−
130−-- | Pretty-print response.
131−psasipPp :: Lens' ProjectsServiceAccountsSetIAMPolicy Bool
132−psasipPp = lens _psasipPp (\ s a -> s{_psasipPp = a})
133−
134−-- | OAuth access token.
135−psasipAccessToken :: Lens' ProjectsServiceAccountsSetIAMPolicy (Maybe Text)
136−psasipAccessToken
137− = lens _psasipAccessToken
138− (\ s a -> s{_psasipAccessToken = a})
139−
140−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
141−psasipUploadType :: Lens' ProjectsServiceAccountsSetIAMPolicy (Maybe Text)
142−psasipUploadType
143− = lens _psasipUploadType
144− (\ s a -> s{_psasipUploadType = a})
145−
146−-- | Multipart request metadata.
147−psasipPayload :: Lens' ProjectsServiceAccountsSetIAMPolicy SetIAMPolicyRequest
148−psasipPayload
149− = lens _psasipPayload
150− (\ s a -> s{_psasipPayload = a})
151−
152−-- | OAuth bearer token.
153−psasipBearerToken :: Lens' ProjectsServiceAccountsSetIAMPolicy (Maybe Text)
154−psasipBearerToken
155− = lens _psasipBearerToken
156− (\ s a -> s{_psasipBearerToken = a})
157−
158−-- | REQUIRED: The resource for which the policy is being specified.
159−-- \`resource\` is usually specified as a path. For example, a Project
160−-- resource is specified as \`projects\/{project}\`.
161−psasipResource :: Lens' ProjectsServiceAccountsSetIAMPolicy Text
162−psasipResource
163− = lens _psasipResource
164− (\ s a -> s{_psasipResource = a})
165−
166−-- | JSONP
167−psasipCallback :: Lens' ProjectsServiceAccountsSetIAMPolicy (Maybe Text)
168−psasipCallback
169− = lens _psasipCallback
170− (\ s a -> s{_psasipCallback = a})
171−
172−instance GoogleRequest
173− ProjectsServiceAccountsSetIAMPolicy where
174− type Rs ProjectsServiceAccountsSetIAMPolicy = Policy
175− type Scopes ProjectsServiceAccountsSetIAMPolicy =
176− '["https://www.googleapis.com/auth/cloud-platform"]
177− requestClient
178− ProjectsServiceAccountsSetIAMPolicy'{..}
179− = go _psasipResource _psasipXgafv
180− _psasipUploadProtocol
181− (Just _psasipPp)
182− _psasipAccessToken
183− _psasipUploadType
184− _psasipBearerToken
185− _psasipCallback
186− (Just AltJSON)
187− _psasipPayload
188− knowledgeGraphSearchService
189− where go
190− = buildClient
191− (Proxy ::
192− Proxy ProjectsServiceAccountsSetIAMPolicyResource)
193− mempty
gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/SignBlob.hsdeleted−192
@@ -1,192 +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.IAM.Projects.ServiceAccounts.SignBlob
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Signs a blob using a service account\'s system-managed private key.
24−--
25−-- /See:/ <https://cloud.google.com/iam/ Google Identity and Access Management (IAM) API Reference> for @iam.projects.serviceAccounts.signBlob@.
26−module Network.Google.Resource.IAM.Projects.ServiceAccounts.SignBlob
27− (
28− -- * REST Resource
29− ProjectsServiceAccountsSignBlobResource
30−
31− -- * Creating a Request
32− , projectsServiceAccountsSignBlob
33− , ProjectsServiceAccountsSignBlob
34−
35− -- * Request Lenses
36− , psasbXgafv
37− , psasbUploadProtocol
38− , psasbPp
39− , psasbAccessToken
40− , psasbUploadType
41− , psasbPayload
42− , psasbBearerToken
43− , psasbName
44− , psasbCallback
45− ) where
46−
47−import Network.Google.KnowledgeGraphSearch.Types
48−import Network.Google.Prelude
49−
50−-- | A resource alias for @iam.projects.serviceAccounts.signBlob@ method which the
51−-- 'ProjectsServiceAccountsSignBlob' request conforms to.
52−type ProjectsServiceAccountsSignBlobResource =
53− "v1" :>
54− CaptureMode "name" "signBlob" Text :>
55− QueryParam "$.xgafv" Text :>
56− QueryParam "upload_protocol" Text :>
57− QueryParam "pp" Bool :>
58− QueryParam "access_token" Text :>
59− QueryParam "uploadType" Text :>
60− QueryParam "bearer_token" Text :>
61− QueryParam "callback" Text :>
62− QueryParam "alt" AltJSON :>
63− ReqBody '[JSON] SignBlobRequest :>
64− Post '[JSON] SignBlobResponse
65−
66−-- | Signs a blob using a service account\'s system-managed private key.
67−--
68−-- /See:/ 'projectsServiceAccountsSignBlob' smart constructor.
69−data ProjectsServiceAccountsSignBlob = ProjectsServiceAccountsSignBlob'
70− { _psasbXgafv :: !(Maybe Text)
71− , _psasbUploadProtocol :: !(Maybe Text)
72− , _psasbPp :: !Bool
73− , _psasbAccessToken :: !(Maybe Text)
74− , _psasbUploadType :: !(Maybe Text)
75− , _psasbPayload :: !SignBlobRequest
76− , _psasbBearerToken :: !(Maybe Text)
77− , _psasbName :: !Text
78− , _psasbCallback :: !(Maybe Text)
79− } deriving (Eq,Show,Data,Typeable,Generic)
80−
81−-- | Creates a value of 'ProjectsServiceAccountsSignBlob' 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−-- * 'psasbXgafv'
86−--
87−-- * 'psasbUploadProtocol'
88−--
89−-- * 'psasbPp'
90−--
91−-- * 'psasbAccessToken'
92−--
93−-- * 'psasbUploadType'
94−--
95−-- * 'psasbPayload'
96−--
97−-- * 'psasbBearerToken'
98−--
99−-- * 'psasbName'
100−--
101−-- * 'psasbCallback'
102−projectsServiceAccountsSignBlob
103− :: SignBlobRequest -- ^ 'psasbPayload'
104− -> Text -- ^ 'psasbName'
105− -> ProjectsServiceAccountsSignBlob
106−projectsServiceAccountsSignBlob pPsasbPayload_ pPsasbName_ =
107− ProjectsServiceAccountsSignBlob'
108− { _psasbXgafv = Nothing
109− , _psasbUploadProtocol = Nothing
110− , _psasbPp = True
111− , _psasbAccessToken = Nothing
112− , _psasbUploadType = Nothing
113− , _psasbPayload = pPsasbPayload_
114− , _psasbBearerToken = Nothing
115− , _psasbName = pPsasbName_
116− , _psasbCallback = Nothing
117− }
118−
119−-- | V1 error format.
120−psasbXgafv :: Lens' ProjectsServiceAccountsSignBlob (Maybe Text)
121−psasbXgafv
122− = lens _psasbXgafv (\ s a -> s{_psasbXgafv = a})
123−
124−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
125−psasbUploadProtocol :: Lens' ProjectsServiceAccountsSignBlob (Maybe Text)
126−psasbUploadProtocol
127− = lens _psasbUploadProtocol
128− (\ s a -> s{_psasbUploadProtocol = a})
129−
130−-- | Pretty-print response.
131−psasbPp :: Lens' ProjectsServiceAccountsSignBlob Bool
132−psasbPp = lens _psasbPp (\ s a -> s{_psasbPp = a})
133−
134−-- | OAuth access token.
135−psasbAccessToken :: Lens' ProjectsServiceAccountsSignBlob (Maybe Text)
136−psasbAccessToken
137− = lens _psasbAccessToken
138− (\ s a -> s{_psasbAccessToken = a})
139−
140−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
141−psasbUploadType :: Lens' ProjectsServiceAccountsSignBlob (Maybe Text)
142−psasbUploadType
143− = lens _psasbUploadType
144− (\ s a -> s{_psasbUploadType = a})
145−
146−-- | Multipart request metadata.
147−psasbPayload :: Lens' ProjectsServiceAccountsSignBlob SignBlobRequest
148−psasbPayload
149− = lens _psasbPayload (\ s a -> s{_psasbPayload = a})
150−
151−-- | OAuth bearer token.
152−psasbBearerToken :: Lens' ProjectsServiceAccountsSignBlob (Maybe Text)
153−psasbBearerToken
154− = lens _psasbBearerToken
155− (\ s a -> s{_psasbBearerToken = a})
156−
157−-- | The resource name of the service account in the following format:
158−-- \`projects\/{project}\/serviceAccounts\/{account}\`. Using \`-\` as a
159−-- wildcard for the project will infer the project from the account. The
160−-- \`account\` value can be the \`email\` address or the \`unique_id\` of
161−-- the service account.
162−psasbName :: Lens' ProjectsServiceAccountsSignBlob Text
163−psasbName
164− = lens _psasbName (\ s a -> s{_psasbName = a})
165−
166−-- | JSONP
167−psasbCallback :: Lens' ProjectsServiceAccountsSignBlob (Maybe Text)
168−psasbCallback
169− = lens _psasbCallback
170− (\ s a -> s{_psasbCallback = a})
171−
172−instance GoogleRequest
173− ProjectsServiceAccountsSignBlob where
174− type Rs ProjectsServiceAccountsSignBlob =
175− SignBlobResponse
176− type Scopes ProjectsServiceAccountsSignBlob =
177− '["https://www.googleapis.com/auth/cloud-platform"]
178− requestClient ProjectsServiceAccountsSignBlob'{..}
179− = go _psasbName _psasbXgafv _psasbUploadProtocol
180− (Just _psasbPp)
181− _psasbAccessToken
182− _psasbUploadType
183− _psasbBearerToken
184− _psasbCallback
185− (Just AltJSON)
186− _psasbPayload
187− knowledgeGraphSearchService
188− where go
189− = buildClient
190− (Proxy ::
191− Proxy ProjectsServiceAccountsSignBlobResource)
192− mempty
gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/TestIAMPermissions.hsdeleted−198
@@ -1,198 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.IAM.Projects.ServiceAccounts.TestIAMPermissions
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Tests the specified permissions against the IAM access control policy
24−-- for a ServiceAccount.
25−--
26−-- /See:/ <https://cloud.google.com/iam/ Google Identity and Access Management (IAM) API Reference> for @iam.projects.serviceAccounts.testIamPermissions@.
27−module Network.Google.Resource.IAM.Projects.ServiceAccounts.TestIAMPermissions
28− (
29− -- * REST Resource
30− ProjectsServiceAccountsTestIAMPermissionsResource
31−
32− -- * Creating a Request
33− , projectsServiceAccountsTestIAMPermissions
34− , ProjectsServiceAccountsTestIAMPermissions
35−
36− -- * Request Lenses
37− , psatipXgafv
38− , psatipUploadProtocol
39− , psatipPp
40− , psatipAccessToken
41− , psatipUploadType
42− , psatipPayload
43− , psatipBearerToken
44− , psatipResource
45− , psatipCallback
46− ) where
47−
48−import Network.Google.KnowledgeGraphSearch.Types
49−import Network.Google.Prelude
50−
51−-- | A resource alias for @iam.projects.serviceAccounts.testIamPermissions@ method which the
52−-- 'ProjectsServiceAccountsTestIAMPermissions' request conforms to.
53−type ProjectsServiceAccountsTestIAMPermissionsResource
54− =
55− "v1" :>
56− CaptureMode "resource" "testIamPermissions" Text :>
57− QueryParam "$.xgafv" Text :>
58− QueryParam "upload_protocol" Text :>
59− QueryParam "pp" Bool :>
60− QueryParam "access_token" Text :>
61− QueryParam "uploadType" Text :>
62− QueryParam "bearer_token" Text :>
63− QueryParam "callback" Text :>
64− QueryParam "alt" AltJSON :>
65− ReqBody '[JSON] TestIAMPermissionsRequest :>
66− Post '[JSON] TestIAMPermissionsResponse
67−
68−-- | Tests the specified permissions against the IAM access control policy
69−-- for a ServiceAccount.
70−--
71−-- /See:/ 'projectsServiceAccountsTestIAMPermissions' smart constructor.
72−data ProjectsServiceAccountsTestIAMPermissions = ProjectsServiceAccountsTestIAMPermissions'
73− { _psatipXgafv :: !(Maybe Text)
74− , _psatipUploadProtocol :: !(Maybe Text)
75− , _psatipPp :: !Bool
76− , _psatipAccessToken :: !(Maybe Text)
77− , _psatipUploadType :: !(Maybe Text)
78− , _psatipPayload :: !TestIAMPermissionsRequest
79− , _psatipBearerToken :: !(Maybe Text)
80− , _psatipResource :: !Text
81− , _psatipCallback :: !(Maybe Text)
82− } deriving (Eq,Show,Data,Typeable,Generic)
83−
84−-- | Creates a value of 'ProjectsServiceAccountsTestIAMPermissions' 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−-- * 'psatipXgafv'
89−--
90−-- * 'psatipUploadProtocol'
91−--
92−-- * 'psatipPp'
93−--
94−-- * 'psatipAccessToken'
95−--
96−-- * 'psatipUploadType'
97−--
98−-- * 'psatipPayload'
99−--
100−-- * 'psatipBearerToken'
101−--
102−-- * 'psatipResource'
103−--
104−-- * 'psatipCallback'
105−projectsServiceAccountsTestIAMPermissions
106− :: TestIAMPermissionsRequest -- ^ 'psatipPayload'
107− -> Text -- ^ 'psatipResource'
108− -> ProjectsServiceAccountsTestIAMPermissions
109−projectsServiceAccountsTestIAMPermissions pPsatipPayload_ pPsatipResource_ =
110− ProjectsServiceAccountsTestIAMPermissions'
111− { _psatipXgafv = Nothing
112− , _psatipUploadProtocol = Nothing
113− , _psatipPp = True
114− , _psatipAccessToken = Nothing
115− , _psatipUploadType = Nothing
116− , _psatipPayload = pPsatipPayload_
117− , _psatipBearerToken = Nothing
118− , _psatipResource = pPsatipResource_
119− , _psatipCallback = Nothing
120− }
121−
122−-- | V1 error format.
123−psatipXgafv :: Lens' ProjectsServiceAccountsTestIAMPermissions (Maybe Text)
124−psatipXgafv
125− = lens _psatipXgafv (\ s a -> s{_psatipXgafv = a})
126−
127−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
128−psatipUploadProtocol :: Lens' ProjectsServiceAccountsTestIAMPermissions (Maybe Text)
129−psatipUploadProtocol
130− = lens _psatipUploadProtocol
131− (\ s a -> s{_psatipUploadProtocol = a})
132−
133−-- | Pretty-print response.
134−psatipPp :: Lens' ProjectsServiceAccountsTestIAMPermissions Bool
135−psatipPp = lens _psatipPp (\ s a -> s{_psatipPp = a})
136−
137−-- | OAuth access token.
138−psatipAccessToken :: Lens' ProjectsServiceAccountsTestIAMPermissions (Maybe Text)
139−psatipAccessToken
140− = lens _psatipAccessToken
141− (\ s a -> s{_psatipAccessToken = a})
142−
143−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
144−psatipUploadType :: Lens' ProjectsServiceAccountsTestIAMPermissions (Maybe Text)
145−psatipUploadType
146− = lens _psatipUploadType
147− (\ s a -> s{_psatipUploadType = a})
148−
149−-- | Multipart request metadata.
150−psatipPayload :: Lens' ProjectsServiceAccountsTestIAMPermissions TestIAMPermissionsRequest
151−psatipPayload
152− = lens _psatipPayload
153− (\ s a -> s{_psatipPayload = a})
154−
155−-- | OAuth bearer token.
156−psatipBearerToken :: Lens' ProjectsServiceAccountsTestIAMPermissions (Maybe Text)
157−psatipBearerToken
158− = lens _psatipBearerToken
159− (\ s a -> s{_psatipBearerToken = a})
160−
161−-- | REQUIRED: The resource for which the policy detail is being requested.
162−-- \`resource\` is usually specified as a path. For example, a Project
163−-- resource is specified as \`projects\/{project}\`.
164−psatipResource :: Lens' ProjectsServiceAccountsTestIAMPermissions Text
165−psatipResource
166− = lens _psatipResource
167− (\ s a -> s{_psatipResource = a})
168−
169−-- | JSONP
170−psatipCallback :: Lens' ProjectsServiceAccountsTestIAMPermissions (Maybe Text)
171−psatipCallback
172− = lens _psatipCallback
173− (\ s a -> s{_psatipCallback = a})
174−
175−instance GoogleRequest
176− ProjectsServiceAccountsTestIAMPermissions where
177− type Rs ProjectsServiceAccountsTestIAMPermissions =
178− TestIAMPermissionsResponse
179− type Scopes ProjectsServiceAccountsTestIAMPermissions
180− = '["https://www.googleapis.com/auth/cloud-platform"]
181− requestClient
182− ProjectsServiceAccountsTestIAMPermissions'{..}
183− = go _psatipResource _psatipXgafv
184− _psatipUploadProtocol
185− (Just _psatipPp)
186− _psatipAccessToken
187− _psatipUploadType
188− _psatipBearerToken
189− _psatipCallback
190− (Just AltJSON)
191− _psatipPayload
192− knowledgeGraphSearchService
193− where go
194− = buildClient
195− (Proxy ::
196− Proxy
197− ProjectsServiceAccountsTestIAMPermissionsResource)
198− mempty
gogol-kgsearch/gen/Network/Google/Resource/IAM/Projects/ServiceAccounts/Update.hsdeleted−194
@@ -1,194 +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.IAM.Projects.ServiceAccounts.Update
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Updates a ServiceAccount. Currently, only the following fields are
24−-- updatable: \`display_name\` . The \`etag\` is mandatory.
25−--
26−-- /See:/ <https://cloud.google.com/iam/ Google Identity and Access Management (IAM) API Reference> for @iam.projects.serviceAccounts.update@.
27−module Network.Google.Resource.IAM.Projects.ServiceAccounts.Update
28− (
29− -- * REST Resource
30− ProjectsServiceAccountsUpdateResource
31−
32− -- * Creating a Request
33− , projectsServiceAccountsUpdate
34− , ProjectsServiceAccountsUpdate
35−
36− -- * Request Lenses
37− , psauXgafv
38− , psauUploadProtocol
39− , psauPp
40− , psauAccessToken
41− , psauUploadType
42− , psauPayload
43− , psauBearerToken
44− , psauName
45− , psauCallback
46− ) where
47−
48−import Network.Google.KnowledgeGraphSearch.Types
49−import Network.Google.Prelude
50−
51−-- | A resource alias for @iam.projects.serviceAccounts.update@ method which the
52−-- 'ProjectsServiceAccountsUpdate' request conforms to.
53−type ProjectsServiceAccountsUpdateResource =
54− "v1" :>
55− Capture "name" Text :>
56− QueryParam "$.xgafv" Text :>
57− QueryParam "upload_protocol" Text :>
58− QueryParam "pp" Bool :>
59− QueryParam "access_token" Text :>
60− QueryParam "uploadType" Text :>
61− QueryParam "bearer_token" Text :>
62− QueryParam "callback" Text :>
63− QueryParam "alt" AltJSON :>
64− ReqBody '[JSON] ServiceAccount :>
65− Put '[JSON] ServiceAccount
66−
67−-- | Updates a ServiceAccount. Currently, only the following fields are
68−-- updatable: \`display_name\` . The \`etag\` is mandatory.
69−--
70−-- /See:/ 'projectsServiceAccountsUpdate' smart constructor.
71−data ProjectsServiceAccountsUpdate = ProjectsServiceAccountsUpdate'
72− { _psauXgafv :: !(Maybe Text)
73− , _psauUploadProtocol :: !(Maybe Text)
74− , _psauPp :: !Bool
75− , _psauAccessToken :: !(Maybe Text)
76− , _psauUploadType :: !(Maybe Text)
77− , _psauPayload :: !ServiceAccount
78− , _psauBearerToken :: !(Maybe Text)
79− , _psauName :: !Text
80− , _psauCallback :: !(Maybe Text)
81− } deriving (Eq,Show,Data,Typeable,Generic)
82−
83−-- | Creates a value of 'ProjectsServiceAccountsUpdate' with the minimum fields required to make a request.
84−--
85−-- Use one of the following lenses to modify other fields as desired:
86−--
87−-- * 'psauXgafv'
88−--
89−-- * 'psauUploadProtocol'
90−--
91−-- * 'psauPp'
92−--
93−-- * 'psauAccessToken'
94−--
95−-- * 'psauUploadType'
96−--
97−-- * 'psauPayload'
98−--
99−-- * 'psauBearerToken'
100−--
101−-- * 'psauName'
102−--
103−-- * 'psauCallback'
104−projectsServiceAccountsUpdate
105− :: ServiceAccount -- ^ 'psauPayload'
106− -> Text -- ^ 'psauName'
107− -> ProjectsServiceAccountsUpdate
108−projectsServiceAccountsUpdate pPsauPayload_ pPsauName_ =
109− ProjectsServiceAccountsUpdate'
110− { _psauXgafv = Nothing
111− , _psauUploadProtocol = Nothing
112− , _psauPp = True
113− , _psauAccessToken = Nothing
114− , _psauUploadType = Nothing
115− , _psauPayload = pPsauPayload_
116− , _psauBearerToken = Nothing
117− , _psauName = pPsauName_
118− , _psauCallback = Nothing
119− }
120−
121−-- | V1 error format.
122−psauXgafv :: Lens' ProjectsServiceAccountsUpdate (Maybe Text)
123−psauXgafv
124− = lens _psauXgafv (\ s a -> s{_psauXgafv = a})
125−
126−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
127−psauUploadProtocol :: Lens' ProjectsServiceAccountsUpdate (Maybe Text)
128−psauUploadProtocol
129− = lens _psauUploadProtocol
130− (\ s a -> s{_psauUploadProtocol = a})
131−
132−-- | Pretty-print response.
133−psauPp :: Lens' ProjectsServiceAccountsUpdate Bool
134−psauPp = lens _psauPp (\ s a -> s{_psauPp = a})
135−
136−-- | OAuth access token.
137−psauAccessToken :: Lens' ProjectsServiceAccountsUpdate (Maybe Text)
138−psauAccessToken
139− = lens _psauAccessToken
140− (\ s a -> s{_psauAccessToken = a})
141−
142−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
143−psauUploadType :: Lens' ProjectsServiceAccountsUpdate (Maybe Text)
144−psauUploadType
145− = lens _psauUploadType
146− (\ s a -> s{_psauUploadType = a})
147−
148−-- | Multipart request metadata.
149−psauPayload :: Lens' ProjectsServiceAccountsUpdate ServiceAccount
150−psauPayload
151− = lens _psauPayload (\ s a -> s{_psauPayload = a})
152−
153−-- | OAuth bearer token.
154−psauBearerToken :: Lens' ProjectsServiceAccountsUpdate (Maybe Text)
155−psauBearerToken
156− = lens _psauBearerToken
157− (\ s a -> s{_psauBearerToken = a})
158−
159−-- | The resource name of the service account in the following format:
160−-- \`projects\/{project}\/serviceAccounts\/{account}\`. Requests using
161−-- \`-\` as a wildcard for the project will infer the project from the
162−-- \`account\` and the \`account\` value can be the \`email\` address or
163−-- the \`unique_id\` of the service account. In responses the resource name
164−-- will always be in the format
165−-- \`projects\/{project}\/serviceAccounts\/{email}\`.
166−psauName :: Lens' ProjectsServiceAccountsUpdate Text
167−psauName = lens _psauName (\ s a -> s{_psauName = a})
168−
169−-- | JSONP
170−psauCallback :: Lens' ProjectsServiceAccountsUpdate (Maybe Text)
171−psauCallback
172− = lens _psauCallback (\ s a -> s{_psauCallback = a})
173−
174−instance GoogleRequest ProjectsServiceAccountsUpdate
175− where
176− type Rs ProjectsServiceAccountsUpdate =
177− ServiceAccount
178− type Scopes ProjectsServiceAccountsUpdate =
179− '["https://www.googleapis.com/auth/cloud-platform"]
180− requestClient ProjectsServiceAccountsUpdate'{..}
181− = go _psauName _psauXgafv _psauUploadProtocol
182− (Just _psauPp)
183− _psauAccessToken
184− _psauUploadType
185− _psauBearerToken
186− _psauCallback
187− (Just AltJSON)
188− _psauPayload
189− knowledgeGraphSearchService
190− where go
191− = buildClient
192− (Proxy ::
193− Proxy ProjectsServiceAccountsUpdateResource)
194− mempty
gogol-kgsearch/gen/Network/Google/Resource/IAM/Roles/QueryGrantableRoles.hsdeleted−177
@@ -1,177 +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.IAM.Roles.QueryGrantableRoles
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Queries roles that can be granted on a particular resource. A role is
24−-- grantable if it can be used as the role in a binding for a policy for
25−-- that resource.
26−--
27−-- /See:/ <https://cloud.google.com/iam/ Google Identity and Access Management (IAM) API Reference> for @iam.roles.queryGrantableRoles@.
28−module Network.Google.Resource.IAM.Roles.QueryGrantableRoles
29− (
30− -- * REST Resource
31− RolesQueryGrantableRolesResource
32−
33− -- * Creating a Request
34− , rolesQueryGrantableRoles
35− , RolesQueryGrantableRoles
36−
37− -- * Request Lenses
38− , rqgrXgafv
39− , rqgrUploadProtocol
40− , rqgrPp
41− , rqgrAccessToken
42− , rqgrUploadType
43− , rqgrPayload
44− , rqgrBearerToken
45− , rqgrCallback
46− ) where
47−
48−import Network.Google.KnowledgeGraphSearch.Types
49−import Network.Google.Prelude
50−
51−-- | A resource alias for @iam.roles.queryGrantableRoles@ method which the
52−-- 'RolesQueryGrantableRoles' request conforms to.
53−type RolesQueryGrantableRolesResource =
54− "v1" :>
55− "roles:queryGrantableRoles" :>
56− QueryParam "$.xgafv" Text :>
57− QueryParam "upload_protocol" Text :>
58− QueryParam "pp" Bool :>
59− QueryParam "access_token" Text :>
60− QueryParam "uploadType" Text :>
61− QueryParam "bearer_token" Text :>
62− QueryParam "callback" Text :>
63− QueryParam "alt" AltJSON :>
64− ReqBody '[JSON] QueryGrantableRolesRequest :>
65− Post '[JSON] QueryGrantableRolesResponse
66−
67−-- | Queries roles that can be granted on a particular resource. A role is
68−-- grantable if it can be used as the role in a binding for a policy for
69−-- that resource.
70−--
71−-- /See:/ 'rolesQueryGrantableRoles' smart constructor.
72−data RolesQueryGrantableRoles = RolesQueryGrantableRoles'
73− { _rqgrXgafv :: !(Maybe Text)
74− , _rqgrUploadProtocol :: !(Maybe Text)
75− , _rqgrPp :: !Bool
76− , _rqgrAccessToken :: !(Maybe Text)
77− , _rqgrUploadType :: !(Maybe Text)
78− , _rqgrPayload :: !QueryGrantableRolesRequest
79− , _rqgrBearerToken :: !(Maybe Text)
80− , _rqgrCallback :: !(Maybe Text)
81− } deriving (Eq,Show,Data,Typeable,Generic)
82−
83−-- | Creates a value of 'RolesQueryGrantableRoles' with the minimum fields required to make a request.
84−--
85−-- Use one of the following lenses to modify other fields as desired:
86−--
87−-- * 'rqgrXgafv'
88−--
89−-- * 'rqgrUploadProtocol'
90−--
91−-- * 'rqgrPp'
92−--
93−-- * 'rqgrAccessToken'
94−--
95−-- * 'rqgrUploadType'
96−--
97−-- * 'rqgrPayload'
98−--
99−-- * 'rqgrBearerToken'
100−--
101−-- * 'rqgrCallback'
102−rolesQueryGrantableRoles
103− :: QueryGrantableRolesRequest -- ^ 'rqgrPayload'
104− -> RolesQueryGrantableRoles
105−rolesQueryGrantableRoles pRqgrPayload_ =
106− RolesQueryGrantableRoles'
107− { _rqgrXgafv = Nothing
108− , _rqgrUploadProtocol = Nothing
109− , _rqgrPp = True
110− , _rqgrAccessToken = Nothing
111− , _rqgrUploadType = Nothing
112− , _rqgrPayload = pRqgrPayload_
113− , _rqgrBearerToken = Nothing
114− , _rqgrCallback = Nothing
115− }
116−
117−-- | V1 error format.
118−rqgrXgafv :: Lens' RolesQueryGrantableRoles (Maybe Text)
119−rqgrXgafv
120− = lens _rqgrXgafv (\ s a -> s{_rqgrXgafv = a})
121−
122−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
123−rqgrUploadProtocol :: Lens' RolesQueryGrantableRoles (Maybe Text)
124−rqgrUploadProtocol
125− = lens _rqgrUploadProtocol
126− (\ s a -> s{_rqgrUploadProtocol = a})
127−
128−-- | Pretty-print response.
129−rqgrPp :: Lens' RolesQueryGrantableRoles Bool
130−rqgrPp = lens _rqgrPp (\ s a -> s{_rqgrPp = a})
131−
132−-- | OAuth access token.
133−rqgrAccessToken :: Lens' RolesQueryGrantableRoles (Maybe Text)
134−rqgrAccessToken
135− = lens _rqgrAccessToken
136− (\ s a -> s{_rqgrAccessToken = a})
137−
138−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
139−rqgrUploadType :: Lens' RolesQueryGrantableRoles (Maybe Text)
140−rqgrUploadType
141− = lens _rqgrUploadType
142− (\ s a -> s{_rqgrUploadType = a})
143−
144−-- | Multipart request metadata.
145−rqgrPayload :: Lens' RolesQueryGrantableRoles QueryGrantableRolesRequest
146−rqgrPayload
147− = lens _rqgrPayload (\ s a -> s{_rqgrPayload = a})
148−
149−-- | OAuth bearer token.
150−rqgrBearerToken :: Lens' RolesQueryGrantableRoles (Maybe Text)
151−rqgrBearerToken
152− = lens _rqgrBearerToken
153− (\ s a -> s{_rqgrBearerToken = a})
154−
155−-- | JSONP
156−rqgrCallback :: Lens' RolesQueryGrantableRoles (Maybe Text)
157−rqgrCallback
158− = lens _rqgrCallback (\ s a -> s{_rqgrCallback = a})
159−
160−instance GoogleRequest RolesQueryGrantableRoles where
161− type Rs RolesQueryGrantableRoles =
162− QueryGrantableRolesResponse
163− type Scopes RolesQueryGrantableRoles =
164− '["https://www.googleapis.com/auth/cloud-platform"]
165− requestClient RolesQueryGrantableRoles'{..}
166− = go _rqgrXgafv _rqgrUploadProtocol (Just _rqgrPp)
167− _rqgrAccessToken
168− _rqgrUploadType
169− _rqgrBearerToken
170− _rqgrCallback
171− (Just AltJSON)
172− _rqgrPayload
173− knowledgeGraphSearchService
174− where go
175− = buildClient
176− (Proxy :: Proxy RolesQueryGrantableRolesResource)
177− mempty
gogol-kgsearch/gen/Network/Google/Resource/Kgsearch/Entities/Search.hsnew file+247
@@ -0,0 +1,247 @@
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.Kgsearch.Entities.Search
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Searches Knowledge Graph for entities that match the constraints. A list
24+-- of matched entities will be returned in response, which will be in
25+-- JSON-LD format and compatible with http:\/\/schema.org
26+--
27+-- /See:/ <https://developers.google.com/knowledge-graph/ Knowledge Graph Search API Reference> for @kgsearch.entities.search@.
28+module Network.Google.Resource.Kgsearch.Entities.Search
29+ (
30+ -- * REST Resource
31+ EntitiesSearchResource
32+
33+ -- * Creating a Request
34+ , entitiesSearch
35+ , EntitiesSearch
36+
37+ -- * Request Lenses
38+ , esXgafv
39+ , esUploadProtocol
40+ , esPrefix
41+ , esPp
42+ , esAccessToken
43+ , esUploadType
44+ , esTypes
45+ , esIds
46+ , esLanguages
47+ , esIndent
48+ , esBearerToken
49+ , esQuery
50+ , esLimit
51+ , esCallback
52+ ) where
53+
54+import Network.Google.KnowledgeGraphSearch.Types
55+import Network.Google.Prelude
56+
57+-- | A resource alias for @kgsearch.entities.search@ method which the
58+-- 'EntitiesSearch' request conforms to.
59+type EntitiesSearchResource =
60+ "v1" :>
61+ "entities:search" :>
62+ QueryParam "$.xgafv" Text :>
63+ QueryParam "upload_protocol" Text :>
64+ QueryParam "prefix" Bool :>
65+ QueryParam "pp" Bool :>
66+ QueryParam "access_token" Text :>
67+ QueryParam "uploadType" Text :>
68+ QueryParams "types" Text :>
69+ QueryParams "ids" Text :>
70+ QueryParams "languages" Text :>
71+ QueryParam "indent" Bool :>
72+ QueryParam "bearer_token" Text :>
73+ QueryParam "query" Text :>
74+ QueryParam "limit" (Textual Int32) :>
75+ QueryParam "callback" Text :>
76+ QueryParam "alt" AltJSON :>
77+ Get '[JSON] SearchResponse
78+
79+-- | Searches Knowledge Graph for entities that match the constraints. A list
80+-- of matched entities will be returned in response, which will be in
81+-- JSON-LD format and compatible with http:\/\/schema.org
82+--
83+-- /See:/ 'entitiesSearch' smart constructor.
84+data EntitiesSearch = EntitiesSearch'
85+ { _esXgafv :: !(Maybe Text)
86+ , _esUploadProtocol :: !(Maybe Text)
87+ , _esPrefix :: !(Maybe Bool)
88+ , _esPp :: !Bool
89+ , _esAccessToken :: !(Maybe Text)
90+ , _esUploadType :: !(Maybe Text)
91+ , _esTypes :: !(Maybe [Text])
92+ , _esIds :: !(Maybe [Text])
93+ , _esLanguages :: !(Maybe [Text])
94+ , _esIndent :: !(Maybe Bool)
95+ , _esBearerToken :: !(Maybe Text)
96+ , _esQuery :: !(Maybe Text)
97+ , _esLimit :: !(Maybe (Textual Int32))
98+ , _esCallback :: !(Maybe Text)
99+ } deriving (Eq,Show,Data,Typeable,Generic)
100+
101+-- | Creates a value of 'EntitiesSearch' with the minimum fields required to make a request.
102+--
103+-- Use one of the following lenses to modify other fields as desired:
104+--
105+-- * 'esXgafv'
106+--
107+-- * 'esUploadProtocol'
108+--
109+-- * 'esPrefix'
110+--
111+-- * 'esPp'
112+--
113+-- * 'esAccessToken'
114+--
115+-- * 'esUploadType'
116+--
117+-- * 'esTypes'
118+--
119+-- * 'esIds'
120+--
121+-- * 'esLanguages'
122+--
123+-- * 'esIndent'
124+--
125+-- * 'esBearerToken'
126+--
127+-- * 'esQuery'
128+--
129+-- * 'esLimit'
130+--
131+-- * 'esCallback'
132+entitiesSearch
133+ :: EntitiesSearch
134+entitiesSearch =
135+ EntitiesSearch'
136+ { _esXgafv = Nothing
137+ , _esUploadProtocol = Nothing
138+ , _esPrefix = Nothing
139+ , _esPp = True
140+ , _esAccessToken = Nothing
141+ , _esUploadType = Nothing
142+ , _esTypes = Nothing
143+ , _esIds = Nothing
144+ , _esLanguages = Nothing
145+ , _esIndent = Nothing
146+ , _esBearerToken = Nothing
147+ , _esQuery = Nothing
148+ , _esLimit = Nothing
149+ , _esCallback = Nothing
150+ }
151+
152+-- | V1 error format.
153+esXgafv :: Lens' EntitiesSearch (Maybe Text)
154+esXgafv = lens _esXgafv (\ s a -> s{_esXgafv = a})
155+
156+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
157+esUploadProtocol :: Lens' EntitiesSearch (Maybe Text)
158+esUploadProtocol
159+ = lens _esUploadProtocol
160+ (\ s a -> s{_esUploadProtocol = a})
161+
162+-- | Enables prefix match against names and aliases of entities
163+esPrefix :: Lens' EntitiesSearch (Maybe Bool)
164+esPrefix = lens _esPrefix (\ s a -> s{_esPrefix = a})
165+
166+-- | Pretty-print response.
167+esPp :: Lens' EntitiesSearch Bool
168+esPp = lens _esPp (\ s a -> s{_esPp = a})
169+
170+-- | OAuth access token.
171+esAccessToken :: Lens' EntitiesSearch (Maybe Text)
172+esAccessToken
173+ = lens _esAccessToken
174+ (\ s a -> s{_esAccessToken = a})
175+
176+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
177+esUploadType :: Lens' EntitiesSearch (Maybe Text)
178+esUploadType
179+ = lens _esUploadType (\ s a -> s{_esUploadType = a})
180+
181+-- | Restricts returned entities with these types, e.g. Person (as defined in
182+-- http:\/\/schema.org\/Person).
183+esTypes :: Lens' EntitiesSearch [Text]
184+esTypes
185+ = lens _esTypes (\ s a -> s{_esTypes = a}) . _Default
186+ . _Coerce
187+
188+-- | The list of entity id to be used for search instead of query string.
189+esIds :: Lens' EntitiesSearch [Text]
190+esIds
191+ = lens _esIds (\ s a -> s{_esIds = a}) . _Default .
192+ _Coerce
193+
194+-- | The list of language codes (defined in ISO 693) to run the query with,
195+-- e.g. \'en\'.
196+esLanguages :: Lens' EntitiesSearch [Text]
197+esLanguages
198+ = lens _esLanguages (\ s a -> s{_esLanguages = a}) .
199+ _Default
200+ . _Coerce
201+
202+-- | Enables indenting of json results.
203+esIndent :: Lens' EntitiesSearch (Maybe Bool)
204+esIndent = lens _esIndent (\ s a -> s{_esIndent = a})
205+
206+-- | OAuth bearer token.
207+esBearerToken :: Lens' EntitiesSearch (Maybe Text)
208+esBearerToken
209+ = lens _esBearerToken
210+ (\ s a -> s{_esBearerToken = a})
211+
212+-- | The literal query string for search.
213+esQuery :: Lens' EntitiesSearch (Maybe Text)
214+esQuery = lens _esQuery (\ s a -> s{_esQuery = a})
215+
216+-- | Limits the number of entities to be returned.
217+esLimit :: Lens' EntitiesSearch (Maybe Int32)
218+esLimit
219+ = lens _esLimit (\ s a -> s{_esLimit = a}) .
220+ mapping _Coerce
221+
222+-- | JSONP
223+esCallback :: Lens' EntitiesSearch (Maybe Text)
224+esCallback
225+ = lens _esCallback (\ s a -> s{_esCallback = a})
226+
227+instance GoogleRequest EntitiesSearch where
228+ type Rs EntitiesSearch = SearchResponse
229+ type Scopes EntitiesSearch = '[]
230+ requestClient EntitiesSearch'{..}
231+ = go _esXgafv _esUploadProtocol _esPrefix
232+ (Just _esPp)
233+ _esAccessToken
234+ _esUploadType
235+ (_esTypes ^. _Default)
236+ (_esIds ^. _Default)
237+ (_esLanguages ^. _Default)
238+ _esIndent
239+ _esBearerToken
240+ _esQuery
241+ _esLimit
242+ _esCallback
243+ (Just AltJSON)
244+ knowledgeGraphSearchService
245+ where go
246+ = buildClient (Proxy :: Proxy EntitiesSearchResource)
247+ mempty
gogol-kgsearch/gogol-kgsearch.cabal+4−18
@@ -1,6 +1,6 @@
11name: gogol-kgsearch
22version: 0.1.0
3−synopsis: Google Identity and Access Management (IAM) SDK.
3+synopsis: Google Knowledge Graph Search SDK.
44homepage: https://github.com/brendanhay/gogol
55bug-reports: https://github.com/brendanhay/gogol/issues
66license: OtherLicense
@@ -14,9 +14,8 @@ cabal-version: >= 1.10
1414extra-source-files: README.md
1515
1616description:
17− Manages identity and access control for Google Cloud Platform resources,
18− including the creation of service accounts, which you can use to
19− authenticate to Google and make API calls.
17+ Knowledge Graph Search API allows developers to search the Google
18+ Knowledge Graph for entities.
2019 .
2120 /Warning:/ This is an experimental prototype/preview release which is still
2221 under exploratory development and not intended for public use, caveat emptor!
@@ -37,20 +36,7 @@ library
3736 exposed-modules:
3837 Network.Google.KnowledgeGraphSearch
3938 , Network.Google.KnowledgeGraphSearch.Types
40− , Network.Google.Resource.IAM.Projects.ServiceAccounts.Create
41− , Network.Google.Resource.IAM.Projects.ServiceAccounts.Delete
42− , Network.Google.Resource.IAM.Projects.ServiceAccounts.Get
43− , Network.Google.Resource.IAM.Projects.ServiceAccounts.GetIAMPolicy
44− , Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.Create
45− , Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.Delete
46− , Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.Get
47− , Network.Google.Resource.IAM.Projects.ServiceAccounts.Keys.List
48− , Network.Google.Resource.IAM.Projects.ServiceAccounts.List
49− , Network.Google.Resource.IAM.Projects.ServiceAccounts.SetIAMPolicy
50− , Network.Google.Resource.IAM.Projects.ServiceAccounts.SignBlob
51− , Network.Google.Resource.IAM.Projects.ServiceAccounts.TestIAMPermissions
52− , Network.Google.Resource.IAM.Projects.ServiceAccounts.Update
53− , Network.Google.Resource.IAM.Roles.QueryGrantableRoles
39+ , Network.Google.Resource.Kgsearch.Entities.Search
5440
5541 other-modules:
5642 Network.Google.KnowledgeGraphSearch.Types.Product