/// 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.
/// * No credentials should be attached - the signed URLs provide access to the
///   target bucket using internal service identity; if credentials were
///   attached, the identity from the credentials would be used, but that
///   identity does not have permissions to upload files to the URL.
///
/// When making a HTTP PUT request, these two headers need to be specified:
///
/// * `content-type: application/zip`
/// * `x-goog-content-length-range: 0,104857600`
///
/// And this header SHOULD NOT be specified:
///
/// * `Authorization: Bearer YOUR_TOKEN`
Returns a signed URL for uploading a 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.
No credentials should be attached - the signed URLs provide access to the
target bucket using internal service identity; if credentials were
attached, the identity from the credentials would be used, but that
identity does not have permissions to upload files to the URL.

When making a HTTP PUT request, these two headers need to be specified.



And this header SHOULD NOT be specified.


Returns a signed URL for uploading a 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 . No credentials should be attached - the signed URLs provide access to the target bucket using internal service identity ; if credentials were attached the identity from the credentials would be used but that identity does not have permissions to upload files to the URL . When making a HTTP PUT request these two headers need to be specified . And this header SHOULD NOT be specified .
pub async fn generate_upload_url(
            &mut self,
            request: impl tonic::IntoRequest<super::GenerateUploadUrlRequest>,
        ) -> Result<tonic::Response<super::GenerateUploadUrlResponse>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.functions.v1.CloudFunctionsService/GenerateUploadUrl",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
pub async fn generate_upload_url ( & mut self , request : impl tonic :: IntoRequest < super :: GenerateUploadUrlRequest > , ) -> Result < tonic :: Response < super :: GenerateUploadUrlResponse > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( " " e into ( ) ) , ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( " " , ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await }
Returns a signed URL for uploading a function source code.
Returns a signed URL for uploading a function source code .
&mut self
request
impl tonic::IntoRequest<super::GenerateUploadUrlRequest>