Skip to content

Commit 963d301

Browse files
feat: AuditConfig for IAM v1 (#356)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 439356405 Source-Link: googleapis/googleapis@afa2ba1 Source-Link: googleapis/googleapis-gen@3e40c17 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2U0MGMxN2UxNTEwYzk1ZmFiNThmYzIxNDNjY2I2MWNjZWNhNTk4OSJ9 feat: Added support for accessing secret versions by alias Clients can now associate custom strings with specified secret versions for later access. PiperOrigin-RevId: 439320490 Source-Link: googleapis/googleapis@bbe5618 Source-Link: googleapis/googleapis-gen@6bdfcfd Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmJkZmNmZDg3OTc0MGM2MmJiZTExYjJlYmM2YjgzNzFmMGQ0MjBhZiJ9
1 parent 71b16f1 commit 963d301

File tree

8 files changed

+115
-4
lines changed

8 files changed

+115
-4
lines changed

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

+13
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,19 @@ message Secret {
9797
// Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
9898
// rotation policy.
9999
Rotation rotation = 9 [(google.api.field_behavior) = OPTIONAL];
100+
101+
// Optional. Mapping from version alias to version name.
102+
//
103+
// A version alias is a string with a maximum length of 63 characters and can
104+
// contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
105+
// and underscore ('_') characters. An alias string must start with a
106+
// letter and cannot be the string 'latest' or 'NEW'.
107+
// No more than 50 aliases can be assigned to a given secret.
108+
//
109+
// Version-Alias pairs will be viewable via GetSecret and modifiable via
110+
// UpdateSecret. At launch access by alias will only be supported on
111+
// GetSecretVersion and AccessSecretVersion.
112+
map<string, int64> version_aliases = 11 [(google.api.field_behavior) = OPTIONAL];
100113
}
101114

102115
// A secret version resource in the Secret Manager API.

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

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

packages/google-cloud-secretmanager/protos/protos.js

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

packages/google-cloud-secretmanager/protos/protos.json

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

packages/google-cloud-secretmanager/samples/generated/v1/secret_manager_service.get_iam_policy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function main(resource) {
3232
// const resource = 'abc123'
3333
/**
3434
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
35-
* `GetIamPolicy`. This field is only used by Cloud IAM.
35+
* `GetIamPolicy`.
3636
*/
3737
// const options = {}
3838

packages/google-cloud-secretmanager/samples/generated/v1/secret_manager_service.set_iam_policy.js

+7
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ function main(resource, policy) {
3737
* might reject them.
3838
*/
3939
// const policy = {}
40+
/**
41+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
42+
* the fields in the mask will be modified. If no mask is provided, the
43+
* following default mask is used:
44+
* `paths: "bindings, etag"`
45+
*/
46+
// const updateMask = {}
4047

4148
// Imports the Secretmanager library
4249
const {SecretManagerServiceClient} = require('@google-cloud/secret-manager').v1;

packages/google-cloud-secretmanager/samples/generated/v1/snippet_metadata.google.cloud.secretmanager.v1.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@
558558
"segments": [
559559
{
560560
"start": 25,
561-
"end": 59,
561+
"end": 66,
562562
"type": "FULL"
563563
}
564564
],
@@ -574,6 +574,10 @@
574574
{
575575
"name": "policy",
576576
"type": ".google.iam.v1.Policy"
577+
},
578+
{
579+
"name": "update_mask",
580+
"type": ".google.protobuf.FieldMask"
577581
}
578582
],
579583
"resultType": ".google.iam.v1.Policy",

packages/google-cloud-secretmanager/src/v1/secret_manager_service_client.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,12 @@ export class SecretManagerServiceClient {
13521352
* the policy is limited to a few 10s of KB. An empty policy is a
13531353
* valid policy but certain Cloud Platform services (such as Projects)
13541354
* might reject them.
1355+
* @param {google.protobuf.FieldMask} request.updateMask
1356+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1357+
* the fields in the mask will be modified. If no mask is provided, the
1358+
* following default mask is used:
1359+
*
1360+
* `paths: "bindings, etag"`
13551361
* @param {object} [options]
13561362
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
13571363
* @returns {Promise} - The promise which resolves to an array.
@@ -1439,7 +1445,7 @@ export class SecretManagerServiceClient {
14391445
* See the operation documentation for the appropriate value for this field.
14401446
* @param {google.iam.v1.GetPolicyOptions} request.options
14411447
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
1442-
* `GetIamPolicy`. This field is only used by Cloud IAM.
1448+
* `GetIamPolicy`.
14431449
* @param {object} [options]
14441450
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
14451451
* @returns {Promise} - The promise which resolves to an array.

0 commit comments

Comments
 (0)