Skip to content

[usability] the Cloud Secret Manager API surface requires empty object for replication #689

@bcoe

Description

@bcoe

With the Secret Manager API, unless I provide an empty automatic object to replication, like so:

    const secret = await client.createSecret({
      parent: 'projects/1111111',
      secret: {
        name: 'foo',
        replication: {
          automatic: {}
        }
      },
      secretId: 'foo'
    })

I receive:

INVALID_ARGUMENT: Secret.replication must be provided.

☝️ an empty object feels like a weird interpretation of the protos?

Metadata

Metadata

Labels

type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions