Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Regenerate scheduler client - adds TopicName (#6549)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and chingor13 committed Oct 23, 2019
1 parent 095c863 commit 6dd7b8a
Show file tree
Hide file tree
Showing 36 changed files with 1,092 additions and 593 deletions.
Expand Up @@ -395,7 +395,7 @@ private static Builder initDefaults(Builder builder) {

builder
.deleteJobSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));

builder
Expand Down
Expand Up @@ -171,8 +171,8 @@ public CloudSchedulerStub getStub() {
* }
* </code></pre>
*
* @param parent Required.
* <p>The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`.
* @param parent Required. The location name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListJobsPagedResponse listJobs(LocationName parent) {
Expand All @@ -196,8 +196,8 @@ public final ListJobsPagedResponse listJobs(LocationName parent) {
* }
* </code></pre>
*
* @param parent Required.
* <p>The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`.
* @param parent Required. The location name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListJobsPagedResponse listJobs(String parent) {
Expand Down Expand Up @@ -298,8 +298,8 @@ public final UnaryCallable<ListJobsRequest, ListJobsResponse> listJobsCallable()
* }
* </code></pre>
*
* @param name Required.
* <p>The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @param name Required. The job name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Job getJob(JobName name) {
Expand All @@ -322,8 +322,8 @@ public final Job getJob(JobName name) {
* }
* </code></pre>
*
* @param name Required.
* <p>The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @param name Required. The job name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Job getJob(String name) {
Expand Down Expand Up @@ -391,10 +391,9 @@ public final UnaryCallable<GetJobRequest, Job> getJobCallable() {
* }
* </code></pre>
*
* @param parent Required.
* <p>The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`.
* @param job Required.
* <p>The job to add. The user can optionally specify a name for the job in
* @param parent Required. The location name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID`.
* @param job Required. The job to add. The user can optionally specify a name for the job in
* [name][google.cloud.scheduler.v1beta1.Job.name].
* [name][google.cloud.scheduler.v1beta1.Job.name] cannot be the same as an existing job. If a
* name is not specified then the system will generate a random unique name that will be
Expand Down Expand Up @@ -425,10 +424,9 @@ public final Job createJob(LocationName parent, Job job) {
* }
* </code></pre>
*
* @param parent Required.
* <p>The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`.
* @param job Required.
* <p>The job to add. The user can optionally specify a name for the job in
* @param parent Required. The location name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID`.
* @param job Required. The job to add. The user can optionally specify a name for the job in
* [name][google.cloud.scheduler.v1beta1.Job.name].
* [name][google.cloud.scheduler.v1beta1.Job.name] cannot be the same as an existing job. If a
* name is not specified then the system will generate a random unique name that will be
Expand Down Expand Up @@ -512,9 +510,8 @@ public final UnaryCallable<CreateJobRequest, Job> createJobCallable() {
* }
* </code></pre>
*
* @param job Required.
* <p>The new job properties. [name][google.cloud.scheduler.v1beta1.Job.name] must be
* specified.
* @param job Required. The new job properties. [name][google.cloud.scheduler.v1beta1.Job.name]
* must be specified.
* <p>Output only fields cannot be modified using UpdateJob. Any value specified for an output
* only field will be ignored.
* @param updateMask A mask used to specify which fields of the job are being updated.
Expand Down Expand Up @@ -601,8 +598,8 @@ public final UnaryCallable<UpdateJobRequest, Job> updateJobCallable() {
* }
* </code></pre>
*
* @param name Required.
* <p>The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @param name Required. The job name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteJob(JobName name) {
Expand All @@ -625,8 +622,8 @@ public final void deleteJob(JobName name) {
* }
* </code></pre>
*
* @param name Required.
* <p>The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @param name Required. The job name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteJob(String name) {
Expand Down Expand Up @@ -699,8 +696,8 @@ public final UnaryCallable<DeleteJobRequest, Empty> deleteJobCallable() {
* }
* </code></pre>
*
* @param name Required.
* <p>The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @param name Required. The job name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Job pauseJob(JobName name) {
Expand Down Expand Up @@ -729,8 +726,8 @@ public final Job pauseJob(JobName name) {
* }
* </code></pre>
*
* @param name Required.
* <p>The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @param name Required. The job name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Job pauseJob(String name) {
Expand Down Expand Up @@ -815,8 +812,8 @@ public final UnaryCallable<PauseJobRequest, Job> pauseJobCallable() {
* }
* </code></pre>
*
* @param name Required.
* <p>The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @param name Required. The job name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Job resumeJob(JobName name) {
Expand Down Expand Up @@ -845,8 +842,8 @@ public final Job resumeJob(JobName name) {
* }
* </code></pre>
*
* @param name Required.
* <p>The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @param name Required. The job name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Job resumeJob(String name) {
Expand Down Expand Up @@ -928,8 +925,8 @@ public final UnaryCallable<ResumeJobRequest, Job> resumeJobCallable() {
* }
* </code></pre>
*
* @param name Required.
* <p>The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @param name Required. The job name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Job runJob(JobName name) {
Expand All @@ -955,8 +952,8 @@ public final Job runJob(JobName name) {
* }
* </code></pre>
*
* @param name Required.
* <p>The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @param name Required. The job name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Job runJob(String name) {
Expand Down
Expand Up @@ -395,17 +395,17 @@ private static Builder initDefaults(Builder builder) {

builder
.deleteJobSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));

builder
.pauseJobSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));

builder
.resumeJobSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));

builder
Expand Down
10 changes: 5 additions & 5 deletions google-cloud-scheduler/synth.metadata
@@ -1,19 +1,19 @@
{
"updateTime": "2019-10-12T07:53:23.935777Z",
"updateTime": "2019-10-23T07:47:21.942644Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.39.0",
"dockerImage": "googleapis/artman@sha256:72554d0b3bdc0b4ac7d6726a6a606c00c14b454339037ed86be94574fb05d9f3"
"version": "0.40.2",
"dockerImage": "googleapis/artman@sha256:3b8f7d9b4c206843ce08053474f5c64ae4d388ff7d995e68b59fb65edf73eeb9"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "af8dd2c1750558b538eaa6bdaa3bc899079533ee",
"internalRef": "274260771"
"sha": "0d0dc5172f16c9815a5eda6e99408fb96282f608",
"internalRef": "276178557"
}
}
],
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6dd7b8a

Please sign in to comment.