hostinger-api-sdk 0.0.22 → 0.0.24

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/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.19.4
6
+ * API Version: 0.21.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -2149,6 +2149,69 @@ export interface HostingListWebsitesV1200Response {
2149
2149
  */
2150
2150
  'meta': CommonSchemaPaginationMetaSchema;
2151
2151
  }
2152
+ /**
2153
+ *
2154
+ * @export
2155
+ * @interface HostingV1CronJobsCreateCronJobRequest
2156
+ */
2157
+ export interface HostingV1CronJobsCreateCronJobRequest {
2158
+ /**
2159
+ * Cron schedule expression (for example \"0 2 * * *\" runs daily at 02:00).
2160
+ * @type {string}
2161
+ * @memberof HostingV1CronJobsCreateCronJobRequest
2162
+ */
2163
+ 'time': string;
2164
+ /**
2165
+ * Command to execute on the schedule.
2166
+ * @type {string}
2167
+ * @memberof HostingV1CronJobsCreateCronJobRequest
2168
+ */
2169
+ 'command': string;
2170
+ }
2171
+ /**
2172
+ *
2173
+ * @export
2174
+ * @interface HostingV1CronJobsCronJobOutputResource
2175
+ */
2176
+ export interface HostingV1CronJobsCronJobOutputResource {
2177
+ /**
2178
+ * Output captured from the last cron job execution. Empty when the cron job has not run yet.
2179
+ * @type {string}
2180
+ * @memberof HostingV1CronJobsCronJobOutputResource
2181
+ */
2182
+ 'output': string;
2183
+ }
2184
+ /**
2185
+ *
2186
+ * @export
2187
+ * @interface HostingV1CronJobsCronJobResource
2188
+ */
2189
+ export interface HostingV1CronJobsCronJobResource {
2190
+ /**
2191
+ * Unique identifier of the cron job. Use it to delete the cron job or fetch its output.
2192
+ * @type {string}
2193
+ * @memberof HostingV1CronJobsCronJobResource
2194
+ */
2195
+ 'uid': string;
2196
+ /**
2197
+ * Username of the account that owns the cron job.
2198
+ * @type {string}
2199
+ * @memberof HostingV1CronJobsCronJobResource
2200
+ */
2201
+ 'username': string;
2202
+ /**
2203
+ * Cron schedule expression.
2204
+ * @type {string}
2205
+ * @memberof HostingV1CronJobsCronJobResource
2206
+ */
2207
+ 'time': string;
2208
+ /**
2209
+ * Command executed on the schedule.
2210
+ * @type {string}
2211
+ * @memberof HostingV1CronJobsCronJobResource
2212
+ */
2213
+ 'command': string;
2214
+ }
2152
2215
  /**
2153
2216
  *
2154
2217
  * @export
@@ -2261,6 +2324,44 @@ export interface HostingV1DatabasesPhpMyAdminLinkResource {
2261
2324
  */
2262
2325
  'link': string;
2263
2326
  }
