Skip to content

Commit 60940bf

Browse files
feat: added topic field to Secret (#207)
PiperOrigin-RevId: 359285402 Source-Author: Google APIs <[email protected]> Source-Date: Wed Feb 24 07:59:50 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 8b3d36daaf5561496b7d4075fba4f2c52d18ca1c Source-Link: googleapis/googleapis@8b3d36d
1 parent 718a354 commit 60940bf

File tree

8 files changed

+463
-5
lines changed

8 files changed

+463
-5
lines changed

packages/google-cloud-secretmanager/protos/google/cloud/secretmanager/v1/resources.proto

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -70,6 +70,10 @@ message Secret {
7070
// No more than 64 labels can be assigned to a given resource.
7171
map<string, string> labels = 4;
7272

73+
// Optional. A list of up to 10 Pub/Sub topics to which messages are published when
74+
// control plane operations are called on the secret or its versions.
75+
repeated Topic topics = 5 [(google.api.field_behavior) = OPTIONAL];
76+
7377
// Expiration policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. If specified the [Secret][google.cloud.secretmanager.v1.Secret]
7478
// and all [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] will be automatically deleted at
7579
// expiration. Expired secrets are irreversibly deleted.
@@ -260,6 +264,20 @@ message CustomerManagedEncryptionStatus {
260264
string kms_key_version_name = 1 [(google.api.field_behavior) = REQUIRED];
261265
}
262266

267+
// A Pub/Sub topic which Secret Manager will publish to when control plane
268+
// events occur on this secret.
269+
message Topic {
270+
option (google.api.resource) = {
271+
type: "pubsub.googleapis.com/Topic"
272+
pattern: "projects/{project}/topics/{topic}"
273+
};
274+
275+
// Required. The resource name of the Pub/Sub topic that will be published to, in the
276+
// following format: `projects/*/topics/*`. For publication to succeed, the
277+
// Secret Manager P4SA must have `pubsub.publisher` permissions on the topic.
278+
string name = 1 [(google.api.field_behavior) = REQUIRED];
279+
}
280+
263281
// A secret payload resource in the Secret Manager API. This contains the
264282
// sensitive secret payload that is associated with a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
265283
message SecretPayload {

packages/google-cloud-secretmanager/protos/google/cloud/secretmanager/v1/service.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-secretmanager/protos/protos.d.ts

+96
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)