@@ -91,10 +91,11 @@ specifying which 'Scope's the resulting 'OAuthToken' is authorized to access.
91/See:/ <https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority Delegating authority to your service account>.
91/See:/ <https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority Delegating authority to your service account>.
93data ServiceAccount = ServiceAccount
93data ServiceAccount = ServiceAccount
94− { _serviceId :: !ClientId
94+ { _serviceId :: !ClientId
95− , _serviceEmail :: !Text
95+ , _serviceEmail :: !Text
96− , _serviceKeyId :: !Text
96+ , _serviceKeyId :: !Text
97− , _servicePrivateKey :: !PrivateKey
97+ , _servicePrivateKey :: !PrivateKey
98+ , _serviceAccountUser :: !(Maybe Text)
98 } deriving (Eq, Show)
99 } deriving (Eq, Show)
100instance FromJSON ServiceAccount where
101instance FromJSON ServiceAccount where
@@ -109,6 +110,7 @@ instance FromJSON ServiceAccount where
109 <*> o .: "client_email"
110 <*> o .: "client_email"
110 <*> o .: "private_key_id"
111 <*> o .: "private_key_id"
111 <*> pure k
112 <*> pure k
113{-| Authorized User credentials which are typically generated by the Cloud SDK
115{-| Authorized User credentials which are typically generated by the Cloud SDK
114Tools such as @gcloud init@, of the following form:
116Tools such as @gcloud init@, of the following form: