diff --git a/packages/google-cloud-scheduler/samples/generated/v1/snippet_metadata.google.cloud.scheduler.v1.json b/packages/google-cloud-scheduler/samples/generated/v1/snippet_metadata.google.cloud.scheduler.v1.json index 03cbbd4d215..3a2f77b77a3 100644 --- a/packages/google-cloud-scheduler/samples/generated/v1/snippet_metadata.google.cloud.scheduler.v1.json +++ b/packages/google-cloud-scheduler/samples/generated/v1/snippet_metadata.google.cloud.scheduler.v1.json @@ -1,351 +1,351 @@ { - "clientLibrary": { - "name": "nodejs-scheduler", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.scheduler.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudscheduler_v1_generated_CloudScheduler_ListJobs_async", - "title": "scheduler listJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists jobs.", - "canonical": true, - "file": "cloud_scheduler.list_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobs", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.ListJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1.ListJobsResponse", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" - }, - "method": { - "shortName": "ListJobs", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.ListJobs", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1.CloudScheduler" - } - } - } + "clientLibrary": { + "name": "nodejs-scheduler", + "version": "2.3.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.scheduler.v1", + "version": "v1" + } + ] }, - { - "regionTag": "cloudscheduler_v1_generated_CloudScheduler_GetJob_async", - "title": "scheduler getJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a job.", - "canonical": true, - "file": "cloud_scheduler.get_job.js", - "language": "JAVASCRIPT", - "segments": [ + "snippets": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.GetJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + "regionTag": "cloudscheduler_v1_generated_CloudScheduler_ListJobs_async", + "title": "scheduler listJobs Sample", + "origin": "API_DEFINITION", + "description": " Lists jobs.", + "canonical": true, + "file": "cloud_scheduler.list_jobs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 71, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListJobs", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.ListJobs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.scheduler.v1.ListJobsResponse", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + }, + "method": { + "shortName": "ListJobs", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.ListJobs", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1.CloudScheduler" + } + } + } }, - "method": { - "shortName": "GetJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.GetJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1_generated_CloudScheduler_CreateJob_async", - "title": "scheduler createJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a job.", - "canonical": true, - "file": "cloud_scheduler.create_job.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.CreateJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.cloud.scheduler.v1.Job" - } - ], - "resultType": ".google.cloud.scheduler.v1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + "regionTag": "cloudscheduler_v1_generated_CloudScheduler_GetJob_async", + "title": "scheduler getJob Sample", + "origin": "API_DEFINITION", + "description": " Gets a job.", + "canonical": true, + "file": "cloud_scheduler.get_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.GetJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.scheduler.v1.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + }, + "method": { + "shortName": "GetJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.GetJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1.CloudScheduler" + } + } + } }, - "method": { - "shortName": "CreateJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.CreateJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1_generated_CloudScheduler_UpdateJob_async", - "title": "scheduler updateJob Sample", - "origin": "API_DEFINITION", - "description": " Updates a job. If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does not exist, `NOT_FOUND` is returned. If UpdateJob does not successfully return, it is possible for the job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in this state may not be executed. If this happens, retry the UpdateJob request until a successful response is received.", - "canonical": true, - "file": "cloud_scheduler.update_job.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.UpdateJob", - "async": true, - "parameters": [ - { - "name": "job", - "type": ".google.cloud.scheduler.v1.Job" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.scheduler.v1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + "regionTag": "cloudscheduler_v1_generated_CloudScheduler_CreateJob_async", + "title": "scheduler createJob Sample", + "origin": "API_DEFINITION", + "description": " Creates a job.", + "canonical": true, + "file": "cloud_scheduler.create_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.CreateJob", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "job", + "type": ".google.cloud.scheduler.v1.Job" + } + ], + "resultType": ".google.cloud.scheduler.v1.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + }, + "method": { + "shortName": "CreateJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.CreateJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1.CloudScheduler" + } + } + } }, - "method": { - "shortName": "UpdateJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.UpdateJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1_generated_CloudScheduler_DeleteJob_async", - "title": "scheduler deleteJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a job.", - "canonical": true, - "file": "cloud_scheduler.delete_job.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.DeleteJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + "regionTag": "cloudscheduler_v1_generated_CloudScheduler_UpdateJob_async", + "title": "scheduler updateJob Sample", + "origin": "API_DEFINITION", + "description": " Updates a job. If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does not exist, `NOT_FOUND` is returned. If UpdateJob does not successfully return, it is possible for the job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in this state may not be executed. If this happens, retry the UpdateJob request until a successful response is received.", + "canonical": true, + "file": "cloud_scheduler.update_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.UpdateJob", + "async": true, + "parameters": [ + { + "name": "job", + "type": ".google.cloud.scheduler.v1.Job" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.scheduler.v1.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + }, + "method": { + "shortName": "UpdateJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.UpdateJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1.CloudScheduler" + } + } + } }, - "method": { - "shortName": "DeleteJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.DeleteJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1_generated_CloudScheduler_PauseJob_async", - "title": "scheduler pauseJob Sample", - "origin": "API_DEFINITION", - "description": " Pauses a job. If a job is paused then the system will stop executing the job until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The state of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if paused it will be set to [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] to be paused.", - "canonical": true, - "file": "cloud_scheduler.pause_job.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.PauseJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + "regionTag": "cloudscheduler_v1_generated_CloudScheduler_DeleteJob_async", + "title": "scheduler deleteJob Sample", + "origin": "API_DEFINITION", + "description": " Deletes a job.", + "canonical": true, + "file": "cloud_scheduler.delete_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.DeleteJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + }, + "method": { + "shortName": "DeleteJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.DeleteJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1.CloudScheduler" + } + } + } }, - "method": { - "shortName": "PauseJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.PauseJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1_generated_CloudScheduler_ResumeJob_async", - "title": "scheduler resumeJob Sample", - "origin": "API_DEFINITION", - "description": " Resume a job. This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The state of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it will be set to [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed.", - "canonical": true, - "file": "cloud_scheduler.resume_job.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.ResumeJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + "regionTag": "cloudscheduler_v1_generated_CloudScheduler_PauseJob_async", + "title": "scheduler pauseJob Sample", + "origin": "API_DEFINITION", + "description": " Pauses a job. If a job is paused then the system will stop executing the job until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The state of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if paused it will be set to [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] to be paused.", + "canonical": true, + "file": "cloud_scheduler.pause_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PauseJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.PauseJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.scheduler.v1.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + }, + "method": { + "shortName": "PauseJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.PauseJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1.CloudScheduler" + } + } + } }, - "method": { - "shortName": "ResumeJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.ResumeJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1_generated_CloudScheduler_RunJob_async", - "title": "scheduler runJob Sample", - "origin": "API_DEFINITION", - "description": " Forces a job to run now. When this method is called, Cloud Scheduler will dispatch the job, even if the job is already running.", - "canonical": true, - "file": "cloud_scheduler.run_job.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.RunJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + "regionTag": "cloudscheduler_v1_generated_CloudScheduler_ResumeJob_async", + "title": "scheduler resumeJob Sample", + "origin": "API_DEFINITION", + "description": " Resume a job. This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The state of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it will be set to [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed.", + "canonical": true, + "file": "cloud_scheduler.resume_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ResumeJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.ResumeJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.scheduler.v1.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + }, + "method": { + "shortName": "ResumeJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.ResumeJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1.CloudScheduler" + } + } + } }, - "method": { - "shortName": "RunJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.RunJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1.CloudScheduler" - } + { + "regionTag": "cloudscheduler_v1_generated_CloudScheduler_RunJob_async", + "title": "scheduler runJob Sample", + "origin": "API_DEFINITION", + "description": " Forces a job to run now. When this method is called, Cloud Scheduler will dispatch the job, even if the job is already running.", + "canonical": true, + "file": "cloud_scheduler.run_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RunJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.RunJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.scheduler.v1.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" + }, + "method": { + "shortName": "RunJob", + "fullName": "google.cloud.scheduler.v1.CloudScheduler.RunJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1.CloudScheduler" + } + } + } } - } - } - ] -} + ] +} \ No newline at end of file diff --git a/packages/google-cloud-scheduler/samples/generated/v1beta1/snippet_metadata.google.cloud.scheduler.v1beta1.json b/packages/google-cloud-scheduler/samples/generated/v1beta1/snippet_metadata.google.cloud.scheduler.v1beta1.json index 8999f5973e2..60fb7c108b7 100644 --- a/packages/google-cloud-scheduler/samples/generated/v1beta1/snippet_metadata.google.cloud.scheduler.v1beta1.json +++ b/packages/google-cloud-scheduler/samples/generated/v1beta1/snippet_metadata.google.cloud.scheduler.v1beta1.json @@ -1,351 +1,351 @@ { - "clientLibrary": { - "name": "nodejs-scheduler", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.scheduler.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_ListJobs_async", - "title": "scheduler listJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists jobs.", - "canonical": true, - "file": "cloud_scheduler.list_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobs", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1beta1.ListJobsResponse", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" - }, - "method": { - "shortName": "ListJobs", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" - } - } - } + "clientLibrary": { + "name": "nodejs-scheduler", + "version": "2.3.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.cloud.scheduler.v1beta1", + "version": "v1beta1" + } + ] }, - { - "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_GetJob_async", - "title": "scheduler getJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a job.", - "canonical": true, - "file": "cloud_scheduler.get_job.js", - "language": "JAVASCRIPT", - "segments": [ + "snippets": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.GetJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1beta1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_ListJobs_async", + "title": "scheduler listJobs Sample", + "origin": "API_DEFINITION", + "description": " Lists jobs.", + "canonical": true, + "file": "cloud_scheduler.list_jobs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 71, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListJobs", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.scheduler.v1beta1.ListJobsResponse", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "ListJobs", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + } }, - "method": { - "shortName": "GetJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.GetJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_CreateJob_async", - "title": "scheduler createJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a job.", - "canonical": true, - "file": "cloud_scheduler.create_job.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.cloud.scheduler.v1beta1.Job" - } - ], - "resultType": ".google.cloud.scheduler.v1beta1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_GetJob_async", + "title": "scheduler getJob Sample", + "origin": "API_DEFINITION", + "description": " Gets a job.", + "canonical": true, + "file": "cloud_scheduler.get_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.GetJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.scheduler.v1beta1.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "GetJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.GetJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + } }, - "method": { - "shortName": "CreateJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_UpdateJob_async", - "title": "scheduler updateJob Sample", - "origin": "API_DEFINITION", - "description": " Updates a job. If successful, the updated [Job][google.cloud.scheduler.v1beta1.Job] is returned. If the job does not exist, `NOT_FOUND` is returned. If UpdateJob does not successfully return, it is possible for the job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1beta1.Job.State.UPDATE_FAILED] state. A job in this state may not be executed. If this happens, retry the UpdateJob request until a successful response is received.", - "canonical": true, - "file": "cloud_scheduler.update_job.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob", - "async": true, - "parameters": [ - { - "name": "job", - "type": ".google.cloud.scheduler.v1beta1.Job" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.scheduler.v1beta1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_CreateJob_async", + "title": "scheduler createJob Sample", + "origin": "API_DEFINITION", + "description": " Creates a job.", + "canonical": true, + "file": "cloud_scheduler.create_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "job", + "type": ".google.cloud.scheduler.v1beta1.Job" + } + ], + "resultType": ".google.cloud.scheduler.v1beta1.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "CreateJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + } }, - "method": { - "shortName": "UpdateJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_DeleteJob_async", - "title": "scheduler deleteJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a job.", - "canonical": true, - "file": "cloud_scheduler.delete_job.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_UpdateJob_async", + "title": "scheduler updateJob Sample", + "origin": "API_DEFINITION", + "description": " Updates a job. If successful, the updated [Job][google.cloud.scheduler.v1beta1.Job] is returned. If the job does not exist, `NOT_FOUND` is returned. If UpdateJob does not successfully return, it is possible for the job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1beta1.Job.State.UPDATE_FAILED] state. A job in this state may not be executed. If this happens, retry the UpdateJob request until a successful response is received.", + "canonical": true, + "file": "cloud_scheduler.update_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob", + "async": true, + "parameters": [ + { + "name": "job", + "type": ".google.cloud.scheduler.v1beta1.Job" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.scheduler.v1beta1.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "UpdateJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + } }, - "method": { - "shortName": "DeleteJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_PauseJob_async", - "title": "scheduler pauseJob Sample", - "origin": "API_DEFINITION", - "description": " Pauses a job. If a job is paused then the system will stop executing the job until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob]. The state of the job is stored in [state][google.cloud.scheduler.v1beta1.Job.state]; if paused it will be set to [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED] to be paused.", - "canonical": true, - "file": "cloud_scheduler.pause_job.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.PauseJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1beta1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_DeleteJob_async", + "title": "scheduler deleteJob Sample", + "origin": "API_DEFINITION", + "description": " Deletes a job.", + "canonical": true, + "file": "cloud_scheduler.delete_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "DeleteJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + } }, - "method": { - "shortName": "PauseJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.PauseJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_ResumeJob_async", - "title": "scheduler resumeJob Sample", - "origin": "API_DEFINITION", - "description": " Resume a job. This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. The state of a job is stored in [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this method it will be set to [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A job must be in [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED] to be resumed.", - "canonical": true, - "file": "cloud_scheduler.resume_job.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1beta1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_PauseJob_async", + "title": "scheduler pauseJob Sample", + "origin": "API_DEFINITION", + "description": " Pauses a job. If a job is paused then the system will stop executing the job until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob]. The state of the job is stored in [state][google.cloud.scheduler.v1beta1.Job.state]; if paused it will be set to [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED] to be paused.", + "canonical": true, + "file": "cloud_scheduler.pause_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PauseJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.PauseJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.scheduler.v1beta1.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "PauseJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.PauseJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + } }, - "method": { - "shortName": "ResumeJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_RunJob_async", - "title": "scheduler runJob Sample", - "origin": "API_DEFINITION", - "description": " Forces a job to run now. When this method is called, Cloud Scheduler will dispatch the job, even if the job is already running.", - "canonical": true, - "file": "cloud_scheduler.run_job.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.RunJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1beta1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_ResumeJob_async", + "title": "scheduler resumeJob Sample", + "origin": "API_DEFINITION", + "description": " Resume a job. This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. The state of a job is stored in [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this method it will be set to [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A job must be in [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED] to be resumed.", + "canonical": true, + "file": "cloud_scheduler.resume_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ResumeJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.scheduler.v1beta1.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "ResumeJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + } }, - "method": { - "shortName": "RunJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.RunJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" - } + { + "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_RunJob_async", + "title": "scheduler runJob Sample", + "origin": "API_DEFINITION", + "description": " Forces a job to run now. When this method is called, Cloud Scheduler will dispatch the job, even if the job is already running.", + "canonical": true, + "file": "cloud_scheduler.run_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RunJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.RunJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.scheduler.v1beta1.Job", + "client": { + "shortName": "CloudSchedulerClient", + "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" + }, + "method": { + "shortName": "RunJob", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.RunJob", + "service": { + "shortName": "CloudScheduler", + "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" + } + } + } } - } - } - ] -} + ] +} \ No newline at end of file