2327
+ /**
2328
+ *
2329
+ * @export
2330
+ * @interface HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
2331
+ */
2332
+ export interface HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest {
2333
+ /**
2334
+ * Remote host to allow: an IPv4/IPv6 address, or \"%\" for any host.
2335
+ * @type {string}
2336
+ * @memberof HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
2337
+ */
2338
+ 'ip': string;
2339
+ }
2340
+ /**
2341
+ *
2342
+ * @export
2343
+ * @interface HostingV1DatabasesRemoteConnectionsRemoteConnectionResource
2344
+ */
2345
+ export interface HostingV1DatabasesRemoteConnectionsRemoteConnectionResource {
2346
+ /**
2347
+ * Full name of the database the rule applies to.
2348
+ * @type {string}
2349
+ * @memberof HostingV1DatabasesRemoteConnectionsRemoteConnectionResource
2350
+ */
2351
+ 'database_name': string;
2352
+ /**
2353
+ * Database user the rule applies to.
2354
+ * @type {string}
2355
+ * @memberof HostingV1DatabasesRemoteConnectionsRemoteConnectionResource
2356
+ */
2357
+ 'database_user': string;
2358
+ /**
2359
+ * Allowed remote host: an IPv4/IPv6 address, or \"%\" for any host.
2360
+ * @type {string}
2361
+ * @memberof HostingV1DatabasesRemoteConnectionsRemoteConnectionResource
2362
+ */
2363
+ 'ip': string;
2364
+ }
2264
2365
  /**
2265
2366
  *
2266
2367
  * @export
@@ -8947,6 +9048,356 @@ export class HorizonsWebsitesApi extends BaseAPI {
8947
9048
 
8948
9049
 
8949
9050
 
9051
+ /**
9052
+ * HostingCronJobsApi - axios parameter creator
9053
+ * @export
9054
+ */
9055
+ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Configuration) {
9056
+ return {
9057
+ /**
9058
+ * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
9059
+ * @summary Create account cron job
9060
+ * @param {string} username
9061
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
9062
+ * @param {*} [options] Override http request option.
9063
+ * @throws {RequiredError}
9064
+ */
9065
+ createAccountCronJobV1: async (username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9066
+ // verify required parameter 'username' is not null or undefined
9067
+ assertParamExists('createAccountCronJobV1', 'username', username)
9068
+ // verify required parameter 'hostingV1CronJobsCreateCronJobRequest' is not null or undefined
9069
+ assertParamExists('createAccountCronJobV1', 'hostingV1CronJobsCreateCronJobRequest', hostingV1CronJobsCreateCronJobRequest)
9070
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
9071
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
9072
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9073
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9074
+ let baseOptions;
9075
+ if (configuration) {
9076
+ baseOptions = configuration.baseOptions;
9077
+ }
9078
+
9079
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9080
+ const localVarHeaderParameter = {} as any;
9081
+ const localVarQueryParameter = {} as any;
9082
+
9083
+ // authentication apiToken required
9084
+ // http bearer authentication required
9085
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9086
+
9087
+
9088
+
9089
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9090
+
9091
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9092
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9093
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9094
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1CronJobsCreateCronJobRequest, localVarRequestOptions, configuration)
9095
+
9096
+ return {
9097
+ url: toPathString(localVarUrlObj),
9098
+ options: localVarRequestOptions,
9099
+ };
9100
+ },
9101
+ /**
9102
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
9103
+ * @summary Delete account cron job
9104
+ * @param {string} username
9105
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
9106
+ * @param {*} [options] Override http request option.
9107
+ * @throws {RequiredError}
9108
+ */
9109
+ deleteAccountCronJobV1: async (username: string, uid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9110
+ // verify required parameter 'username' is not null or undefined
9111
+ assertParamExists('deleteAccountCronJobV1', 'username', username)
9112
+ // verify required parameter 'uid' is not null or undefined
9113
+ assertParamExists('deleteAccountCronJobV1', 'uid', uid)
9114
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}`
9115
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
9116
+ .replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
9117
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9118
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9119
+ let baseOptions;
9120
+ if (configuration) {
9121
+ baseOptions = configuration.baseOptions;
9122
+ }
9123
+
9124
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
9125
+ const localVarHeaderParameter = {} as any;
9126
+ const localVarQueryParameter = {} as any;
9127
+
9128
+ // authentication apiToken required
9129
+ // http bearer authentication required
9130
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9131
+
9132
+
9133
+
9134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9136
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9137
+
9138
+ return {
9139
+ url: toPathString(localVarUrlObj),
9140
+ options: localVarRequestOptions,
9141
+ };
9142
+ },
9143
+ /**
9144
+ * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
9145
+ * @summary Get cron job output
9146
+ * @param {string} username
9147
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
9148
+ * @param {*} [options] Override http request option.
9149
+ * @throws {RequiredError}
9150
+ */
9151
+ getCronJobOutputV1: async (username: string, uid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9152
+ // verify required parameter 'username' is not null or undefined
9153
+ assertParamExists('getCronJobOutputV1', 'username', username)
9154
+ // verify required parameter 'uid' is not null or undefined
9155
+ assertParamExists('getCronJobOutputV1', 'uid', uid)
9156
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output`
9157
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
9158
+ .replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
9159
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9160
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9161
+ let baseOptions;
9162
+ if (configuration) {
9163
+ baseOptions = configuration.baseOptions;
9164
+ }
9165
+
9166
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9167
+ const localVarHeaderParameter = {} as any;
9168
+ const localVarQueryParameter = {} as any;
9169
+
9170
+ // authentication apiToken required
9171
+ // http bearer authentication required
9172
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9173
+
9174
+
9175
+
9176
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9177
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9178
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9179
+
9180
+ return {
9181
+ url: toPathString(localVarUrlObj),
9182
+ options: localVarRequestOptions,
9183
+ };
9184
+ },
9185
+ /**
9186
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
9187
+ * @summary List account cron jobs
9188
+ * @param {string} username
9189
+ * @param {*} [options] Override http request option.
9190
+ * @throws {RequiredError}
9191
+ */
9192
+ listAccountCronJobsV1: async (username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9193
+ // verify required parameter 'username' is not null or undefined
9194
+ assertParamExists('listAccountCronJobsV1', 'username', username)
9195
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
9196
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
9197
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9198
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9199
+ let baseOptions;
9200
+ if (configuration) {
9201
+ baseOptions = configuration.baseOptions;
9202
+ }
9203
+
9204
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9205
+ const localVarHeaderParameter = {} as any;
9206
+ const localVarQueryParameter = {} as any;
9207
+
9208
+ // authentication apiToken required
9209
+ // http bearer authentication required
9210
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9211
+
9212
+
9213
+
9214
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9215
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9216
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9217
+
9218
+ return {
9219
+ url: toPathString(localVarUrlObj),
9220
+ options: localVarRequestOptions,
9221
+ };
9222
+ },
9223
+ }
9224
+ };
9225
+
9226
+ /**
9227
+ * HostingCronJobsApi - functional programming interface
9228
+ * @export
9229
+ */
9230
+ export const HostingCronJobsApiFp = function(configuration?: Configuration) {
9231
+ const localVarAxiosParamCreator = HostingCronJobsApiAxiosParamCreator(configuration)
9232
+ return {
9233
+ /**
9234
+ * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
9235
+ * @summary Create account cron job
9236
+ * @param {string} username
9237
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
9238
+ * @param {*} [options] Override http request option.
9239
+ * @throws {RequiredError}
9240
+ */
9241
+ async createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1CronJobsCronJobResource>> {
9242
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options);
9243
+ const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.createAccountCronJobV1']?.[0]?.url;
9244
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9245
+ },
9246
+ /**
9247
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
9248
+ * @summary Delete account cron job
9249
+ * @param {string} username
9250
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
9251
+ * @param {*} [options] Override http request option.
9252
+ * @throws {RequiredError}
9253
+ */
9254
+ async deleteAccountCronJobV1(username: string, uid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
9255
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccountCronJobV1(username, uid, options);
9256
+ const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.deleteAccountCronJobV1']?.[0]?.url;
9257
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9258
+ },
9259
+ /**
9260
+ * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
9261
+ * @summary Get cron job output
9262
+ * @param {string} username
9263
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
9264
+ * @param {*} [options] Override http request option.
9265
+ * @throws {RequiredError}
9266
+ */
9267
+ async getCronJobOutputV1(username: string, uid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1CronJobsCronJobOutputResource>> {
9268
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCronJobOutputV1(username, uid, options);
9269
+ const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.getCronJobOutputV1']?.[0]?.url;
9270
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9271
+ },
9272
+ /**
9273
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
9274
+ * @summary List account cron jobs
9275
+ * @param {string} username
9276
+ * @param {*} [options] Override http request option.
9277
+ * @throws {RequiredError}
9278
+ */
9279
+ async listAccountCronJobsV1(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HostingV1CronJobsCronJobResource>>> {
9280
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountCronJobsV1(username, options);
9281
+ const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.listAccountCronJobsV1']?.[0]?.url;
9282
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9283
+ },
9284
+ }
9285
+ };
9286
+
9287
+ /**
9288
+ * HostingCronJobsApi - factory interface
9289
+ * @export
9290
+ */
9291
+ export const HostingCronJobsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9292
+ const localVarFp = HostingCronJobsApiFp(configuration)
9293
+ return {
9294
+ /**
9295
+ * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
9296
+ * @summary Create account cron job
9297
+ * @param {string} username
9298
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
9299
+ * @param {*} [options] Override http request option.
9300
+ * @throws {RequiredError}
9301
+ */
9302
+ createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1CronJobsCronJobResource> {
9303
+ return localVarFp.createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options).then((request) => request(axios, basePath));
9304
+ },
9305
+ /**
9306
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
9307
+ * @summary Delete account cron job
9308
+ * @param {string} username
9309
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
9310
+ * @param {*} [options] Override http request option.
9311
+ * @throws {RequiredError}
9312
+ */
9313
+ deleteAccountCronJobV1(username: string, uid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
9314
+ return localVarFp.deleteAccountCronJobV1(username, uid, options).then((request) => request(axios, basePath));
9315
+ },
9316
+ /**
9317
+ * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
9318
+ * @summary Get cron job output
9319
+ * @param {string} username
9320
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
9321
+ * @param {*} [options] Override http request option.
9322
+ * @throws {RequiredError}
9323
+ */
9324
+ getCronJobOutputV1(username: string, uid: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1CronJobsCronJobOutputResource> {
9325
+ return localVarFp.getCronJobOutputV1(username, uid, options).then((request) => request(axios, basePath));
9326
+ },
9327
+ /**
9328
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
9329
+ * @summary List account cron jobs
9330
+ * @param {string} username
9331
+ * @param {*} [options] Override http request option.
9332
+ * @throws {RequiredError}
9333
+ */
9334
+ listAccountCronJobsV1(username: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1CronJobsCronJobResource>> {
9335
+ return localVarFp.listAccountCronJobsV1(username, options).then((request) => request(axios, basePath));
9336
+ },
9337
+ };
9338
+ };
9339
+
9340
+ /**
9341
+ * HostingCronJobsApi - object-oriented interface
9342
+ * @export
9343
+ * @class HostingCronJobsApi
9344
+ * @extends {BaseAPI}
9345
+ */
9346
+ export class HostingCronJobsApi extends BaseAPI {
9347
+ /**
9348
+ * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
9349
+ * @summary Create account cron job
9350
+ * @param {string} username
9351
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
9352
+ * @param {*} [options] Override http request option.
9353
+ * @throws {RequiredError}
9354
+ * @memberof HostingCronJobsApi
9355
+ */
9356
+ public createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig) {
9357
+ return HostingCronJobsApiFp(this.configuration).createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options).then((request) => request(this.axios, this.basePath));
9358
+ }
9359
+
9360
+ /**
9361
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
9362
+ * @summary Delete account cron job
9363
+ * @param {string} username
9364
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
9365
+ * @param {*} [options] Override http request option.
9366
+ * @throws {RequiredError}
9367
+ * @memberof HostingCronJobsApi
9368
+ */
9369
+ public deleteAccountCronJobV1(username: string, uid: string, options?: RawAxiosRequestConfig) {
9370
+ return HostingCronJobsApiFp(this.configuration).deleteAccountCronJobV1(username, uid, options).then((request) => request(this.axios, this.basePath));
9371
+ }
9372
+
9373
+ /**
9374
+ * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
9375
+ * @summary Get cron job output
9376
+ * @param {string} username
9377
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
9378
+ * @param {*} [options] Override http request option.
9379
+ * @throws {RequiredError}
9380
+ * @memberof HostingCronJobsApi
9381
+ */
9382
+ public getCronJobOutputV1(username: string, uid: string, options?: RawAxiosRequestConfig) {
9383
+ return HostingCronJobsApiFp(this.configuration).getCronJobOutputV1(username, uid, options).then((request) => request(this.axios, this.basePath));
9384
+ }
9385
+
9386
+ /**
9387
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
9388
+ * @summary List account cron jobs
9389
+ * @param {string} username
9390
+ * @param {*} [options] Override http request option.
9391
+ * @throws {RequiredError}
9392
+ * @memberof HostingCronJobsApi
9393
+ */
9394
+ public listAccountCronJobsV1(username: string, options?: RawAxiosRequestConfig) {
9395
+ return HostingCronJobsApiFp(this.configuration).listAccountCronJobsV1(username, options).then((request) => request(this.axios, this.basePath));
9396
+ }
9397
+ }
9398
+
9399
+
9400
+
8950
9401
  /**
8951
9402
  * HostingDatabasesApi - axios parameter creator
8952
9403
  * @export
@@ -9001,6 +9452,54 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
9001
9452
  options: localVarRequestOptions,
9002
9453
  };
9003
9454
  },
9455
+ /**
9456
+ * Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
9457
+ * @summary Create account database remote connection
9458
+ * @param {string} username
9459
+ * @param {string} name Full database name as returned by the list databases endpoint.
9460
+ * @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
9461
+ * @param {*} [options] Override http request option.
9462
+ * @throws {RequiredError}
9463
+ */
9464
+ createAccountDatabaseRemoteConnectionV1: async (username: string, name: string, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9465
+ // verify required parameter 'username' is not null or undefined
9466
+ assertParamExists('createAccountDatabaseRemoteConnectionV1', 'username', username)
9467
+ // verify required parameter 'name' is not null or undefined
9468
+ assertParamExists('createAccountDatabaseRemoteConnectionV1', 'name', name)
9469
+ // verify required parameter 'hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest' is not null or undefined
9470
+ assertParamExists('createAccountDatabaseRemoteConnectionV1', 'hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest', hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest)
9471
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`
9472
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
9473
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
9474
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9475
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9476
+ let baseOptions;
9477
+ if (configuration) {
9478
+ baseOptions = configuration.baseOptions;
9479
+ }
9480
+
9481
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9482
+ const localVarHeaderParameter = {} as any;
9483
+ const localVarQueryParameter = {} as any;
9484
+
9485
+ // authentication apiToken required
9486
+ // http bearer authentication required
9487
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9488
+
9489
+
9490
+
9491
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9492
+
9493
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9494
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9495
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9496
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, localVarRequestOptions, configuration)
9497
+
9498
+ return {
9499
+ url: toPathString(localVarUrlObj),
9500
+ options: localVarRequestOptions,
9501
+ };
9502
+ },
9004
9503
  /**
9005
9504
  * Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
9006
9505
  * @summary Create account database
@@ -9045,6 +9544,55 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
9045
9544
  options: localVarRequestOptions,
9046
9545
  };
9047
9546
  },
9547
+ /**
9548
+ * Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
9549
+ * @summary Delete account database remote connection
9550
+ * @param {string} username
9551
+ * @param {string} name Full database name as returned by the list databases endpoint.
9552
+ * @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \&quot;%\&quot;, exactly as returned by the list remote connections endpoint.
9553
+ * @param {*} [options] Override http request option.
9554
+ * @throws {RequiredError}
9555
+ */
9556
+ deleteAccountDatabaseRemoteConnectionV1: async (username: string, name: string, ip: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9557
+ // verify required parameter 'username' is not null or undefined
9558
+ assertParamExists('deleteAccountDatabaseRemoteConnectionV1', 'username', username)
9559
+ // verify required parameter 'name' is not null or undefined
9560
+ assertParamExists('deleteAccountDatabaseRemoteConnectionV1', 'name', name)
9561
+ // verify required parameter 'ip' is not null or undefined
9562
+ assertParamExists('deleteAccountDatabaseRemoteConnectionV1', 'ip', ip)
9563
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`
9564
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
9565
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
9566
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9567
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9568
+ let baseOptions;
9569
+ if (configuration) {
9570
+ baseOptions = configuration.baseOptions;
9571
+ }
9572
+
9573
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
9574
+ const localVarHeaderParameter = {} as any;
9575
+ const localVarQueryParameter = {} as any;
9576
+
9577
+ // authentication apiToken required
9578
+ // http bearer authentication required
9579
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9580
+
9581
+ if (ip !== undefined) {
9582
+ localVarQueryParameter['ip'] = ip;
9583
+ }
9584
+
9585
+
9586
+
9587
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9588
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9589
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9590
+
9591
+ return {
9592
+ url: toPathString(localVarUrlObj),
9593
+ options: localVarRequestOptions,
9594
+ };
9595
+ },
9048
9596
  /**
9049
9597
  * Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
9050
9598
  * @summary Delete account database
@@ -9120,6 +9668,49 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
9120
9668
 
9121
9669
 
9122
9670
 
9671
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9672
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9673
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9674
+
9675
+ return {
9676
+ url: toPathString(localVarUrlObj),
9677
+ options: localVarRequestOptions,
9678
+ };
9679
+ },
9680
+ /**
9681
+ * Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
9682
+ * @summary List account database remote connections
9683
+ * @param {string} username
9684
+ * @param {string | null} [domain] Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.
9685
+ * @param {*} [options] Override http request option.
9686
+ * @throws {RequiredError}
9687
+ */
9688
+ listAccountDatabaseRemoteConnectionsV1: async (username: string, domain?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9689
+ // verify required parameter 'username' is not null or undefined
9690
+ assertParamExists('listAccountDatabaseRemoteConnectionsV1', 'username', username)
9691
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/remote-connections`
9692
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
9693
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9694
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9695
+ let baseOptions;
9696
+ if (configuration) {
9697
+ baseOptions = configuration.baseOptions;
9698
+ }
9699
+
9700
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9701
+ const localVarHeaderParameter = {} as any;
9702
+ const localVarQueryParameter = {} as any;
9703
+
9704
+ // authentication apiToken required
9705
+ // http bearer authentication required
9706
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9707
+
9708
+ if (domain !== undefined) {
9709
+ localVarQueryParameter['domain'] = domain;
9710
+ }
9711
+
9712
+
9713
+
9123
9714
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9124
9715
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9125
9716
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -9258,6 +9849,20 @@ export const HostingDatabasesApiFp = function(configuration?: Configuration) {
9258
9849
  const localVarOperationServerBasePath = operationServerMap['HostingDatabasesApi.changeDatabasePasswordV1']?.[0]?.url;
9259
9850
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9260
9851
  },
9852
+ /**
9853
+ * Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
9854
+ * @summary Create account database remote connection
9855
+ * @param {string} username
9856
+ * @param {string} name Full database name as returned by the list databases endpoint.
9857
+ * @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
9858
+ * @param {*} [options] Override http request option.
9859
+ * @throws {RequiredError}
9860
+ */
9861
+ async createAccountDatabaseRemoteConnectionV1(username: string, name: string, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
9862
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options);
9863
+ const localVarOperationServerBasePath = operationServerMap['HostingDatabasesApi.createAccountDatabaseRemoteConnectionV1']?.[0]?.url;
9864
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9865
+ },
9261
9866
  /**
9262
9867
  * Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
9263
9868
  * @summary Create account database
@@ -9271,6 +9876,20 @@ export const HostingDatabasesApiFp = function(configuration?: Configuration) {
9271
9876
  const localVarOperationServerBasePath = operationServerMap['HostingDatabasesApi.createAccountDatabaseV1']?.[0]?.url;
9272
9877
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9273
9878
  },
9879
+ /**
9880
+ * Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
9881
+ * @summary Delete account database remote connection
9882
+ * @param {string} username
9883
+ * @param {string} name Full database name as returned by the list databases endpoint.
9884
+ * @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \&quot;%\&quot;, exactly as returned by the list remote connections endpoint.
9885
+ * @param {*} [options] Override http request option.
9886
+ * @throws {RequiredError}
9887
+ */
9888
+ async deleteAccountDatabaseRemoteConnectionV1(username: string, name: string, ip: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
9889
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options);
9890
+ const localVarOperationServerBasePath = operationServerMap['HostingDatabasesApi.deleteAccountDatabaseRemoteConnectionV1']?.[0]?.url;
9891
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9892
+ },
9274
9893
  /**
9275
9894
  * Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
9276
9895
  * @summary Delete account database
@@ -9297,6 +9916,19 @@ export const HostingDatabasesApiFp = function(configuration?: Configuration) {
9297
9916
  const localVarOperationServerBasePath = operationServerMap['HostingDatabasesApi.getPhpMyAdminLinkV1']?.[0]?.url;
9298
9917
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9299
9918
  },
9919
+ /**
9920
+ * Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
9921
+ * @summary List account database remote connections
9922
+ * @param {string} username
9923
+ * @param {string | null} [domain] Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.
9924
+ * @param {*} [options] Override http request option.
9925
+ * @throws {RequiredError}
9926
+ */
9927
+ async listAccountDatabaseRemoteConnectionsV1(username: string, domain?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HostingV1DatabasesRemoteConnectionsRemoteConnectionResource>>> {
9928
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountDatabaseRemoteConnectionsV1(username, domain, options);
9929
+ const localVarOperationServerBasePath = operationServerMap['HostingDatabasesApi.listAccountDatabaseRemoteConnectionsV1']?.[0]?.url;
9930
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9931
+ },
9300
9932
  /**
9301
9933
  * Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
9302
9934
  * @summary List account databases
@@ -9349,6 +9981,18 @@ export const HostingDatabasesApiFactory = function (configuration?: Configuratio
9349
9981
  changeDatabasePasswordV1(username: string, name: string, hostingV1DatabasesChangeDatabasePasswordRequest: HostingV1DatabasesChangeDatabasePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
9350
9982
  return localVarFp.changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options).then((request) => request(axios, basePath));
9351
9983
  },
9984
+ /**
9985
+ * Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
9986
+ * @summary Create account database remote connection
9987
+ * @param {string} username
9988
+ * @param {string} name Full database name as returned by the list databases endpoint.
9989
+ * @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
9990
+ * @param {*} [options] Override http request option.
9991
+ * @throws {RequiredError}
9992
+ */
9993
+ createAccountDatabaseRemoteConnectionV1(username: string, name: string, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
9994
+ return localVarFp.createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options).then((request) => request(axios, basePath));
9995
+ },
9352
9996
  /**
9353
9997
  * Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
9354
9998
  * @summary Create account database
@@ -9360,6 +10004,18 @@ export const HostingDatabasesApiFactory = function (configuration?: Configuratio
9360
10004
  createAccountDatabaseV1(username: string, hostingV1DatabasesCreateDatabaseRequest: HostingV1DatabasesCreateDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
9361
10005
  return localVarFp.createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options).then((request) => request(axios, basePath));
9362
10006
  },
10007
+ /**
10008
+ * Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
10009
+ * @summary Delete account database remote connection
10010
+ * @param {string} username
10011
+ * @param {string} name Full database name as returned by the list databases endpoint.
10012
+ * @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \&quot;%\&quot;, exactly as returned by the list remote connections endpoint.
10013
+ * @param {*} [options] Override http request option.
10014
+ * @throws {RequiredError}
10015
+ */
10016
+ deleteAccountDatabaseRemoteConnectionV1(username: string, name: string, ip: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
10017
+ return localVarFp.deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options).then((request) => request(axios, basePath));
10018
+ },
9363
10019
  /**
9364
10020
  * Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
9365
10021
  * @summary Delete account database
@@ -9382,6 +10038,17 @@ export const HostingDatabasesApiFactory = function (configuration?: Configuratio
9382
10038
  getPhpMyAdminLinkV1(username: string, name: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1DatabasesPhpMyAdminLinkResource> {
9383
10039
  return localVarFp.getPhpMyAdminLinkV1(username, name, options).then((request) => request(axios, basePath));
9384
10040
  },
10041
+ /**
10042
+ * Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
10043
+ * @summary List account database remote connections
10044
+ * @param {string} username
10045
+ * @param {string | null} [domain] Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.
10046
+ * @param {*} [options] Override http request option.
10047
+ * @throws {RequiredError}
10048
+ */
10049
+ listAccountDatabaseRemoteConnectionsV1(username: string, domain?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1DatabasesRemoteConnectionsRemoteConnectionResource>> {
10050
+ return localVarFp.listAccountDatabaseRemoteConnectionsV1(username, domain, options).then((request) => request(axios, basePath));
10051
+ },
9385
10052
  /**
9386
10053
  * Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
9387
10054
  * @summary List account databases
@@ -9432,6 +10099,20 @@ export class HostingDatabasesApi extends BaseAPI {
9432
10099
  return HostingDatabasesApiFp(this.configuration).changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options).then((request) => request(this.axios, this.basePath));
9433
10100
  }
9434
10101
 
10102
+ /**
10103
+ * Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
10104
+ * @summary Create account database remote connection
10105
+ * @param {string} username
10106
+ * @param {string} name Full database name as returned by the list databases endpoint.
10107
+ * @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
10108
+ * @param {*} [options] Override http request option.
10109
+ * @throws {RequiredError}
10110
+ * @memberof HostingDatabasesApi
10111
+ */
10112
+ public createAccountDatabaseRemoteConnectionV1(username: string, name: string, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options?: RawAxiosRequestConfig) {
10113
+ return HostingDatabasesApiFp(this.configuration).createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options).then((request) => request(this.axios, this.basePath));
10114
+ }
10115
+
9435
10116
  /**
9436
10117
  * Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
9437
10118
  * @summary Create account database
@@ -9445,6 +10126,20 @@ export class HostingDatabasesApi extends BaseAPI {
9445
10126
  return HostingDatabasesApiFp(this.configuration).createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
9446
10127
  }
9447
10128
 
10129
+ /**
10130
+ * Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
10131
+ * @summary Delete account database remote connection
10132
+ * @param {string} username
10133
+ * @param {string} name Full database name as returned by the list databases endpoint.
10134
+ * @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \&quot;%\&quot;, exactly as returned by the list remote connections endpoint.
10135
+ * @param {*} [options] Override http request option.
10136
+ * @throws {RequiredError}
10137
+ * @memberof HostingDatabasesApi
10138
+ */
10139
+ public deleteAccountDatabaseRemoteConnectionV1(username: string, name: string, ip: string, options?: RawAxiosRequestConfig) {
10140
+ return HostingDatabasesApiFp(this.configuration).deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options).then((request) => request(this.axios, this.basePath));
10141
+ }
10142
+
9448
10143
  /**
9449
10144
  * Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
9450
10145
  * @summary Delete account database
@@ -9471,6 +10166,19 @@ export class HostingDatabasesApi extends BaseAPI {
9471
10166
  return HostingDatabasesApiFp(this.configuration).getPhpMyAdminLinkV1(username, name, options).then((request) => request(this.axios, this.basePath));
9472
10167
  }
9473
10168
 
10169
+ /**
10170
+ * Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
10171
+ * @summary List account database remote connections
10172
+ * @param {string} username
10173
+ * @param {string | null} [domain] Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.
10174
+ * @param {*} [options] Override http request option.
10175
+ * @throws {RequiredError}
10176
+ * @memberof HostingDatabasesApi
10177
+ */
10178
+ public listAccountDatabaseRemoteConnectionsV1(username: string, domain?: string | null, options?: RawAxiosRequestConfig) {
10179
+ return HostingDatabasesApiFp(this.configuration).listAccountDatabaseRemoteConnectionsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
10180
+ }
10181
+
9474
10182
  /**
9475
10183
  * Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
9476
10184
  * @summary List account databases