hostinger-api-sdk 2.15.0 → 2.16.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.
package/dist/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.15.0
4
+ * API Version: 2.16.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -6867,6 +6867,106 @@ export interface EcommerceV1VariantVariantResponseResource {
6867
6867
  */
6868
6868
  'data': EcommerceV1VariantVariantResource;
6869
6869
  }
6870
+ /**
6871
+ *
6872
+ * @export
6873
+ * @interface GPUV1ExposedServiceExposedServiceResource
6874
+ */
6875
+ export interface GPUV1ExposedServiceExposedServiceResource {
6876
+ /**
6877
+ * Exposed service ID
6878
+ * @type {number}
6879
+ * @memberof GPUV1ExposedServiceExposedServiceResource
6880
+ */
6881
+ 'id': number;
6882
+ /**
6883
+ *
6884
+ * @type {string}
6885
+ * @memberof GPUV1ExposedServiceExposedServiceResource
6886
+ */
6887
+ 'name': string;
6888
+ /**
6889
+ * Public hostname or IP address of the service
6890
+ * @type {string}
6891
+ * @memberof GPUV1ExposedServiceExposedServiceResource
6892
+ */
6893
+ 'hostname': string;
6894
+ /**
6895
+ * Port the service listens on inside the instance
6896
+ * @type {number}
6897
+ * @memberof GPUV1ExposedServiceExposedServiceResource
6898
+ */
6899
+ 'internal_port': number;
6900
+ /**
6901
+ * Public port the service is reachable on
6902
+ * @type {number}
6903
+ * @memberof GPUV1ExposedServiceExposedServiceResource
6904
+ */
6905
+ 'external_port': number;
6906
+ /**
6907
+ *
6908
+ * @type {string}
6909
+ * @memberof GPUV1ExposedServiceExposedServiceResource
6910
+ */
6911
+ 'protocol': GPUV1ExposedServiceExposedServiceResourceProtocolEnum;
6912
+ /**
6913
+ *
6914
+ * @type {string}
6915
+ * @memberof GPUV1ExposedServiceExposedServiceResource
6916
+ */
6917
+ 'type': GPUV1ExposedServiceExposedServiceResourceTypeEnum;
6918
+ }
6919
+ export declare const GPUV1ExposedServiceExposedServiceResourceProtocolEnum: {
6920
+ readonly Tcp: "tcp";
6921
+ readonly Udp: "udp";
6922
+ };
6923
+ export type GPUV1ExposedServiceExposedServiceResourceProtocolEnum = typeof GPUV1ExposedServiceExposedServiceResourceProtocolEnum[keyof typeof GPUV1ExposedServiceExposedServiceResourceProtocolEnum];
6924
+ export declare const GPUV1ExposedServiceExposedServiceResourceTypeEnum: {
6925
+ readonly Http: "http";
6926
+ readonly Https: "https";
6927
+ };
6928
+ export type GPUV1ExposedServiceExposedServiceResourceTypeEnum = typeof GPUV1ExposedServiceExposedServiceResourceTypeEnum[keyof typeof GPUV1ExposedServiceExposedServiceResourceTypeEnum];
6929
+ /**
6930
+ *
6931
+ * @export
6932
+ * @interface GPUV1ExposedServiceStoreRequest
6933
+ */
6934
+ export interface GPUV1ExposedServiceStoreRequest {
6935
+ /**
6936
+ * Service name, unique within the instance
6937
+ * @type {string}
6938
+ * @memberof GPUV1ExposedServiceStoreRequest
6939
+ */
6940
+ 'name': string;
6941
+ /**
6942
+ * Port the service listens on inside the instance, unique within the instance
6943
+ * @type {number}
6944
+ * @memberof GPUV1ExposedServiceStoreRequest
6945
+ */
6946
+ 'internal_port': number;
6947
+ /**
6948
+ *
6949
+ * @type {string}
6950
+ * @memberof GPUV1ExposedServiceStoreRequest
6951
+ */
6952
+ 'protocol': GPUV1ExposedServiceStoreRequestProtocolEnum;
6953
+ /**
6954
+ *
6955
+ * @type {string}
6956
+ * @memberof GPUV1ExposedServiceStoreRequest
6957
+ */
6958
+ 'type': GPUV1ExposedServiceStoreRequestTypeEnum;
6959
+ }
6960
+ export declare const GPUV1ExposedServiceStoreRequestProtocolEnum: {
6961
+ readonly Tcp: "tcp";
6962
+ readonly Udp: "udp";
6963
+ };
6964
+ export type GPUV1ExposedServiceStoreRequestProtocolEnum = typeof GPUV1ExposedServiceStoreRequestProtocolEnum[keyof typeof GPUV1ExposedServiceStoreRequestProtocolEnum];
6965
+ export declare const GPUV1ExposedServiceStoreRequestTypeEnum: {
6966
+ readonly Http: "http";
6967
+ readonly Https: "https";
6968
+ };
6969
+ export type GPUV1ExposedServiceStoreRequestTypeEnum = typeof GPUV1ExposedServiceStoreRequestTypeEnum[keyof typeof GPUV1ExposedServiceStoreRequestTypeEnum];
6870
6970
  /**
6871
6971
  *
6872
6972
  * @export
@@ -25520,6 +25620,139 @@ export declare const GetPoolGroupsV1CurrencyEnum: {
25520
25620
  readonly Zar: "ZAR";
25521
25621
  };
25522
25622
  export type GetPoolGroupsV1CurrencyEnum = typeof GetPoolGroupsV1CurrencyEnum[keyof typeof GetPoolGroupsV1CurrencyEnum];
25623
+ /**
25624
+ * GPUExposedServicesApi - axios parameter creator
25625
+ * @export
25626
+ */
25627
+ export declare const GPUExposedServicesApiAxiosParamCreator: (configuration?: Configuration) => {
25628
+ /**
25629
+ * Expose a service running on a specified GPU instance to the internet. The service is exposed asynchronously: a successful request returns immediately, and the service appears in the exposed services list once it gets its public hostname and external port. Fails when the instance already has the maximum of 4 exposed services. Use this endpoint to make an application on your GPU instance publicly reachable.
25630
+ * @summary Create exposed service
25631
+ * @param {number} instanceId GPU instance ID
25632
+ * @param {GPUV1ExposedServiceStoreRequest} gPUV1ExposedServiceStoreRequest
25633
+ * @param {*} [options] Override http request option.
25634
+ * @throws {RequiredError}
25635
+ */
25636
+ createExposedServiceV1: (instanceId: number, gPUV1ExposedServiceStoreRequest: GPUV1ExposedServiceStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25637
+ /**
25638
+ * Delete a specified exposed service of a GPU instance. The service is removed asynchronously: a successful request returns immediately and the service stops being reachable from the internet shortly after. Use this endpoint to close public access to a service on your GPU instance.
25639
+ * @summary Delete exposed service
25640
+ * @param {number} instanceId GPU instance ID
25641
+ * @param {number} exposedServiceId Exposed service ID
25642
+ * @param {*} [options] Override http request option.
25643
+ * @throws {RequiredError}
25644
+ */
25645
+ deleteExposedServiceV1: (instanceId: number, exposedServiceId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25646
+ /**
25647
+ * Retrieve the services exposed on a specified GPU instance. A newly created service is listed once it gets its public hostname and external port. Use this endpoint to find the public address of services running on your GPU instance.
25648
+ * @summary Get exposed services
25649
+ * @param {number} instanceId GPU instance ID
25650
+ * @param {*} [options] Override http request option.
25651
+ * @throws {RequiredError}
25652
+ */
25653
+ getExposedServicesV1: (instanceId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25654
+ };
25655
+ /**
25656
+ * GPUExposedServicesApi - functional programming interface
25657
+ * @export
25658
+ */
25659
+ export declare const GPUExposedServicesApiFp: (configuration?: Configuration) => {
25660
+ /**
25661
+ * Expose a service running on a specified GPU instance to the internet. The service is exposed asynchronously: a successful request returns immediately, and the service appears in the exposed services list once it gets its public hostname and external port. Fails when the instance already has the maximum of 4 exposed services. Use this endpoint to make an application on your GPU instance publicly reachable.
25662
+ * @summary Create exposed service
25663
+ * @param {number} instanceId GPU instance ID
25664
+ * @param {GPUV1ExposedServiceStoreRequest} gPUV1ExposedServiceStoreRequest
25665
+ * @param {*} [options] Override http request option.
25666
+ * @throws {RequiredError}
25667
+ */
25668
+ createExposedServiceV1(instanceId: number, gPUV1ExposedServiceStoreRequest: GPUV1ExposedServiceStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
25669
+ /**
25670
+ * Delete a specified exposed service of a GPU instance. The service is removed asynchronously: a successful request returns immediately and the service stops being reachable from the internet shortly after. Use this endpoint to close public access to a service on your GPU instance.
25671
+ * @summary Delete exposed service
25672
+ * @param {number} instanceId GPU instance ID
25673
+ * @param {number} exposedServiceId Exposed service ID
25674
+ * @param {*} [options] Override http request option.
25675
+ * @throws {RequiredError}
25676
+ */
25677
+ deleteExposedServiceV1(instanceId: number, exposedServiceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
25678
+ /**
25679
+ * Retrieve the services exposed on a specified GPU instance. A newly created service is listed once it gets its public hostname and external port. Use this endpoint to find the public address of services running on your GPU instance.
25680
+ * @summary Get exposed services
25681
+ * @param {number} instanceId GPU instance ID
25682
+ * @param {*} [options] Override http request option.
25683
+ * @throws {RequiredError}
25684
+ */
25685
+ getExposedServicesV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1ExposedServiceExposedServiceResource>>>;
25686
+ };
25687
+ /**
25688
+ * GPUExposedServicesApi - factory interface
25689
+ * @export
25690
+ */
25691
+ export declare const GPUExposedServicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
25692
+ /**
25693
+ * Expose a service running on a specified GPU instance to the internet. The service is exposed asynchronously: a successful request returns immediately, and the service appears in the exposed services list once it gets its public hostname and external port. Fails when the instance already has the maximum of 4 exposed services. Use this endpoint to make an application on your GPU instance publicly reachable.
25694
+ * @summary Create exposed service
25695
+ * @param {number} instanceId GPU instance ID
25696
+ * @param {GPUV1ExposedServiceStoreRequest} gPUV1ExposedServiceStoreRequest
25697
+ * @param {*} [options] Override http request option.
25698
+ * @throws {RequiredError}
25699
+ */
25700
+ createExposedServiceV1(instanceId: number, gPUV1ExposedServiceStoreRequest: GPUV1ExposedServiceStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
25701
+ /**
25702
+ * Delete a specified exposed service of a GPU instance. The service is removed asynchronously: a successful request returns immediately and the service stops being reachable from the internet shortly after. Use this endpoint to close public access to a service on your GPU instance.
25703
+ * @summary Delete exposed service
25704
+ * @param {number} instanceId GPU instance ID
25705
+ * @param {number} exposedServiceId Exposed service ID
25706
+ * @param {*} [options] Override http request option.
25707
+ * @throws {RequiredError}
25708
+ */
25709
+ deleteExposedServiceV1(instanceId: number, exposedServiceId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
25710
+ /**
25711
+ * Retrieve the services exposed on a specified GPU instance. A newly created service is listed once it gets its public hostname and external port. Use this endpoint to find the public address of services running on your GPU instance.
25712
+ * @summary Get exposed services
25713
+ * @param {number} instanceId GPU instance ID
25714
+ * @param {*} [options] Override http request option.
25715
+ * @throws {RequiredError}
25716
+ */
25717
+ getExposedServicesV1(instanceId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1ExposedServiceExposedServiceResource>>;
25718
+ };
25719
+ /**
25720
+ * GPUExposedServicesApi - object-oriented interface
25721
+ * @export
25722
+ * @class GPUExposedServicesApi
25723
+ * @extends {BaseAPI}
25724
+ */
25725
+ export declare class GPUExposedServicesApi extends BaseAPI {
25726
+ /**
25727
+ * Expose a service running on a specified GPU instance to the internet. The service is exposed asynchronously: a successful request returns immediately, and the service appears in the exposed services list once it gets its public hostname and external port. Fails when the instance already has the maximum of 4 exposed services. Use this endpoint to make an application on your GPU instance publicly reachable.
25728
+ * @summary Create exposed service
25729
+ * @param {number} instanceId GPU instance ID
25730
+ * @param {GPUV1ExposedServiceStoreRequest} gPUV1ExposedServiceStoreRequest
25731
+ * @param {*} [options] Override http request option.
25732
+ * @throws {RequiredError}
25733
+ * @memberof GPUExposedServicesApi
25734
+ */
25735
+ createExposedServiceV1(instanceId: number, gPUV1ExposedServiceStoreRequest: GPUV1ExposedServiceStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
25736
+ /**
25737
+ * Delete a specified exposed service of a GPU instance. The service is removed asynchronously: a successful request returns immediately and the service stops being reachable from the internet shortly after. Use this endpoint to close public access to a service on your GPU instance.
25738
+ * @summary Delete exposed service
25739
+ * @param {number} instanceId GPU instance ID
25740
+ * @param {number} exposedServiceId Exposed service ID
25741
+ * @param {*} [options] Override http request option.
25742
+ * @throws {RequiredError}
25743
+ * @memberof GPUExposedServicesApi
25744
+ */
25745
+ deleteExposedServiceV1(instanceId: number, exposedServiceId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
25746
+ /**
25747
+ * Retrieve the services exposed on a specified GPU instance. A newly created service is listed once it gets its public hostname and external port. Use this endpoint to find the public address of services running on your GPU instance.
25748
+ * @summary Get exposed services
25749
+ * @param {number} instanceId GPU instance ID
25750
+ * @param {*} [options] Override http request option.
25751
+ * @throws {RequiredError}
25752
+ * @memberof GPUExposedServicesApi
25753
+ */
25754
+ getExposedServicesV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GPUV1ExposedServiceExposedServiceResource[], any, {}, any>>;
25755
+ }
25523
25756
  /**
25524
25757
  * GPUInstancesApi - axios parameter creator
25525
25758
  * @export