[d24f17c] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | exports.__esModule = true;
|
---|
| 4 | exports.default = void 0;
|
---|
| 5 | var _apidomCore = require("@swagger-api/apidom-core");
|
---|
| 6 | class Link extends _apidomCore.ObjectElement {
|
---|
| 7 | constructor(content, meta, attributes) {
|
---|
| 8 | super(content, meta, attributes);
|
---|
| 9 | this.element = 'link';
|
---|
| 10 | }
|
---|
| 11 | get operationRef() {
|
---|
| 12 | return this.get('operationRef');
|
---|
| 13 | }
|
---|
| 14 | set operationRef(operationRef) {
|
---|
| 15 | this.set('operationRef', operationRef);
|
---|
| 16 | }
|
---|
| 17 | get operationId() {
|
---|
| 18 | return this.get('operationId');
|
---|
| 19 | }
|
---|
| 20 | set operationId(operationId) {
|
---|
| 21 | this.set('operationId', operationId);
|
---|
| 22 | }
|
---|
| 23 | get operation() {
|
---|
| 24 | if ((0, _apidomCore.isStringElement)(this.operationRef)) {
|
---|
| 25 | var _this$operationRef;
|
---|
| 26 | return (_this$operationRef = this.operationRef) == null ? void 0 : _this$operationRef.meta.get('operation');
|
---|
| 27 | }
|
---|
| 28 | if ((0, _apidomCore.isStringElement)(this.operationId)) {
|
---|
| 29 | var _this$operationId;
|
---|
| 30 | return (_this$operationId = this.operationId) == null ? void 0 : _this$operationId.meta.get('operation');
|
---|
| 31 | }
|
---|
| 32 | return undefined;
|
---|
| 33 | }
|
---|
| 34 | set operation(operation) {
|
---|
| 35 | this.set('operation', operation);
|
---|
| 36 | }
|
---|
| 37 | get parameters() {
|
---|
| 38 | return this.get('parameters');
|
---|
| 39 | }
|
---|
| 40 | set parameters(parameters) {
|
---|
| 41 | this.set('parameters', parameters);
|
---|
| 42 | }
|
---|
| 43 | get requestBody() {
|
---|
| 44 | return this.get('requestBody');
|
---|
| 45 | }
|
---|
| 46 | set requestBody(requestBody) {
|
---|
| 47 | this.set('requestBody', requestBody);
|
---|
| 48 | }
|
---|
| 49 | get description() {
|
---|
| 50 | return this.get('description');
|
---|
| 51 | }
|
---|
| 52 | set description(description) {
|
---|
| 53 | this.set('description', description);
|
---|
| 54 | }
|
---|
| 55 | get server() {
|
---|
| 56 | return this.get('server');
|
---|
| 57 | }
|
---|
| 58 | set server(server) {
|
---|
| 59 | this.set('server', server);
|
---|
| 60 | }
|
---|
| 61 | }
|
---|
| 62 | var _default = exports.default = Link; |
---|