Skip to content

Secret Manager has no projectPath method #638

@JustinBeckwith

Description

@JustinBeckwith

I was doing some basic stuff with Secret Manager, and tried to do a listSecrets:

const sm = new SecretManagerServiceClient();
const [secrets] = await sm.listSecrets({
  parent: 'projects/el-gato',
});
console.log(secrets);

I thought for places like this that expected a project URI (I think it wants a project URI...) I am used to having a sm.projectPath method I can use. I was surprised when that didn't seem to exist on the service client.

Metadata

Metadata

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions