fix(core): update

This commit is contained in:
Philipp Kunz 2024-01-29 21:08:05 +01:00
parent 82668f9610
commit d4f777d0e6
269 changed files with 120 additions and 28951 deletions

View File

@ -1,7 +0,0 @@
{
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.2.0"
}
}

View File

@ -1,6 +1,6 @@
{
"name": "@apiclient.xyz/hetznercloud",
"version": "1.0.2",
"version": "1.0.1",
"private": false,
"description": "an unofficial api client for the hetzner cloud api",
"main": "dist_ts/index.js",
@ -22,7 +22,10 @@
"@push.rocks/tapbundle": "^5.0.15",
"@types/node": "^20.8.7"
},
"dependencies": {},
"dependencies": {
"@push.rocks/smartrequest": "^2.0.21",
"@tempfix/hetzner-openapi": "^1.0.4"
},
"repository": {
"type": "git",
"url": "git+https://gitlab.com/apiclient.xyz/hetznercloud.git"

31
pnpm-lock.yaml generated
View File

@ -4,6 +4,14 @@ settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
dependencies:
'@push.rocks/smartrequest':
specifier: ^2.0.21
version: 2.0.21
'@tempfix/hetzner-openapi':
specifier: ^1.0.4
version: 1.0.4
devDependencies:
'@git.zone/tsbuild':
specifier: ^2.1.25
@ -823,7 +831,6 @@ packages:
/@push.rocks/smartpromise@4.0.3:
resolution: {integrity: sha512-z3lIso4/6KK3c6NFTVGZ7AOBsGURf8ha3qQtX/OxjZFk5dqS//8PLd0XqghVdIaUlRGmJ7Sfds/efZERWn1tAg==}
dev: true
/@push.rocks/smartpuppeteer@2.0.2:
resolution: {integrity: sha512-EcYCT0PX++WjfHp7W5UYX3t8x5gSNpJMMUvhA7SHz8b2t76ItslNWxprRcF0CUQyN1fozbf5StZf7dwdGc/dIA==}
@ -846,7 +853,6 @@ packages:
'@push.rocks/smarturl': 3.0.7
agentkeepalive: 4.5.0
form-data: 4.0.0
dev: true
/@push.rocks/smartrx@3.0.7:
resolution: {integrity: sha512-qCWy0s3RLAgGSnaw/Gu0BNaJ59CsI6RK5OJDCCqxc7P2X/S755vuLtnAR5/0dEjdhCHXHX9ytPZx+o9g/CNiyA==}
@ -968,7 +974,6 @@ packages:
/@push.rocks/smarturl@3.0.7:
resolution: {integrity: sha512-nx4EWjQD9JeO7QVbOsxd1PFeDQYoSQOOOYCZ+r7QWXHLJG52iYzgvJDCQyX6p705HDkYMJWozW2ZzhR22qLKbw==}
dev: true
/@push.rocks/smartxml@1.0.8:
resolution: {integrity: sha512-idrPsBj9t6oxkLZJZgWtyZK6PnQ5BVDbBErk0UfGanXgSWJc+ZEKNYjVqr850+Na3+y0CT6AQdug7pnaokygwg==}
@ -1300,6 +1305,10 @@ packages:
defer-to-connect: 2.0.1
dev: true
/@tempfix/hetzner-openapi@1.0.4:
resolution: {integrity: sha512-PzURoAHokF8VaIVlzWOLUw7ixtAbhQRVnzGeOcUG2/aoTB8pHILChZiZ2yB9+BVb7hmngc0WNwM9hXc8tuXB6g==}
dev: false
/@tempfix/watcher@2.3.0:
resolution: {integrity: sha512-a2qVQffcrnetehvwsN+LdipxQ6jejwZLgAvS9/91+C0gP4CKyikY01c0tSs0I4tSL7qHdCw1Fx0quLw+A9uyLA==}
dependencies:
@ -1760,6 +1769,11 @@ packages:
- utf-8-validate
dev: true
/@xmldom/xmldom@0.8.10:
resolution: {integrity: sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==}
engines: {node: '>=10.0.0'}
dev: true
/accepts@1.3.8:
resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==}
engines: {node: '>= 0.6'}
@ -1793,7 +1807,6 @@ packages:
engines: {node: '>= 8.0.0'}
dependencies:
humanize-ms: 1.2.1
dev: true
/aggregate-error@4.0.1:
resolution: {integrity: sha512-0poP0T7el6Vq3rstR8Mn4V/IQrpBLO6POkUSrN7RhyY+GF/InCFShQzsQ39T25gkHhLgSLByyAz+Kjb+c2L98w==}
@ -1932,7 +1945,6 @@ packages:
/asynckit@0.4.0:
resolution: {integrity: sha1-x57Zf380y48robyXkLzDZkdLS3k=}
dev: true
/available-typed-arrays@1.0.5:
resolution: {integrity: sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==}
@ -2258,7 +2270,6 @@ packages:
engines: {node: '>= 0.8'}
dependencies:
delayed-stream: 1.0.0
dev: true
/commander@2.20.3:
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
@ -2469,7 +2480,6 @@ packages:
/delayed-stream@1.0.0:
resolution: {integrity: sha1-3zrhmayt+31ECqrgsp4icrJOxhk=}
engines: {node: '>=0.4.0'}
dev: true
/delegates@1.0.0:
resolution: {integrity: sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=}
@ -2952,7 +2962,6 @@ packages:
asynckit: 0.4.0
combined-stream: 1.0.8
mime-types: 2.1.35
dev: true
/forwarded@0.2.0:
resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==}
@ -3277,7 +3286,6 @@ packages:
resolution: {integrity: sha1-xG4xWaKT9riW2ikxbYtv6Lt5u+0=}
dependencies:
ms: 2.1.3
dev: true
/iconv-lite@0.4.24:
resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==}
@ -3954,14 +3962,12 @@ packages:
/mime-db@1.52.0:
resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}
engines: {node: '>= 0.6'}
dev: true
/mime-types@2.1.35:
resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}
engines: {node: '>= 0.6'}
dependencies:
mime-db: 1.52.0
dev: true
/mime@1.6.0:
resolution: {integrity: sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==}
@ -4079,7 +4085,6 @@ packages:
/ms@2.1.3:
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
dev: true
/nanocolors@0.2.13:
resolution: {integrity: sha512-0n3mSAQLPpGLV9ORXT5+C/D4mwew7Ebws69Hx4E2sgz2ZA5+32Q80B9tL8PbL7XHnRDiAxH/pnrUJ9a4fkTNTA==}
@ -4364,6 +4369,8 @@ packages:
resolution: {integrity: sha512-mXF9AIgnvq1DP/ZM2R28tAfxP2wKZHYa2DjV0R1KCwcqSzm5Iqh1XQq9rdfAt6dp2DuPP0VHZIaCALc2v1cL5A==}
engines: {node: '>=14.18.0', npm: '>=6.14.15'}
hasBin: true
dependencies:
'@xmldom/xmldom': 0.8.10
dev: true
bundledDependencies:
- '@xmldom/xmldom'

