Skip to content
This repository was archived by the owner on Aug 3, 2022. It is now read-only.

Commit 49252c3

Browse files
committed
remove authCode (scope should suffice), add org and env to bundles.
1 parent 18f1188 commit 49252c3

File tree

2 files changed

+27
-12
lines changed

2 files changed

+27
-12
lines changed

apidGatewayDeploy-api.yaml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,22 @@ paths:
4646
"bundles": [
4747
{
4848
"bundleId": "system-bundle-rev-3",
49-
"authCode": "@#$nike#$#$stage&#$(^#",
50-
"uri": "file:///apid/bundles/system-bundle-release-1-1233.zip"
49+
"uri": "file:///apid/bundles/system-bundle-release-1-1233.zip",
50+
"scope": "@#$nike#$#$stage&#$(^#",
51+
"org": "nike",
52+
"env": "stage",
5153
},{
5254
"bundleId": "bundleA-rev-9",
53-
"authCode": "@#$nike#$#$prod&#$(^#",
54-
"uri": "file:///apid/bundles/bundleA-rev-9-26372.zip"
55+
"uri": "file:///apid/bundles/bundleA-rev-9-26372.zip",
56+
"scope": "@#$nike#$#$prod&#$(^#",
57+
"org": "nike",
58+
"env": "prod",
5559
},{
5660
"bundleId": "bundleB-rev-1",
57-
"authCode": "@#$nike#$#$test&#$(^#",
58-
"uri": "file:///somewhere/bundles/bundleB-rev-1-72351.zip"
61+
"uri": "file:///somewhere/bundles/bundleB-rev-1-72351.zip",
62+
"scope": "@#$nike#$#$test&#$(^#",
63+
"org": "nike",
64+
"env": "test",
5965
}
6066
]
6167
}
@@ -126,20 +132,28 @@ definitions:
126132
type: object
127133
required:
128134
- bundleId
129-
- url
135+
- uri
130136
properties:
131137
bundleId:
132138
type: string
133-
url:
139+
uri:
134140
type: string
141+
135142
UserBundle:
136143
allOf:
137144
- $ref: '#/definitions/SystemBundle'
138145
required:
139-
- authCode
146+
- scope
140147
properties:
141-
authCode:
148+
scope:
149+
type: string
150+
description: Used to convey request scope information to APID APIs
151+
org:
142152
type: string
153+
description: Available for legacy purposes
154+
env:
155+
type: string
156+
description: Available for legacy purposes
143157

144158
DeploymentResult:
145159
type: object
@@ -158,7 +172,6 @@ definitions:
158172
"status": "SUCCESS"
159173
}
160174

161-
162175
DeploymentResultError:
163176
type: object
164177
required:
@@ -176,7 +189,7 @@ definitions:
176189
example: {
177190
"error": {
178191
"errorCode": 5,
179-
"reason": "Failed to restart NGINX",
192+
"reason": "Failed restart",
180193
"bundleErrors": [
181194
{
182195
"bundleId": "system-bundle-rev-3",

deployments.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ type systemBundle struct {
2424
type dependantBundle struct {
2525
URI string `json:"uri"`
2626
Scope string `json:"scope"`
27+
Org string `json:"org"`
28+
Env string `json:"env"`
2729
}
2830

2931
type bundleManifest struct {

0 commit comments

Comments
 (0)