|
@@ -92,6 +92,19 @@ const ErrorV3 = require('../../models/vo/error-apiv3');
|
|
|
* secretAccessKey:
|
|
* secretAccessKey:
|
|
|
* type: string
|
|
* type: string
|
|
|
* description: secret key for authentification of AWS
|
|
* description: secret key for authentification of AWS
|
|
|
|
|
+ * GcpSettingParams:
|
|
|
|
|
+ * description: GcpSettingParams
|
|
|
|
|
+ * type: object
|
|
|
|
|
+ * properties:
|
|
|
|
|
+ * gcsApiKeyJsonPath:
|
|
|
|
|
+ * type: string
|
|
|
|
|
+ * description: apiKeyJsonPath of gcp
|
|
|
|
|
+ * gcsBucket:
|
|
|
|
|
+ * type: string
|
|
|
|
|
+ * description: bucket name of gcs
|
|
|
|
|
+ * gcsUploadNamespace:
|
|
|
|
|
+ * type: string
|
|
|
|
|
+ * description: name space of gcs
|
|
|
* PluginSettingParams:
|
|
* PluginSettingParams:
|
|
|
* description: PluginSettingParams
|
|
* description: PluginSettingParams
|
|
|
* type: object
|
|
* type: object
|
|
@@ -549,25 +562,25 @@ module.exports = (crowi) => {
|
|
|
/**
|
|
/**
|
|
|
* @swagger
|
|
* @swagger
|
|
|
*
|
|
*
|
|
|
- * /app-settings/aws-setting:
|
|
|
|
|
|
|
+ * /app-settings/gcp-setting:
|
|
|
* put:
|
|
* put:
|
|
|
* tags: [AppSettings]
|
|
* tags: [AppSettings]
|
|
|
- * operationId: updateAppSettingAwsSetting
|
|
|
|
|
- * summary: /app-settings/aws-setting
|
|
|
|
|
- * description: Update aws setting
|
|
|
|
|
|
|
+ * operationId: updateAppSettingGcpSetting
|
|
|
|
|
+ * summary: /app-settings/gcp-setting
|
|
|
|
|
+ * description: Update gcp setting
|
|
|
* requestBody:
|
|
* requestBody:
|
|
|
* required: true
|
|
* required: true
|
|
|
* content:
|
|
* content:
|
|
|
* application/json:
|
|
* application/json:
|
|
|
* schema:
|
|
* schema:
|
|
|
- * $ref: '#/components/schemas/AwsSettingParams'
|
|
|
|
|
|
|
+ * $ref: '#/components/schemas/GcpSettingParams'
|
|
|
* responses:
|
|
* responses:
|
|
|
* 200:
|
|
* 200:
|
|
|
- * description: Succeeded to update aws setting
|
|
|
|
|
|
|
+ * description: Succeeded to update gcp setting
|
|
|
* content:
|
|
* content:
|
|
|
* application/json:
|
|
* application/json:
|
|
|
* schema:
|
|
* schema:
|
|
|
- * $ref: '#/components/schemas/AwsSettingParams'
|
|
|
|
|
|
|
+ * $ref: '#/components/schemas/GcpSettingParams'
|
|
|
*/
|
|
*/
|
|
|
router.put('/gcp-setting', loginRequiredStrictly, adminRequired, csrf, validator.gcpSetting, apiV3FormValidator, async(req, res) => {
|
|
router.put('/gcp-setting', loginRequiredStrictly, adminRequired, csrf, validator.gcpSetting, apiV3FormValidator, async(req, res) => {
|
|
|
const requestGcpSettingParams = {
|
|
const requestGcpSettingParams = {
|