All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.cloudfunctions.v2alpha.model.GenerateUploadUrlResponse Maven / Gradle / Ivy

/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.cloudfunctions.v2alpha.model;

/**
 * Response of `GenerateSourceUploadUrl` method.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Cloud Functions API. For a detailed explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class GenerateUploadUrlResponse extends com.google.api.client.json.GenericJson { /** * The location of the source code in the upload bucket. Once the archive is uploaded using the * `upload_url` use this field to set the `function.build_config.source.storage_source` during * CreateFunction and UpdateFunction. Generation defaults to 0, as Cloud Storage provides a new * generation only upon uploading a new object or version of an object. * The value may be {@code null}. */ @com.google.api.client.util.Key private StorageSource storageSource; /** * The generated Google Cloud Storage signed URL that should be used for a function source code * upload. The uploaded file should be a zip archive which contains a function. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String uploadUrl; /** * The location of the source code in the upload bucket. Once the archive is uploaded using the * `upload_url` use this field to set the `function.build_config.source.storage_source` during * CreateFunction and UpdateFunction. Generation defaults to 0, as Cloud Storage provides a new * generation only upon uploading a new object or version of an object. * @return value or {@code null} for none */ public StorageSource getStorageSource() { return storageSource; } /** * The location of the source code in the upload bucket. Once the archive is uploaded using the * `upload_url` use this field to set the `function.build_config.source.storage_source` during * CreateFunction and UpdateFunction. Generation defaults to 0, as Cloud Storage provides a new * generation only upon uploading a new object or version of an object. * @param storageSource storageSource or {@code null} for none */ public GenerateUploadUrlResponse setStorageSource(StorageSource storageSource) { this.storageSource = storageSource; return this; } /** * The generated Google Cloud Storage signed URL that should be used for a function source code * upload. The uploaded file should be a zip archive which contains a function. * @return value or {@code null} for none */ public java.lang.String getUploadUrl() { return uploadUrl; } /** * The generated Google Cloud Storage signed URL that should be used for a function source code * upload. The uploaded file should be a zip archive which contains a function. * @param uploadUrl uploadUrl or {@code null} for none */ public GenerateUploadUrlResponse setUploadUrl(java.lang.String uploadUrl) { this.uploadUrl = uploadUrl; return this; } @Override public GenerateUploadUrlResponse set(String fieldName, Object value) { return (GenerateUploadUrlResponse) super.set(fieldName, value); } @Override public GenerateUploadUrlResponse clone() { return (GenerateUploadUrlResponse) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy