Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async getCatalogs(
request: CatalogsRequest
): Promise {
const requestBuilder = await RequestFactory.create(
"config",
this.apiVersion,
this.settings
).catch(error => Promise.reject(error));
return ConfigApi.getCatalogs(
requestBuilder,
request.getSchema()
? {
verbose: "true",
schemaHrn: request.getSchema(),
billingTag: request.getBillingTag()
}
: { billingTag: request.getBillingTag() }
);
}
}