Skip to content

Commit

Permalink
build: remove codecov action, update linting (#52)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/d2181a4a-8c05-4f13-b080-92526da78619/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

Source-Link: googleapis/synthtool@b891fb4
  • Loading branch information
yoshi-automation authored May 24, 2021
1 parent 24d006d commit 80e3f21
Show file tree
Hide file tree
Showing 3 changed files with 203 additions and 259 deletions.
165 changes: 75 additions & 90 deletions packages/google-api-servicemanagement/src/v1/service_manager_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,14 @@ export class ServiceManagerClient {
];
for (const methodName of serviceManagerStubMethods) {
const callPromise = this.serviceManagerStub.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 @@ -498,11 +499,10 @@ export class ServiceManagerClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
this.initialize();
return this.innerApiCalls.getService(request, options, callback);
}
Expand Down Expand Up @@ -605,11 +605,10 @@ export class ServiceManagerClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
this.initialize();
return this.innerApiCalls.getServiceConfig(request, options, callback);
}
Expand Down Expand Up @@ -713,11 +712,10 @@ export class ServiceManagerClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
this.initialize();
return this.innerApiCalls.createServiceConfig(request, options, callback);
}
Expand Down Expand Up @@ -814,11 +812,10 @@ export class ServiceManagerClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
this.initialize();
return this.innerApiCalls.getServiceRollout(request, options, callback);
}
Expand Down Expand Up @@ -1175,11 +1172,10 @@ export class ServiceManagerClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
this.initialize();
return this.innerApiCalls.deleteService(request, options, callback);
}
Expand Down Expand Up @@ -1323,11 +1319,10 @@ export class ServiceManagerClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
this.initialize();
return this.innerApiCalls.undeleteService(request, options, callback);
}
Expand Down Expand Up @@ -1484,11 +1479,10 @@ export class ServiceManagerClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
this.initialize();
return this.innerApiCalls.submitConfigSource(request, options, callback);
}
Expand Down Expand Up @@ -1642,11 +1636,10 @@ export class ServiceManagerClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
this.initialize();
return this.innerApiCalls.createServiceRollout(request, options, callback);
}
Expand Down Expand Up @@ -1800,11 +1793,10 @@ export class ServiceManagerClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
this.initialize();
return this.innerApiCalls.enableService(request, options, callback);
}
Expand Down Expand Up @@ -1957,11 +1949,10 @@ export class ServiceManagerClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
this.initialize();
return this.innerApiCalls.disableService(request, options, callback);
}
Expand Down Expand Up @@ -2203,7 +2194,7 @@ export class ServiceManagerClient {
this.initialize();
return this.descriptors.page.listServices.asyncIterate(
this.innerApiCalls['listServices'] as GaxCall,
(request as unknown) as RequestType,
request as unknown as RequestType,
callSettings
) as AsyncIterable<protos.google.api.servicemanagement.v1.IManagedService>;
}
Expand Down Expand Up @@ -2301,11 +2292,10 @@ export class ServiceManagerClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
this.initialize();
return this.innerApiCalls.listServiceConfigs(request, options, callback);
}
Expand Down Expand Up @@ -2342,11 +2332,10 @@ export class ServiceManagerClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
const callSettings = new gax.CallSettings(options);
this.initialize();
return this.descriptors.page.listServiceConfigs.createStream(
Expand Down Expand Up @@ -2394,17 +2383,16 @@ export class ServiceManagerClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options = options || {};
const callSettings = new gax.CallSettings(options);
this.initialize();
return this.descriptors.page.listServiceConfigs.asyncIterate(
this.innerApiCalls['listServiceConfigs'] as GaxCall,
(request as unknown) as RequestType,
request as unknown as RequestType,
callSettings
) as AsyncIterable<protos.google.api.IService>;
}
Expand Down Expand Up @@ -2511,11 +2499,10 @@ export class ServiceManagerClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
this.initialize();
return this.innerApiCalls.listServiceRollouts(request, options, callback);
}
Expand Down Expand Up @@ -2561,11 +2548,10 @@ export class ServiceManagerClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
const callSettings = new gax.CallSettings(options);
this.initialize();
return this.descriptors.page.listServiceRollouts.createStream(
Expand Down Expand Up @@ -2622,17 +2608,16 @@ export class ServiceManagerClient {
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options.otherArgs.headers['x-goog-request-params'] =
gax.routingHeader.fromParams({
service_name: request.serviceName || '',
});
options = options || {};
const callSettings = new gax.CallSettings(options);
this.initialize();
return this.descriptors.page.listServiceRollouts.asyncIterate(
this.innerApiCalls['listServiceRollouts'] as GaxCall,
(request as unknown) as RequestType,
request as unknown as RequestType,
callSettings
) as AsyncIterable<protos.google.api.servicemanagement.v1.IRollout>;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/google-api-servicemanagement/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "e6f3d54be015a394b6ab5a25903ec09062a2b424"
"sha": "b891fb474173f810051a7fdb0d66915e0a9bc82f"
}
}
],
Expand Down
Loading

0 comments on commit 80e3f21

Please sign in to comment.