hostinger-api-sdk 2.14.2 → 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.14.2
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,318 @@ 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];
6970
+ /**
6971
+ *
6972
+ * @export
6973
+ * @interface GPUV1InstanceInstanceListResource
6974
+ */
6975
+ export interface GPUV1InstanceInstanceListResource {
6976
+ /**
6977
+ * GPU instance ID
6978
+ * @type {number}
6979
+ * @memberof GPUV1InstanceInstanceListResource
6980
+ */
6981
+ 'id': number;
6982
+ /**
6983
+ *
6984
+ * @type {string}
6985
+ * @memberof GPUV1InstanceInstanceListResource
6986
+ */
6987
+ 'name': string;
6988
+ /**
6989
+ *
6990
+ * @type {string}
6991
+ * @memberof GPUV1InstanceInstanceListResource
6992
+ */
6993
+ 'status': GPUV1InstanceInstanceListResourceStatusEnum;
6994
+ /**
6995
+ * Whether an action is in progress on the instance
6996
+ * @type {string}
6997
+ * @memberof GPUV1InstanceInstanceListResource
6998
+ */
6999
+ 'action_lock': GPUV1InstanceInstanceListResourceActionLockEnum;
7000
+ /**
7001
+ *
7002
+ * @type {GPUV1PoolPoolResource}
7003
+ * @memberof GPUV1InstanceInstanceListResource
7004
+ */
7005
+ 'pool': GPUV1PoolPoolResource;
7006
+ /**
7007
+ *
7008
+ * @type {GPUV1PoolPoolInstanceResource}
7009
+ * @memberof GPUV1InstanceInstanceListResource
7010
+ */
7011
+ 'pool_instance': GPUV1PoolPoolInstanceResource;
7012
+ /**
7013
+ *
7014
+ * @type {GPUV1OsTemplateOsTemplateResource}
7015
+ * @memberof GPUV1InstanceInstanceListResource
7016
+ */
7017
+ 'os_template': GPUV1OsTemplateOsTemplateResource;
7018
+ }
7019
+ export declare const GPUV1InstanceInstanceListResourceStatusEnum: {
7020
+ readonly Created: "created";
7021
+ readonly Creating: "creating";
7022
+ readonly Running: "running";
7023
+ readonly Stopped: "stopped";
7024
+ readonly Destroying: "destroying";
7025
+ readonly Destroyed: "destroyed";
7026
+ readonly InsufficientFunds: "insufficient_funds";
7027
+ readonly Error: "error";
7028
+ readonly Abuse: "abuse";
7029
+ };
7030
+ export type GPUV1InstanceInstanceListResourceStatusEnum = typeof GPUV1InstanceInstanceListResourceStatusEnum[keyof typeof GPUV1InstanceInstanceListResourceStatusEnum];
7031
+ export declare const GPUV1InstanceInstanceListResourceActionLockEnum: {
7032
+ readonly Unlocked: "unlocked";
7033
+ readonly Locked: "locked";
7034
+ };
7035
+ export type GPUV1InstanceInstanceListResourceActionLockEnum = typeof GPUV1InstanceInstanceListResourceActionLockEnum[keyof typeof GPUV1InstanceInstanceListResourceActionLockEnum];
7036
+ /**
7037
+ *
7038
+ * @export
7039
+ * @interface GPUV1InstanceInstanceResource
7040
+ */
7041
+ export interface GPUV1InstanceInstanceResource {
7042
+ /**
7043
+ * GPU instance ID
7044
+ * @type {number}
7045
+ * @memberof GPUV1InstanceInstanceResource
7046
+ */
7047
+ 'id': number;
7048
+ /**
7049
+ *
7050
+ * @type {string}
7051
+ * @memberof GPUV1InstanceInstanceResource
7052
+ */
7053
+ 'name': string;
7054
+ /**
7055
+ *
7056
+ * @type {string}
7057
+ * @memberof GPUV1InstanceInstanceResource
7058
+ */
7059
+ 'status': GPUV1InstanceInstanceResourceStatusEnum;
7060
+ /**
7061
+ * Whether an action is in progress on the instance
7062
+ * @type {string}
7063
+ * @memberof GPUV1InstanceInstanceResource
7064
+ */
7065
+ 'action_lock': GPUV1InstanceInstanceResourceActionLockEnum;
7066
+ /**
7067
+ *
7068
+ * @type {GPUV1PoolPoolResource}
7069
+ * @memberof GPUV1InstanceInstanceResource
7070
+ */
7071
+ 'pool': GPUV1PoolPoolResource;
7072
+ /**
7073
+ *
7074
+ * @type {GPUV1PoolPoolInstanceResource}
7075
+ * @memberof GPUV1InstanceInstanceResource
7076
+ */
7077
+ 'pool_instance': GPUV1PoolPoolInstanceResource;
7078
+ /**
7079
+ *
7080
+ * @type {GPUV1OsTemplateOsTemplateResource}
7081
+ * @memberof GPUV1InstanceInstanceResource
7082
+ */
7083
+ 'os_template': GPUV1OsTemplateOsTemplateResource;
7084
+ /**
7085
+ * Array of [`GPU.V1.SshKey.SshKeyResource`](#model/gpuv1sshkeysshkeyresource)
7086
+ * @type {Array<GPUV1SshKeySshKeyResource>}
7087
+ * @memberof GPUV1InstanceInstanceResource
7088
+ */
7089
+ 'ssh_keys': Array<GPUV1SshKeySshKeyResource>;
7090
+ }
7091
+ export declare const GPUV1InstanceInstanceResourceStatusEnum: {
7092
+ readonly Created: "created";
7093
+ readonly Creating: "creating";
7094
+ readonly Running: "running";
7095
+ readonly Stopped: "stopped";
7096
+ readonly Destroying: "destroying";
7097
+ readonly Destroyed: "destroyed";
7098
+ readonly InsufficientFunds: "insufficient_funds";
7099
+ readonly Error: "error";
7100
+ readonly Abuse: "abuse";
7101
+ };
7102
+ export type GPUV1InstanceInstanceResourceStatusEnum = typeof GPUV1InstanceInstanceResourceStatusEnum[keyof typeof GPUV1InstanceInstanceResourceStatusEnum];
7103
+ export declare const GPUV1InstanceInstanceResourceActionLockEnum: {
7104
+ readonly Unlocked: "unlocked";
7105
+ readonly Locked: "locked";
7106
+ };
7107
+ export type GPUV1InstanceInstanceResourceActionLockEnum = typeof GPUV1InstanceInstanceResourceActionLockEnum[keyof typeof GPUV1InstanceInstanceResourceActionLockEnum];
7108
+ /**
7109
+ *
7110
+ * @export
7111
+ * @interface GPUV1InstanceStoreRequest
7112
+ */
7113
+ export interface GPUV1InstanceStoreRequest {
7114
+ /**
7115
+ * Instance type ID from the pool instance types list
7116
+ * @type {number}
7117
+ * @memberof GPUV1InstanceStoreRequest
7118
+ */
7119
+ 'pool_instance_id': number;
7120
+ /**
7121
+ * OS template ID available for the selected instance type
7122
+ * @type {number}
7123
+ * @memberof GPUV1InstanceStoreRequest
7124
+ */
7125
+ 'os_template_id': number;
7126
+ /**
7127
+ * Instance name, unique among your instances. Letters, numbers, dashes and underscores only
7128
+ * @type {string}
7129
+ * @memberof GPUV1InstanceStoreRequest
7130
+ */
7131
+ 'name': string;
7132
+ /**
7133
+ * SSH public keys to add to the instance
7134
+ * @type {Array<string>}
7135
+ * @memberof GPUV1InstanceStoreRequest
7136
+ */
7137
+ 'public_keys': Array<string>;
7138
+ }
7139
+ /**
7140
+ *
7141
+ * @export
7142
+ * @interface GPUV1MetricsMetricsResource
7143
+ */
7144
+ export interface GPUV1MetricsMetricsResource {
7145
+ /**
7146
+ * Unix timestamp of the measurement
7147
+ * @type {number}
7148
+ * @memberof GPUV1MetricsMetricsResource
7149
+ */
7150
+ 'timestamp': number;
7151
+ /**
7152
+ * CPU utilisation in percent
7153
+ * @type {number}
7154
+ * @memberof GPUV1MetricsMetricsResource
7155
+ */
7156
+ 'cpu_percentage': number;
7157
+ /**
7158
+ * Used memory in bytes
7159
+ * @type {number}
7160
+ * @memberof GPUV1MetricsMetricsResource
7161
+ */
7162
+ 'memory_used': number;
7163
+ /**
7164
+ * GPU utilisation in percent
7165
+ * @type {number}
7166
+ * @memberof GPUV1MetricsMetricsResource
7167
+ */
7168
+ 'gpu_percentage': number;
7169
+ /**
7170
+ * Used GPU memory in bytes
7171
+ * @type {number}
7172
+ * @memberof GPUV1MetricsMetricsResource
7173
+ */
7174
+ 'gpu_memory_used': number;
7175
+ /**
7176
+ * GPU throughput in TFLOPS
7177
+ * @type {number}
7178
+ * @memberof GPUV1MetricsMetricsResource
7179
+ */
7180
+ 'gpu_tflops': number;
7181
+ }
6870
7182
  /**
6871
7183
  *
6872
7184
  * @export
@@ -7076,6 +7388,31 @@ export interface GPUV1RegionRegionResource {
7076
7388
  */
