Skip to content

Commit 22bf5e7

Browse files
OAS Update
1 parent a578018 commit 22bf5e7

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

services/secrets-manager/v1/secrets-manager.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
},
5757
"CreateInstancePayload": {
5858
"properties": {
59+
"kmsKey": {
60+
"$ref": "#/components/schemas/KmsKeyPayload"
61+
},
5962
"name": {
6063
"description": "A user chosen name to distinguish multiple secrets manager instances.",
6164
"type": "string"
@@ -99,6 +102,9 @@
99102
"description": "A auto generated unique id which identifies the secrets manager instances.",
100103
"type": "string"
101104
},
105+
"kmsKey": {
106+
"$ref": "#/components/schemas/KmsKeyPayload"
107+
},
102108
"name": {
103109
"description": "A user chosen name to distinguish multiple secrets manager instances.",
104110
"type": "string"
@@ -132,6 +138,39 @@
132138
"secretCount"
133139
]
134140
},
141+
"KmsKeyPayload": {
142+
"description": "The key for secret encryption and decryption.",
143+
"properties": {
144+
"keyId": {
145+
"description": "The key UUID.",
146+
"format": "uuid",
147+
"type": "string",
148+
"x-go-type": "string"
149+
},
150+
"keyRingId": {
151+
"description": "The key ring UUID the key is part of.",
152+
"format": "uuid",
153+
"type": "string",
154+
"x-go-type": "string"
155+
},
156+
"keyVersion": {
157+
"description": "The Key version number.",
158+
"format": "int64",
159+
"type": "integer"
160+
},
161+
"serviceAccountEmail": {
162+
"description": "The Service account email that will consume the key. Must be in the same project as the Secrets Manager instance.",
163+
"type": "string"
164+
}
165+
},
166+
"required": [
167+
"serviceAccountEmail",
168+
"keyRingId",
169+
"keyId",
170+
"keyVersion"
171+
],
172+
"type": "object"
173+
},
135174
"ListACLsResponse": {
136175
"properties": {
137176
"acls": {
@@ -215,6 +254,9 @@
215254
},
216255
"UpdateInstancePayload": {
217256
"properties": {
257+
"kmsKey": {
258+
"$ref": "#/components/schemas/KmsKeyPayload"
259+
},
218260
"name": {
219261
"description": "A user chosen name to distinguish multiple secrets manager instances.",
220262
"type": "string"
@@ -724,6 +766,16 @@
724766
},
725767
"description": "Not found. Instance not found."
726768
},
769+
"409": {
770+
"content": {
771+
"application/json": {
772+
"schema": {
773+
"$ref": "#/components/schemas/Conflict"
774+
}
775+
}
776+
},
777+
"description": "Conflict. ACLs limit reached. Contact the support."
778+
},
727779
"500": {
728780
"description": "Internal server error. The application experienced some unexpected situation."
729781
}
@@ -784,6 +836,16 @@
784836
},
785837
"description": "Not found. One or more Cidrs not found."
786838
},
839+
"409": {
840+
"content": {
841+
"application/json": {
842+
"schema": {
843+
"$ref": "#/components/schemas/Conflict"
844+
}
845+
}
846+
},
847+
"description": "Conflict. ACLs limit reached. Contact the support."
848+
},
787849
"500": {
788850
"description": "Internal server error. The application experienced some unexpected situation."
789851
}

0 commit comments

Comments
 (0)