function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

var BaseComDeployApis = /*#__PURE__*/function () {
  function BaseComDeployApis() {
    _classCallCheck(this, BaseComDeployApis);
  }

  _createClass(BaseComDeployApis, null, [{
    key: "getParamsSettingApi",
    value: function getParamsSettingApi(middlewareName, deployPattern, deployModel) {
      return "/market/v1/middleware/config?middlewareName=".concat(middlewareName, "&deployPattern=").concat(deployPattern, "&deployModel=").concat(deployModel);
    }
  }, {
    key: "getBaseDeployMySqlEnvAPi",
    value: function getBaseDeployMySqlEnvAPi(projectId) {
      return "/devops/v1/projects/".concat(projectId, "/middleware/mysql/deploy/env");
    }
  }, {
    key: "getPvLabesUrl",
    value: function getPvLabesUrl(projectId, clusterId) {
      return "/devops/v1/projects/".concat(projectId, "/pvs/labels?cluster_id=").concat(clusterId);
    }
  }, {
    key: "getBaseDployMySqlHostApi",
    value: function getBaseDployMySqlHostApi(projectId) {
      return "/devops/v1/projects/".concat(projectId, "/middleware/mysql/deploy/host");
    }
  }, {
    key: "getPvcListApi",
    value: function getPvcListApi(projectId, envId) {
      return "/devops/v1/projects/".concat(projectId, "/pvcs/page_by_options?env_id=").concat(envId, "&page=0&size=0");
    }
  }, {
    key: "getServiceVersionApi",
    value: function getServiceVersionApi(name) {
      return "/market/v1/middleware/versions?middleware_name=".concat(name || 'Redis');
    }
  }, {
    key: "getEnvListApi",
    value: function getEnvListApi(projectId) {
      return "/devops/v1/projects/".concat(projectId, "/envs/list_by_active?active=true");
    }
  }, {
    key: "getMiddleValueApi",
    value: function getMiddleValueApi(appVersionId, mode) {
      return "/market/v1/middleware/values?market_app_version_id=".concat(appVersionId, "&mode=").concat(mode);
    }
  }, {
    key: "getDeployMiddlewareApi",
    value: function getDeployMiddlewareApi(projectId) {
      return "/devops/v1/projects/".concat(projectId, "/middleware/redis/deploy/env");
    }
  }, {
    key: "getHostListApi",
    value: function getHostListApi(projectId, random) {
      return "/devops/v1/projects/".concat(projectId, "/hosts/page_by_options?random=").concat(random);
    }
  }, {
    key: "getTestHostApi",
    value: function getTestHostApi(projectId) {
      return "/devops/v1/projects/".concat(projectId, "/hosts/multi/connection_test");
    }
  }, {
    key: "getDeployHostApi",
    value: function getDeployHostApi(projectId) {
      return "/devops/v1/projects/".concat(projectId, "/middleware/redis/deploy/host");
    }
  }]);

  return BaseComDeployApis;
}();

export { BaseComDeployApis as default };