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 uploading a function source code. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. When uploading source code to the generated signed URL, please follow these restrictions: * Source file type should be a zip file. * Source file size should not exceed 100MB limit. When making a HTTP PUT request, these two headers need to be specified: * `content-type: application/zip` * `x-goog-content-length-range: 0,104857600`
See: Cloud Functions API Reference for cloudfunctions.projects.locations.functions.generateUploadUrl
.
Synopsis
- type ProjectsLocationsFunctionsGenerateUploadURLResource = "v1" :> (Capture "parent" Text :> ("functions:generateUploadUrl" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GenerateUploadURLRequest :> Post '[JSON] GenerateUploadURLResponse)))))))))
- projectsLocationsFunctionsGenerateUploadURL :: Text -> GenerateUploadURLRequest -> ProjectsLocationsFunctionsGenerateUploadURL
- data ProjectsLocationsFunctionsGenerateUploadURL
- plfguuParent :: Lens' ProjectsLocationsFunctionsGenerateUploadURL Text
- plfguuXgafv :: Lens' ProjectsLocationsFunctionsGenerateUploadURL (Maybe Xgafv)
- plfguuUploadProtocol :: Lens' ProjectsLocationsFunctionsGenerateUploadURL (Maybe Text)
- plfguuAccessToken :: Lens' ProjectsLocationsFunctionsGenerateUploadURL (Maybe Text)
- plfguuUploadType :: Lens' ProjectsLocationsFunctionsGenerateUploadURL (Maybe Text)
- plfguuPayload :: Lens' ProjectsLocationsFunctionsGenerateUploadURL GenerateUploadURLRequest
- plfguuCallback :: Lens' ProjectsLocationsFunctionsGenerateUploadURL (Maybe Text)
REST Resource
type ProjectsLocationsFunctionsGenerateUploadURLResource = "v1" :> (Capture "parent" Text :> ("functions:generateUploadUrl" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GenerateUploadURLRequest :> Post '[JSON] GenerateUploadURLResponse))))))))) Source #
A resource alias for cloudfunctions.projects.locations.functions.generateUploadUrl
method which the
ProjectsLocationsFunctionsGenerateUploadURL
request conforms to.
Creating a Request
projectsLocationsFunctionsGenerateUploadURL Source #
Creates a value of ProjectsLocationsFunctionsGenerateUploadURL
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsFunctionsGenerateUploadURL Source #
Returns a signed URL for uploading a function source code. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. When uploading source code to the generated signed URL, please follow these restrictions: * Source file type should be a zip file. * Source file size should not exceed 100MB limit. When making a HTTP PUT request, these two headers need to be specified: * `content-type: application/zip` * `x-goog-content-length-range: 0,104857600`
See: projectsLocationsFunctionsGenerateUploadURL
smart constructor.
Instances
Request Lenses
plfguuParent :: Lens' ProjectsLocationsFunctionsGenerateUploadURL Text Source #
The project and location in which the Google Cloud Storage signed URL should be generated, specified in the format `projects/*/locations/*`.
plfguuXgafv :: Lens' ProjectsLocationsFunctionsGenerateUploadURL (Maybe Xgafv) Source #
V1 error format.
plfguuUploadProtocol :: Lens' ProjectsLocationsFunctionsGenerateUploadURL (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
plfguuAccessToken :: Lens' ProjectsLocationsFunctionsGenerateUploadURL (Maybe Text) Source #
OAuth access token.
plfguuUploadType :: Lens' ProjectsLocationsFunctionsGenerateUploadURL (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plfguuPayload :: Lens' ProjectsLocationsFunctionsGenerateUploadURL GenerateUploadURLRequest Source #
Multipart request metadata.