30
ts/classes.account.ts Normal file
View File

@ -0,0 +1,30 @@
import * as plugins from './hetznercloud.plugins.js';
export class HetznerAccount {
public token: string;
constructor(tokenArg: string) {
this.token = tokenArg;
}
getServers() {
}
/**
* request things from the hetzner API
* @param methodArg
* @param pathArg
* @param payloadArg
*/
public request = async (methodArg: string, pathArg: string, payloadArg: any) => {
const url = `https://api.hetzner.cloud/v1${pathArg}`;
const response = await plugins.smartrequest.request(url, {
method: methodArg,
headers: {
Authorization: `Bearer ${this.token}`,
},
requestBody: payloadArg,
});
return response;
}
}

40
ts/classes.server.ts Normal file
View File

@ -0,0 +1,40 @@
import type { HetznerAccount } from './classes.account.js';
import * as plugins from './hetznercloud.plugins.js';
import * as types from './types.js';
export class HetznerServer {
// STATIC
static async create(hetznerAccountRefArg: HetznerAccount, optionsArg: {
name: string,
datacenter: 'nbg1-dc3',
}) {
const server = new HetznerServer(hetznerAccountRefArg);
const createServerUrl = '/servers';
const createServerPayload: types.TServerCreateRequestBody =
{
name: optionsArg.name,
datacenter: optionsArg.datacenter,
image: '',
server_type: '',
start_after_create: true,
user_data: '',
};
const response = await server.hetznerAccountRef.request('POST', createServerUrl, createServerPayload);
server.data = (response.body as types.TServerCreateResponseBody).server;
return server;
}
// INSTANCE
public hetznerAccountRef: HetznerAccount;
public data: types.IServer;
constructor(hetznerAccountRefArg: HetznerAccount) {
this.hetznerAccountRef = hetznerAccountRefArg;
}
public async delete() {
await this.hetznerAccountRef.request('DELETE', `/servers/${this.data.id}`, {});
}
}

