[d24f17c] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | exports.__esModule = true;
|
---|
| 4 | exports.default = void 0;
|
---|
| 5 | var _apidomCore = require("@swagger-api/apidom-core");
|
---|
| 6 | class Operation extends _apidomCore.ObjectElement {
|
---|
| 7 | constructor(content, meta, attributes) {
|
---|
| 8 | super(content, meta, attributes);
|
---|
| 9 | this.element = 'operation';
|
---|
| 10 | }
|
---|
| 11 | get tags() {
|
---|
| 12 | return this.get('tags');
|
---|
| 13 | }
|
---|
| 14 | set tags(tags) {
|
---|
| 15 | this.set('tags', tags);
|
---|
| 16 | }
|
---|
| 17 | get summary() {
|
---|
| 18 | return this.get('summary');
|
---|
| 19 | }
|
---|
| 20 | set summary(description) {
|
---|
| 21 | this.set('summary', description);
|
---|
| 22 | }
|
---|
| 23 | get description() {
|
---|
| 24 | return this.get('description');
|
---|
| 25 | }
|
---|
| 26 | set description(description) {
|
---|
| 27 | this.set('description', description);
|
---|
| 28 | }
|
---|
| 29 | set externalDocs(externalDocs) {
|
---|
| 30 | this.set('externalDocs', externalDocs);
|
---|
| 31 | }
|
---|
| 32 | get externalDocs() {
|
---|
| 33 | return this.get('externalDocs');
|
---|
| 34 | }
|
---|
| 35 | get operationId() {
|
---|
| 36 | return this.get('operationId');
|
---|
| 37 | }
|
---|
| 38 | set operationId(operationId) {
|
---|
| 39 | this.set('operationId', operationId);
|
---|
| 40 | }
|
---|
| 41 | get parameters() {
|
---|
| 42 | return this.get('parameters');
|
---|
| 43 | }
|
---|
| 44 | set parameters(parameters) {
|
---|
| 45 | this.set('parameters', parameters);
|
---|
| 46 | }
|
---|
| 47 | get requestBody() {
|
---|
| 48 | return this.get('requestBody');
|
---|
| 49 | }
|
---|
| 50 | set requestBody(requestBody) {
|
---|
| 51 | this.set('requestBody', requestBody);
|
---|
| 52 | }
|
---|
| 53 | get responses() {
|
---|
| 54 | return this.get('responses');
|
---|
| 55 | }
|
---|
| 56 | set responses(responses) {
|
---|
| 57 | this.set('responses', responses);
|
---|
| 58 | }
|
---|
| 59 | get callbacks() {
|
---|
| 60 | return this.get('callbacks');
|
---|
| 61 | }
|
---|
| 62 | set callbacks(callbacks) {
|
---|
| 63 | this.set('callbacks', callbacks);
|
---|
| 64 | }
|
---|
| 65 | get deprecated() {
|
---|
| 66 | if (this.hasKey('deprecated')) {
|
---|
| 67 | return this.get('deprecated');
|
---|
| 68 | }
|
---|
| 69 | return new _apidomCore.BooleanElement(false);
|
---|
| 70 | }
|
---|
| 71 | set deprecated(deprecated) {
|
---|
| 72 | this.set('deprecated', deprecated);
|
---|
| 73 | }
|
---|
| 74 | get security() {
|
---|
| 75 | return this.get('security');
|
---|
| 76 | }
|
---|
| 77 | set security(security) {
|
---|
| 78 | this.set('security', security);
|
---|
| 79 | }
|
---|
| 80 | get servers() {
|
---|
| 81 | return this.get('severs');
|
---|
| 82 | }
|
---|
| 83 | set servers(servers) {
|
---|
| 84 | this.set('servers', servers);
|
---|
| 85 | }
|
---|
| 86 | }
|
---|
| 87 | var _default = exports.default = Operation; |
---|