Skip to content

Commit 8dff569

Browse files
Google APIscopybara-github
authored andcommitted
feat: add a new EkmService API
PiperOrigin-RevId: 425982419
1 parent 16ce675 commit 8dff569

6 files changed

Lines changed: 1501 additions & 693 deletions

File tree

google/cloud/kms/v1/BUILD.bazel

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ exports_files(["cloudkms_grpc_service_config.json"])
99
##############################################################################
1010
# Common
1111
##############################################################################
12+
# buildifier: disable=load-on-top
1213
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
1314

1415
proto_library(
1516
name = "kms_proto",
1617
srcs = [
18+
"ekm_service.proto",
1719
"resources.proto",
1820
"service.proto",
1921
],
@@ -43,6 +45,8 @@ proto_library_with_info(
4345
##############################################################################
4446
# Java
4547
##############################################################################
48+
# buildifier: disable=load-on-top
49+
# buildifier: disable=same-origin-load
4650
load(
4751
"@com_google_googleapis_imports//:imports.bzl",
4852
"java_gapic_assembly_gradle_pkg",
@@ -100,6 +104,8 @@ java_gapic_assembly_gradle_pkg(
100104
##############################################################################
101105
# Go
102106
##############################################################################
107+
# buildifier: disable=load-on-top
108+
# buildifier: disable=same-origin-load
103109
load(
104110
"@com_google_googleapis_imports//:imports.bzl",
105111
"go_gapic_assembly_pkg",
@@ -152,6 +158,8 @@ go_gapic_assembly_pkg(
152158
##############################################################################
153159
# Python
154160
##############################################################################
161+
# buildifier: disable=load-on-top
162+
# buildifier: disable=same-origin-load
155163
load(
156164
"@com_google_googleapis_imports//:imports.bzl",
157165
"py_gapic_assembly_pkg",
@@ -175,6 +183,8 @@ py_gapic_assembly_pkg(
175183
##############################################################################
176184
# PHP
177185
##############################################################################
186+
# buildifier: disable=load-on-top
187+
# buildifier: disable=same-origin-load
178188
load(
179189
"@com_google_googleapis_imports//:imports.bzl",
180190
"php_gapic_assembly_pkg",
@@ -217,6 +227,8 @@ php_gapic_assembly_pkg(
217227
##############################################################################
218228
# Node.js
219229
##############################################################################
230+
# buildifier: disable=load-on-top
231+
# buildifier: disable=same-origin-load
220232
load(
221233
"@com_google_googleapis_imports//:imports.bzl",
222234
"nodejs_gapic_assembly_pkg",
@@ -245,6 +257,8 @@ nodejs_gapic_assembly_pkg(
245257
##############################################################################
246258
# Ruby
247259
##############################################################################
260+
# buildifier: disable=load-on-top
261+
# buildifier: disable=same-origin-load
248262
load(
249263
"@com_google_googleapis_imports//:imports.bzl",
250264
"ruby_cloud_gapic_library",
@@ -297,6 +311,8 @@ ruby_gapic_assembly_pkg(
297311
##############################################################################
298312
# C#
299313
##############################################################################
314+
# buildifier: disable=load-on-top
315+
# buildifier: disable=same-origin-load
300316
load(
301317
"@com_google_googleapis_imports//:imports.bzl",
302318
"csharp_gapic_assembly_pkg",
@@ -340,6 +356,8 @@ csharp_gapic_assembly_pkg(
340356
##############################################################################
341357
# C++
342358
##############################################################################
359+
# buildifier: disable=load-on-top
360+
# buildifier: disable=same-origin-load
343361
load(
344362
"@com_google_googleapis_imports//:imports.bzl",
345363
"cc_grpc_library",

google/cloud/kms/v1/cloudkms_grpc_service_config.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
},
1616
{
1717
"name": [
18+
{
19+
"service": "google.cloud.kms.v1.EkmService",
20+
"method": "ListEkmConnections"
21+
},
1822
{
1923
"service": "google.cloud.kms.v1.KeyManagementService",
2024
"method": "ListKeyRings"
@@ -31,6 +35,10 @@
3135
"service": "google.cloud.kms.v1.KeyManagementService",
3236
"method": "ListCryptoKeyVersions"
3337
},
38+
{
39+
"service": "google.cloud.kms.v1.EkmService",
40+
"method": "GetEkmConnection"
41+
},
3442
{
3543
"service": "google.cloud.kms.v1.KeyManagementService",
3644
"method": "GetKeyRing"
@@ -47,6 +55,10 @@
4755
"service": "google.cloud.kms.v1.KeyManagementService",
4856
"method": "GetCryptoKeyVersion"
4957
},
58+
{
59+
"service": "google.cloud.kms.v1.EkmService",
60+
"method": "CreateEkmConnection"
61+
},
5062
{
5163
"service": "google.cloud.kms.v1.KeyManagementService",
5264
"method": "CreateKeyRing"
@@ -59,6 +71,10 @@
5971
"service": "google.cloud.kms.v1.KeyManagementService",
6072
"method": "CreateCryptoKey"
6173
},
74+
{
75+
"service": "google.cloud.kms.v1.EkmService",
76+
"method": "UpdateEkmConnection"
77+
},
6278
{
6379
"service": "google.cloud.kms.v1.KeyManagementService",
6480
"method": "UpdateCryptoKey"
@@ -111,14 +127,26 @@
111127
"service": "google.cloud.kms.v1.KeyManagementService",
112128
"method": "GenerateRandomBytes"
113129
},
130+
{
131+
"service": "google.cloud.kms.v1.EkmService",
132+
"method": "SetIamPolicy"
133+
},
114134
{
115135
"service": "google.cloud.kms.v1.KeyManagementService",
116136
"method": "SetIamPolicy"
117137
},
138+
{
139+
"service": "google.cloud.kms.v1.EkmService",
140+
"method": "GetIamPolicy"
141+
},
118142
{
119143
"service": "google.cloud.kms.v1.KeyManagementService",
120144
"method": "GetIamPolicy"
121145
},
146+
{
147+
"service": "google.cloud.kms.v1.EkmService",
148+
"method": "TestIamPermissions"
149+
},
122150
{
123151
"service": "google.cloud.kms.v1.KeyManagementService",
124152
"method": "TestIamPermissions"

google/cloud/kms/v1/cloudkms_v1.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ name: cloudkms.googleapis.com
44
title: Cloud Key Management Service (KMS) API
55

66
apis:
7+
- name: google.cloud.kms.v1.EkmService
78
- name: google.cloud.kms.v1.KeyManagementService
89
- name: google.iam.v1.IAMPolicy
910

@@ -55,6 +56,7 @@ http:
5556
additional_bindings:
5657
- get: '/v1/{resource=projects/*/locations/*/keyRings/*/cryptoKeys/*}:getIamPolicy'
5758
- get: '/v1/{resource=projects/*/locations/*/keyRings/*/importJobs/*}:getIamPolicy'
59+
- get: '/v1/{resource=projects/*/locations/*/ekmConnections/*}:getIamPolicy'
5860
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
5961
post: '/v1/{resource=projects/*/locations/*/keyRings/*}:setIamPolicy'
6062
body: '*'
@@ -63,6 +65,8 @@ http:
6365
body: '*'
6466
- post: '/v1/{resource=projects/*/locations/*/keyRings/*/importJobs/*}:setIamPolicy'
6567
body: '*'
68+
- post: '/v1/{resource=projects/*/locations/*/ekmConnections/*}:setIamPolicy'
69+
body: '*'
6670
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
6771
post: '/v1/{resource=projects/*/locations/*/keyRings/*}:testIamPermissions'
6872
body: '*'
@@ -71,9 +75,16 @@ http:
7175
body: '*'
7276
- post: '/v1/{resource=projects/*/locations/*/keyRings/*/importJobs/*}:testIamPermissions'
7377
body: '*'
78+
- post: '/v1/{resource=projects/*/locations/*/ekmConnections/*}:testIamPermissions'
79+
body: '*'
7480

7581
authentication:
7682
rules:
83+
- selector: 'google.cloud.kms.v1.EkmService.*'
84+
oauth:
85+
canonical_scopes: |-
86+
https://www.googleapis.com/auth/cloud-platform,
87+
https://www.googleapis.com/auth/cloudkms
7788
- selector: 'google.cloud.kms.v1.KeyManagementService.*'
7889
oauth:
7990
canonical_scopes: |-

0 commit comments

Comments
 (0)