jc-google-cloud-scheduler
v0.0.2
Published
Paquete para crear, editar y eliminar una tarea programada de Google Cloud Scheduler
Downloads
7
Maintainers
Readme
jc-google-cloud-scheduler
Proyecto para poder crear, editar, eliminar
tareas programadas con google cloud scheduler
NPM
Instalar npm install --save jc-google-cloud-scheduler
Uso
Una vez instalado, jc-google-cloud-scheduler está listo para usar.
createTask(credentials, project, location, jobName, minutes, httpTarget)
updateTask(credentials, project, location, jobName, minutes, httpTarget)
deleteTask(credentials, project, location, jobName)
Los parametros que se pasan son:
| param | Interface | |---------------|-----------| | credentials | Array | | project | String | | location | String | | jobName | String | | minutes | String | | httpTarget | Array |
Configuración de parametros
/**
- Método para crear una tarea programar una google cloud scheduler.
- @param {Array} {credentials} Es un Array de las credenciales de google Cuentas de servicio Cliente de OAuth de Google Workspace Marketplace activado.
- @param {String} [project] Nombre del proyecto en el que se requiere activar el scheduler.
- @param {String} [location] La región o zona geográfica en la que se despliegan y ejecutan los recursos de la nube.
- @param {String} [jobName] el nombre de la tarea programaga, no se debe repetir el nombre con las que ya estan credas.
- @param {String} [minutes] Son los minutos en los que se va ejecutar tomando en cuenta la hora en la que se ejecuta, el horario se programa en UTC.
- @param {Array} [httpTarget] Es la informacion a la pagina que se hara peticion cuando se ejecute la tarea programada.
- @example
- httpTarget;{
- "uri":"https://apites.com/",
- "method":"POST", //GET, POST, etc
- "body":{ "value": "test"}
- }
- @returns */