@pidginhost/sdk 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,8 @@ All URIs are relative to *https://www.pidginhost.com*
16
16
  |[**kubernetesClustersDestroy2**](#kubernetesclustersdestroy2) | **DELETE** /api/v1/kubernetes/clusters/{id}/ | |
17
17
  |[**kubernetesClustersDisconnectVmCreate**](#kubernetesclustersdisconnectvmcreate) | **POST** /api/kubernetes/clusters/{id}/disconnect-vm/ | |
18
18
  |[**kubernetesClustersDisconnectVmCreate2**](#kubernetesclustersdisconnectvmcreate2) | **POST** /api/v1/kubernetes/clusters/{id}/disconnect-vm/ | |
19
+ |[**kubernetesClustersEligibleVmsRetrieve**](#kubernetesclusterseligiblevmsretrieve) | **GET** /api/kubernetes/clusters/{id}/eligible-vms/ | |
20
+ |[**kubernetesClustersEligibleVmsRetrieve2**](#kubernetesclusterseligiblevmsretrieve2) | **GET** /api/v1/kubernetes/clusters/{id}/eligible-vms/ | |
19
21
  |[**kubernetesClustersHttproutesCreate**](#kubernetesclustershttproutescreate) | **POST** /api/kubernetes/clusters/{cluster_id}/httproutes/ | |
20
22
  |[**kubernetesClustersHttproutesCreate2**](#kubernetesclustershttproutescreate2) | **POST** /api/v1/kubernetes/clusters/{cluster_id}/httproutes/ | |
21
23
  |[**kubernetesClustersHttproutesDestroy**](#kubernetesclustershttproutesdestroy) | **DELETE** /api/kubernetes/clusters/{cluster_id}/httproutes/{id}/ | |
@@ -100,6 +102,8 @@ All URIs are relative to *https://www.pidginhost.com*
100
102
  |[**kubernetesClustersTcproutesRetrieve4**](#kubernetesclusterstcproutesretrieve4) | **GET** /api/v1/kubernetes/clusters/{cluster_id}/tcproutes/{id}/ | |
101
103
  |[**kubernetesClustersTcproutesUpdate**](#kubernetesclusterstcproutesupdate) | **PUT** /api/kubernetes/clusters/{cluster_id}/tcproutes/{id}/ | |
102
104
  |[**kubernetesClustersTcproutesUpdate2**](#kubernetesclusterstcproutesupdate2) | **PUT** /api/v1/kubernetes/clusters/{cluster_id}/tcproutes/{id}/ | |
105
+ |[**kubernetesClustersToggleCloudVmAccessCreate**](#kubernetesclusterstogglecloudvmaccesscreate) | **POST** /api/kubernetes/clusters/{id}/toggle-cloud-vm-access/ | |
106
+ |[**kubernetesClustersToggleCloudVmAccessCreate2**](#kubernetesclusterstogglecloudvmaccesscreate2) | **POST** /api/v1/kubernetes/clusters/{id}/toggle-cloud-vm-access/ | |
103
107
  |[**kubernetesClustersUdproutesCreate**](#kubernetesclustersudproutescreate) | **POST** /api/kubernetes/clusters/{cluster_id}/udproutes/ | |
104
108
  |[**kubernetesClustersUdproutesCreate2**](#kubernetesclustersudproutescreate2) | **POST** /api/v1/kubernetes/clusters/{cluster_id}/udproutes/ | |
105
109
  |[**kubernetesClustersUdproutesDestroy**](#kubernetesclustersudproutesdestroy) | **DELETE** /api/kubernetes/clusters/{cluster_id}/udproutes/{id}/ | |
@@ -740,6 +744,108 @@ const { status, data } = await apiInstance.kubernetesClustersDisconnectVmCreate2
740
744
  - **Accept**: application/json
741
745
 
742
746
 
747
+ ### HTTP response details
748
+ | Status code | Description | Response headers |
749
+ |-------------|-------------|------------------|
750
+ |**200** | | - |
751
+
752
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
753
+
754
+ # **kubernetesClustersEligibleVmsRetrieve**
755
+ > EligibleVMsResponse kubernetesClustersEligibleVmsRetrieve()
756
+
757
+ List cloud VMs eligible for connection to this cluster.
758
+
759
+ ### Example
760
+
761
+ ```typescript
762
+ import {
763
+ KubernetesApi,
764
+ Configuration
765
+ } from '@pidginhost/sdk';
766
+
767
+ const configuration = new Configuration();
768
+ const apiInstance = new KubernetesApi(configuration);
769
+
770
+ let id: string; // (default to undefined)
771
+
772
+ const { status, data } = await apiInstance.kubernetesClustersEligibleVmsRetrieve(
773
+ id
774
+ );
775
+ ```
776
+
777
+ ### Parameters
778
+
779
+ |Name | Type | Description | Notes|
780
+ |------------- | ------------- | ------------- | -------------|
781
+ | **id** | [**string**] | | defaults to undefined|
782
+
783
+
784
+ ### Return type
785
+
786
+ **EligibleVMsResponse**
787
+
788
+ ### Authorization
789
+
790
+ [cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
791
+
792
+ ### HTTP request headers
793
+
794
+ - **Content-Type**: Not defined
795
+ - **Accept**: application/json
796
+
797
+
798
+ ### HTTP response details
799
+ | Status code | Description | Response headers |
800
+ |-------------|-------------|------------------|
801
+ |**200** | | - |
802
+
803
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
804
+
805
+ # **kubernetesClustersEligibleVmsRetrieve2**
806
+ > EligibleVMsResponse kubernetesClustersEligibleVmsRetrieve2()
807
+
808
+ List cloud VMs eligible for connection to this cluster.
809
+
810
+ ### Example
811
+
812
+ ```typescript
813
+ import {
814
+ KubernetesApi,
815
+ Configuration
816
+ } from '@pidginhost/sdk';
817
+
818
+ const configuration = new Configuration();
819
+ const apiInstance = new KubernetesApi(configuration);
820
+
821
+ let id: string; // (default to undefined)
822
+
823
+ const { status, data } = await apiInstance.kubernetesClustersEligibleVmsRetrieve2(
824
+ id
825
+ );
826
+ ```
827
+
828
+ ### Parameters
829
+
830
+ |Name | Type | Description | Notes|
831
+ |------------- | ------------- | ------------- | -------------|
832
+ | **id** | [**string**] | | defaults to undefined|
833
+
834
+
835
+ ### Return type
836
+
837
+ **EligibleVMsResponse**
838
+
839
+ ### Authorization
840
+
841
+ [cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
842
+
843
+ ### HTTP request headers
844
+
845
+ - **Content-Type**: Not defined
846
+ - **Accept**: application/json
847
+
848
+
743
849
  ### HTTP response details
744
850
  | Status code | Description | Response headers |
745
851
  |-------------|-------------|------------------|
@@ -5320,6 +5426,108 @@ const { status, data } = await apiInstance.kubernetesClustersTcproutesUpdate2(
5320
5426
  - **Accept**: application/json
5321
5427
 
5322
5428
 
5429
+ ### HTTP response details
5430
+ | Status code | Description | Response headers |
5431
+ |-------------|-------------|------------------|
5432
+ |**200** | | - |
5433
+
5434
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
5435
+
5436
+ # **kubernetesClustersToggleCloudVmAccessCreate**
5437
+ > ToggleCloudVMAccessResponse kubernetesClustersToggleCloudVmAccessCreate()
5438
+
5439
+ Toggle cloud VM access for this cluster.
5440
+
5441
+ ### Example
5442
+
5443
+ ```typescript
5444
+ import {
5445
+ KubernetesApi,
5446
+ Configuration
5447
+ } from '@pidginhost/sdk';
5448
+
5449
+ const configuration = new Configuration();
5450
+ const apiInstance = new KubernetesApi(configuration);
5451
+
5452
+ let id: string; // (default to undefined)
5453
+
5454
+ const { status, data } = await apiInstance.kubernetesClustersToggleCloudVmAccessCreate(
5455
+ id
5456
+ );
5457
+ ```
5458
+
5459
+ ### Parameters
5460
+
5461
+ |Name | Type | Description | Notes|
5462
+ |------------- | ------------- | ------------- | -------------|
5463
+ | **id** | [**string**] | | defaults to undefined|
5464
+
5465
+
5466
+ ### Return type
5467
+
5468
+ **ToggleCloudVMAccessResponse**
5469
+
5470
+ ### Authorization
5471
+
5472
+ [cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
5473
+
5474
+ ### HTTP request headers
5475
+
5476
+ - **Content-Type**: Not defined
5477
+ - **Accept**: application/json
5478
+
5479
+
5480
+ ### HTTP response details
5481
+ | Status code | Description | Response headers |
5482
+ |-------------|-------------|------------------|
5483
+ |**200** | | - |
5484
+
5485
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
5486
+
5487
+ # **kubernetesClustersToggleCloudVmAccessCreate2**
5488
+ > ToggleCloudVMAccessResponse kubernetesClustersToggleCloudVmAccessCreate2()
5489
+
5490
+ Toggle cloud VM access for this cluster.
5491
+
5492
+ ### Example
5493
+
5494
+ ```typescript
5495
+ import {
5496
+ KubernetesApi,
5497
+ Configuration
5498
+ } from '@pidginhost/sdk';
5499
+
5500
+ const configuration = new Configuration();
5501
+ const apiInstance = new KubernetesApi(configuration);
5502
+
5503
+ let id: string; // (default to undefined)
5504
+
5505
+ const { status, data } = await apiInstance.kubernetesClustersToggleCloudVmAccessCreate2(
5506
+ id
5507
+ );
5508
+ ```
5509
+
5510
+ ### Parameters
5511
+
5512
+ |Name | Type | Description | Notes|
5513
+ |------------- | ------------- | ------------- | -------------|
5514
+ | **id** | [**string**] | | defaults to undefined|
5515
+
5516
+
5517
+ ### Return type
5518
+
5519
+ **ToggleCloudVMAccessResponse**
5520
+
5521
+ ### Authorization
5522
+
5523
+ [cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
5524
+
5525
+ ### HTTP request headers
5526
+
5527
+ - **Content-Type**: Not defined
5528
+ - **Accept**: application/json
5529
+
5530
+
5323
5531
  ### HTTP response details
5324
5532
  | Status code | Description | Response headers |
5325
5533
  |-------------|-------------|------------------|
@@ -0,0 +1,50 @@
1
+ # PatchedServerDetail
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | | [optional] [readonly] [default to undefined]
9
+ **hostname** | **string** | | [optional] [readonly] [default to undefined]
10
+ **project** | **string** | | [optional] [default to undefined]
11
+ **image** | **string** | | [optional] [readonly] [default to undefined]
12
+ **_package** | **string** | | [optional] [readonly] [default to undefined]
13
+ **cpus** | **number** | | [optional] [readonly] [default to undefined]
14
+ **memory** | **number** | | [optional] [readonly] [default to undefined]
15
+ **disk_size** | **number** | | [optional] [readonly] [default to undefined]
16
+ **machine** | **{ [key: string]: any; }** | | [optional] [readonly] [default to undefined]
17
+ **volumes** | [**Array<Volume>**](Volume.md) | | [optional] [readonly] [default to undefined]
18
+ **networks** | **{ [key: string]: any; }** | | [optional] [readonly] [default to undefined]
19
+ **password** | **string** | | [optional] [default to undefined]
20
+ **status** | [**StatusA57Enum**](StatusA57Enum.md) | | [optional] [readonly] [default to undefined]
21
+ **username** | **string** | | [optional] [readonly] [default to undefined]
22
+ **destroy_protection** | **boolean** | Prevents the server from being destroyed until disabled. | [optional] [readonly] [default to undefined]
23
+ **ha_enabled** | **boolean** | Enables Proxmox HA — automatic restart and migration on node failure. | [optional] [readonly] [default to undefined]
24
+
25
+ ## Example
26
+
27
+ ```typescript
28
+ import { PatchedServerDetail } from '@pidginhost/sdk';
29
+
30
+ const instance: PatchedServerDetail = {
31
+ id,
32
+ hostname,
33
+ project,
34
+ image,
35
+ _package,
36
+ cpus,
37
+ memory,
38
+ disk_size,
39
+ machine,
40
+ volumes,
41
+ networks,
42
+ password,
43
+ status,
44
+ username,
45
+ destroy_protection,
46
+ ha_enabled,
47
+ };
48
+ ```
49
+
50
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/Server.md CHANGED
@@ -10,9 +10,9 @@ Name | Type | Description | Notes
10
10
  **project** | **string** | | [optional] [default to undefined]
11
11
  **image** | **string** | | [readonly] [default to undefined]
12
12
  **_package** | **string** | | [readonly] [default to undefined]
13
- **cpus** | **string** | | [readonly] [default to undefined]
14
- **memory** | **string** | | [readonly] [default to undefined]
15
- **disk_size** | **string** | | [readonly] [default to undefined]
13
+ **cpus** | **number** | | [readonly] [default to undefined]
14
+ **memory** | **number** | | [readonly] [default to undefined]
15
+ **disk_size** | **number** | | [readonly] [default to undefined]
16
16
  **status** | [**StatusA57Enum**](StatusA57Enum.md) | | [optional] [default to undefined]
17
17
  **destroy_protection** | **boolean** | Prevents the server from being destroyed until disabled. | [readonly] [default to undefined]
18
18
  **ha_enabled** | **boolean** | Enables Proxmox HA — automatic restart and migration on node failure. | [readonly] [default to undefined]
@@ -0,0 +1,50 @@
1
+ # ServerDetail
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | | [readonly] [default to undefined]
9
+ **hostname** | **string** | | [readonly] [default to undefined]
10
+ **project** | **string** | | [optional] [default to undefined]
11
+ **image** | **string** | | [readonly] [default to undefined]
12
+ **_package** | **string** | | [readonly] [default to undefined]
13
+ **cpus** | **number** | | [readonly] [default to undefined]
14
+ **memory** | **number** | | [readonly] [default to undefined]
15
+ **disk_size** | **number** | | [readonly] [default to undefined]
16
+ **machine** | **{ [key: string]: any; }** | | [readonly] [default to undefined]
17
+ **volumes** | [**Array<Volume>**](Volume.md) | | [readonly] [default to undefined]
18
+ **networks** | **{ [key: string]: any; }** | | [readonly] [default to undefined]
19
+ **password** | **string** | | [optional] [default to undefined]
20
+ **status** | [**StatusA57Enum**](StatusA57Enum.md) | | [readonly] [default to undefined]
21
+ **username** | **string** | | [readonly] [default to undefined]
22
+ **destroy_protection** | **boolean** | Prevents the server from being destroyed until disabled. | [readonly] [default to undefined]
23
+ **ha_enabled** | **boolean** | Enables Proxmox HA — automatic restart and migration on node failure. | [readonly] [default to undefined]
24
+
25
+ ## Example
26
+
27
+ ```typescript
28
+ import { ServerDetail } from '@pidginhost/sdk';
29
+
30
+ const instance: ServerDetail = {
31
+ id,
32
+ hostname,
33
+ project,
34
+ image,
35
+ _package,
36
+ cpus,
37
+ memory,
38
+ disk_size,
39
+ machine,
40
+ volumes,
41
+ networks,
42
+ password,
43
+ status,
44
+ username,
45
+ destroy_protection,
46
+ ha_enabled,
47
+ };
48
+ ```
49
+
50
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # ToggleCloudVMAccessResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **enabled** | **boolean** | | [default to undefined]
9
+ **message** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ToggleCloudVMAccessResponse } from '@pidginhost/sdk';
15
+
16
+ const instance: ToggleCloudVMAccessResponse = {
17
+ enabled,
18
+ message,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pidginhost/sdk",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "OpenAPI client for @pidginhost/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
package/pidginhost.ts CHANGED
@@ -1,10 +1,16 @@
1
- import { Configuration, AccountApi, CloudApi, DomainApi, KubernetesApi } from "./index";
1
+ import { Configuration, AccountApi, AuthApi, BillingApi, CloudApi, DedicatedApi, DomainApi, FreednsApi, HostingApi, KubernetesApi, SupportApi } from "./index";
2
2
 
3
3
  export class PidginHost {
4
4
  public account: AccountApi;
5
+ public auth: AuthApi;
6
+ public billing: BillingApi;
5
7
  public cloud: CloudApi;
8
+ public dedicated: DedicatedApi;
6
9
  public domain: DomainApi;
10
+ public freedns: FreednsApi;
11
+ public hosting: HostingApi;
7
12
  public kubernetes: KubernetesApi;
13
+ public support: SupportApi;
8
14
 
9
15
  constructor(token: string, basePath?: string) {
10
16
  const config = new Configuration({
@@ -13,8 +19,14 @@ export class PidginHost {
13
19
  });
14
20
 
15
21
  this.account = new AccountApi(config);
22
+ this.auth = new AuthApi(config);
23
+ this.billing = new BillingApi(config);
16
24
  this.cloud = new CloudApi(config);
25
+ this.dedicated = new DedicatedApi(config);
17
26
  this.domain = new DomainApi(config);
27
+ this.freedns = new FreednsApi(config);
28
+ this.hosting = new HostingApi(config);
18
29
  this.kubernetes = new KubernetesApi(config);
30
+ this.support = new SupportApi(config);
19
31
  }
20
32
  }