@ovh-api/ssl-gateway
Advanced tools
Comparing version 0.1.0 to 1.0.0
@@ -1,2 +0,2 @@ | ||
import { ApiCommon } from '@ovh-api/common'; | ||
import { ApiCommon, OvhApi } from '@ovh-api/common'; | ||
/** | ||
@@ -30,3 +30,3 @@ * Map a possible renew for a specific service | ||
*/ | ||
period?: Number; | ||
period?: number; | ||
} | ||
@@ -83,3 +83,3 @@ /** | ||
*/ | ||
possibleRenewPeriod?: Number[]; | ||
possibleRenewPeriod?: number[]; | ||
/** | ||
@@ -95,3 +95,3 @@ * Way of handling the renew | ||
*/ | ||
serviceId?: Number; | ||
serviceId?: number; | ||
/** | ||
@@ -114,3 +114,3 @@ */ | ||
*/ | ||
id?: Number; | ||
id?: number; | ||
/** | ||
@@ -179,3 +179,3 @@ * Domain state | ||
*/ | ||
id?: Number; | ||
id?: number; | ||
/** | ||
@@ -185,3 +185,3 @@ * Port of your server attached to your SSL Gateway | ||
*/ | ||
port?: Number; | ||
port?: number; | ||
/** | ||
@@ -298,3 +298,3 @@ * Server state | ||
*/ | ||
id?: Number; | ||
id?: number; | ||
/** | ||
@@ -304,3 +304,3 @@ * Task progress percentage | ||
*/ | ||
progress?: Number; | ||
progress?: number; | ||
/** | ||
@@ -321,7 +321,3 @@ * Current status of your task | ||
export declare class ApiSslGateway extends ApiCommon { | ||
constructor(config: { | ||
appKey: string; | ||
appSecret: string; | ||
consumerKey: string; | ||
}); | ||
constructor(engine: OvhApi); | ||
/** | ||
@@ -341,5 +337,3 @@ Operations about the SSLGATEWAY service | ||
**/ | ||
get(path: '/sslGateway/eligibility', queryParams?: { | ||
domain?: string; | ||
}): Promise<SslGatewayEligibilityStatus>; | ||
get(path: '/sslGateway/eligibility'): Promise<SslGatewayEligibilityStatus>; | ||
/** | ||
@@ -349,3 +343,3 @@ Your SSL Gateway | ||
**/ | ||
get(path: '/sslGateway/{serviceName}', pathParams: { | ||
get(path: '/sslGateway/{serviceName}', params: { | ||
serviceName: string; | ||
@@ -357,5 +351,5 @@ }): Promise<SslGatewaySslGateway>; | ||
**/ | ||
get(path: '/sslGateway/{serviceName}/domain', pathParams: { | ||
get(path: '/sslGateway/{serviceName}/domain', params: { | ||
serviceName: string; | ||
}): Promise<Number[]>; | ||
}): Promise<number[]>; | ||
/** | ||
@@ -365,5 +359,5 @@ Domain attached to an SSL Gateway | ||
**/ | ||
get(path: '/sslGateway/{serviceName}/domain/{id}', pathParams: { | ||
get(path: '/sslGateway/{serviceName}/domain/{id}', params: { | ||
serviceName: string; | ||
id: Number; | ||
id: number; | ||
}): Promise<SslGatewayDomain>; | ||
@@ -374,3 +368,3 @@ /** | ||
**/ | ||
get(path: '/sslGateway/{serviceName}/natIp', pathParams: { | ||
get(path: '/sslGateway/{serviceName}/natIp', params: { | ||
serviceName: string; | ||
@@ -382,5 +376,5 @@ }): Promise<SslGatewayNatIps[]>; | ||
**/ | ||
get(path: '/sslGateway/{serviceName}/server', pathParams: { | ||
get(path: '/sslGateway/{serviceName}/server', params: { | ||
serviceName: string; | ||
}): Promise<Number[]>; | ||
}): Promise<number[]>; | ||
/** | ||
@@ -390,5 +384,5 @@ Server attached to an SSL Gateway | ||
**/ | ||
get(path: '/sslGateway/{serviceName}/server/{id}', pathParams: { | ||
get(path: '/sslGateway/{serviceName}/server/{id}', params: { | ||
serviceName: string; | ||
id: Number; | ||
id: number; | ||
}): Promise<SslGatewayServer>; | ||
@@ -399,3 +393,3 @@ /** | ||
**/ | ||
get(path: '/sslGateway/{serviceName}/serviceInfos', pathParams: { | ||
get(path: '/sslGateway/{serviceName}/serviceInfos', params: { | ||
serviceName: string; | ||
@@ -407,5 +401,5 @@ }): Promise<ServicesService>; | ||
**/ | ||
get(path: '/sslGateway/{serviceName}/task', pathParams: { | ||
get(path: '/sslGateway/{serviceName}/task', params: { | ||
serviceName: string; | ||
}): Promise<Number[]>; | ||
}): Promise<number[]>; | ||
/** | ||
@@ -415,5 +409,5 @@ SSL Gateway tasks | ||
**/ | ||
get(path: '/sslGateway/{serviceName}/task/{id}', pathParams: { | ||
get(path: '/sslGateway/{serviceName}/task/{id}', params: { | ||
serviceName: string; | ||
id: Number; | ||
id: number; | ||
}): Promise<SslGatewayTask>; | ||
@@ -424,3 +418,3 @@ /** | ||
**/ | ||
put(path: '/sslGateway/{serviceName}', pathParams: { | ||
put(path: '/sslGateway/{serviceName}', params: { | ||
serviceName: string; | ||
@@ -432,5 +426,5 @@ }): Promise<void>; | ||
**/ | ||
put(path: '/sslGateway/{serviceName}/server/{id}', pathParams: { | ||
put(path: '/sslGateway/{serviceName}/server/{id}', params: { | ||
serviceName: string; | ||
id: Number; | ||
id: number; | ||
}): Promise<void>; | ||
@@ -441,3 +435,3 @@ /** | ||
**/ | ||
put(path: '/sslGateway/{serviceName}/serviceInfos', pathParams: { | ||
put(path: '/sslGateway/{serviceName}/serviceInfos', params: { | ||
serviceName: string; | ||
@@ -449,5 +443,5 @@ }): Promise<void>; | ||
**/ | ||
post(path: '/sslGateway/{serviceName}/changeContact', pathParams: { | ||
post(path: '/sslGateway/{serviceName}/changeContact', params: { | ||
serviceName: string; | ||
}): Promise<Number[]>; | ||
}): Promise<number[]>; | ||
/** | ||
@@ -457,3 +451,3 @@ Confirm termination of your service | ||
**/ | ||
post(path: '/sslGateway/{serviceName}/confirmTermination', pathParams: { | ||
post(path: '/sslGateway/{serviceName}/confirmTermination', params: { | ||
serviceName: string; | ||
@@ -465,3 +459,3 @@ }): Promise<string>; | ||
**/ | ||
post(path: '/sslGateway/{serviceName}/domain', pathParams: { | ||
post(path: '/sslGateway/{serviceName}/domain', params: { | ||
serviceName: string; | ||
@@ -473,3 +467,3 @@ }): Promise<SslGatewayDomain>; | ||
**/ | ||
post(path: '/sslGateway/{serviceName}/renewCertificate', pathParams: { | ||
post(path: '/sslGateway/{serviceName}/renewCertificate', params: { | ||
serviceName: string; | ||
@@ -481,3 +475,3 @@ }): Promise<string[]>; | ||
**/ | ||
post(path: '/sslGateway/{serviceName}/server', pathParams: { | ||
post(path: '/sslGateway/{serviceName}/server', params: { | ||
serviceName: string; | ||
@@ -489,3 +483,3 @@ }): Promise<SslGatewayServer>; | ||
**/ | ||
post(path: '/sslGateway/{serviceName}/terminate', pathParams: { | ||
post(path: '/sslGateway/{serviceName}/terminate', params: { | ||
serviceName: string; | ||
@@ -497,5 +491,5 @@ }): Promise<string>; | ||
**/ | ||
delete(path: '/sslGateway/{serviceName}/domain/{id}', pathParams: { | ||
delete(path: '/sslGateway/{serviceName}/domain/{id}', params: { | ||
serviceName: string; | ||
id: Number; | ||
id: number; | ||
}): Promise<void>; | ||
@@ -506,6 +500,6 @@ /** | ||
**/ | ||
delete(path: '/sslGateway/{serviceName}/server/{id}', pathParams: { | ||
delete(path: '/sslGateway/{serviceName}/server/{id}', params: { | ||
serviceName: string; | ||
id: Number; | ||
id: number; | ||
}): Promise<void>; | ||
} |
@@ -5,10 +5,18 @@ "use strict"; | ||
class ApiSslGateway extends common_1.ApiCommon { | ||
constructor(config) { | ||
super(config); | ||
constructor(engine) { | ||
super(engine); | ||
} | ||
get(path, pathParams, queryParams) { return super.get(path, pathParams, queryParams); } | ||
put(path, pathParams, bodyParams) { return super.put(path, pathParams, bodyParams); } | ||
post(path, pathParams, bodyParams) { return super.post(path, pathParams, bodyParams); } | ||
delete(path, pathParams, bodyParams) { return super.delete(path, pathParams, bodyParams); } | ||
get(path, params) { | ||
return super.get(path, params); | ||
} | ||
put(path, params) { | ||
return super.put(path, params); | ||
} | ||
post(path, params) { | ||
return super.post(path, params); | ||
} | ||
delete(path, params) { | ||
return super.delete(path, params); | ||
} | ||
} | ||
exports.ApiSslGateway = ApiSslGateway; |
{ | ||
"name": "@ovh-api/ssl-gateway", | ||
"description": "Add typing to to ovh api ssl-gateway", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"main": "dist/index.js", | ||
@@ -10,3 +10,3 @@ "typings": "dist/index.d.ts", | ||
"dependencies": { | ||
"@ovh-api/common": "^0.1.0" | ||
"@ovh-api/common": "^1.0.0" | ||
}, | ||
@@ -26,3 +26,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "0eaca157fe48b82761499cba7ee318d0f58c6af5" | ||
"gitHead": "b9fec53f25067fa01d341adc086a63ef2c2a5f62" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { ApiCommon } from '@ovh-api/common'; | ||
import { ApiCommon, OvhApi, OvhParamType } from '@ovh-api/common'; | ||
/** | ||
@@ -30,3 +30,3 @@ * Map a possible renew for a specific service | ||
*/ | ||
period?: Number; | ||
period?: number; | ||
} | ||
@@ -83,3 +83,3 @@ /** | ||
*/ | ||
possibleRenewPeriod?: Number[]; | ||
possibleRenewPeriod?: number[]; | ||
/** | ||
@@ -95,3 +95,3 @@ * Way of handling the renew | ||
*/ | ||
serviceId?: Number; | ||
serviceId?: number; | ||
/** | ||
@@ -114,3 +114,3 @@ */ | ||
*/ | ||
id?: Number; | ||
id?: number; | ||
/** | ||
@@ -179,3 +179,3 @@ * Domain state | ||
*/ | ||
id?: Number; | ||
id?: number; | ||
/** | ||
@@ -185,3 +185,3 @@ * Port of your server attached to your SSL Gateway | ||
*/ | ||
port?: Number; | ||
port?: number; | ||
/** | ||
@@ -298,3 +298,3 @@ * Server state | ||
*/ | ||
id?: Number; | ||
id?: number; | ||
/** | ||
@@ -304,3 +304,3 @@ * Task progress percentage | ||
*/ | ||
progress?: Number; | ||
progress?: number; | ||
/** | ||
@@ -348,4 +348,4 @@ * Current status of your task | ||
export class ApiSslGateway extends ApiCommon { | ||
constructor(config: {appKey: string, appSecret: string, consumerKey: string}) { | ||
super(config); | ||
constructor(engine: OvhApi) { | ||
super(engine); | ||
} | ||
@@ -366,3 +366,3 @@ /** | ||
**/ | ||
public get(path: '/sslGateway/eligibility', queryParams?: {domain?: string}): Promise<SslGatewayEligibilityStatus>; | ||
public get(path: '/sslGateway/eligibility'): Promise<SslGatewayEligibilityStatus>; | ||
/** | ||
@@ -372,3 +372,3 @@ Your SSL Gateway | ||
**/ | ||
public get(path: '/sslGateway/{serviceName}', pathParams: {serviceName: string}): Promise<SslGatewaySslGateway>; | ||
public get(path: '/sslGateway/{serviceName}', params: {serviceName: string}): Promise<SslGatewaySslGateway>; | ||
/** | ||
@@ -378,3 +378,3 @@ List the sslGateway.Domain objects | ||
**/ | ||
public get(path: '/sslGateway/{serviceName}/domain', pathParams: {serviceName: string}): Promise<Number[]>; | ||
public get(path: '/sslGateway/{serviceName}/domain', params: {serviceName: string}): Promise<number[]>; | ||
/** | ||
@@ -384,3 +384,3 @@ Domain attached to an SSL Gateway | ||
**/ | ||
public get(path: '/sslGateway/{serviceName}/domain/{id}', pathParams: {serviceName: string, id: Number}): Promise<SslGatewayDomain>; | ||
public get(path: '/sslGateway/{serviceName}/domain/{id}', params: {serviceName: string, id: number}): Promise<SslGatewayDomain>; | ||
/** | ||
@@ -390,3 +390,3 @@ natIp operations | ||
**/ | ||
public get(path: '/sslGateway/{serviceName}/natIp', pathParams: {serviceName: string}): Promise<SslGatewayNatIps[]>; | ||
public get(path: '/sslGateway/{serviceName}/natIp', params: {serviceName: string}): Promise<SslGatewayNatIps[]>; | ||
/** | ||
@@ -396,3 +396,3 @@ List the sslGateway.Server objects | ||
**/ | ||
public get(path: '/sslGateway/{serviceName}/server', pathParams: {serviceName: string}): Promise<Number[]>; | ||
public get(path: '/sslGateway/{serviceName}/server', params: {serviceName: string}): Promise<number[]>; | ||
/** | ||
@@ -402,3 +402,3 @@ Server attached to an SSL Gateway | ||
**/ | ||
public get(path: '/sslGateway/{serviceName}/server/{id}', pathParams: {serviceName: string, id: Number}): Promise<SslGatewayServer>; | ||
public get(path: '/sslGateway/{serviceName}/server/{id}', params: {serviceName: string, id: number}): Promise<SslGatewayServer>; | ||
/** | ||
@@ -408,3 +408,3 @@ Details about a Service | ||
**/ | ||
public get(path: '/sslGateway/{serviceName}/serviceInfos', pathParams: {serviceName: string}): Promise<ServicesService>; | ||
public get(path: '/sslGateway/{serviceName}/serviceInfos', params: {serviceName: string}): Promise<ServicesService>; | ||
/** | ||
@@ -414,3 +414,3 @@ List the sslGateway.Task objects | ||
**/ | ||
public get(path: '/sslGateway/{serviceName}/task', pathParams: {serviceName: string}): Promise<Number[]>; | ||
public get(path: '/sslGateway/{serviceName}/task', params: {serviceName: string}): Promise<number[]>; | ||
/** | ||
@@ -420,4 +420,6 @@ SSL Gateway tasks | ||
**/ | ||
public get(path: '/sslGateway/{serviceName}/task/{id}', pathParams: {serviceName: string, id: Number}): Promise<SslGatewayTask>; | ||
public get(path: PathsSslGatewayGET, pathParams?: { [key:string]: string | Number; }, queryParams?: any) : Promise<any> {return super.get(path, pathParams, queryParams);} | ||
public get(path: '/sslGateway/{serviceName}/task/{id}', params: {serviceName: string, id: number}): Promise<SslGatewayTask>; | ||
public get(path: PathsSslGatewayGET, params?: OvhParamType) : Promise<any> { | ||
return super.get(path, params | ||
);} | ||
/** | ||
@@ -427,3 +429,3 @@ Your SSL Gateway | ||
**/ | ||
public put(path: '/sslGateway/{serviceName}', pathParams: {serviceName: string}): Promise<void>; | ||
public put(path: '/sslGateway/{serviceName}', params: {serviceName: string}): Promise<void>; | ||
/** | ||
@@ -433,3 +435,3 @@ Server attached to an SSL Gateway | ||
**/ | ||
public put(path: '/sslGateway/{serviceName}/server/{id}', pathParams: {serviceName: string, id: Number}): Promise<void>; | ||
public put(path: '/sslGateway/{serviceName}/server/{id}', params: {serviceName: string, id: number}): Promise<void>; | ||
/** | ||
@@ -439,4 +441,6 @@ Details about a Service | ||
**/ | ||
public put(path: '/sslGateway/{serviceName}/serviceInfos', pathParams: {serviceName: string}): Promise<void>; | ||
public put(path: PathsSslGatewayPUT, pathParams?: { [key:string]: string | Number; }, bodyParams?: any) : Promise<any> {return super.put(path, pathParams, bodyParams);} | ||
public put(path: '/sslGateway/{serviceName}/serviceInfos', params: {serviceName: string}): Promise<void>; | ||
public put(path: PathsSslGatewayPUT, params?: OvhParamType) : Promise<any> { | ||
return super.put(path, params | ||
);} | ||
/** | ||
@@ -446,3 +450,3 @@ Change the contacts of this service | ||
**/ | ||
public post(path: '/sslGateway/{serviceName}/changeContact', pathParams: {serviceName: string}): Promise<Number[]>; | ||
public post(path: '/sslGateway/{serviceName}/changeContact', params: {serviceName: string}): Promise<number[]>; | ||
/** | ||
@@ -452,3 +456,3 @@ Confirm termination of your service | ||
**/ | ||
public post(path: '/sslGateway/{serviceName}/confirmTermination', pathParams: {serviceName: string}): Promise<string>; | ||
public post(path: '/sslGateway/{serviceName}/confirmTermination', params: {serviceName: string}): Promise<string>; | ||
/** | ||
@@ -458,3 +462,3 @@ List the sslGateway.Domain objects | ||
**/ | ||
public post(path: '/sslGateway/{serviceName}/domain', pathParams: {serviceName: string}): Promise<SslGatewayDomain>; | ||
public post(path: '/sslGateway/{serviceName}/domain', params: {serviceName: string}): Promise<SslGatewayDomain>; | ||
/** | ||
@@ -464,3 +468,3 @@ renewCertificate operations | ||
**/ | ||
public post(path: '/sslGateway/{serviceName}/renewCertificate', pathParams: {serviceName: string}): Promise<string[]>; | ||
public post(path: '/sslGateway/{serviceName}/renewCertificate', params: {serviceName: string}): Promise<string[]>; | ||
/** | ||
@@ -470,3 +474,3 @@ List the sslGateway.Server objects | ||
**/ | ||
public post(path: '/sslGateway/{serviceName}/server', pathParams: {serviceName: string}): Promise<SslGatewayServer>; | ||
public post(path: '/sslGateway/{serviceName}/server', params: {serviceName: string}): Promise<SslGatewayServer>; | ||
/** | ||
@@ -476,4 +480,6 @@ Terminate your service | ||
**/ | ||
public post(path: '/sslGateway/{serviceName}/terminate', pathParams: {serviceName: string}): Promise<string>; | ||
public post(path: PathsSslGatewayPOST, pathParams?: { [key:string]: string | Number; }, bodyParams?: any) : Promise<any> {return super.post(path, pathParams, bodyParams);} | ||
public post(path: '/sslGateway/{serviceName}/terminate', params: {serviceName: string}): Promise<string>; | ||
public post(path: PathsSslGatewayPOST, params?: OvhParamType) : Promise<any> { | ||
return super.post(path, params | ||
);} | ||
/** | ||
@@ -483,3 +489,3 @@ Domain attached to an SSL Gateway | ||
**/ | ||
public delete(path: '/sslGateway/{serviceName}/domain/{id}', pathParams: {serviceName: string, id: Number}): Promise<void>; | ||
public delete(path: '/sslGateway/{serviceName}/domain/{id}', params: {serviceName: string, id: number}): Promise<void>; | ||
/** | ||
@@ -489,4 +495,6 @@ Server attached to an SSL Gateway | ||
**/ | ||
public delete(path: '/sslGateway/{serviceName}/server/{id}', pathParams: {serviceName: string, id: Number}): Promise<void>; | ||
public delete(path: PathsSslGatewayDELETE, pathParams?: { [key:string]: string | Number; }, bodyParams?: any) : Promise<any> {return super.delete(path, pathParams, bodyParams);} | ||
public delete(path: '/sslGateway/{serviceName}/server/{id}', params: {serviceName: string, id: number}): Promise<void>; | ||
public delete(path: PathsSslGatewayDELETE, params?: OvhParamType) : Promise<any> { | ||
return super.delete(path, params | ||
);} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
970
1
225554
6
+ Added@ovh-api/common@1.3.0(transitive)
- Removed@ovh-api/common@0.1.0(transitive)
- Removedbluebird@3.7.2(transitive)
Updated@ovh-api/common@^1.0.0