Repository URL to install this package:
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Motif Service Catalog API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
* Contact: info@vipera.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { WC_API_BASE_PATH } from 'web-console-core';
import { Configuration } from '../configuration';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common/http";
import * as i2 from "web-console-core";
import * as i3 from "../configuration";
export class OperationsService {
/**
* @param {?} httpClient
* @param {?} basePath
* @param {?} configuration
*/
constructor(httpClient, basePath, configuration) {
this.httpClient = httpClient;
this.basePath = 'http://localhost:8080/rest/v2';
this.defaultHeaders = new HttpHeaders();
this.configuration = new Configuration();
if (configuration) {
this.configuration = configuration;
this.configuration.basePath = configuration.basePath || basePath || this.basePath;
}
else {
this.configuration.basePath = basePath || this.basePath;
}
}
/**
* @private
* @param {?} consumes string[] mime-types
* @return {?} true: consumes contains 'multipart/form-data', false: otherwise
*/
canConsumeForm(consumes) {
/** @type {?} */
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
/**
* @param {?} channel
* @param {?} domain
* @param {?} application
* @param {?} service
* @param {?=} serviceOperation
* @param {?=} observe
* @param {?=} reportProgress
* @return {?}
*/
createServiceOperation(channel, domain, application, service, serviceOperation, observe = 'body', reportProgress = false) {
if (channel === null || channel === undefined) {
throw new Error('Required parameter channel was null or undefined when calling createServiceOperation.');
}
if (domain === null || domain === undefined) {
throw new Error('Required parameter domain was null or undefined when calling createServiceOperation.');
}
if (application === null || application === undefined) {
throw new Error('Required parameter application was null or undefined when calling createServiceOperation.');
}
if (service === null || service === undefined) {
throw new Error('Required parameter service was null or undefined when calling createServiceOperation.');
}
/** @type {?} */
let headers = this.defaultHeaders;
// authentication (vipera_basic) required
if (this.configuration.username || this.configuration.password) {
headers = headers.set('Authorization', 'Basic ' + btoa(this.configuration.username + ':' + this.configuration.password));
}
// authentication (vipera_cookie) required
// authentication (vipera_oauth2) required
if (this.configuration.accessToken) {
/** @type {?} */
const accessToken = typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
/** @type {?} */
const httpHeaderAccepts = [
'application/json'
];
/** @type {?} */
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
/** @type {?} */
const consumes = [
'application/json'
];
/** @type {?} */
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.post(`${this.configuration.basePath}/catalog/channels/${encodeURIComponent(String(channel))}/domains/${encodeURIComponent(String(domain))}/applications/${encodeURIComponent(String(application))}/services/${encodeURIComponent(String(service))}/operations`, serviceOperation, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
/**
* @param {?} channel
* @param {?} domain
* @param {?} application
* @param {?} service
* @param {?} operation
* @param {?=} observe
* @param {?=} reportProgress
* @return {?}
*/
deleteServiceOperation(channel, domain, application, service, operation, observe = 'body', reportProgress = false) {
if (channel === null || channel === undefined) {
throw new Error('Required parameter channel was null or undefined when calling deleteServiceOperation.');
}
if (domain === null || domain === undefined) {
throw new Error('Required parameter domain was null or undefined when calling deleteServiceOperation.');
}
if (application === null || application === undefined) {
throw new Error('Required parameter application was null or undefined when calling deleteServiceOperation.');
}
if (service === null || service === undefined) {
throw new Error('Required parameter service was null or undefined when calling deleteServiceOperation.');
}
if (operation === null || operation === undefined) {
throw new Error('Required parameter operation was null or undefined when calling deleteServiceOperation.');
}
/** @type {?} */
let headers = this.defaultHeaders;
// authentication (vipera_basic) required
if (this.configuration.username || this.configuration.password) {
headers = headers.set('Authorization', 'Basic ' + btoa(this.configuration.username + ':' + this.configuration.password));
}
// authentication (vipera_cookie) required
// authentication (vipera_oauth2) required
if (this.configuration.accessToken) {
/** @type {?} */
const accessToken = typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
/** @type {?} */
const httpHeaderAccepts = [
'application/json'
];
/** @type {?} */
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
/** @type {?} */
const consumes = [];
return this.httpClient.delete(`${this.configuration.basePath}/catalog/channels/${encodeURIComponent(String(channel))}/domains/${encodeURIComponent(String(domain))}/applications/${encodeURIComponent(String(application))}/services/${encodeURIComponent(String(service))}/operations/${encodeURIComponent(String(operation))}`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
/**
* @param {?} channel
* @param {?} domain
* @param {?} application
* @param {?} service
* @param {?} operation
* @param {?=} observe
* @param {?=} reportProgress
* @return {?}
*/
getServiceOperation(channel, domain, application, service, operation, observe = 'body', reportProgress = false) {
if (channel === null || channel === undefined) {
throw new Error('Required parameter channel was null or undefined when calling getServiceOperation.');
}
if (domain === null || domain === undefined) {
throw new Error('Required parameter domain was null or undefined when calling getServiceOperation.');
}
if (application === null || application === undefined) {
throw new Error('Required parameter application was null or undefined when calling getServiceOperation.');
}
if (service === null || service === undefined) {
throw new Error('Required parameter service was null or undefined when calling getServiceOperation.');
}
if (operation === null || operation === undefined) {
throw new Error('Required parameter operation was null or undefined when calling getServiceOperation.');
}
/** @type {?} */
let headers = this.defaultHeaders;
// authentication (vipera_basic) required
if (this.configuration.username || this.configuration.password) {
headers = headers.set('Authorization', 'Basic ' + btoa(this.configuration.username + ':' + this.configuration.password));
}
// authentication (vipera_cookie) required
// authentication (vipera_oauth2) required
if (this.configuration.accessToken) {
/** @type {?} */
const accessToken = typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
/** @type {?} */
const httpHeaderAccepts = [
'application/json'
];
/** @type {?} */
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
/** @type {?} */
const consumes = [];
return this.httpClient.get(`${this.configuration.basePath}/catalog/channels/${encodeURIComponent(String(channel))}/domains/${encodeURIComponent(String(domain))}/applications/${encodeURIComponent(String(application))}/services/${encodeURIComponent(String(service))}/operations/${encodeURIComponent(String(operation))}`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
/**
* @param {?} channel
* @param {?} domain
* @param {?} application
* @param {?} service
* @param {?} operation
* @param {?=} serviceOperationProperties
* @param {?=} observe
* @param {?=} reportProgress
* @return {?}
*/
updateServiceOperation(channel, domain, application, service, operation, serviceOperationProperties, observe = 'body', reportProgress = false) {
if (channel === null || channel === undefined) {
throw new Error('Required parameter channel was null or undefined when calling updateServiceOperation.');
}
if (domain === null || domain === undefined) {
throw new Error('Required parameter domain was null or undefined when calling updateServiceOperation.');
}
if (application === null || application === undefined) {
throw new Error('Required parameter application was null or undefined when calling updateServiceOperation.');
}
if (service === null || service === undefined) {
throw new Error('Required parameter service was null or undefined when calling updateServiceOperation.');
}
if (operation === null || operation === undefined) {
throw new Error('Required parameter operation was null or undefined when calling updateServiceOperation.');
}
/** @type {?} */
let headers = this.defaultHeaders;
// authentication (vipera_basic) required
if (this.configuration.username || this.configuration.password) {
headers = headers.set('Authorization', 'Basic ' + btoa(this.configuration.username + ':' + this.configuration.password));
}
// authentication (vipera_cookie) required
// authentication (vipera_oauth2) required
if (this.configuration.accessToken) {
/** @type {?} */
const accessToken = typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
/** @type {?} */
const httpHeaderAccepts = [
'application/json'
];
/** @type {?} */
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected !== undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
/** @type {?} */
const consumes = [
'application/json'
];
/** @type {?} */
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.put(`${this.configuration.basePath}/catalog/channels/${encodeURIComponent(String(channel))}/domains/${encodeURIComponent(String(domain))}/applications/${encodeURIComponent(String(application))}/services/${encodeURIComponent(String(service))}/operations/${encodeURIComponent(String(operation))}`, serviceOperationProperties, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
}
OperationsService.decorators = [
{ type: Injectable, args: [{
providedIn: 'root'
},] }
];
/** @nocollapse */
OperationsService.ctorParameters = () => [
{ type: HttpClient },
{ type: String, decorators: [{ type: Optional }, { type: Inject, args: [WC_API_BASE_PATH,] }] },
{ type: Configuration, decorators: [{ type: Optional }] }
];
/** @nocollapse */ OperationsService.ngInjectableDef = i0.defineInjectable({ factory: function OperationsService_Factory() { return new OperationsService(i0.inject(i1.HttpClient), i0.inject(i2.WC_API_BASE_PATH, 8), i0.inject(i3.Configuration, 8)); }, token: OperationsService, providedIn: "root" });
if (false) {
/**
* @type {?}
* @protected
*/
OperationsService.prototype.basePath;
/** @type {?} */
OperationsService.prototype.defaultHeaders;
/** @type {?} */
OperationsService.prototype.configuration;
/**
* @type {?}
* @protected
*/
OperationsService.prototype.httpClient;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BlcmF0aW9ucy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHdhLW1vdGlmLW9wZW4tYXBpL2NhdGFsb2ctc2VydmljZS8iLCJzb3VyY2VzIjpbImxpYi9hcGkvb3BlcmF0aW9ucy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7QUFhQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxRQUFRLEVBQUUsTUFBMkIsZUFBZSxDQUFDO0FBQ2xGLE9BQU8sRUFBRSxVQUFVLEVBQUUsV0FBVyxFQUNFLE1BQWdDLHNCQUFzQixDQUFDO0FBU3pGLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ3BELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBMEMsa0JBQWtCLENBQUM7Ozs7O0FBT3JGLE1BQU0sT0FBTyxpQkFBaUI7Ozs7OztJQU0xQixZQUFzQixVQUFzQixFQUF1QyxRQUFnQixFQUFjLGFBQTRCO1FBQXZILGVBQVUsR0FBVixVQUFVLENBQVk7UUFKbEMsYUFBUSxHQUFHLCtCQUErQixDQUFDO1FBQzlDLG1CQUFjLEdBQUcsSUFBSSxXQUFXLEVBQUUsQ0FBQztRQUNuQyxrQkFBYSxHQUFHLElBQUksYUFBYSxFQUFFLENBQUM7UUFJdkMsSUFBSSxhQUFhLEVBQUU7WUFDZixJQUFJLENBQUMsYUFBYSxHQUFHLGFBQWEsQ0FBQztZQUNuQyxJQUFJLENBQUMsYUFBYSxDQUFDLFFBQVEsR0FBRyxhQUFhLENBQUMsUUFBUSxJQUFJLFFBQVEsSUFBSSxJQUFJLEN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