Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit d1b5f1a

Browse files
feat: AuditConfig for IAM v1 (#1061)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 439356405 Source-Link: googleapis/googleapis@afa2ba1 Source-Link: googleapis/googleapis-gen@3e40c17 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2U0MGMxN2UxNTEwYzk1ZmFiNThmYzIxNDNjY2I2MWNjZWNhNTk4OSJ9 docs: Update `cpu_utilization_percent` limit docs: Remove the limitation of all clusters in a CMEK instance must use the same key PiperOrigin-RevId: 438385300 Source-Link: googleapis/googleapis@c59f02e Source-Link: googleapis/googleapis-gen@04d03d1 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDRkMDNkMTdhYWZhN2I0NDIyZjczYzkzNjAwZjA0MDU0MjgxN2ZjZCJ9
1 parent 6c09b0a commit d1b5f1a

8 files changed

Lines changed: 42 additions & 8 deletions

protos/google/bigtable/admin/v2/instance.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ message Instance {
118118
message AutoscalingTargets {
119119
// The cpu utilization that the Autoscaler should be trying to achieve.
120120
// This number is on a scale from 0 (no utilization) to
121-
// 100 (total utilization).
121+
// 100 (total utilization), and is limited between 10 and 80, otherwise it
122+
// will return INVALID_ARGUMENT error.
122123
int32 cpu_utilization_percent = 2;
123124
}
124125

@@ -165,7 +166,6 @@ message Cluster {
165166
// `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key.
166167
// 2) Only regional keys can be used and the region of the CMEK key must
167168
// match the region of the cluster.
168-
// 3) All clusters within an instance must use the same CMEK key.
169169
string kms_key_name = 1 [(google.api.resource_reference) = {
170170
type: "cloudkms.googleapis.com/CryptoKey"
171171
}];

samples/generated/v2/bigtable_instance_admin.get_iam_policy.js

Lines changed: 1 addition & 1 deletion
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

samples/generated/v2/bigtable_instance_admin.set_iam_policy.js

Lines changed: 7 additions & 0 deletions
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 Admin library
4249
const {BigtableInstanceAdminClient} = require('@google-cloud/bigtable').v2;

samples/generated/v2/bigtable_table_admin.get_iam_policy.js

Lines changed: 1 addition & 1 deletion
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

samples/generated/v2/bigtable_table_admin.set_iam_policy.js

Lines changed: 7 additions & 0 deletions
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 Admin library
4249
const {BigtableTableAdminClient} = require('@google-cloud/bigtable').v2;

samples/generated/v2/snippet_metadata.google.bigtable.admin.v2.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@
858858
"segments": [
859859
{
860860
"start": 25,
861-
"end": 59,
861+
"end": 66,
862862
"type": "FULL"
863863
}
864864
],
@@ -874,6 +874,10 @@
874874
{
875875
"name": "policy",
876876
"type": ".google.iam.v1.Policy"
877+
},
878+
{
879+
"name": "update_mask",
880+
"type": ".google.protobuf.FieldMask"
877881
}
878882
],
879883
"resultType": ".google.iam.v1.Policy",
@@ -1918,7 +1922,7 @@
19181922
"segments": [
19191923
{
19201924
"start": 25,
1921-
"end": 59,
1925+
"end": 66,
19221926
"type": "FULL"
19231927
}
19241928
],
@@ -1934,6 +1938,10 @@
19341938
{
19351939
"name": "policy",
19361940
"type": ".google.iam.v1.Policy"
1941+
},
1942+
{
1943+
"name": "update_mask",
1944+
"type": ".google.protobuf.FieldMask"
19371945
}
19381946
],
19391947
"resultType": ".google.iam.v1.Policy",

src/v2/bigtable_instance_admin_client.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ export class BigtableInstanceAdminClient {
13831383
* See the operation documentation for the appropriate value for this field.
13841384
* @param {google.iam.v1.GetPolicyOptions} request.options
13851385
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
1386-
* `GetIamPolicy`. This field is only used by Cloud IAM.
1386+
* `GetIamPolicy`.
13871387
* @param {object} [options]
13881388
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
13891389
* @returns {Promise} - The promise which resolves to an array.
@@ -1474,6 +1474,12 @@ export class BigtableInstanceAdminClient {
14741474
* the policy is limited to a few 10s of KB. An empty policy is a
14751475
* valid policy but certain Cloud Platform services (such as Projects)
14761476
* might reject them.
1477+
* @param {google.protobuf.FieldMask} request.updateMask
1478+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1479+
* the fields in the mask will be modified. If no mask is provided, the
1480+
* following default mask is used:
1481+
*
1482+
* `paths: "bindings, etag"`
14771483
* @param {object} [options]
14781484
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
14791485
* @returns {Promise} - The promise which resolves to an array.

src/v2/bigtable_table_admin_client.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ export class BigtableTableAdminClient {
15901590
* See the operation documentation for the appropriate value for this field.
15911591
* @param {google.iam.v1.GetPolicyOptions} request.options
15921592
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
1593-
* `GetIamPolicy`. This field is only used by Cloud IAM.
1593+
* `GetIamPolicy`.
15941594
* @param {object} [options]
15951595
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
15961596
* @returns {Promise} - The promise which resolves to an array.
@@ -1681,6 +1681,12 @@ export class BigtableTableAdminClient {
16811681
* the policy is limited to a few 10s of KB. An empty policy is a
16821682
* valid policy but certain Cloud Platform services (such as Projects)
16831683
* might reject them.
1684+
* @param {google.protobuf.FieldMask} request.updateMask
1685+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1686+
* the fields in the mask will be modified. If no mask is provided, the
1687+
* following default mask is used:
1688+
*
1689+
* `paths: "bindings, etag"`
16841690
* @param {object} [options]
16851691
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
16861692
* @returns {Promise} - The promise which resolves to an array.

0 commit comments

Comments
 (0)