7077
7389
  'country': string;
7078
7390
  }
7391
+ /**
7392
+ *
7393
+ * @export
7394
+ * @interface GPUV1SshKeySshKeyResource
7395
+ */
7396
+ export interface GPUV1SshKeySshKeyResource {
7397
+ /**
7398
+ * SSH key ID
7399
+ * @type {number}
7400
+ * @memberof GPUV1SshKeySshKeyResource
7401
+ */
7402
+ 'id': number;
7403
+ /**
7404
+ *
7405
+ * @type {string}
7406
+ * @memberof GPUV1SshKeySshKeyResource
7407
+ */
7408
+ 'name': string | null;
7409
+ /**
7410
+ *
7411
+ * @type {string}
7412
+ * @memberof GPUV1SshKeySshKeyResource
7413
+ */
7414
+ 'public_key': string;
7415
+ }
7079
7416
  /**
7080
7417
  *
7081
7418
  * @export
@@ -25283,6 +25620,326 @@ export declare const GetPoolGroupsV1CurrencyEnum: {
25283
25620
  readonly Zar: "ZAR";
25284
25621
  };
25285
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
+ }
25756
+ /**
25757
+ * GPUInstancesApi - axios parameter creator
25758
+ * @export
25759
+ */
25760
+ export declare const GPUInstancesApiAxiosParamCreator: (configuration?: Configuration) => {
25761
+ /**
25762
+ * Create a new GPU instance. Pick `pool_instance_id` from the pool instance types list and `os_template_id` from the OS templates available for that instance type. Your account must have enough credits to run the instance for its first hour. The instance is created asynchronously: a successful request returns immediately, and the instance appears in the instance list while its `status` moves from `created` through `creating` to `running`. Use this endpoint to provision GPU compute.
25763
+ * @summary Create instance
25764
+ * @param {GPUV1InstanceStoreRequest} gPUV1InstanceStoreRequest
25765
+ * @param {*} [options] Override http request option.
25766
+ * @throws {RequiredError}
25767
+ */
25768
+ createInstanceV1: (gPUV1InstanceStoreRequest: GPUV1InstanceStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25769
+ /**
25770
+ * Delete a specified GPU instance. The instance is destroyed asynchronously: a successful request returns immediately and the instance `status` moves to `destroying`. Deleting fails while the instance is in `created`, `destroying`, `destroyed` or `abuse` status, or while another action is in progress on it. Use this endpoint to stop billing for a GPU instance you no longer need.
25771
+ * @summary Delete instance
25772
+ * @param {number} instanceId GPU instance ID
25773
+ * @param {*} [options] Override http request option.
25774
+ * @throws {RequiredError}
25775
+ */
25776
+ deleteInstanceV1: (instanceId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25777
+ /**
25778
+ * Retrieve detailed information about a specified GPU instance, including its SSH keys. Use this endpoint to follow the instance `status` after creating or deleting it.
25779
+ * @summary Get instance details
25780
+ * @param {number} instanceId GPU instance ID
25781
+ * @param {*} [options] Override http request option.
25782
+ * @throws {RequiredError}
25783
+ */
25784
+ getInstanceDetailsV1: (instanceId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25785
+ /**
25786
+ * Retrieve utilisation metrics of a specified GPU instance for the last hour. Each data point contains CPU, memory and GPU utilisation, used GPU memory and GPU throughput. The list is empty until the instance is provisioned. Use this endpoint to monitor GPU instance load.
25787
+ * @summary Get instance metrics
25788
+ * @param {number} instanceId GPU instance ID
25789
+ * @param {*} [options] Override http request option.
25790
+ * @throws {RequiredError}
25791
+ */
25792
+ getInstanceMetricsV1: (instanceId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25793
+ /**
25794
+ * Retrieve all GPU instances of your account. Use this endpoint to view your GPU instances with their status, pool, instance type and OS template.
25795
+ * @summary Get instances
25796
+ * @param {*} [options] Override http request option.
25797
+ * @throws {RequiredError}
25798
+ */
25799
+ getInstancesV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
25800
+ };
25801
+ /**
25802
+ * GPUInstancesApi - functional programming interface
25803
+ * @export
25804
+ */
25805
+ export declare const GPUInstancesApiFp: (configuration?: Configuration) => {
25806
+ /**
25807
+ * Create a new GPU instance. Pick `pool_instance_id` from the pool instance types list and `os_template_id` from the OS templates available for that instance type. Your account must have enough credits to run the instance for its first hour. The instance is created asynchronously: a successful request returns immediately, and the instance appears in the instance list while its `status` moves from `created` through `creating` to `running`. Use this endpoint to provision GPU compute.
25808
+ * @summary Create instance
25809
+ * @param {GPUV1InstanceStoreRequest} gPUV1InstanceStoreRequest
25810
+ * @param {*} [options] Override http request option.
25811
+ * @throws {RequiredError}
25812
+ */
25813
+ createInstanceV1(gPUV1InstanceStoreRequest: GPUV1InstanceStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
25814
+ /**
25815
+ * Delete a specified GPU instance. The instance is destroyed asynchronously: a successful request returns immediately and the instance `status` moves to `destroying`. Deleting fails while the instance is in `created`, `destroying`, `destroyed` or `abuse` status, or while another action is in progress on it. Use this endpoint to stop billing for a GPU instance you no longer need.
25816
+ * @summary Delete instance
25817
+ * @param {number} instanceId GPU instance ID
25818
+ * @param {*} [options] Override http request option.
25819
+ * @throws {RequiredError}
25820
+ */
25821
+ deleteInstanceV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
25822
+ /**
25823
+ * Retrieve detailed information about a specified GPU instance, including its SSH keys. Use this endpoint to follow the instance `status` after creating or deleting it.
25824
+ * @summary Get instance details
25825
+ * @param {number} instanceId GPU instance ID
25826
+ * @param {*} [options] Override http request option.
25827
+ * @throws {RequiredError}
25828
+ */
25829
+ getInstanceDetailsV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GPUV1InstanceInstanceResource>>;
25830
+ /**
25831
+ * Retrieve utilisation metrics of a specified GPU instance for the last hour. Each data point contains CPU, memory and GPU utilisation, used GPU memory and GPU throughput. The list is empty until the instance is provisioned. Use this endpoint to monitor GPU instance load.
25832
+ * @summary Get instance metrics
25833
+ * @param {number} instanceId GPU instance ID
25834
+ * @param {*} [options] Override http request option.
25835
+ * @throws {RequiredError}
25836
+ */
25837
+ getInstanceMetricsV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1MetricsMetricsResource>>>;
25838
+ /**
25839
+ * Retrieve all GPU instances of your account. Use this endpoint to view your GPU instances with their status, pool, instance type and OS template.
25840
+ * @summary Get instances
25841
+ * @param {*} [options] Override http request option.
25842
+ * @throws {RequiredError}
25843
+ */
25844
+ getInstancesV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1InstanceInstanceListResource>>>;
25845
+ };
25846
+ /**
25847
+ * GPUInstancesApi - factory interface
25848
+ * @export
25849
+ */
25850
+ export declare const GPUInstancesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
25851
+ /**
25852
+ * Create a new GPU instance. Pick `pool_instance_id` from the pool instance types list and `os_template_id` from the OS templates available for that instance type. Your account must have enough credits to run the instance for its first hour. The instance is created asynchronously: a successful request returns immediately, and the instance appears in the instance list while its `status` moves from `created` through `creating` to `running`. Use this endpoint to provision GPU compute.
25853
+ * @summary Create instance
25854
+ * @param {GPUV1InstanceStoreRequest} gPUV1InstanceStoreRequest
25855
+ * @param {*} [options] Override http request option.
25856
+ * @throws {RequiredError}
25857
+ */
25858
+ createInstanceV1(gPUV1InstanceStoreRequest: GPUV1InstanceStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
25859
+ /**
25860
+ * Delete a specified GPU instance. The instance is destroyed asynchronously: a successful request returns immediately and the instance `status` moves to `destroying`. Deleting fails while the instance is in `created`, `destroying`, `destroyed` or `abuse` status, or while another action is in progress on it. Use this endpoint to stop billing for a GPU instance you no longer need.
25861
+ * @summary Delete instance
25862
+ * @param {number} instanceId GPU instance ID
25863
+ * @param {*} [options] Override http request option.
25864
+ * @throws {RequiredError}
25865
+ */
25866
+ deleteInstanceV1(instanceId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
25867
+ /**
25868
+ * Retrieve detailed information about a specified GPU instance, including its SSH keys. Use this endpoint to follow the instance `status` after creating or deleting it.
25869
+ * @summary Get instance details
25870
+ * @param {number} instanceId GPU instance ID
25871
+ * @param {*} [options] Override http request option.
25872
+ * @throws {RequiredError}
25873
+ */
25874
+ getInstanceDetailsV1(instanceId: number, options?: RawAxiosRequestConfig): AxiosPromise<GPUV1InstanceInstanceResource>;
25875
+ /**
25876
+ * Retrieve utilisation metrics of a specified GPU instance for the last hour. Each data point contains CPU, memory and GPU utilisation, used GPU memory and GPU throughput. The list is empty until the instance is provisioned. Use this endpoint to monitor GPU instance load.
25877
+ * @summary Get instance metrics
25878
+ * @param {number} instanceId GPU instance ID
25879
+ * @param {*} [options] Override http request option.
25880
+ * @throws {RequiredError}
25881
+ */
25882
+ getInstanceMetricsV1(instanceId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1MetricsMetricsResource>>;
25883
+ /**
25884
+ * Retrieve all GPU instances of your account. Use this endpoint to view your GPU instances with their status, pool, instance type and OS template.
25885
+ * @summary Get instances
25886
+ * @param {*} [options] Override http request option.
25887
+ * @throws {RequiredError}
25888
+ */
25889
+ getInstancesV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1InstanceInstanceListResource>>;
25890
+ };
25891
+ /**
25892
+ * GPUInstancesApi - object-oriented interface
25893
+ * @export
25894
+ * @class GPUInstancesApi
25895
+ * @extends {BaseAPI}
25896
+ */
25897
+ export declare class GPUInstancesApi extends BaseAPI {
25898
+ /**
25899
+ * Create a new GPU instance. Pick `pool_instance_id` from the pool instance types list and `os_template_id` from the OS templates available for that instance type. Your account must have enough credits to run the instance for its first hour. The instance is created asynchronously: a successful request returns immediately, and the instance appears in the instance list while its `status` moves from `created` through `creating` to `running`. Use this endpoint to provision GPU compute.
25900
+ * @summary Create instance
25901
+ * @param {GPUV1InstanceStoreRequest} gPUV1InstanceStoreRequest
25902
+ * @param {*} [options] Override http request option.
25903
+ * @throws {RequiredError}
25904
+ * @memberof GPUInstancesApi
25905
+ */
25906
+ createInstanceV1(gPUV1InstanceStoreRequest: GPUV1InstanceStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
25907
+ /**
25908
+ * Delete a specified GPU instance. The instance is destroyed asynchronously: a successful request returns immediately and the instance `status` moves to `destroying`. Deleting fails while the instance is in `created`, `destroying`, `destroyed` or `abuse` status, or while another action is in progress on it. Use this endpoint to stop billing for a GPU instance you no longer need.
25909
+ * @summary Delete instance
25910
+ * @param {number} instanceId GPU instance ID
25911
+ * @param {*} [options] Override http request option.
25912
+ * @throws {RequiredError}
25913
+ * @memberof GPUInstancesApi
25914
+ */
25915
+ deleteInstanceV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
25916
+ /**
25917
+ * Retrieve detailed information about a specified GPU instance, including its SSH keys. Use this endpoint to follow the instance `status` after creating or deleting it.
25918
+ * @summary Get instance details
25919
+ * @param {number} instanceId GPU instance ID
25920
+ * @param {*} [options] Override http request option.
25921
+ * @throws {RequiredError}
25922
+ * @memberof GPUInstancesApi
25923
+ */
25924
+ getInstanceDetailsV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GPUV1InstanceInstanceResource, any, {}, any>>;
25925
+ /**
25926
+ * Retrieve utilisation metrics of a specified GPU instance for the last hour. Each data point contains CPU, memory and GPU utilisation, used GPU memory and GPU throughput. The list is empty until the instance is provisioned. Use this endpoint to monitor GPU instance load.
25927
+ * @summary Get instance metrics
25928
+ * @param {number} instanceId GPU instance ID
25929
+ * @param {*} [options] Override http request option.
25930
+ * @throws {RequiredError}
25931
+ * @memberof GPUInstancesApi
25932
+ */
25933
+ getInstanceMetricsV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GPUV1MetricsMetricsResource[], any, {}, any>>;
25934
+ /**
25935
+ * Retrieve all GPU instances of your account. Use this endpoint to view your GPU instances with their status, pool, instance type and OS template.
25936
+ * @summary Get instances
25937
+ * @param {*} [options] Override http request option.
25938
+ * @throws {RequiredError}
25939
+ * @memberof GPUInstancesApi
25940
+ */
25941
+ getInstancesV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GPUV1InstanceInstanceListResource[], any, {}, any>>;
25942
+ }
25286
25943
  /**
25287
25944
  * HorizonsWebsitesApi - axios parameter creator
25288
25945
  * @export