🎥 Make videos programmatically with React
jsdoc updates for cloudurn
Matt McGillivray9706f202563b
diff --git a/packages/cloudrun/src/api/check-if-service-exists.ts b/packages/cloudrun/src/api/check-if-service-exists.tsindex 92ac404fa8..a4ef7305dc 100644--- a/packages/cloudrun/src/api/check-if-service-exists.ts+++ b/packages/cloudrun/src/api/check-if-service-exists.ts@@ -7,20 +7,21 @@ import {validateProjectID} from '../shared/validate-project-id';import {getCloudRunClient} from './helpers/get-cloud-run-client';export type CheckIfServiceExistsInput = {+ projectID: string;memoryLimit: string;cpuLimit: string;timeoutSeconds: number;- projectID: string;region: string;};/*** @description Lists Cloud Run services in the project, and checks for a matching name.- * @link https://remotion.dev/docs/lambda/deployfunction- * @param projectID GCP Project ID to deploy the Cloud Run service to.- * @param serviceNameToCheck The name of the Cloud Run service.- * @param region The region you want to deploy your Cloud Run service to.- * @returns {Promise<protos.google.cloud.run.v2.IService>} If the service exists, the service object will be returned, otherwise false.+ * @param projectID GCP Project ID of Cloud Run service to check for.+ * @param memoryLimit Memory limit of Cloud Run service to check for.+ * @param cpuLimit CPU limit of Cloud Run service to check for.+ * @param timeoutSeconds Timeout of Cloud Run service to check for.+ * @param region The region of Cloud Run service to check for.+ * @returns {Promise<protos.google.cloud.run.v2.IService>} Returns Service object.*/export const checkIfServiceExists = async ({memoryLimit,diff --git a/packages/cloudrun/src/api/delete-service.ts b/packages/cloudrun/src/api/delete-service.tsindex 809cc34a3d..82c3217a91 100644--- a/packages/cloudrun/src/api/delete-service.ts+++ b/packages/cloudrun/src/api/delete-service.ts@@ -8,7 +8,8 @@ export type DeleteServiceInput = {/*** @description Deletes a service from GCP Cloud Run* @see [Documentation](https://remotion.dev/docs/cloudrun/deleteservice)- * @param options.serviceName The name of the service.+ * @param options.serviceName The name of the service to delete.+ * @param options.region The region of the service to delete.* @returns {Promise<void>} Nothing. Throws if the service failed to delete.*/export const deleteService = async (diff --git a/packages/cloudrun/src/api/delete-site.ts b/packages/cloudrun/src/api/delete-site.tsindex 77c86e7da9..6fb3c049a0 100644--- a/packages/cloudrun/src/api/delete-site.ts+++ b/packages/cloudrun/src/api/delete-site.ts@@ -3,18 +3,15 @@ import {getCloudStorageClient} from './helpers/get-cloud-storage-client';export type DeleteSiteInput = {bucketName: string;siteName: string;- onAfterItemDeleted?: (data: {bucketName: string; itemName: string}) => void;};/**** @description Deletes a deployed site from your S3 bucket. The opposite of deploySite().- * @see [Documentation](https://remotion.dev/docs/lambda/deletesite)- * @param options.bucketName The S3 bucket name where the site resides in.- * @param options.siteName The ID of the site that you want to delete.- * @param {AwsRegion} options.region The region in where the S3 bucket resides in.- * @param options.onAfterItemDeleted Function that gets called after each file that gets deleted, useful for showing progress.- * @returns {Promise<void>} Object containing info about how much space was freed.+ * @see [Documentation](https://remotion.dev/docs/cloudrun/deletesite)+ * @param options.bucketName The name of the Cloud Storage bucket where the site resides in.+ * @param options.siteName The ID of the site to delete.+ * @returns {Promise<void>} Nothing. Throws if the site failed to delete.*/export const deleteSite = ({bucketName,diff --git a/packages/cloudrun/src/api/helpers/get-cloudrun-endpoint.ts b/packages/cloudrun/src/api/helpers/get-cloudrun-endpoint.tsindex 4a451e9984..66a4d63d5b 100644--- a/packages/cloudrun/src/api/helpers/get-cloudrun-endpoint.ts+++ b/packages/cloudrun/src/api/helpers/get-cloudrun-endpoint.ts@@ -3,26 +3,26 @@ import {validateRegion} from '../../shared/validate-region';import {validateServiceName} from '../../shared/validate-service-name';import {getServiceInfo} from '../get-service-info';-export type RenderMediaOnCloudrunInput = {+export type getCloudrunEndpointInput = {cloudRunUrl?: string;serviceName?: string;region?: string;};/**- * @description Triggers a render on a GCP Cloud Run service given a composition and a Cloud Run URL.+ * @description If the Cloud Run URL is passed, it will be validated and returned. If the service name is passed, the service will be looked up and the endpoint will be returned.* @see [Documentation](https://remotion.dev/docs/lambda/renderMediaOnGcp)- * @param params.cloudRunUrl The url of the Cloud Run service that should be used- * @param params.serviceName The name of the Cloud Run service that should be used- * @param params.serveUrl The URL of the deployed project- * @returns {Promise<string>} See documentation for detailed structure+ * @param params.cloudRunUrl The url of the Cloud Run service+ * @param params.serviceName The name of the Cloud Run service+ * @param params.region The region of the service - required if the serviceName is passed.+ * @returns {Promise<string>} Returns the endpoint of the Cloud Run service*/export const getCloudrunEndpoint = async ({cloudRunUrl,serviceName,region,-}: RenderMediaOnCloudrunInput): Promise<string> => {+}: getCloudrunEndpointInput): Promise<string> => {if (!cloudRunUrl && !serviceName)throw new Error('Either cloudRunUrl or serviceName must be provided');if (cloudRunUrl && serviceName)diff --git a/packages/cloudrun/src/gcpInstaller/gcpInstaller.tar b/packages/cloudrun/src/gcpInstaller/gcpInstaller.tarindex 5446f79484..d79beab99c 100644Binary files a/packages/cloudrun/src/gcpInstaller/gcpInstaller.tar and b/packages/cloudrun/src/gcpInstaller/gcpInstaller.tar differ