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 AppServiceApis = /*#__PURE__*/function () {
  function AppServiceApis() {
    _classCallCheck(this, AppServiceApis);
  }

  _createClass(AppServiceApis, null, [{
    key: "getTemplateList",
    value: function getTemplateList(projectId, selectedLevel, randomString) {
      return "/devops/v1/app_template/project/".concat(projectId, "/list?selectedLevel=").concat(selectedLevel, "&randomString=").concat(randomString);
    }
  }, {
    key: "createAppServiceByTemplate",
    value: function createAppServiceByTemplate(projectId) {
      return "/devops/v1/projects/".concat(projectId, "/app_service/import/external?is_template=true");
    }
  }, {
    key: "getCheckAdminPermission",
    value: function getCheckAdminPermission(projectId) {
      return "/iam/choerodon/v1/projects/".concat(projectId, "/check_admin_permission");
    }
  }]);

  return AppServiceApis;
}();

export { AppServiceApis as default };