segments.js 894 B

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