Skip to content

Commit 8b56c0d

Browse files
feat: [Kms] Add KeyProjectResolutionMode to AutokeyConfig to support project-level configurations (#8925)
* feat: Add KeyProjectResolutionMode to AutokeyConfig to support project-level configurations feat: Add more post-quantum (PQ) signature algorithms to CryptoKeyVersion docs: Update documentation for AutokeyAdmin service and messages to support folder and project-level configurations docs: Clarify supported resources for the crypto_key_backend field in ImportJob PiperOrigin-RevId: 870858133 Source-Link: googleapis/googleapis@b026ba8 Source-Link: googleapis/googleapis-gen@958c60c Copy-Tag: eyJwIjoiS21zLy5Pd2xCb3QueWFtbCIsImgiOiI5NThjNjBjOTg0NGU2YjFjNDM3OGM0M2UzNGViZTg3ZTY2MWEzMzIwIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8a05799 commit 8b56c0d

22 files changed

Lines changed: 346 additions & 33 deletions

Kms/metadata/V1/AutokeyAdmin.php

423 Bytes
Binary file not shown.

Kms/metadata/V1/Resources.php

194 Bytes
Binary file not shown.

Kms/samples/V1/AutokeyAdminClient/get_autokey_config.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@
2929
use Google\Cloud\Kms\V1\GetAutokeyConfigRequest;
3030

3131
/**
32-
* Returns the [AutokeyConfig][google.cloud.kms.v1.AutokeyConfig] for a
33-
* folder.
32+
* Returns the [AutokeyConfig][google.cloud.kms.v1.AutokeyConfig] for a folder
33+
* or project.
3434
*
3535
* @param string $formattedName Name of the [AutokeyConfig][google.cloud.kms.v1.AutokeyConfig]
36-
* resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`. Please see
36+
* resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or
37+
* `projects/{PROJECT_NUMBER}/autokeyConfig`. Please see
3738
* {@see AutokeyAdminClient::autokeyConfigName()} for help formatting this field.
3839
*/
3940
function get_autokey_config_sample(string $formattedName): void

Kms/samples/V1/AutokeyAdminClient/list_locations.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131

3232
/**
3333
* Lists information about the supported locations for this service.
34+
This method can be called in two ways:
35+
36+
* **List all public locations:** Use the path `GET /v1/locations`.
37+
* **List project-visible locations:** Use the path
38+
`GET /v1/projects/{project_id}/locations`. This may include public
39+
locations as well as private or other locations specifically visible
40+
to the project.
3441
*
3542
* This sample has been automatically generated and should be regarded as a code
3643
* template only. It will require modifications to work:

Kms/samples/V1/AutokeyAdminClient/update_autokey_config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
use Google\Protobuf\FieldMask;
3131

3232
/**
33-
* Updates the [AutokeyConfig][google.cloud.kms.v1.AutokeyConfig] for a
34-
* folder. The caller must have both `cloudkms.autokeyConfigs.update`
33+
* Updates the [AutokeyConfig][google.cloud.kms.v1.AutokeyConfig] for a folder
34+
* or a project. The caller must have both `cloudkms.autokeyConfigs.update`
3535
* permission on the parent folder and `cloudkms.cryptoKeys.setIamPolicy`
3636
* permission on the provided key project. A
3737
* [KeyHandle][google.cloud.kms.v1.KeyHandle] creation in the folder's

Kms/samples/V1/AutokeyClient/list_locations.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131

3232
/**
3333
* Lists information about the supported locations for this service.
34+
This method can be called in two ways:
35+
36+
* **List all public locations:** Use the path `GET /v1/locations`.
37+
* **List project-visible locations:** Use the path
38+
`GET /v1/projects/{project_id}/locations`. This may include public
39+
locations as well as private or other locations specifically visible
40+
to the project.
3441
*
3542
* This sample has been automatically generated and should be regarded as a code
3643
* template only. It will require modifications to work:

Kms/samples/V1/EkmServiceClient/list_locations.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131

3232
/**
3333
* Lists information about the supported locations for this service.
34+
This method can be called in two ways:
35+
36+
* **List all public locations:** Use the path `GET /v1/locations`.
37+
* **List project-visible locations:** Use the path
38+
`GET /v1/projects/{project_id}/locations`. This may include public
39+
locations as well as private or other locations specifically visible
40+
to the project.
3441
*
3542
* This sample has been automatically generated and should be regarded as a code
3643
* template only. It will require modifications to work:

Kms/samples/V1/HsmManagementClient/list_locations.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131

3232
/**
3333
* Lists information about the supported locations for this service.
34+
This method can be called in two ways:
35+
36+
* **List all public locations:** Use the path `GET /v1/locations`.
37+
* **List project-visible locations:** Use the path
38+
`GET /v1/projects/{project_id}/locations`. This may include public
39+
locations as well as private or other locations specifically visible
40+
to the project.
3441
*
3542
* This sample has been automatically generated and should be regarded as a code
3643
* template only. It will require modifications to work:

Kms/samples/V1/KeyManagementServiceClient/list_locations.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131

3232
/**
3333
* Lists information about the supported locations for this service.
34+
This method can be called in two ways:
35+
36+
* **List all public locations:** Use the path `GET /v1/locations`.
37+
* **List project-visible locations:** Use the path
38+
`GET /v1/projects/{project_id}/locations`. This may include public
39+
locations as well as private or other locations specifically visible
40+
to the project.
3441
*
3542
* This sample has been automatically generated and should be regarded as a code
3643
* template only. It will require modifications to work:

Kms/src/V1/AutokeyConfig.php

Lines changed: 50 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)