translations.js 917 B

12345678910111213141516171819202122
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.Translations = void 0;
  4. const base_collection_1 = require("./base_collection");
  5. const translation_1 = require("../models/translation");
  6. class Translations extends base_collection_1.BaseCollection {
  7. static rootElementName = "translations";
  8. static rootElementNameSingular = "translation";
  9. static prefixURI = "projects/{!:project_id}/translations/{:id}";
  10. static elementClass = translation_1.Translation;
  11. list(request_params) {
  12. return this.doList(request_params);
  13. }
  14. get(translation_id, request_params) {
  15. return this.doGet(translation_id, request_params);
  16. }
  17. update(translation_id, translation_params, request_params) {
  18. return this.doUpdate(translation_id, translation_params, request_params);
  19. }
  20. }
  21. exports.Translations = Translations;
  22. //# sourceMappingURL=translations.js.map