Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within minutes after generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls
See: Cloud Functions API Reference for cloudfunctions.projects.locations.functions.generateDownloadUrl
.
Synopsis
- type ProjectsLocationsFunctionsGenerateDownloadURLResource = "v1" :> (CaptureMode "name" "generateDownloadUrl" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GenerateDownloadURLRequest :> Post '[JSON] GenerateDownloadURLResponse))))))))
- projectsLocationsFunctionsGenerateDownloadURL :: GenerateDownloadURLRequest -> Text -> ProjectsLocationsFunctionsGenerateDownloadURL
- data ProjectsLocationsFunctionsGenerateDownloadURL
- plfgduXgafv :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL (Maybe Xgafv)
- plfgduUploadProtocol :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL (Maybe Text)
- plfgduAccessToken :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL (Maybe Text)
- plfgduUploadType :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL (Maybe Text)
- plfgduPayload :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL GenerateDownloadURLRequest
- plfgduName :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL Text
- plfgduCallback :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL (Maybe Text)
REST Resource
type ProjectsLocationsFunctionsGenerateDownloadURLResource = "v1" :> (CaptureMode "name" "generateDownloadUrl" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GenerateDownloadURLRequest :> Post '[JSON] GenerateDownloadURLResponse)))))))) Source #
A resource alias for cloudfunctions.projects.locations.functions.generateDownloadUrl
method which the
ProjectsLocationsFunctionsGenerateDownloadURL
request conforms to.
Creating a Request
projectsLocationsFunctionsGenerateDownloadURL Source #
Creates a value of ProjectsLocationsFunctionsGenerateDownloadURL
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsFunctionsGenerateDownloadURL Source #
Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within minutes after generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls
See: projectsLocationsFunctionsGenerateDownloadURL
smart constructor.
Instances
Request Lenses
plfgduXgafv :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL (Maybe Xgafv) Source #
V1 error format.
plfgduUploadProtocol :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
plfgduAccessToken :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL (Maybe Text) Source #
OAuth access token.
plfgduUploadType :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plfgduPayload :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL GenerateDownloadURLRequest Source #
Multipart request metadata.
plfgduName :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL Text Source #
The name of function for which source code Google Cloud Storage signed URL should be generated.