View File

@ -1,4 +1,12 @@
const removeme = {};
import * as hetznerOpenapi from '@tempfix/hetzner-openapi';
export {
removeme
hetznerOpenapi
}
// @push.rocks
import * as smartrequest from '@push.rocks/smartrequest';
export {
smartrequest,
}

View File

@ -1,3 +0,0 @@
import * as plugins from './hetznercloud.plugins.js';
export let demoExport = 'Hi there! :) This is an exported string';

12
ts/types.ts Normal file
View File

@ -0,0 +1,12 @@
import * as plugins from './hetznercloud.plugins.js';
// datacenters
export type TDatacenters = plugins.hetznerOpenapi.paths['/datacenters']['get']['responses']['200']['content']['application/json'];
// servers
export type IServer = plugins.hetznerOpenapi.paths['/servers/{id}']['get']['responses']['200']['content']['application/json']['server'];
export type TServersGetRequestBody = {};
export type TServersGetResponseBody = plugins.hetznerOpenapi.paths['/servers']['get']['responses']['200']['content']['application/json'];
export type TServerCreateRequestBody = plugins.hetznerOpenapi.paths['/servers']['post']['requestBody']['content']['application/json'];
export type TServerCreateResponseBody = plugins.hetznerOpenapi.paths['/servers']['post']['responses']['201']['content']['application/json'];

View File

