fix(core): update
This commit is contained in:
commit
c49cf936ba
66
.gitea/workflows/default_nottags.yaml
Normal file
66
.gitea/workflows/default_nottags.yaml
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
name: Default (not tags)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags-ignore:
|
||||||
|
- '**'
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
|
NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@gitea.lossless.digital/${{gitea.repository}}.git
|
||||||
|
NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}}
|
||||||
|
NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}}
|
||||||
|
NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}}
|
||||||
|
NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
security:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
continue-on-error: true
|
||||||
|
container:
|
||||||
|
image: ${{ env.IMAGE }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install pnpm and npmci
|
||||||
|
run: |
|
||||||
|
pnpm install -g pnpm
|
||||||
|
pnpm install -g @shipzone/npmci
|
||||||
|
|
||||||
|
- name: Run npm prepare
|
||||||
|
run: npmci npm prepare
|
||||||
|
|
||||||
|
- name: Audit production dependencies
|
||||||
|
run: |
|
||||||
|
npmci command npm config set registry https://registry.npmjs.org
|
||||||
|
npmci command pnpm audit --audit-level=high --prod
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Audit development dependencies
|
||||||
|
run: |
|
||||||
|
npmci command npm config set registry https://registry.npmjs.org
|
||||||
|
npmci command pnpm audit --audit-level=high --dev
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
test:
|
||||||
|
if: ${{ always() }}
|
||||||
|
needs: security
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ${{ env.IMAGE }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Test stable
|
||||||
|
run: |
|
||||||
|
npmci node install stable
|
||||||
|
npmci npm install
|
||||||
|
npmci npm test
|
||||||
|
|
||||||
|
- name: Test build
|
||||||
|
run: |
|
||||||
|
npmci node install stable
|
||||||
|
npmci npm install
|
||||||
|
npmci npm build
|
124
.gitea/workflows/default_tags.yaml
Normal file
124
.gitea/workflows/default_tags.yaml
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
name: Default (tags)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
|
NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@gitea.lossless.digital/${{gitea.repository}}.git
|
||||||
|
NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}}
|
||||||
|
NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}}
|
||||||
|
NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}}
|
||||||
|
NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
security:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
continue-on-error: true
|
||||||
|
container:
|
||||||
|
image: ${{ env.IMAGE }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Prepare
|
||||||
|
run: |
|
||||||
|
pnpm install -g pnpm
|
||||||
|
pnpm install -g @shipzone/npmci
|
||||||
|
npmci npm prepare
|
||||||
|
|
||||||
|
- name: Audit production dependencies
|
||||||
|
run: |
|
||||||
|
npmci command npm config set registry https://registry.npmjs.org
|
||||||
|
npmci command pnpm audit --audit-level=high --prod
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Audit development dependencies
|
||||||
|
run: |
|
||||||
|
npmci command npm config set registry https://registry.npmjs.org
|
||||||
|
npmci command pnpm audit --audit-level=high --dev
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
test:
|
||||||
|
if: ${{ always() }}
|
||||||
|
needs: security
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ${{ env.IMAGE }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Prepare
|
||||||
|
run: |
|
||||||
|
pnpm install -g pnpm
|
||||||
|
pnpm install -g @shipzone/npmci
|
||||||
|
npmci npm prepare
|
||||||
|
|
||||||
|
- name: Test stable
|
||||||
|
run: |
|
||||||
|
npmci node install stable
|
||||||
|
npmci npm install
|
||||||
|
npmci npm test
|
||||||
|
|
||||||
|
- name: Test build
|
||||||
|
run: |
|
||||||
|
npmci node install stable
|
||||||
|
npmci npm install
|
||||||
|
npmci npm build
|
||||||
|
|
||||||
|
release:
|
||||||
|
needs: test
|
||||||
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ${{ env.IMAGE }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Prepare
|
||||||
|
run: |
|
||||||
|
pnpm install -g pnpm
|
||||||
|
pnpm install -g @shipzone/npmci
|
||||||
|
npmci npm prepare
|
||||||
|
|
||||||
|
- name: Release
|
||||||
|
run: |
|
||||||
|
npmci node install stable
|
||||||
|
npmci npm publish
|
||||||
|
|
||||||
|
metadata:
|
||||||
|
needs: test
|
||||||
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ${{ env.IMAGE }}
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Prepare
|
||||||
|
run: |
|
||||||
|
pnpm install -g pnpm
|
||||||
|
pnpm install -g @shipzone/npmci
|
||||||
|
npmci npm prepare
|
||||||
|
|
||||||
|
- name: Code quality
|
||||||
|
run: |
|
||||||
|
npmci command npm install -g typescript
|
||||||
|
npmci npm install
|
||||||
|
|
||||||
|
- name: Trigger
|
||||||
|
run: npmci trigger
|
||||||
|
|
||||||
|
- name: Build docs and upload artifacts
|
||||||
|
run: |
|
||||||
|
npmci node install stable
|
||||||
|
npmci npm install
|
||||||
|
pnpm install -g @git.zone/tsdoc
|
||||||
|
npmci command tsdoc
|
||||||
|
continue-on-error: true
|
20
.gitignore
vendored
Normal file
20
.gitignore
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
.nogit/
|
||||||
|
|
||||||
|
# artifacts
|
||||||
|
coverage/
|
||||||
|
public/
|
||||||
|
pages/
|
||||||
|
|
||||||
|
# installs
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# caches
|
||||||
|
.yarn/
|
||||||
|
.cache/
|
||||||
|
.rpt2_cache
|
||||||
|
|
||||||
|
# builds
|
||||||
|
dist/
|
||||||
|
dist_*/
|
||||||
|
|
||||||
|
# custom
|
11
.vscode/launch.json
vendored
Normal file
11
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"command": "npm test",
|
||||||
|
"name": "Run npm test",
|
||||||
|
"request": "launch",
|
||||||
|
"type": "node-terminal"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
26
.vscode/settings.json
vendored
Normal file
26
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"json.schemas": [
|
||||||
|
{
|
||||||
|
"fileMatch": ["/npmextra.json"],
|
||||||
|
"schema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"npmci": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "settings for npmci"
|
||||||
|
},
|
||||||
|
"gitzone": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "settings for gitzone",
|
||||||
|
"properties": {
|
||||||
|
"projectType": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["website", "element", "service", "npm", "wcc"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
18
npmextra.json
Normal file
18
npmextra.json
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"gitzone": {
|
||||||
|
"projectType": "npm",
|
||||||
|
"module": {
|
||||||
|
"githost": "gitlab.com",
|
||||||
|
"gitscope": "apiclient.xyz",
|
||||||
|
"gitrepo": "hetznercloud",
|
||||||
|
"description": "an unofficial api client for the hetzner cloud api",
|
||||||
|
"npmPackagename": "@apiclient.xyz/hetznercloud",
|
||||||
|
"license": "MIT",
|
||||||
|
"projectDomain": "apiclient.xyz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"npmci": {
|
||||||
|
"npmGlobalTools": [],
|
||||||
|
"npmAccessLevel": "public"
|
||||||
|
}
|
||||||
|
}
|
7
openapitools.json
Normal file
7
openapitools.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
|
||||||
|
"spaces": 2,
|
||||||
|
"generator-cli": {
|
||||||
|
"version": "7.2.0"
|
||||||
|
}
|
||||||
|
}
|
49
package.json
Normal file
49
package.json
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
{
|
||||||
|
"name": "@apiclient.xyz/hetznercloud",
|
||||||
|
"version": "1.0.1",
|
||||||
|
"private": false,
|
||||||
|
"description": "an unofficial api client for the hetzner cloud api",
|
||||||
|
"main": "dist_ts/index.js",
|
||||||
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
"type": "module",
|
||||||
|
"author": "Task Venture Capital GmbH",
|
||||||
|
"license": "MIT",
|
||||||
|
"scripts": {
|
||||||
|
"test": "(tstest test/ --web)",
|
||||||
|
"build": "(tsbuild --web --allowimplicitany)",
|
||||||
|
"buildDocs": "(tsdoc)",
|
||||||
|
"create": "openapi-generator-cli generate -i https://docs.hetzner.cloud/spec.json -g typescript-node -o ts_openapi"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@git.zone/tsbuild": "^2.1.25",
|
||||||
|
"@git.zone/tsbundle": "^2.0.5",
|
||||||
|
"@git.zone/tsrun": "^1.2.46",
|
||||||
|
"@git.zone/tstest": "^1.0.44",
|
||||||
|
"@push.rocks/tapbundle": "^5.0.15",
|
||||||
|
"@types/node": "^20.8.7"
|
||||||
|
},
|
||||||
|
"dependencies": {},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://gitlab.com/apiclient.xyz/hetznercloud.git"
|
||||||
|
},
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://gitlab.com/apiclient.xyz/hetznercloud/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://gitlab.com/apiclient.xyz/hetznercloud#readme",
|
||||||
|
"browserslist": [
|
||||||
|
"last 1 chrome versions"
|
||||||
|
],
|
||||||
|
"files": [
|
||||||
|
"ts/**/*",
|
||||||
|
"ts_web/**/*",
|
||||||
|
"dist/**/*",
|
||||||
|
"dist_*/**/*",
|
||||||
|
"dist_ts/**/*",
|
||||||
|
"dist_ts_web/**/*",
|
||||||
|
"assets/**/*",
|
||||||
|
"cli.js",
|
||||||
|
"npmextra.json",
|
||||||
|
"readme.md"
|
||||||
|
]
|
||||||
|
}
|
5651
pnpm-lock.yaml
generated
Normal file
5651
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
31
readme.md
Normal file
31
readme.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# @apiclient.xyz/hetznercloud
|
||||||
|
an unofficial api client for the hetzner cloud api
|
||||||
|
|
||||||
|
## Availabililty and Links
|
||||||
|
* [npmjs.org (npm package)](https://www.npmjs.com/package/@apiclient.xyz/hetznercloud)
|
||||||
|
* [gitlab.com (source)](https://gitlab.com/apiclient.xyz/hetznercloud)
|
||||||
|
* [github.com (source mirror)](https://github.com/apiclient.xyz/hetznercloud)
|
||||||
|
* [docs (typedoc)](https://apiclient.xyz.gitlab.io/hetznercloud/)
|
||||||
|
|
||||||
|
## Status for master
|
||||||
|
|
||||||
|
Status Category | Status Badge
|
||||||
|
-- | --
|
||||||
|
GitLab Pipelines | [![pipeline status](https://gitlab.com/apiclient.xyz/hetznercloud/badges/master/pipeline.svg)](https://lossless.cloud)
|
||||||
|
GitLab Pipline Test Coverage | [![coverage report](https://gitlab.com/apiclient.xyz/hetznercloud/badges/master/coverage.svg)](https://lossless.cloud)
|
||||||
|
npm | [![npm downloads per month](https://badgen.net/npm/dy/@apiclient.xyz/hetznercloud)](https://lossless.cloud)
|
||||||
|
Snyk | [![Known Vulnerabilities](https://badgen.net/snyk/apiclient.xyz/hetznercloud)](https://lossless.cloud)
|
||||||
|
TypeScript Support | [![TypeScript](https://badgen.net/badge/TypeScript/>=%203.x/blue?icon=typescript)](https://lossless.cloud)
|
||||||
|
node Support | [![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||||
|
Code Style | [![Code Style](https://badgen.net/badge/style/prettier/purple)](https://lossless.cloud)
|
||||||
|
PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@apiclient.xyz/hetznercloud)](https://lossless.cloud)
|
||||||
|
PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@apiclient.xyz/hetznercloud)](https://lossless.cloud)
|
||||||
|
BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@apiclient.xyz/hetznercloud)](https://lossless.cloud)
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
Use TypeScript for best in class intellisense
|
||||||
|
For further information read the linked docs at the top of this readme.
|
||||||
|
|
||||||
|
## Legal
|
||||||
|
> MIT licensed | **©** [Task Venture Capital GmbH](https://task.vc)
|
||||||
|
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
|
8
test/test.ts
Normal file
8
test/test.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
|
||||||
|
import * as hetznercloud from '../ts/index.js'
|
||||||
|
|
||||||
|
tap.test('first test', async () => {
|
||||||
|
console.log(hetznercloud)
|
||||||
|
})
|
||||||
|
|
||||||
|
tap.start()
|
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* autocreated commitinfo by @pushrocks/commitinfo
|
||||||
|
*/
|
||||||
|
export const commitinfo = {
|
||||||
|
name: '@apiclient.xyz/hetznercloud',
|
||||||
|
version: '1.0.2',
|
||||||
|
description: 'an unofficial api client for the hetzner cloud api'
|
||||||
|
}
|
4
ts/hetznercloud.plugins.ts
Normal file
4
ts/hetznercloud.plugins.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
const removeme = {};
|
||||||
|
export {
|
||||||
|
removeme
|
||||||
|
}
|
3
ts/index.ts
Normal file
3
ts/index.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
import * as plugins from './hetznercloud.plugins.js';
|
||||||
|
|
||||||
|
export let demoExport = 'Hi there! :) This is an exported string';
|
4
ts_openapi/.gitignore
vendored
Normal file
4
ts_openapi/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
wwwroot/*.js
|
||||||
|
node_modules
|
||||||
|
typings
|
||||||
|
dist
|
23
ts_openapi/.openapi-generator-ignore
Normal file
23
ts_openapi/.openapi-generator-ignore
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# 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
|
258
ts_openapi/.openapi-generator/FILES
Normal file
258
ts_openapi/.openapi-generator/FILES
Normal file
@ -0,0 +1,258 @@
|
|||||||
|
.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
|
1
ts_openapi/.openapi-generator/VERSION
Normal file
1
ts_openapi/.openapi-generator/VERSION
Normal file
@ -0,0 +1 @@
|
|||||||
|
7.2.0
|
3
ts_openapi/api.ts
Normal file
3
ts_openapi/api.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// This is the entrypoint for the package
|
||||||
|
export * from './api/apis';
|
||||||
|
export * from './model/models';
|
258
ts_openapi/api/actionsApi.ts
Normal file
258
ts_openapi/api/actionsApi.ts
Normal file
File diff suppressed because one or more lines are too long
66
ts_openapi/api/apis.ts
Normal file
66
ts_openapi/api/apis.ts
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
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];
|
501
ts_openapi/api/certificateActionsApi.ts
Normal file
501
ts_openapi/api/certificateActionsApi.ts
Normal file
File diff suppressed because one or more lines are too long
471
ts_openapi/api/certificatesApi.ts
Normal file
471
ts_openapi/api/certificatesApi.ts
Normal file
File diff suppressed because one or more lines are too long
253
ts_openapi/api/datacentersApi.ts
Normal file
253
ts_openapi/api/datacentersApi.ts
Normal file
File diff suppressed because one or more lines are too long
654
ts_openapi/api/firewallActionsApi.ts
Normal file
654
ts_openapi/api/firewallActionsApi.ts
Normal file
File diff suppressed because one or more lines are too long
466
ts_openapi/api/firewallsApi.ts
Normal file
466
ts_openapi/api/firewallsApi.ts
Normal file
File diff suppressed because one or more lines are too long
727
ts_openapi/api/floatingIPActionsApi.ts
Normal file
727
ts_openapi/api/floatingIPActionsApi.ts
Normal file
File diff suppressed because one or more lines are too long
466
ts_openapi/api/floatingIPsApi.ts
Normal file
466
ts_openapi/api/floatingIPsApi.ts
Normal file
File diff suppressed because one or more lines are too long
258
ts_openapi/api/iSOsApi.ts
Normal file
258
ts_openapi/api/iSOsApi.ts
Normal file
File diff suppressed because one or more lines are too long
504
ts_openapi/api/imageActionsApi.ts
Normal file
504
ts_openapi/api/imageActionsApi.ts
Normal file
File diff suppressed because one or more lines are too long
422
ts_openapi/api/imagesApi.ts
Normal file
422
ts_openapi/api/imagesApi.ts
Normal file
File diff suppressed because one or more lines are too long
1398
ts_openapi/api/loadBalancerActionsApi.ts
Normal file
1398
ts_openapi/api/loadBalancerActionsApi.ts
Normal file
File diff suppressed because one or more lines are too long
248
ts_openapi/api/loadBalancerTypesApi.ts
Normal file
248
ts_openapi/api/loadBalancerTypesApi.ts
Normal file
File diff suppressed because one or more lines are too long
574
ts_openapi/api/loadBalancersApi.ts
Normal file
574
ts_openapi/api/loadBalancersApi.ts
Normal file
File diff suppressed because one or more lines are too long
253
ts_openapi/api/locationsApi.ts
Normal file
253
ts_openapi/api/locationsApi.ts
Normal file
File diff suppressed because one or more lines are too long
878
ts_openapi/api/networkActionsApi.ts
Normal file
878
ts_openapi/api/networkActionsApi.ts
Normal file
File diff suppressed because one or more lines are too long
460
ts_openapi/api/networksApi.ts
Normal file
460
ts_openapi/api/networksApi.ts
Normal file
File diff suppressed because one or more lines are too long
471
ts_openapi/api/placementGroupsApi.ts
Normal file
471
ts_openapi/api/placementGroupsApi.ts
Normal file
File diff suppressed because one or more lines are too long
160
ts_openapi/api/pricingApi.ts
Normal file
160
ts_openapi/api/pricingApi.ts
Normal file
File diff suppressed because one or more lines are too long
555
ts_openapi/api/primaryIPActionsApi.ts
Normal file
555
ts_openapi/api/primaryIPActionsApi.ts
Normal file
File diff suppressed because one or more lines are too long
471
ts_openapi/api/primaryIPsApi.ts
Normal file
471
ts_openapi/api/primaryIPsApi.ts
Normal file
File diff suppressed because one or more lines are too long
470
ts_openapi/api/sSHKeysApi.ts
Normal file
470
ts_openapi/api/sSHKeysApi.ts
Normal file
File diff suppressed because one or more lines are too long
2122
ts_openapi/api/serverActionsApi.ts
Normal file
2122
ts_openapi/api/serverActionsApi.ts
Normal file
File diff suppressed because one or more lines are too long
248
ts_openapi/api/serverTypesApi.ts
Normal file
248
ts_openapi/api/serverTypesApi.ts
Normal file
File diff suppressed because one or more lines are too long
588
ts_openapi/api/serversApi.ts
Normal file
588
ts_openapi/api/serversApi.ts
Normal file
File diff suppressed because one or more lines are too long
726
ts_openapi/api/volumeActionsApi.ts
Normal file
726
ts_openapi/api/volumeActionsApi.ts
Normal file
File diff suppressed because one or more lines are too long
471
ts_openapi/api/volumesApi.ts
Normal file
471
ts_openapi/api/volumesApi.ts
Normal file
File diff suppressed because one or more lines are too long
57
ts_openapi/git_push.sh
Normal file
57
ts_openapi/git_push.sh
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
#!/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'
|
103
ts_openapi/model/action.ts
Normal file
103
ts_openapi/model/action.ts
Normal file
File diff suppressed because one or more lines are too long
46
ts_openapi/model/actionError.ts
Normal file
46
ts_openapi/model/actionError.ts
Normal file
File diff suppressed because one or more lines are too long
43
ts_openapi/model/actionResourcesInner.ts
Normal file
43
ts_openapi/model/actionResourcesInner.ts
Normal file
File diff suppressed because one or more lines are too long
32
ts_openapi/model/actionResponse.ts
Normal file
32
ts_openapi/model/actionResponse.ts
Normal file
File diff suppressed because one or more lines are too long
39
ts_openapi/model/actionsResponse.ts
Normal file
39
ts_openapi/model/actionsResponse.ts
Normal file
File diff suppressed because one or more lines are too long
32
ts_openapi/model/actionsResponseMeta.ts
Normal file
32
ts_openapi/model/actionsResponseMeta.ts
Normal file
File diff suppressed because one or more lines are too long
79
ts_openapi/model/actionsResponseMetaPagination.ts
Normal file
79
ts_openapi/model/actionsResponseMetaPagination.ts
Normal file
File diff suppressed because one or more lines are too long
43
ts_openapi/model/addDeleteRouteRequest.ts
Normal file
43
ts_openapi/model/addDeleteRouteRequest.ts
Normal file
File diff suppressed because one or more lines are too long
68
ts_openapi/model/addSubnetRequest.ts
Normal file
68
ts_openapi/model/addSubnetRequest.ts
Normal file
File diff suppressed because one or more lines are too long
71
ts_openapi/model/addTargetRequest.ts
Normal file
71
ts_openapi/model/addTargetRequest.ts
Normal file
File diff suppressed because one or more lines are too long
37
ts_openapi/model/addTargetRequestLabelSelector.ts
Normal file
37
ts_openapi/model/addTargetRequestLabelSelector.ts
Normal file
File diff suppressed because one or more lines are too long
37
ts_openapi/model/addTargetRequestServer.ts
Normal file
37
ts_openapi/model/addTargetRequestServer.ts
Normal file
File diff suppressed because one or more lines are too long
34
ts_openapi/model/addToPlacementGroupRequest.ts
Normal file
34
ts_openapi/model/addToPlacementGroupRequest.ts
Normal file
File diff suppressed because one or more lines are too long
35
ts_openapi/model/applyToResourcesRequest.ts
Normal file
35
ts_openapi/model/applyToResourcesRequest.ts
Normal file
File diff suppressed because one or more lines are too long
37
ts_openapi/model/assignFloatingIPRequest.ts
Normal file
37
ts_openapi/model/assignFloatingIPRequest.ts
Normal file
File diff suppressed because one or more lines are too long
48
ts_openapi/model/assignPrimaryIPRequest.ts
Normal file
48
ts_openapi/model/assignPrimaryIPRequest.ts
Normal file
File diff suppressed because one or more lines are too long
52
ts_openapi/model/attachToNetworkRequest.ts
Normal file
52
ts_openapi/model/attachToNetworkRequest.ts
Normal file
File diff suppressed because one or more lines are too long
43
ts_openapi/model/attachVolumeRequest.ts
Normal file
43
ts_openapi/model/attachVolumeRequest.ts
Normal file
File diff suppressed because one or more lines are too long
138
ts_openapi/model/certificate.ts
Normal file
138
ts_openapi/model/certificate.ts
Normal file
File diff suppressed because one or more lines are too long
32
ts_openapi/model/certificateResponse.ts
Normal file
32
ts_openapi/model/certificateResponse.ts
Normal file
File diff suppressed because one or more lines are too long
66
ts_openapi/model/certificateStatus.ts
Normal file
66
ts_openapi/model/certificateStatus.ts
Normal file
File diff suppressed because one or more lines are too long
40
ts_openapi/model/certificateStatusError.ts
Normal file
40
ts_openapi/model/certificateStatusError.ts
Normal file
File diff suppressed because one or more lines are too long
43
ts_openapi/model/certificateUsedByInner.ts
Normal file
43
ts_openapi/model/certificateUsedByInner.ts
Normal file
File diff suppressed because one or more lines are too long
39
ts_openapi/model/certificatesResponse.ts
Normal file
39
ts_openapi/model/certificatesResponse.ts
Normal file
File diff suppressed because one or more lines are too long
43
ts_openapi/model/changeDNSPTRRequest.ts
Normal file
43
ts_openapi/model/changeDNSPTRRequest.ts
Normal file
File diff suppressed because one or more lines are too long
34
ts_openapi/model/changeIPRangeRequest.ts
Normal file
34
ts_openapi/model/changeIPRangeRequest.ts
Normal file
File diff suppressed because one or more lines are too long
43
ts_openapi/model/changeLoadbalancerDnsPtrRequest.ts
Normal file
43
ts_openapi/model/changeLoadbalancerDnsPtrRequest.ts
Normal file
File diff suppressed because one or more lines are too long
34
ts_openapi/model/changeProtectionRequest.ts
Normal file
34
ts_openapi/model/changeProtectionRequest.ts
Normal file
File diff suppressed because one or more lines are too long
34
ts_openapi/model/changeProtectionRequest1.ts
Normal file
34
ts_openapi/model/changeProtectionRequest1.ts
Normal file
File diff suppressed because one or more lines are too long
34
ts_openapi/model/changeProtectionRequest2.ts
Normal file
34
ts_openapi/model/changeProtectionRequest2.ts
Normal file
File diff suppressed because one or more lines are too long
34
ts_openapi/model/changeTypeRequest.ts
Normal file
34
ts_openapi/model/changeTypeRequest.ts
Normal file
File diff suppressed because one or more lines are too long
85
ts_openapi/model/createCertificateRequest.ts
Normal file
85
ts_openapi/model/createCertificateRequest.ts
Normal file
File diff suppressed because one or more lines are too long
39
ts_openapi/model/createCertificateResponse.ts
Normal file
39
ts_openapi/model/createCertificateResponse.ts
Normal file
File diff suppressed because one or more lines are too long
63
ts_openapi/model/createFirewallRequest.ts
Normal file
63
ts_openapi/model/createFirewallRequest.ts
Normal file
File diff suppressed because one or more lines are too long
54
ts_openapi/model/createFirewallRequestApplyToInner.ts
Normal file
54
ts_openapi/model/createFirewallRequestApplyToInner.ts
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
37
ts_openapi/model/createFirewallRequestApplyToInnerServer.ts
Normal file
37
ts_openapi/model/createFirewallRequestApplyToInnerServer.ts
Normal file
File diff suppressed because one or more lines are too long
39
ts_openapi/model/createFirewallResponse.ts
Normal file
39
ts_openapi/model/createFirewallResponse.ts
Normal file
File diff suppressed because one or more lines are too long
79
ts_openapi/model/createFloatingIPRequest.ts
Normal file
79
ts_openapi/model/createFloatingIPRequest.ts
Normal file
File diff suppressed because one or more lines are too long
56
ts_openapi/model/createImageRequest.ts
Normal file
56
ts_openapi/model/createImageRequest.ts
Normal file
File diff suppressed because one or more lines are too long
113
ts_openapi/model/createLoadBalancerRequest.ts
Normal file
113
ts_openapi/model/createLoadBalancerRequest.ts
Normal file
File diff suppressed because one or more lines are too long
37
ts_openapi/model/createLoadBalancerRequestLabels.ts
Normal file
37
ts_openapi/model/createLoadBalancerRequestLabels.ts
Normal file
File diff suppressed because one or more lines are too long
79
ts_openapi/model/createNetworkRequest.ts
Normal file
79
ts_openapi/model/createNetworkRequest.ts
Normal file
File diff suppressed because one or more lines are too long
68
ts_openapi/model/createNetworkRequestSubnetsInner.ts
Normal file
68
ts_openapi/model/createNetworkRequestSubnetsInner.ts
Normal file
File diff suppressed because one or more lines are too long
57
ts_openapi/model/createPlacementGroupRequest.ts
Normal file
57
ts_openapi/model/createPlacementGroupRequest.ts
Normal file
File diff suppressed because one or more lines are too long
39
ts_openapi/model/createPlacementGroupResponse.ts
Normal file
39
ts_openapi/model/createPlacementGroupResponse.ts
Normal file
File diff suppressed because one or more lines are too long
94
ts_openapi/model/createPrimaryIPRequest.ts
Normal file
94
ts_openapi/model/createPrimaryIPRequest.ts
Normal file
File diff suppressed because one or more lines are too long
39
ts_openapi/model/createPrimaryIPResponse.ts
Normal file
39
ts_openapi/model/createPrimaryIPResponse.ts
Normal file
File diff suppressed because one or more lines are too long
159
ts_openapi/model/createServerRequest.ts
Normal file
159
ts_openapi/model/createServerRequest.ts
Normal file
File diff suppressed because one or more lines are too long
34
ts_openapi/model/createServerRequestFirewallsInner.ts
Normal file
34
ts_openapi/model/createServerRequestFirewallsInner.ts
Normal file
File diff suppressed because one or more lines are too long
64
ts_openapi/model/createServerRequestPublicNet.ts
Normal file
64
ts_openapi/model/createServerRequestPublicNet.ts
Normal file
File diff suppressed because one or more lines are too long
54
ts_openapi/model/createServerResponse.ts
Normal file
54
ts_openapi/model/createServerResponse.ts
Normal file
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
Loading…
Reference in New Issue
Block a user