Skip to content

Commit

Permalink
chore: new owl bot post processor docker image (#317)
Browse files Browse the repository at this point in the history
gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:f93bb861d6f12574437bb9aee426b71eafd63b419669ff0ed029f4b7e7162e3f
  • Loading branch information
gcf-owl-bot[bot] authored May 10, 2021
1 parent fe60f19 commit a41ff0b
Show file tree
Hide file tree
Showing 26 changed files with 959 additions and 1,104 deletions.
20 changes: 10 additions & 10 deletions packages/google-cloud-talent/protos/protos.d.ts

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

40 changes: 20 additions & 20 deletions packages/google-cloud-talent/protos/protos.js

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

80 changes: 37 additions & 43 deletions packages/google-cloud-talent/src/v4/company_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,14 @@ export class CompanyServiceClient {
];
for (const methodName of companyServiceStubMethods) {
const callPromise = this.companyServiceStub.then(
stub => (...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
stub =>
(...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
(err: Error | null | undefined) => () => {
throw err;
}
Expand Down Expand Up @@ -406,11 +407,10 @@ export class CompanyServiceClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
parent: request.parent || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
parent: request.parent || '',
});
this.initialize();
return this.innerApiCalls.createCompany(request, options, callback);
}
Expand Down Expand Up @@ -494,11 +494,10 @@ export class CompanyServiceClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
name: request.name || '',
});
this.initialize();
return this.innerApiCalls.getCompany(request, options, callback);
}
Expand Down Expand Up @@ -588,11 +587,10 @@ export class CompanyServiceClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
'company.name': request.company!.name || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
'company.name': request.company!.name || '',
});
this.initialize();
return this.innerApiCalls.updateCompany(request, options, callback);
}
Expand Down Expand Up @@ -679,11 +677,10 @@ export class CompanyServiceClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
name: request.name || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
name: request.name || '',
});
this.initialize();
return this.innerApiCalls.deleteCompany(request, options, callback);
}
Expand Down Expand Up @@ -784,11 +781,10 @@ export class CompanyServiceClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
parent: request.parent || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
parent: request.parent || '',
});
this.initialize();
return this.innerApiCalls.listCompanies(request, options, callback);
}
Expand Down Expand Up @@ -834,11 +830,10 @@ export class CompanyServiceClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
parent: request.parent || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
parent: request.parent || '',
});
const callSettings = new gax.CallSettings(options);
this.initialize();
return this.descriptors.page.listCompanies.createStream(
Expand Down Expand Up @@ -895,17 +890,16 @@ export class CompanyServiceClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
parent: request.parent || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
parent: request.parent || '',
});
options = options || {};
const callSettings = new gax.CallSettings(options);
this.initialize();
return this.descriptors.page.listCompanies.asyncIterate(
this.innerApiCalls['listCompanies'] as GaxCall,
(request as unknown) as RequestType,
request as unknown as RequestType,
callSettings
) as AsyncIterable<protos.google.cloud.talent.v4.ICompany>;
}
Expand Down
24 changes: 12 additions & 12 deletions packages/google-cloud-talent/src/v4/completion_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,14 @@ export class CompletionClient {
const completionStubMethods = ['completeQuery'];
for (const methodName of completionStubMethods) {
const callPromise = this.completionStub.then(
stub => (...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
stub =>
(...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
(err: Error | null | undefined) => () => {
throw err;
}
Expand Down Expand Up @@ -404,11 +405,10 @@ export class CompletionClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
tenant: request.tenant || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
tenant: request.tenant || '',
});
this.initialize();
return this.innerApiCalls.completeQuery(request, options, callback);
}
Expand Down
Loading

0 comments on commit a41ff0b

Please sign in to comment.