@ -1,4 +0,0 @@
wwwroot/*.js
node_modules
typings
dist

View File

@ -1,23 +0,0 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.
# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md

View File

@ -1,258 +0,0 @@
.gitignore
.openapi-generator-ignore
api.ts
api/actionsApi.ts
api/apis.ts
api/certificateActionsApi.ts
api/certificatesApi.ts
api/datacentersApi.ts
api/firewallActionsApi.ts
api/firewallsApi.ts
api/floatingIPActionsApi.ts
api/floatingIPsApi.ts
api/iSOsApi.ts
api/imageActionsApi.ts
api/imagesApi.ts
api/loadBalancerActionsApi.ts
api/loadBalancerTypesApi.ts
api/loadBalancersApi.ts
api/locationsApi.ts
api/networkActionsApi.ts
api/networksApi.ts
api/placementGroupsApi.ts
api/pricingApi.ts
api/primaryIPActionsApi.ts
api/primaryIPsApi.ts
api/sSHKeysApi.ts
api/serverActionsApi.ts
api/serverTypesApi.ts
api/serversApi.ts
api/volumeActionsApi.ts
api/volumesApi.ts
git_push.sh
model/action.ts
model/actionError.ts
model/actionResourcesInner.ts
model/actionResponse.ts
model/actionsResponse.ts
model/actionsResponseMeta.ts
model/actionsResponseMetaPagination.ts
model/addDeleteRouteRequest.ts
model/addSubnetRequest.ts
model/addTargetRequest.ts
model/addTargetRequestLabelSelector.ts
model/addTargetRequestServer.ts
model/addToPlacementGroupRequest.ts
model/applyToResourcesRequest.ts
model/assignFloatingIPRequest.ts
model/assignPrimaryIPRequest.ts
model/attachToNetworkRequest.ts
model/attachVolumeRequest.ts
model/certificate.ts
model/certificateResponse.ts
model/certificateStatus.ts
model/certificateStatusError.ts
model/certificateUsedByInner.ts
model/certificatesResponse.ts
model/changeDNSPTRRequest.ts
model/changeIPRangeRequest.ts
model/changeLoadbalancerDnsPtrRequest.ts
model/changeProtectionRequest.ts
model/changeProtectionRequest1.ts
model/changeProtectionRequest2.ts
model/changeTypeRequest.ts
model/createCertificateRequest.ts
model/createCertificateResponse.ts
model/createFirewallRequest.ts
model/createFirewallRequestApplyToInner.ts
model/createFirewallRequestApplyToInnerLabelSelector.ts
model/createFirewallRequestApplyToInnerServer.ts
model/createFirewallResponse.ts
model/createFloatingIPRequest.ts
model/createImageRequest.ts
model/createLoadBalancerRequest.ts
model/createLoadBalancerRequestLabels.ts
model/createNetworkRequest.ts
model/createNetworkRequestSubnetsInner.ts
model/createPlacementGroupRequest.ts
model/createPlacementGroupResponse.ts
model/createPrimaryIPRequest.ts
model/createPrimaryIPResponse.ts
model/createServerRequest.ts
model/createServerRequestFirewallsInner.ts
model/createServerRequestPublicNet.ts
model/createServerResponse.ts
model/createVolumeRequest.ts
model/datacentersGet200Response.ts
model/datacentersGet200ResponseDatacentersInner.ts
model/datacentersGet200ResponseDatacentersInnerLocation.ts
model/datacentersGet200ResponseDatacentersInnerServerTypes.ts
model/datacentersIdGet200Response.ts
model/deleteSubnetRequest.ts
model/deprecationInfo.ts
model/detachFromNetworkRequest.ts
model/firewall.ts
model/firewallAppliedToInner.ts
model/firewallAppliedToInnerAppliedToResourcesInner.ts
model/firewallAppliedToInnerAppliedToResourcesInnerServer.ts
model/firewallAppliedToInnerLabelSelector.ts
model/firewallApplyToResources.ts
model/firewallApplyToResourcesLabelSelector.ts
model/firewallApplyToResourcesServer.ts
model/firewallRemoveFromResources.ts
model/firewallResponse.ts
model/firewallsResponse.ts
model/floatingIpsGet200Response.ts
model/floatingIpsGet200ResponseFloatingIpsInner.ts
model/floatingIpsGet200ResponseFloatingIpsInnerDnsPtrInner.ts
model/floatingIpsGet200ResponseFloatingIpsInnerHomeLocation.ts
model/floatingIpsGet200ResponseFloatingIpsInnerProtection.ts
model/floatingIpsIdActionsGet200Response.ts
model/floatingIpsIdGet200Response.ts
model/floatingIpsPost201Response.ts
model/imagesGet200Response.ts
model/imagesGet200ResponseImagesInner.ts
model/imagesGet200ResponseImagesInnerCreatedFrom.ts
model/imagesIdActionsChangeProtectionPostRequest.ts
model/imagesIdGet200Response.ts
model/isosGet200Response.ts
model/isosGet200ResponseIsosInner.ts
model/isosIdGet200Response.ts
model/loadBalancerAlgorithm.ts
model/loadBalancerService.ts
model/loadBalancerServiceHTTP.ts
model/loadBalancerServiceHTTP1.ts
model/loadBalancerServiceHealthCheck.ts
model/loadBalancerServiceHealthCheckHttp.ts
model/loadBalancerTarget.ts
model/loadBalancerTargetHealthStatusInner.ts
model/loadBalancerTargetIP.ts
model/loadBalancerTargetLabelSelector.ts
model/loadBalancerTargetServer.ts
model/loadBalancerTargetTarget.ts
model/loadBalancerTypesGet200Response.ts
model/loadBalancerTypesGet200ResponseLoadBalancerTypesInner.ts
model/loadBalancerTypesGet200ResponseLoadBalancerTypesInnerPricesInner.ts
model/loadBalancerTypesGet200ResponseLoadBalancerTypesInnerPricesInnerPriceHourly.ts
model/loadBalancerTypesGet200ResponseLoadBalancerTypesInnerPricesInnerPriceMonthly.ts
model/loadBalancerTypesIdGet200Response.ts
model/loadBalancersGet200Response.ts
model/loadBalancersGet200ResponseLoadBalancersInner.ts
model/loadBalancersGet200ResponseLoadBalancersInnerAlgorithm.ts
model/loadBalancersGet200ResponseLoadBalancersInnerLocation.ts
model/loadBalancersGet200ResponseLoadBalancersInnerPrivateNetInner.ts
model/loadBalancersGet200ResponseLoadBalancersInnerPublicNet.ts
model/loadBalancersGet200ResponseLoadBalancersInnerPublicNetIpv4.ts
model/loadBalancersGet200ResponseLoadBalancersInnerPublicNetIpv6.ts
model/loadBalancersIdActionsAttachToNetworkPostRequest.ts
model/loadBalancersIdActionsChangeAlgorithmPostRequest.ts
model/loadBalancersIdActionsChangeProtectionPostRequest.ts
model/loadBalancersIdActionsDeleteServicePostRequest.ts
model/loadBalancersIdActionsDetachFromNetworkPostRequest.ts
model/loadBalancersIdGet200Response.ts
model/loadBalancersIdMetricsGet200Response.ts
model/loadBalancersIdMetricsGet200ResponseMetrics.ts
model/loadBalancersIdMetricsGet200ResponseMetricsTimeSeriesValue.ts
model/loadBalancersIdMetricsGet200ResponseMetricsTimeSeriesValueValuesInnerInner.ts
model/loadBalancersIdPutRequest.ts
model/loadBalancersPost201Response.ts
model/locationsGet200Response.ts
model/locationsIdGet200Response.ts
model/models.ts
model/networksGet200Response.ts
model/networksGet200ResponseNetworksInner.ts
model/networksGet200ResponseNetworksInnerProtection.ts
model/networksGet200ResponseNetworksInnerRoutesInner.ts
model/networksGet200ResponseNetworksInnerSubnetsInner.ts
model/networksPost201Response.ts
model/nullableAction.ts
model/placementGroup.ts
model/placementGroupNullable.ts
model/placementGroupResponse.ts
model/placementGroupsResponse.ts
model/pricingGet200Response.ts
model/pricingGet200ResponsePricing.ts
model/pricingGet200ResponsePricingFloatingIp.ts
model/pricingGet200ResponsePricingFloatingIpPriceMonthly.ts
model/pricingGet200ResponsePricingFloatingIpsInner.ts
model/pricingGet200ResponsePricingFloatingIpsInnerPricesInner.ts
model/pricingGet200ResponsePricingFloatingIpsInnerPricesInnerPriceMonthly.ts
model/pricingGet200ResponsePricingImage.ts
model/pricingGet200ResponsePricingLoadBalancerTypesInner.ts
model/pricingGet200ResponsePricingLoadBalancerTypesInnerPricesInner.ts
model/pricingGet200ResponsePricingLoadBalancerTypesInnerPricesInnerPriceHourly.ts
model/pricingGet200ResponsePricingLoadBalancerTypesInnerPricesInnerPriceMonthly.ts
model/pricingGet200ResponsePricingPrimaryIpsInner.ts
model/pricingGet200ResponsePricingPrimaryIpsInnerPricesInner.ts
model/pricingGet200ResponsePricingPrimaryIpsInnerPricesInnerPriceHourly.ts
model/pricingGet200ResponsePricingPrimaryIpsInnerPricesInnerPriceMonthly.ts
model/pricingGet200ResponsePricingServerBackup.ts
model/pricingGet200ResponsePricingServerTypesInner.ts
model/pricingGet200ResponsePricingServerTypesInnerPricesInner.ts
model/pricingGet200ResponsePricingServerTypesInnerPricesInnerPriceHourly.ts
model/pricingGet200ResponsePricingServerTypesInnerPricesInnerPriceMonthly.ts
model/pricingGet200ResponsePricingTraffic.ts
model/pricingGet200ResponsePricingVolume.ts
model/primaryIP.ts
model/primaryIPDatacenter.ts
model/primaryIPDnsPtrInner.ts
model/primaryIPResponse.ts
model/primaryIPsResponse.ts
model/rebuildServerRequest.ts
model/removeFromResourcesRequest.ts
model/removeTargetRequest.ts
model/rule.ts
model/serverPublicNetFirewall.ts
model/serverTypesGet200Response.ts
model/serverTypesGet200ResponseServerTypesInner.ts
model/serverTypesIdGet200Response.ts
model/serversGet200Response.ts
model/serversGet200ResponseServersInner.ts
model/serversGet200ResponseServersInnerDatacenter.ts
model/serversGet200ResponseServersInnerImage.ts
model/serversGet200ResponseServersInnerIso.ts
model/serversGet200ResponseServersInnerPrivateNetInner.ts
model/serversGet200ResponseServersInnerProtection.ts
model/serversGet200ResponseServersInnerPublicNet.ts
model/serversGet200ResponseServersInnerPublicNetIpv4.ts
model/serversGet200ResponseServersInnerPublicNetIpv6.ts
model/serversGet200ResponseServersInnerPublicNetIpv6DnsPtrInner.ts
model/serversGet200ResponseServersInnerServerType.ts
model/serversIdActionsAttachIsoPostRequest.ts
model/serversIdActionsChangeAliasIpsPostRequest.ts
model/serversIdActionsChangeDnsPtrPostRequest.ts
model/serversIdActionsChangeProtectionPostRequest.ts
model/serversIdActionsChangeTypePostRequest.ts
model/serversIdActionsCreateImagePost201Response.ts
model/serversIdActionsEnableRescuePost201Response.ts
model/serversIdActionsEnableRescuePostRequest.ts
model/serversIdActionsRebuildPost201Response.ts
model/serversIdActionsRequestConsolePost201Response.ts
model/serversIdDelete200Response.ts
model/serversIdGet200Response.ts
model/setRulesRequest.ts
model/sshKeysGet200Response.ts
model/sshKeysGet200ResponseSshKeysInner.ts
model/sshKeysIdPutRequest.ts
model/sshKeysPost201Response.ts
model/sshKeysPostRequest.ts
model/updateCertificateRequest.ts
model/updateFirewallRequest.ts
model/updateFloatingIPRequest.ts
model/updateImageRequest.ts
model/updateLoadBalancerService.ts
model/updateLoadBalancerServiceHealthCheck.ts
model/updateLoadBalancerServiceHealthCheckHttp.ts
model/updateNetworkRequest.ts
model/updateNetworkRequestLabels.ts
model/updatePlacementGroupRequest.ts
model/updatePrimaryIPRequest.ts
model/updateServerRequest.ts
model/updateVolumeRequest.ts
model/volumesGet200Response.ts
model/volumesGet200ResponseVolumesInner.ts
model/volumesGet200ResponseVolumesInnerLocation.ts
model/volumesIdActionsChangeProtectionPostRequest.ts
model/volumesIdActionsResizePostRequest.ts
model/volumesIdGet200Response.ts
model/volumesPost201Response.ts

View File

@ -1 +0,0 @@
7.2.0

View File

@ -1,3 +0,0 @@
// This is the entrypoint for the package
export * from './api/apis';
export * from './model/models';

File diff suppressed because one or more lines are too long

View File

@ -1,66 +0,0 @@
export * from './actionsApi';
import { ActionsApi } from './actionsApi';
export * from './certificateActionsApi';
import { CertificateActionsApi } from './certificateActionsApi';
export * from './certificatesApi';
import { CertificatesApi } from './certificatesApi';
export * from './datacentersApi';
import { DatacentersApi } from './datacentersApi';
export * from './firewallActionsApi';
import { FirewallActionsApi } from './firewallActionsApi';
export * from './firewallsApi';
import { FirewallsApi } from './firewallsApi';
export * from './floatingIPActionsApi';
import { FloatingIPActionsApi } from './floatingIPActionsApi';
export * from './floatingIPsApi';
import { FloatingIPsApi } from './floatingIPsApi';
export * from './iSOsApi';
import { ISOsApi } from './iSOsApi';
export * from './imageActionsApi';
import { ImageActionsApi } from './imageActionsApi';
export * from './imagesApi';
import { ImagesApi } from './imagesApi';
export * from './loadBalancerActionsApi';
import { LoadBalancerActionsApi } from './loadBalancerActionsApi';
export * from './loadBalancerTypesApi';
import { LoadBalancerTypesApi } from './loadBalancerTypesApi';
export * from './loadBalancersApi';
import { LoadBalancersApi } from './loadBalancersApi';
export * from './locationsApi';
import { LocationsApi } from './locationsApi';
export * from './networkActionsApi';
import { NetworkActionsApi } from './networkActionsApi';
export * from './networksApi';
import { NetworksApi } from './networksApi';
export * from './placementGroupsApi';
import { PlacementGroupsApi } from './placementGroupsApi';
export * from './pricingApi';
import { PricingApi } from './pricingApi';
export * from './primaryIPActionsApi';
import { PrimaryIPActionsApi } from './primaryIPActionsApi';
export * from './primaryIPsApi';
import { PrimaryIPsApi } from './primaryIPsApi';
export * from './sSHKeysApi';
import { SSHKeysApi } from './sSHKeysApi';
export * from './serverActionsApi';
import { ServerActionsApi } from './serverActionsApi';
export * from './serverTypesApi';
import { ServerTypesApi } from './serverTypesApi';
export * from './serversApi';
import { ServersApi } from './serversApi';
export * from './volumeActionsApi';
import { VolumeActionsApi } from './volumeActionsApi';
export * from './volumesApi';
import { VolumesApi } from './volumesApi';
import * as http from 'http';
export class HttpError extends Error {
constructor (public response: http.IncomingMessage, public body: any, public statusCode?: number) {
super('HTTP request failed');
this.name = 'HttpError';
}
}
export { RequestFile } from '../model/models';
export const APIS = [ActionsApi, CertificateActionsApi, CertificatesApi, DatacentersApi, FirewallActionsApi, FirewallsApi, FloatingIPActionsApi, FloatingIPsApi, ISOsApi, ImageActionsApi, ImagesApi, LoadBalancerActionsApi, LoadBalancerTypesApi, LoadBalancersApi, LocationsApi, NetworkActionsApi, NetworksApi, PlacementGroupsApi, PricingApi, PrimaryIPActionsApi, PrimaryIPsApi, SSHKeysApi, ServerActionsApi, ServerTypesApi, ServersApi, VolumeActionsApi, VolumesApi];

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,57 +0,0 @@
#!/bin/sh
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
#
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
git_user_id=$1
git_repo_id=$2
release_note=$3
git_host=$4
if [ "$git_host" = "" ]; then
git_host="github.com"
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
fi
if [ "$git_user_id" = "" ]; then
git_user_id="GIT_USER_ID"
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
fi
if [ "$git_repo_id" = "" ]; then
git_repo_id="GIT_REPO_ID"
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi
if [ "$release_note" = "" ]; then
release_note="Minor update"
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
fi
# Initialize the local directory as a Git repository
git init
# Adds the files in the local repository and stages them for commit.
git add .
# Commits the tracked changes and prepares them to be pushed to a remote repository.
git commit -m "$release_note"
# Sets the new remote
git_remote=$(git remote)
if [ "$git_remote" = "" ]; then # git remote not defined
if [ "$GIT_TOKEN" = "" ]; then
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
else
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
fi
fi
git pull origin master
# Pushes (Forces) the changes in the local repository up to the remote repository
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
git push origin master 2>&1 | grep -v 'To https'

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More