@axway/axway-central-cli 2.17.0-rc.4 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -42,13 +42,13 @@ class APIGEEXDataplaneConfig extends DataplaneConfig {
|
|
|
42
42
|
constructor(projectID, developerEmail, mode) {
|
|
43
43
|
super("Apigee");
|
|
44
44
|
|
|
45
|
-
_defineProperty(this, "
|
|
45
|
+
_defineProperty(this, "projectId", void 0);
|
|
46
46
|
|
|
47
47
|
_defineProperty(this, "developerEmail", void 0);
|
|
48
48
|
|
|
49
49
|
_defineProperty(this, "mode", void 0);
|
|
50
50
|
|
|
51
|
-
this.
|
|
51
|
+
this.projectId = projectID;
|
|
52
52
|
this.developerEmail = developerEmail;
|
|
53
53
|
this.mode = mode;
|
|
54
54
|
}
|
|
@@ -86,7 +86,7 @@ class SaasAPIGEEXAgentValues extends SaasAgentValues {
|
|
|
86
86
|
|
|
87
87
|
_defineProperty(this, "credentialJSON", void 0);
|
|
88
88
|
|
|
89
|
-
_defineProperty(this, "
|
|
89
|
+
_defineProperty(this, "projectId", void 0);
|
|
90
90
|
|
|
91
91
|
_defineProperty(this, "developerEmailAddress", void 0);
|
|
92
92
|
|
|
@@ -95,7 +95,7 @@ class SaasAPIGEEXAgentValues extends SaasAgentValues {
|
|
|
95
95
|
this.authType = APIGEEXAuthType.IMP_SVC_ACC;
|
|
96
96
|
this.clientEmailAddress = '';
|
|
97
97
|
this.credentialJSON = '';
|
|
98
|
-
this.
|
|
98
|
+
this.projectId = '';
|
|
99
99
|
this.developerEmailAddress = '';
|
|
100
100
|
this.mode = _types.APIGEEXDISCOVERYMODES.PROXY;
|
|
101
101
|
}
|
|
@@ -151,9 +151,9 @@ const askConfigType = async () => {
|
|
|
151
151
|
|
|
152
152
|
const askForAPIGEEXCredentials = async hostedAgentValues => {
|
|
153
153
|
log("gathering access details for apigee x");
|
|
154
|
-
hostedAgentValues.
|
|
154
|
+
hostedAgentValues.projectId = await (0, _basicPrompts.askInput)({
|
|
155
155
|
msg: SaasPrompts.PROJECT_ID,
|
|
156
|
-
defaultValue: hostedAgentValues.
|
|
156
|
+
defaultValue: hostedAgentValues.projectId !== '' ? hostedAgentValues.projectId : undefined,
|
|
157
157
|
validate: (0, _basicPrompts.validateRegex)(helpers.APIGEEXRegexPatterns.APIGEEX_REGEXP_PROJECT_ID, helpers.invalidValueExampleErrMsg('Project ID', 'rd-amplify-apigee-x'))
|
|
158
158
|
}); // get developer email address
|
|
159
159
|
|
|
@@ -276,7 +276,7 @@ const completeInstall = async (installConfig, apiServerClient, defsManager) => {
|
|
|
276
276
|
}) : installConfig.centralConfig.ampcEnvInfo.name;
|
|
277
277
|
|
|
278
278
|
if (installConfig.gatewayType === _types.GatewayTypes.APIGEEX_GATEWAY) {
|
|
279
|
-
apigeeXAgentValues.dataplaneConfig = new APIGEEXDataplaneConfig(apigeeXAgentValues.
|
|
279
|
+
apigeeXAgentValues.dataplaneConfig = new APIGEEXDataplaneConfig(apigeeXAgentValues.projectId, apigeeXAgentValues.developerEmailAddress, apigeeXAgentValues.mode);
|
|
280
280
|
} // create the data plane resource
|
|
281
281
|
|
|
282
282
|
|