qovery-typescript-axios 1.1.19 → 1.1.20
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 +1104 -105
- package/dist/api.d.ts +729 -38
- package/dist/api.js +709 -110
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -291,6 +291,42 @@ export interface ApplicationAdvancedSettings {
|
|
|
291
291
|
* @memberof ApplicationAdvancedSettings
|
|
292
292
|
*/
|
|
293
293
|
'network.ingress.proxy_buffer_size_kb'?: number;
|
|
294
|
+
/**
|
|
295
|
+
* Limits the maximum time (in seconds) during which requests can be processed through one keepalive connection
|
|
296
|
+
* @type {number}
|
|
297
|
+
* @memberof ApplicationAdvancedSettings
|
|
298
|
+
*/
|
|
299
|
+
'network.ingress.keepalive_time_seconds'?: number;
|
|
300
|
+
/**
|
|
301
|
+
* Sets a timeout (in seconds) during which an idle keepalive connection to an upstream server will stay open.
|
|
302
|
+
* @type {number}
|
|
303
|
+
* @memberof ApplicationAdvancedSettings
|
|
304
|
+
*/
|
|
305
|
+
'network.ingress.keepalive_timeout_seconds'?: number;
|
|
306
|
+
/**
|
|
307
|
+
* Sets a timeout (in seconds) for transmitting a response to the client
|
|
308
|
+
* @type {number}
|
|
309
|
+
* @memberof ApplicationAdvancedSettings
|
|
310
|
+
*/
|
|
311
|
+
'network.ingress.send_timeout_seconds'?: number;
|
|
312
|
+
/**
|
|
313
|
+
* Sets a timeout (in seconds) for establishing a connection to a proxied server
|
|
314
|
+
* @type {number}
|
|
315
|
+
* @memberof ApplicationAdvancedSettings
|
|
316
|
+
*/
|
|
317
|
+
'network.ingress.proxy_connect_timeout_seconds'?: number;
|
|
318
|
+
/**
|
|
319
|
+
* Sets a timeout (in seconds) for transmitting a request to the proxied server
|
|
320
|
+
* @type {number}
|
|
321
|
+
* @memberof ApplicationAdvancedSettings
|
|
322
|
+
*/
|
|
323
|
+
'network.ingress.proxy_send_timeout_seconds'?: number;
|
|
324
|
+
/**
|
|
325
|
+
* Sets a timeout (in seconds) for reading a response from the proxied server
|
|
326
|
+
* @type {number}
|
|
327
|
+
* @memberof ApplicationAdvancedSettings
|
|
328
|
+
*/
|
|
329
|
+
'network.ingress.proxy_read_timeout_seconds'?: number;
|
|
294
330
|
/**
|
|
295
331
|
* list of source ranges to allow access to ingress proxy. This property can be used to whitelist source IP ranges for ingress proxy. The value is a comma separated list of CIDRs, e.g. 10.0.0.0/24,172.10.0.1 To allow all source ranges, set 0.0.0.0/0.
|
|
296
332
|
* @type {string}
|
|
@@ -2934,6 +2970,42 @@ export interface ContainerAdvancedSettings {
|
|
|
2934
2970
|
* @memberof ContainerAdvancedSettings
|
|
2935
2971
|
*/
|
|
2936
2972
|
'network.ingress.proxy_buffer_size_kb'?: number;
|
|
2973
|
+
/**
|
|
2974
|
+
* Limits the maximum time (in seconds) during which requests can be processed through one keepalive connection
|
|
2975
|
+
* @type {number}
|
|
2976
|
+
* @memberof ContainerAdvancedSettings
|
|
2977
|
+
*/
|
|
2978
|
+
'network.ingress.keepalive_time_seconds'?: number;
|
|
2979
|
+
/**
|
|
2980
|
+
* Sets a timeout (in seconds) during which an idle keepalive connection to an upstream server will stay open.
|
|
2981
|
+
* @type {number}
|
|
2982
|
+
* @memberof ContainerAdvancedSettings
|
|
2983
|
+
*/
|
|
2984
|
+
'network.ingress.keepalive_timeout_seconds'?: number;
|
|
2985
|
+
/**
|
|
2986
|
+
* Sets a timeout (in seconds) for transmitting a response to the client
|
|
2987
|
+
* @type {number}
|
|
2988
|
+
* @memberof ContainerAdvancedSettings
|
|
2989
|
+
*/
|
|
2990
|
+
'network.ingress.send_timeout_seconds'?: number;
|
|
2991
|
+
/**
|
|
2992
|
+
* Sets a timeout (in seconds) for establishing a connection to a proxied server
|
|
2993
|
+
* @type {number}
|
|
2994
|
+
* @memberof ContainerAdvancedSettings
|
|
2995
|
+
*/
|
|
2996
|
+
'network.ingress.proxy_connect_timeout_seconds'?: number;
|
|
2997
|
+
/**
|
|
2998
|
+
* Sets a timeout (in seconds) for transmitting a request to the proxied server
|
|
2999
|
+
* @type {number}
|
|
3000
|
+
* @memberof ContainerAdvancedSettings
|
|
3001
|
+
*/
|
|
3002
|
+
'network.ingress.proxy_send_timeout_seconds'?: number;
|
|
3003
|
+
/**
|
|
3004
|
+
* Sets a timeout (in seconds) for reading a response from the proxied server
|
|
3005
|
+
* @type {number}
|
|
3006
|
+
* @memberof ContainerAdvancedSettings
|
|
3007
|
+
*/
|
|
3008
|
+
'network.ingress.proxy_read_timeout_seconds'?: number;
|
|
2937
3009
|
/**
|
|
2938
3010
|
* list of source ranges to allow access to ingress proxy. This property can be used to whitelist source IP ranges for ingress proxy. The value is a comma separated list of CIDRs, e.g. 10.0.0.0/24,172.10.0.1 To allow all source ranges, set 0.0.0.0/0.
|
|
2939
3011
|
* @type {string}
|
|
@@ -4590,6 +4662,19 @@ export interface DatabaseVersionMode {
|
|
|
4590
4662
|
*/
|
|
4591
4663
|
'supported_mode'?: DatabaseModeEnum;
|
|
4592
4664
|
}
|
|
4665
|
+
/**
|
|
4666
|
+
* used to specify a default role, otherwise `null`
|
|
4667
|
+
* @export
|
|
4668
|
+
* @enum {string}
|
|
4669
|
+
*/
|
|
4670
|
+
|
|
4671
|
+
export enum DefaultMemberRole {
|
|
4672
|
+
VIEWER = 'VIEWER',
|
|
4673
|
+
BILLING = 'BILLING',
|
|
4674
|
+
DEVOPS = 'DEVOPS',
|
|
4675
|
+
ADMIN = 'ADMIN'
|
|
4676
|
+
}
|
|
4677
|
+
|
|
4593
4678
|
/**
|
|
4594
4679
|
*
|
|
4595
4680
|
* @export
|
|
@@ -7052,7 +7137,7 @@ export interface InviteMemberResponseList {
|
|
|
7052
7137
|
'results'?: Array<InviteMember>;
|
|
7053
7138
|
}
|
|
7054
7139
|
/**
|
|
7055
|
-
*
|
|
7140
|
+
* deprecated
|
|
7056
7141
|
* @export
|
|
7057
7142
|
* @enum {string}
|
|
7058
7143
|
*/
|
|
@@ -7469,6 +7554,12 @@ export interface Member {
|
|
|
7469
7554
|
* @memberof Member
|
|
7470
7555
|
*/
|
|
7471
7556
|
'role'?: InviteMemberRoleEnum;
|
|
7557
|
+
/**
|
|
7558
|
+
* the role linked to the user
|
|
7559
|
+
* @type {string}
|
|
7560
|
+
* @memberof Member
|
|
7561
|
+
*/
|
|
7562
|
+
'role_name'?: string;
|
|
7472
7563
|
}
|
|
7473
7564
|
/**
|
|
7474
7565
|
*
|
|
@@ -7512,6 +7603,12 @@ export interface MemberAllOf {
|
|
|
7512
7603
|
* @memberof MemberAllOf
|
|
7513
7604
|
*/
|
|
7514
7605
|
'role'?: InviteMemberRoleEnum;
|
|
7606
|
+
/**
|
|
7607
|
+
* the role linked to the user
|
|
7608
|
+
* @type {string}
|
|
7609
|
+
* @memberof MemberAllOf
|
|
7610
|
+
*/
|
|
7611
|
+
'role_name'?: string;
|
|
7515
7612
|
}
|
|
7516
7613
|
/**
|
|
7517
7614
|
*
|
|
@@ -7526,6 +7623,31 @@ export interface MemberResponseList {
|
|
|
7526
7623
|
*/
|
|
7527
7624
|
'results'?: Array<Member>;
|
|
7528
7625
|
}
|
|
7626
|
+
/**
|
|
7627
|
+
*
|
|
7628
|
+
* @export
|
|
7629
|
+
* @interface MemberRoleUpdateRequest
|
|
7630
|
+
*/
|
|
7631
|
+
export interface MemberRoleUpdateRequest {
|
|
7632
|
+
/**
|
|
7633
|
+
* specify the git provider user id
|
|
7634
|
+
* @type {string}
|
|
7635
|
+
* @memberof MemberRoleUpdateRequest
|
|
7636
|
+
*/
|
|
7637
|
+
'user_id'?: string;
|
|
7638
|
+
/**
|
|
7639
|
+
* used to specify an organization custom role, otherwise `null`
|
|
7640
|
+
* @type {string}
|
|
7641
|
+
* @memberof MemberRoleUpdateRequest
|
|
7642
|
+
*/
|
|
7643
|
+
'custom_role_id'?: string;
|
|
7644
|
+
/**
|
|
7645
|
+
*
|
|
7646
|
+
* @type {DefaultMemberRole}
|
|
7647
|
+
* @memberof MemberRoleUpdateRequest
|
|
7648
|
+
*/
|
|
7649
|
+
'default_role_name'?: DefaultMemberRole;
|
|
7650
|
+
}
|
|
7529
7651
|
/**
|
|
7530
7652
|
*
|
|
7531
7653
|
* @export
|
|
@@ -8138,6 +8260,44 @@ export enum OrganizationApiTokenScope {
|
|
|
8138
8260
|
ADMIN = 'ADMIN'
|
|
8139
8261
|
}
|
|
8140
8262
|
|
|
8263
|
+
/**
|
|
8264
|
+
*
|
|
8265
|
+
* @export
|
|
8266
|
+
* @interface OrganizationAvailableRole
|
|
8267
|
+
*/
|
|
8268
|
+
export interface OrganizationAvailableRole {
|
|
8269
|
+
/**
|
|
8270
|
+
* Filled only for an organization custom role
|
|
8271
|
+
* @type {string}
|
|
8272
|
+
* @memberof OrganizationAvailableRole
|
|
8273
|
+
*/
|
|
8274
|
+
'id'?: string;
|
|
8275
|
+
/**
|
|
8276
|
+
* It can be either a custom role name or a default role name
|
|
8277
|
+
* @type {string}
|
|
8278
|
+
* @memberof OrganizationAvailableRole
|
|
8279
|
+
*/
|
|
8280
|
+
'name'?: string;
|
|
8281
|
+
/**
|
|
8282
|
+
* - `true` if it is a Qovery role - `false` if it is a custom role
|
|
8283
|
+
* @type {boolean}
|
|
8284
|
+
* @memberof OrganizationAvailableRole
|
|
8285
|
+
*/
|
|
8286
|
+
'is_default'?: boolean;
|
|
8287
|
+
}
|
|
8288
|
+
/**
|
|
8289
|
+
*
|
|
8290
|
+
* @export
|
|
8291
|
+
* @interface OrganizationAvailableRoleList
|
|
8292
|
+
*/
|
|
8293
|
+
export interface OrganizationAvailableRoleList {
|
|
8294
|
+
/**
|
|
8295
|
+
*
|
|
8296
|
+
* @type {Array<OrganizationAvailableRole>}
|
|
8297
|
+
* @memberof OrganizationAvailableRoleList
|
|
8298
|
+
*/
|
|
8299
|
+
'results'?: Array<OrganizationAvailableRole>;
|
|
8300
|
+
}
|
|
8141
8301
|
/**
|
|
8142
8302
|
*
|
|
8143
8303
|
* @export
|
|
@@ -8252,6 +8412,244 @@ export interface OrganizationCurrentCostAllOf {
|
|
|
8252
8412
|
*/
|
|
8253
8413
|
'paid_usage'?: PaidUsage;
|
|
8254
8414
|
}
|
|
8415
|
+
/**
|
|
8416
|
+
*
|
|
8417
|
+
* @export
|
|
8418
|
+
* @interface OrganizationCustomRole
|
|
8419
|
+
*/
|
|
8420
|
+
export interface OrganizationCustomRole {
|
|
8421
|
+
/**
|
|
8422
|
+
*
|
|
8423
|
+
* @type {string}
|
|
8424
|
+
* @memberof OrganizationCustomRole
|
|
8425
|
+
*/
|
|
8426
|
+
'name'?: string;
|
|
8427
|
+
/**
|
|
8428
|
+
*
|
|
8429
|
+
* @type {string}
|
|
8430
|
+
* @memberof OrganizationCustomRole
|
|
8431
|
+
*/
|
|
8432
|
+
'description'?: string;
|
|
8433
|
+
/**
|
|
8434
|
+
*
|
|
8435
|
+
* @type {Array<OrganizationCustomRoleClusterPermissions>}
|
|
8436
|
+
* @memberof OrganizationCustomRole
|
|
8437
|
+
*/
|
|
8438
|
+
'cluster_permissions'?: Array<OrganizationCustomRoleClusterPermissions>;
|
|
8439
|
+
/**
|
|
8440
|
+
*
|
|
8441
|
+
* @type {Array<OrganizationCustomRoleProjectPermissions>}
|
|
8442
|
+
* @memberof OrganizationCustomRole
|
|
8443
|
+
*/
|
|
8444
|
+
'project_permissions'?: Array<OrganizationCustomRoleProjectPermissions>;
|
|
8445
|
+
}
|
|
8446
|
+
/**
|
|
8447
|
+
* Indicates the permission for a target cluster, from the lowest to the highest: - `VIEWER` user has only read access on target cluster - `ENV_CREATOR` user can deploy on the cluster - `ADMIN` user can modify the cluster settings
|
|
8448
|
+
* @export
|
|
8449
|
+
* @enum {string}
|
|
8450
|
+
*/
|
|
8451
|
+
|
|
8452
|
+
export enum OrganizationCustomRoleClusterPermission {
|
|
8453
|
+
VIEWER = 'VIEWER',
|
|
8454
|
+
ENV_CREATOR = 'ENV_CREATOR',
|
|
8455
|
+
ADMIN = 'ADMIN'
|
|
8456
|
+
}
|
|
8457
|
+
|
|
8458
|
+
/**
|
|
8459
|
+
*
|
|
8460
|
+
* @export
|
|
8461
|
+
* @interface OrganizationCustomRoleClusterPermissions
|
|
8462
|
+
*/
|
|
8463
|
+
export interface OrganizationCustomRoleClusterPermissions {
|
|
8464
|
+
/**
|
|
8465
|
+
*
|
|
8466
|
+
* @type {string}
|
|
8467
|
+
* @memberof OrganizationCustomRoleClusterPermissions
|
|
8468
|
+
*/
|
|
8469
|
+
'cluster_id'?: string;
|
|
8470
|
+
/**
|
|
8471
|
+
*
|
|
8472
|
+
* @type {string}
|
|
8473
|
+
* @memberof OrganizationCustomRoleClusterPermissions
|
|
8474
|
+
*/
|
|
8475
|
+
'cluster_name'?: string;
|
|
8476
|
+
/**
|
|
8477
|
+
*
|
|
8478
|
+
* @type {OrganizationCustomRoleClusterPermission}
|
|
8479
|
+
* @memberof OrganizationCustomRoleClusterPermissions
|
|
8480
|
+
*/
|
|
8481
|
+
'permission'?: OrganizationCustomRoleClusterPermission;
|
|
8482
|
+
}
|
|
8483
|
+
/**
|
|
8484
|
+
*
|
|
8485
|
+
* @export
|
|
8486
|
+
* @interface OrganizationCustomRoleCreateRequest
|
|
8487
|
+
*/
|
|
8488
|
+
export interface OrganizationCustomRoleCreateRequest {
|
|
8489
|
+
/**
|
|
8490
|
+
*
|
|
8491
|
+
* @type {string}
|
|
8492
|
+
* @memberof OrganizationCustomRoleCreateRequest
|
|
8493
|
+
*/
|
|
8494
|
+
'name': string;
|
|
8495
|
+
/**
|
|
8496
|
+
*
|
|
8497
|
+
* @type {string}
|
|
8498
|
+
* @memberof OrganizationCustomRoleCreateRequest
|
|
8499
|
+
*/
|
|
8500
|
+
'description'?: string;
|
|
8501
|
+
}
|
|
8502
|
+
/**
|
|
8503
|
+
*
|
|
8504
|
+
* @export
|
|
8505
|
+
* @interface OrganizationCustomRoleList
|
|
8506
|
+
*/
|
|
8507
|
+
export interface OrganizationCustomRoleList {
|
|
8508
|
+
/**
|
|
8509
|
+
*
|
|
8510
|
+
* @type {Array<OrganizationCustomRole>}
|
|
8511
|
+
* @memberof OrganizationCustomRoleList
|
|
8512
|
+
*/
|
|
8513
|
+
'results'?: Array<OrganizationCustomRole>;
|
|
8514
|
+
}
|
|
8515
|
+
/**
|
|
8516
|
+
* Indicates the permission for a target project and a given environment type, from the lowest to the highest: - `NO_ACCESS` user has no access - `VIEWER` user can access the environment (and applications / containers / databases / variables) - `DEPLOYER` user can deploy the environment (dependent on the required cluster permission `ENV_CREATOR`) - `MANAGER` user can create an environment (and applications / containers / databases / variables)
|
|
8517
|
+
* @export
|
|
8518
|
+
* @enum {string}
|
|
8519
|
+
*/
|
|
8520
|
+
|
|
8521
|
+
export enum OrganizationCustomRoleProjectPermission {
|
|
8522
|
+
NO_ACCESS = 'NO_ACCESS',
|
|
8523
|
+
VIEWER = 'VIEWER',
|
|
8524
|
+
DEPLOYER = 'DEPLOYER',
|
|
8525
|
+
MANAGER = 'MANAGER'
|
|
8526
|
+
}
|
|
8527
|
+
|
|
8528
|
+
/**
|
|
8529
|
+
*
|
|
8530
|
+
* @export
|
|
8531
|
+
* @interface OrganizationCustomRoleProjectPermissions
|
|
8532
|
+
*/
|
|
8533
|
+
export interface OrganizationCustomRoleProjectPermissions {
|
|
8534
|
+
/**
|
|
8535
|
+
*
|
|
8536
|
+
* @type {string}
|
|
8537
|
+
* @memberof OrganizationCustomRoleProjectPermissions
|
|
8538
|
+
*/
|
|
8539
|
+
'project_id'?: string;
|
|
8540
|
+
/**
|
|
8541
|
+
*
|
|
8542
|
+
* @type {string}
|
|
8543
|
+
* @memberof OrganizationCustomRoleProjectPermissions
|
|
8544
|
+
*/
|
|
8545
|
+
'project_name'?: string;
|
|
8546
|
+
/**
|
|
8547
|
+
* If `is_admin` is `true`, the user is: - automatically `MANAGER` for each environment type - allowed to manage project deployment rules - able to delete the project Note that `permissions` can then be ignored for this project
|
|
8548
|
+
* @type {boolean}
|
|
8549
|
+
* @memberof OrganizationCustomRoleProjectPermissions
|
|
8550
|
+
*/
|
|
8551
|
+
'is_admin'?: boolean;
|
|
8552
|
+
/**
|
|
8553
|
+
*
|
|
8554
|
+
* @type {Array<OrganizationCustomRoleUpdateRequestPermissions>}
|
|
8555
|
+
* @memberof OrganizationCustomRoleProjectPermissions
|
|
8556
|
+
*/
|
|
8557
|
+
'permissions'?: Array<OrganizationCustomRoleUpdateRequestPermissions>;
|
|
8558
|
+
}
|
|
8559
|
+
/**
|
|
8560
|
+
*
|
|
8561
|
+
* @export
|
|
8562
|
+
* @interface OrganizationCustomRoleUpdateRequest
|
|
8563
|
+
*/
|
|
8564
|
+
export interface OrganizationCustomRoleUpdateRequest {
|
|
8565
|
+
/**
|
|
8566
|
+
*
|
|
8567
|
+
* @type {string}
|
|
8568
|
+
* @memberof OrganizationCustomRoleUpdateRequest
|
|
8569
|
+
*/
|
|
8570
|
+
'name': string;
|
|
8571
|
+
/**
|
|
8572
|
+
*
|
|
8573
|
+
* @type {string}
|
|
8574
|
+
* @memberof OrganizationCustomRoleUpdateRequest
|
|
8575
|
+
*/
|
|
8576
|
+
'description'?: string;
|
|
8577
|
+
/**
|
|
8578
|
+
* Should contain an entry for every existing cluster
|
|
8579
|
+
* @type {Array<OrganizationCustomRoleUpdateRequestClusterPermissions>}
|
|
8580
|
+
* @memberof OrganizationCustomRoleUpdateRequest
|
|
8581
|
+
*/
|
|
8582
|
+
'cluster_permissions': Array<OrganizationCustomRoleUpdateRequestClusterPermissions>;
|
|
8583
|
+
/**
|
|
8584
|
+
* Should contain an entry for every existing project
|
|
8585
|
+
* @type {Array<OrganizationCustomRoleUpdateRequestProjectPermissions>}
|
|
8586
|
+
* @memberof OrganizationCustomRoleUpdateRequest
|
|
8587
|
+
*/
|
|
8588
|
+
'project_permissions': Array<OrganizationCustomRoleUpdateRequestProjectPermissions>;
|
|
8589
|
+
}
|
|
8590
|
+
/**
|
|
8591
|
+
*
|
|
8592
|
+
* @export
|
|
8593
|
+
* @interface OrganizationCustomRoleUpdateRequestClusterPermissions
|
|
8594
|
+
*/
|
|
8595
|
+
export interface OrganizationCustomRoleUpdateRequestClusterPermissions {
|
|
8596
|
+
/**
|
|
8597
|
+
*
|
|
8598
|
+
* @type {string}
|
|
8599
|
+
* @memberof OrganizationCustomRoleUpdateRequestClusterPermissions
|
|
8600
|
+
*/
|
|
8601
|
+
'cluster_id'?: string;
|
|
8602
|
+
/**
|
|
8603
|
+
*
|
|
8604
|
+
* @type {OrganizationCustomRoleClusterPermission}
|
|
8605
|
+
* @memberof OrganizationCustomRoleUpdateRequestClusterPermissions
|
|
8606
|
+
*/
|
|
8607
|
+
'permission'?: OrganizationCustomRoleClusterPermission;
|
|
8608
|
+
}
|
|
8609
|
+
/**
|
|
8610
|
+
*
|
|
8611
|
+
* @export
|
|
8612
|
+
* @interface OrganizationCustomRoleUpdateRequestPermissions
|
|
8613
|
+
*/
|
|
8614
|
+
export interface OrganizationCustomRoleUpdateRequestPermissions {
|
|
8615
|
+
/**
|
|
8616
|
+
*
|
|
8617
|
+
* @type {EnvironmentModeEnum}
|
|
8618
|
+
* @memberof OrganizationCustomRoleUpdateRequestPermissions
|
|
8619
|
+
*/
|
|
8620
|
+
'environment_type'?: EnvironmentModeEnum;
|
|
8621
|
+
/**
|
|
8622
|
+
*
|
|
8623
|
+
* @type {OrganizationCustomRoleProjectPermission}
|
|
8624
|
+
* @memberof OrganizationCustomRoleUpdateRequestPermissions
|
|
8625
|
+
*/
|
|
8626
|
+
'permission'?: OrganizationCustomRoleProjectPermission;
|
|
8627
|
+
}
|
|
8628
|
+
/**
|
|
8629
|
+
*
|
|
8630
|
+
* @export
|
|
8631
|
+
* @interface OrganizationCustomRoleUpdateRequestProjectPermissions
|
|
8632
|
+
*/
|
|
8633
|
+
export interface OrganizationCustomRoleUpdateRequestProjectPermissions {
|
|
8634
|
+
/**
|
|
8635
|
+
*
|
|
8636
|
+
* @type {string}
|
|
8637
|
+
* @memberof OrganizationCustomRoleUpdateRequestProjectPermissions
|
|
8638
|
+
*/
|
|
8639
|
+
'project_id'?: string;
|
|
8640
|
+
/**
|
|
8641
|
+
* If `is_admin` is `true`, the user is: - automatically `MANAGER` for each environment type - allowed to manage project deployment rules - able to delete the project Note that `permissions` can then be ignored for this project
|
|
8642
|
+
* @type {boolean}
|
|
8643
|
+
* @memberof OrganizationCustomRoleUpdateRequestProjectPermissions
|
|
8644
|
+
*/
|
|
8645
|
+
'is_admin'?: boolean;
|
|
8646
|
+
/**
|
|
8647
|
+
* Mandatory if `is_admin` is `false` Should contain an entry for every environment type: - `DEVELOPMENT` - `PREVIEW` - `STAGING` - `PRODUCTION`
|
|
8648
|
+
* @type {Array<OrganizationCustomRoleUpdateRequestPermissions>}
|
|
8649
|
+
* @memberof OrganizationCustomRoleUpdateRequestProjectPermissions
|
|
8650
|
+
*/
|
|
8651
|
+
'permissions'?: Array<OrganizationCustomRoleUpdateRequestPermissions>;
|
|
8652
|
+
}
|
|
8255
8653
|
/**
|
|
8256
8654
|
*
|
|
8257
8655
|
* @export
|
|
@@ -15091,48 +15489,6 @@ export const ApplicationsApiAxiosParamCreator = function (configuration?: Config
|
|
|
15091
15489
|
options: localVarRequestOptions,
|
|
15092
15490
|
};
|
|
15093
15491
|
},
|
|
15094
|
-
/**
|
|
15095
|
-
* Deploy to the last commit the applications you specified.
|
|
15096
|
-
* @summary Deploy applications
|
|
15097
|
-
* @param {string} environmentId Environment ID
|
|
15098
|
-
* @param {DeployAllRequest} [deployAllRequest]
|
|
15099
|
-
* @param {*} [options] Override http request option.
|
|
15100
|
-
* @throws {RequiredError}
|
|
15101
|
-
*/
|
|
15102
|
-
deployAllApplications: async (environmentId: string, deployAllRequest?: DeployAllRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15103
|
-
// verify required parameter 'environmentId' is not null or undefined
|
|
15104
|
-
assertParamExists('deployAllApplications', 'environmentId', environmentId)
|
|
15105
|
-
const localVarPath = `/environment/{environmentId}/application/deploy`
|
|
15106
|
-
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
15107
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15108
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15109
|
-
let baseOptions;
|
|
15110
|
-
if (configuration) {
|
|
15111
|
-
baseOptions = configuration.baseOptions;
|
|
15112
|
-
}
|
|
15113
|
-
|
|
15114
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
15115
|
-
const localVarHeaderParameter = {} as any;
|
|
15116
|
-
const localVarQueryParameter = {} as any;
|
|
15117
|
-
|
|
15118
|
-
// authentication bearerAuth required
|
|
15119
|
-
// http bearer authentication required
|
|
15120
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15121
|
-
|
|
15122
|
-
|
|
15123
|
-
|
|
15124
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15125
|
-
|
|
15126
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15127
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15128
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15129
|
-
localVarRequestOptions.data = serializeDataIfNeeded(deployAllRequest, localVarRequestOptions, configuration)
|
|
15130
|
-
|
|
15131
|
-
return {
|
|
15132
|
-
url: toPathString(localVarUrlObj),
|
|
15133
|
-
options: localVarRequestOptions,
|
|
15134
|
-
};
|
|
15135
|
-
},
|
|
15136
15492
|
/**
|
|
15137
15493
|
*
|
|
15138
15494
|
* @summary List default application advanced settings
|
|
@@ -15379,18 +15735,6 @@ export const ApplicationsApiFp = function(configuration?: Configuration) {
|
|
|
15379
15735
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createApplication(environmentId, applicationRequest, options);
|
|
15380
15736
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
15381
15737
|
},
|
|
15382
|
-
/**
|
|
15383
|
-
* Deploy to the last commit the applications you specified.
|
|
15384
|
-
* @summary Deploy applications
|
|
15385
|
-
* @param {string} environmentId Environment ID
|
|
15386
|
-
* @param {DeployAllRequest} [deployAllRequest]
|
|
15387
|
-
* @param {*} [options] Override http request option.
|
|
15388
|
-
* @throws {RequiredError}
|
|
15389
|
-
*/
|
|
15390
|
-
async deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
|
|
15391
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deployAllApplications(environmentId, deployAllRequest, options);
|
|
15392
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
15393
|
-
},
|
|
15394
15738
|
/**
|
|
15395
15739
|
*
|
|
15396
15740
|
* @summary List default application advanced settings
|
|
@@ -15477,17 +15821,6 @@ export const ApplicationsApiFactory = function (configuration?: Configuration, b
|
|
|
15477
15821
|
createApplication(environmentId: string, applicationRequest?: ApplicationRequest, options?: any): AxiosPromise<Application> {
|
|
15478
15822
|
return localVarFp.createApplication(environmentId, applicationRequest, options).then((request) => request(axios, basePath));
|
|
15479
15823
|
},
|
|
15480
|
-
/**
|
|
15481
|
-
* Deploy to the last commit the applications you specified.
|
|
15482
|
-
* @summary Deploy applications
|
|
15483
|
-
* @param {string} environmentId Environment ID
|
|
15484
|
-
* @param {DeployAllRequest} [deployAllRequest]
|
|
15485
|
-
* @param {*} [options] Override http request option.
|
|
15486
|
-
* @throws {RequiredError}
|
|
15487
|
-
*/
|
|
15488
|
-
deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: any): AxiosPromise<Status> {
|
|
15489
|
-
return localVarFp.deployAllApplications(environmentId, deployAllRequest, options).then((request) => request(axios, basePath));
|
|
15490
|
-
},
|
|
15491
15824
|
/**
|
|
15492
15825
|
*
|
|
15493
15826
|
* @summary List default application advanced settings
|
|
@@ -15570,19 +15903,6 @@ export class ApplicationsApi extends BaseAPI {
|
|
|
15570
15903
|
return ApplicationsApiFp(this.configuration).createApplication(environmentId, applicationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15571
15904
|
}
|
|
15572
15905
|
|
|
15573
|
-
/**
|
|
15574
|
-
* Deploy to the last commit the applications you specified.
|
|
15575
|
-
* @summary Deploy applications
|
|
15576
|
-
* @param {string} environmentId Environment ID
|
|
15577
|
-
* @param {DeployAllRequest} [deployAllRequest]
|
|
15578
|
-
* @param {*} [options] Override http request option.
|
|
15579
|
-
* @throws {RequiredError}
|
|
15580
|
-
* @memberof ApplicationsApi
|
|
15581
|
-
*/
|
|
15582
|
-
public deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: AxiosRequestConfig) {
|
|
15583
|
-
return ApplicationsApiFp(this.configuration).deployAllApplications(environmentId, deployAllRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15584
|
-
}
|
|
15585
|
-
|
|
15586
15906
|
/**
|
|
15587
15907
|
*
|
|
15588
15908
|
* @summary List default application advanced settings
|
|
@@ -27779,6 +28099,122 @@ export class DependencyApi extends BaseAPI {
|
|
|
27779
28099
|
}
|
|
27780
28100
|
|
|
27781
28101
|
|
|
28102
|
+
/**
|
|
28103
|
+
* EnvironmentApi - axios parameter creator
|
|
28104
|
+
* @export
|
|
28105
|
+
*/
|
|
28106
|
+
export const EnvironmentApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
28107
|
+
return {
|
|
28108
|
+
/**
|
|
28109
|
+
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
28110
|
+
* @summary Deploy applications
|
|
28111
|
+
* @param {string} environmentId Environment ID
|
|
28112
|
+
* @param {DeployAllRequest} [deployAllRequest]
|
|
28113
|
+
* @param {*} [options] Override http request option.
|
|
28114
|
+
* @throws {RequiredError}
|
|
28115
|
+
*/
|
|
28116
|
+
deployAllApplications: async (environmentId: string, deployAllRequest?: DeployAllRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28117
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
28118
|
+
assertParamExists('deployAllApplications', 'environmentId', environmentId)
|
|
28119
|
+
const localVarPath = `/environment/{environmentId}/application/deploy`
|
|
28120
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
28121
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28122
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28123
|
+
let baseOptions;
|
|
28124
|
+
if (configuration) {
|
|
28125
|
+
baseOptions = configuration.baseOptions;
|
|
28126
|
+
}
|
|
28127
|
+
|
|
28128
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
28129
|
+
const localVarHeaderParameter = {} as any;
|
|
28130
|
+
const localVarQueryParameter = {} as any;
|
|
28131
|
+
|
|
28132
|
+
// authentication bearerAuth required
|
|
28133
|
+
// http bearer authentication required
|
|
28134
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28135
|
+
|
|
28136
|
+
|
|
28137
|
+
|
|
28138
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28139
|
+
|
|
28140
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28141
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28142
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28143
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deployAllRequest, localVarRequestOptions, configuration)
|
|
28144
|
+
|
|
28145
|
+
return {
|
|
28146
|
+
url: toPathString(localVarUrlObj),
|
|
28147
|
+
options: localVarRequestOptions,
|
|
28148
|
+
};
|
|
28149
|
+
},
|
|
28150
|
+
}
|
|
28151
|
+
};
|
|
28152
|
+
|
|
28153
|
+
/**
|
|
28154
|
+
* EnvironmentApi - functional programming interface
|
|
28155
|
+
* @export
|
|
28156
|
+
*/
|
|
28157
|
+
export const EnvironmentApiFp = function(configuration?: Configuration) {
|
|
28158
|
+
const localVarAxiosParamCreator = EnvironmentApiAxiosParamCreator(configuration)
|
|
28159
|
+
return {
|
|
28160
|
+
/**
|
|
28161
|
+
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
28162
|
+
* @summary Deploy applications
|
|
28163
|
+
* @param {string} environmentId Environment ID
|
|
28164
|
+
* @param {DeployAllRequest} [deployAllRequest]
|
|
28165
|
+
* @param {*} [options] Override http request option.
|
|
28166
|
+
* @throws {RequiredError}
|
|
28167
|
+
*/
|
|
28168
|
+
async deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
|
|
28169
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deployAllApplications(environmentId, deployAllRequest, options);
|
|
28170
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
28171
|
+
},
|
|
28172
|
+
}
|
|
28173
|
+
};
|
|
28174
|
+
|
|
28175
|
+
/**
|
|
28176
|
+
* EnvironmentApi - factory interface
|
|
28177
|
+
* @export
|
|
28178
|
+
*/
|
|
28179
|
+
export const EnvironmentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
28180
|
+
const localVarFp = EnvironmentApiFp(configuration)
|
|
28181
|
+
return {
|
|
28182
|
+
/**
|
|
28183
|
+
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
28184
|
+
* @summary Deploy applications
|
|
28185
|
+
* @param {string} environmentId Environment ID
|
|
28186
|
+
* @param {DeployAllRequest} [deployAllRequest]
|
|
28187
|
+
* @param {*} [options] Override http request option.
|
|
28188
|
+
* @throws {RequiredError}
|
|
28189
|
+
*/
|
|
28190
|
+
deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: any): AxiosPromise<Status> {
|
|
28191
|
+
return localVarFp.deployAllApplications(environmentId, deployAllRequest, options).then((request) => request(axios, basePath));
|
|
28192
|
+
},
|
|
28193
|
+
};
|
|
28194
|
+
};
|
|
28195
|
+
|
|
28196
|
+
/**
|
|
28197
|
+
* EnvironmentApi - object-oriented interface
|
|
28198
|
+
* @export
|
|
28199
|
+
* @class EnvironmentApi
|
|
28200
|
+
* @extends {BaseAPI}
|
|
28201
|
+
*/
|
|
28202
|
+
export class EnvironmentApi extends BaseAPI {
|
|
28203
|
+
/**
|
|
28204
|
+
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
28205
|
+
* @summary Deploy applications
|
|
28206
|
+
* @param {string} environmentId Environment ID
|
|
28207
|
+
* @param {DeployAllRequest} [deployAllRequest]
|
|
28208
|
+
* @param {*} [options] Override http request option.
|
|
28209
|
+
* @throws {RequiredError}
|
|
28210
|
+
* @memberof EnvironmentApi
|
|
28211
|
+
*/
|
|
28212
|
+
public deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: AxiosRequestConfig) {
|
|
28213
|
+
return EnvironmentApiFp(this.configuration).deployAllApplications(environmentId, deployAllRequest, options).then((request) => request(this.axios, this.basePath));
|
|
28214
|
+
}
|
|
28215
|
+
}
|
|
28216
|
+
|
|
28217
|
+
|
|
27782
28218
|
/**
|
|
27783
28219
|
* EnvironmentActionsApi - axios parameter creator
|
|
27784
28220
|
* @export
|
|
@@ -31825,6 +32261,48 @@ export const MembersApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
31825
32261
|
options: localVarRequestOptions,
|
|
31826
32262
|
};
|
|
31827
32263
|
},
|
|
32264
|
+
/**
|
|
32265
|
+
* Edit an organization member role
|
|
32266
|
+
* @summary Edit an organization member role
|
|
32267
|
+
* @param {string} organizationId Organization ID
|
|
32268
|
+
* @param {MemberRoleUpdateRequest} [memberRoleUpdateRequest]
|
|
32269
|
+
* @param {*} [options] Override http request option.
|
|
32270
|
+
* @throws {RequiredError}
|
|
32271
|
+
*/
|
|
32272
|
+
editOrganizationMemberRole: async (organizationId: string, memberRoleUpdateRequest?: MemberRoleUpdateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32273
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
32274
|
+
assertParamExists('editOrganizationMemberRole', 'organizationId', organizationId)
|
|
32275
|
+
const localVarPath = `/organization/{organizationId}/member`
|
|
32276
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
32277
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32278
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32279
|
+
let baseOptions;
|
|
32280
|
+
if (configuration) {
|
|
32281
|
+
baseOptions = configuration.baseOptions;
|
|
32282
|
+
}
|
|
32283
|
+
|
|
32284
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
32285
|
+
const localVarHeaderParameter = {} as any;
|
|
32286
|
+
const localVarQueryParameter = {} as any;
|
|
32287
|
+
|
|
32288
|
+
// authentication bearerAuth required
|
|
32289
|
+
// http bearer authentication required
|
|
32290
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32291
|
+
|
|
32292
|
+
|
|
32293
|
+
|
|
32294
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32295
|
+
|
|
32296
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32297
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32298
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32299
|
+
localVarRequestOptions.data = serializeDataIfNeeded(memberRoleUpdateRequest, localVarRequestOptions, configuration)
|
|
32300
|
+
|
|
32301
|
+
return {
|
|
32302
|
+
url: toPathString(localVarUrlObj),
|
|
32303
|
+
options: localVarRequestOptions,
|
|
32304
|
+
};
|
|
32305
|
+
},
|
|
31828
32306
|
/**
|
|
31829
32307
|
*
|
|
31830
32308
|
* @summary Get invited members
|
|
@@ -32060,6 +32538,18 @@ export const MembersApiFp = function(configuration?: Configuration) {
|
|
|
32060
32538
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteMember(organizationId, userId, options);
|
|
32061
32539
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
32062
32540
|
},
|
|
32541
|
+
/**
|
|
32542
|
+
* Edit an organization member role
|
|
32543
|
+
* @summary Edit an organization member role
|
|
32544
|
+
* @param {string} organizationId Organization ID
|
|
32545
|
+
* @param {MemberRoleUpdateRequest} [memberRoleUpdateRequest]
|
|
32546
|
+
* @param {*} [options] Override http request option.
|
|
32547
|
+
* @throws {RequiredError}
|
|
32548
|
+
*/
|
|
32549
|
+
async editOrganizationMemberRole(organizationId: string, memberRoleUpdateRequest?: MemberRoleUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
32550
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.editOrganizationMemberRole(organizationId, memberRoleUpdateRequest, options);
|
|
32551
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
32552
|
+
},
|
|
32063
32553
|
/**
|
|
32064
32554
|
*
|
|
32065
32555
|
* @summary Get invited members
|
|
@@ -32149,6 +32639,17 @@ export const MembersApiFactory = function (configuration?: Configuration, basePa
|
|
|
32149
32639
|
deleteMember(organizationId: string, userId: string, options?: any): AxiosPromise<void> {
|
|
32150
32640
|
return localVarFp.deleteMember(organizationId, userId, options).then((request) => request(axios, basePath));
|
|
32151
32641
|
},
|
|
32642
|
+
/**
|
|
32643
|
+
* Edit an organization member role
|
|
32644
|
+
* @summary Edit an organization member role
|
|
32645
|
+
* @param {string} organizationId Organization ID
|
|
32646
|
+
* @param {MemberRoleUpdateRequest} [memberRoleUpdateRequest]
|
|
32647
|
+
* @param {*} [options] Override http request option.
|
|
32648
|
+
* @throws {RequiredError}
|
|
32649
|
+
*/
|
|
32650
|
+
editOrganizationMemberRole(organizationId: string, memberRoleUpdateRequest?: MemberRoleUpdateRequest, options?: any): AxiosPromise<void> {
|
|
32651
|
+
return localVarFp.editOrganizationMemberRole(organizationId, memberRoleUpdateRequest, options).then((request) => request(axios, basePath));
|
|
32652
|
+
},
|
|
32152
32653
|
/**
|
|
32153
32654
|
*
|
|
32154
32655
|
* @summary Get invited members
|
|
@@ -32237,6 +32738,19 @@ export class MembersApi extends BaseAPI {
|
|
|
32237
32738
|
return MembersApiFp(this.configuration).deleteMember(organizationId, userId, options).then((request) => request(this.axios, this.basePath));
|
|
32238
32739
|
}
|
|
32239
32740
|
|
|
32741
|
+
/**
|
|
32742
|
+
* Edit an organization member role
|
|
32743
|
+
* @summary Edit an organization member role
|
|
32744
|
+
* @param {string} organizationId Organization ID
|
|
32745
|
+
* @param {MemberRoleUpdateRequest} [memberRoleUpdateRequest]
|
|
32746
|
+
* @param {*} [options] Override http request option.
|
|
32747
|
+
* @throws {RequiredError}
|
|
32748
|
+
* @memberof MembersApi
|
|
32749
|
+
*/
|
|
32750
|
+
public editOrganizationMemberRole(organizationId: string, memberRoleUpdateRequest?: MemberRoleUpdateRequest, options?: AxiosRequestConfig) {
|
|
32751
|
+
return MembersApiFp(this.configuration).editOrganizationMemberRole(organizationId, memberRoleUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32752
|
+
}
|
|
32753
|
+
|
|
32240
32754
|
/**
|
|
32241
32755
|
*
|
|
32242
32756
|
* @summary Get invited members
|
|
@@ -33127,20 +33641,24 @@ export class OrganizationApiTokenApi extends BaseAPI {
|
|
|
33127
33641
|
|
|
33128
33642
|
|
|
33129
33643
|
/**
|
|
33130
|
-
*
|
|
33644
|
+
* OrganizationCustomRoleApi - axios parameter creator
|
|
33131
33645
|
* @export
|
|
33132
33646
|
*/
|
|
33133
|
-
export const
|
|
33647
|
+
export const OrganizationCustomRoleApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33134
33648
|
return {
|
|
33135
33649
|
/**
|
|
33136
|
-
*
|
|
33137
|
-
* @summary Create an organization
|
|
33138
|
-
* @param {
|
|
33650
|
+
* Create an organization custom role
|
|
33651
|
+
* @summary Create an organization custom role
|
|
33652
|
+
* @param {string} organizationId Organization ID
|
|
33653
|
+
* @param {OrganizationCustomRoleCreateRequest} [organizationCustomRoleCreateRequest]
|
|
33139
33654
|
* @param {*} [options] Override http request option.
|
|
33140
33655
|
* @throws {RequiredError}
|
|
33141
33656
|
*/
|
|
33142
|
-
|
|
33143
|
-
|
|
33657
|
+
createOrganizationCustomRole: async (organizationId: string, organizationCustomRoleCreateRequest?: OrganizationCustomRoleCreateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33658
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
33659
|
+
assertParamExists('createOrganizationCustomRole', 'organizationId', organizationId)
|
|
33660
|
+
const localVarPath = `/organization/{organizationId}/customRole`
|
|
33661
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
33144
33662
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33145
33663
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33146
33664
|
let baseOptions;
|
|
@@ -33163,7 +33681,7 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
|
|
|
33163
33681
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33164
33682
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33165
33683
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33166
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
33684
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationCustomRoleCreateRequest, localVarRequestOptions, configuration)
|
|
33167
33685
|
|
|
33168
33686
|
return {
|
|
33169
33687
|
url: toPathString(localVarUrlObj),
|
|
@@ -33171,16 +33689,16 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
|
|
|
33171
33689
|
};
|
|
33172
33690
|
},
|
|
33173
33691
|
/**
|
|
33174
|
-
*
|
|
33175
|
-
* @summary Delete
|
|
33692
|
+
* Delete organization custom role
|
|
33693
|
+
* @summary Delete organization custom role
|
|
33176
33694
|
* @param {string} organizationId Organization ID
|
|
33177
33695
|
* @param {*} [options] Override http request option.
|
|
33178
33696
|
* @throws {RequiredError}
|
|
33179
33697
|
*/
|
|
33180
|
-
|
|
33698
|
+
deleteOrganizationCustomRole: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33181
33699
|
// verify required parameter 'organizationId' is not null or undefined
|
|
33182
|
-
assertParamExists('
|
|
33183
|
-
const localVarPath = `/organization/{organizationId}`
|
|
33700
|
+
assertParamExists('deleteOrganizationCustomRole', 'organizationId', organizationId)
|
|
33701
|
+
const localVarPath = `/organization/{organizationId}/customRole/{customRoleId}`
|
|
33184
33702
|
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
33185
33703
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33186
33704
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -33209,17 +33727,17 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
|
|
|
33209
33727
|
};
|
|
33210
33728
|
},
|
|
33211
33729
|
/**
|
|
33212
|
-
*
|
|
33213
|
-
* @summary Edit an organization
|
|
33730
|
+
* Edit an organization custom role
|
|
33731
|
+
* @summary Edit an organization custom role
|
|
33214
33732
|
* @param {string} organizationId Organization ID
|
|
33215
|
-
* @param {
|
|
33733
|
+
* @param {OrganizationCustomRoleUpdateRequest} [organizationCustomRoleUpdateRequest]
|
|
33216
33734
|
* @param {*} [options] Override http request option.
|
|
33217
33735
|
* @throws {RequiredError}
|
|
33218
33736
|
*/
|
|
33219
|
-
|
|
33737
|
+
editOrganizationCustomRole: async (organizationId: string, organizationCustomRoleUpdateRequest?: OrganizationCustomRoleUpdateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33220
33738
|
// verify required parameter 'organizationId' is not null or undefined
|
|
33221
|
-
assertParamExists('
|
|
33222
|
-
const localVarPath = `/organization/{organizationId}`
|
|
33739
|
+
assertParamExists('editOrganizationCustomRole', 'organizationId', organizationId)
|
|
33740
|
+
const localVarPath = `/organization/{organizationId}/customRole/{customRoleId}`
|
|
33223
33741
|
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
33224
33742
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33225
33743
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -33243,7 +33761,7 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
|
|
|
33243
33761
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33244
33762
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33245
33763
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33246
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
33764
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationCustomRoleUpdateRequest, localVarRequestOptions, configuration)
|
|
33247
33765
|
|
|
33248
33766
|
return {
|
|
33249
33767
|
url: toPathString(localVarUrlObj),
|
|
@@ -33251,17 +33769,427 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
|
|
|
33251
33769
|
};
|
|
33252
33770
|
},
|
|
33253
33771
|
/**
|
|
33254
|
-
*
|
|
33255
|
-
* @summary Get organization
|
|
33772
|
+
* Get an organization custom role
|
|
33773
|
+
* @summary Get an organization custom role
|
|
33256
33774
|
* @param {string} organizationId Organization ID
|
|
33775
|
+
* @param {string} customRoleId Custom Role ID
|
|
33257
33776
|
* @param {*} [options] Override http request option.
|
|
33258
33777
|
* @throws {RequiredError}
|
|
33259
33778
|
*/
|
|
33260
|
-
|
|
33779
|
+
getOrganizationCustomRole: async (organizationId: string, customRoleId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33261
33780
|
// verify required parameter 'organizationId' is not null or undefined
|
|
33262
|
-
assertParamExists('
|
|
33263
|
-
|
|
33264
|
-
|
|
33781
|
+
assertParamExists('getOrganizationCustomRole', 'organizationId', organizationId)
|
|
33782
|
+
// verify required parameter 'customRoleId' is not null or undefined
|
|
33783
|
+
assertParamExists('getOrganizationCustomRole', 'customRoleId', customRoleId)
|
|
33784
|
+
const localVarPath = `/organization/{organizationId}/customRole/{customRoleId}`
|
|
33785
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
33786
|
+
.replace(`{${"customRoleId"}}`, encodeURIComponent(String(customRoleId)));
|
|
33787
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33788
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33789
|
+
let baseOptions;
|
|
33790
|
+
if (configuration) {
|
|
33791
|
+
baseOptions = configuration.baseOptions;
|
|
33792
|
+
}
|
|
33793
|
+
|
|
33794
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
33795
|
+
const localVarHeaderParameter = {} as any;
|
|
33796
|
+
const localVarQueryParameter = {} as any;
|
|
33797
|
+
|
|
33798
|
+
// authentication bearerAuth required
|
|
33799
|
+
// http bearer authentication required
|
|
33800
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
33801
|
+
|
|
33802
|
+
|
|
33803
|
+
|
|
33804
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33805
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33806
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33807
|
+
|
|
33808
|
+
return {
|
|
33809
|
+
url: toPathString(localVarUrlObj),
|
|
33810
|
+
options: localVarRequestOptions,
|
|
33811
|
+
};
|
|
33812
|
+
},
|
|
33813
|
+
/**
|
|
33814
|
+
* List organization custom roles
|
|
33815
|
+
* @summary List organization custom roles
|
|
33816
|
+
* @param {string} organizationId Organization ID
|
|
33817
|
+
* @param {*} [options] Override http request option.
|
|
33818
|
+
* @throws {RequiredError}
|
|
33819
|
+
*/
|
|
33820
|
+
listOrganizationCustomRoles: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33821
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
33822
|
+
assertParamExists('listOrganizationCustomRoles', 'organizationId', organizationId)
|
|
33823
|
+
const localVarPath = `/organization/{organizationId}/customRole`
|
|
33824
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
33825
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33826
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33827
|
+
let baseOptions;
|
|
33828
|
+
if (configuration) {
|
|
33829
|
+
baseOptions = configuration.baseOptions;
|
|
33830
|
+
}
|
|
33831
|
+
|
|
33832
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
33833
|
+
const localVarHeaderParameter = {} as any;
|
|
33834
|
+
const localVarQueryParameter = {} as any;
|
|
33835
|
+
|
|
33836
|
+
// authentication bearerAuth required
|
|
33837
|
+
// http bearer authentication required
|
|
33838
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
33839
|
+
|
|
33840
|
+
|
|
33841
|
+
|
|
33842
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33843
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33844
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33845
|
+
|
|
33846
|
+
return {
|
|
33847
|
+
url: toPathString(localVarUrlObj),
|
|
33848
|
+
options: localVarRequestOptions,
|
|
33849
|
+
};
|
|
33850
|
+
},
|
|
33851
|
+
}
|
|
33852
|
+
};
|
|
33853
|
+
|
|
33854
|
+
/**
|
|
33855
|
+
* OrganizationCustomRoleApi - functional programming interface
|
|
33856
|
+
* @export
|
|
33857
|
+
*/
|
|
33858
|
+
export const OrganizationCustomRoleApiFp = function(configuration?: Configuration) {
|
|
33859
|
+
const localVarAxiosParamCreator = OrganizationCustomRoleApiAxiosParamCreator(configuration)
|
|
33860
|
+
return {
|
|
33861
|
+
/**
|
|
33862
|
+
* Create an organization custom role
|
|
33863
|
+
* @summary Create an organization custom role
|
|
33864
|
+
* @param {string} organizationId Organization ID
|
|
33865
|
+
* @param {OrganizationCustomRoleCreateRequest} [organizationCustomRoleCreateRequest]
|
|
33866
|
+
* @param {*} [options] Override http request option.
|
|
33867
|
+
* @throws {RequiredError}
|
|
33868
|
+
*/
|
|
33869
|
+
async createOrganizationCustomRole(organizationId: string, organizationCustomRoleCreateRequest?: OrganizationCustomRoleCreateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationCustomRole>> {
|
|
33870
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganizationCustomRole(organizationId, organizationCustomRoleCreateRequest, options);
|
|
33871
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
33872
|
+
},
|
|
33873
|
+
/**
|
|
33874
|
+
* Delete organization custom role
|
|
33875
|
+
* @summary Delete organization custom role
|
|
33876
|
+
* @param {string} organizationId Organization ID
|
|
33877
|
+
* @param {*} [options] Override http request option.
|
|
33878
|
+
* @throws {RequiredError}
|
|
33879
|
+
*/
|
|
33880
|
+
async deleteOrganizationCustomRole(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
33881
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganizationCustomRole(organizationId, options);
|
|
33882
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
33883
|
+
},
|
|
33884
|
+
/**
|
|
33885
|
+
* Edit an organization custom role
|
|
33886
|
+
* @summary Edit an organization custom role
|
|
33887
|
+
* @param {string} organizationId Organization ID
|
|
33888
|
+
* @param {OrganizationCustomRoleUpdateRequest} [organizationCustomRoleUpdateRequest]
|
|
33889
|
+
* @param {*} [options] Override http request option.
|
|
33890
|
+
* @throws {RequiredError}
|
|
33891
|
+
*/
|
|
33892
|
+
async editOrganizationCustomRole(organizationId: string, organizationCustomRoleUpdateRequest?: OrganizationCustomRoleUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationCustomRole>> {
|
|
33893
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.editOrganizationCustomRole(organizationId, organizationCustomRoleUpdateRequest, options);
|
|
33894
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
33895
|
+
},
|
|
33896
|
+
/**
|
|
33897
|
+
* Get an organization custom role
|
|
33898
|
+
* @summary Get an organization custom role
|
|
33899
|
+
* @param {string} organizationId Organization ID
|
|
33900
|
+
* @param {string} customRoleId Custom Role ID
|
|
33901
|
+
* @param {*} [options] Override http request option.
|
|
33902
|
+
* @throws {RequiredError}
|
|
33903
|
+
*/
|
|
33904
|
+
async getOrganizationCustomRole(organizationId: string, customRoleId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationCustomRole>> {
|
|
33905
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationCustomRole(organizationId, customRoleId, options);
|
|
33906
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
33907
|
+
},
|
|
33908
|
+
/**
|
|
33909
|
+
* List organization custom roles
|
|
33910
|
+
* @summary List organization custom roles
|
|
33911
|
+
* @param {string} organizationId Organization ID
|
|
33912
|
+
* @param {*} [options] Override http request option.
|
|
33913
|
+
* @throws {RequiredError}
|
|
33914
|
+
*/
|
|
33915
|
+
async listOrganizationCustomRoles(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationCustomRoleList>> {
|
|
33916
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizationCustomRoles(organizationId, options);
|
|
33917
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
33918
|
+
},
|
|
33919
|
+
}
|
|
33920
|
+
};
|
|
33921
|
+
|
|
33922
|
+
/**
|
|
33923
|
+
* OrganizationCustomRoleApi - factory interface
|
|
33924
|
+
* @export
|
|
33925
|
+
*/
|
|
33926
|
+
export const OrganizationCustomRoleApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
33927
|
+
const localVarFp = OrganizationCustomRoleApiFp(configuration)
|
|
33928
|
+
return {
|
|
33929
|
+
/**
|
|
33930
|
+
* Create an organization custom role
|
|
33931
|
+
* @summary Create an organization custom role
|
|
33932
|
+
* @param {string} organizationId Organization ID
|
|
33933
|
+
* @param {OrganizationCustomRoleCreateRequest} [organizationCustomRoleCreateRequest]
|
|
33934
|
+
* @param {*} [options] Override http request option.
|
|
33935
|
+
* @throws {RequiredError}
|
|
33936
|
+
*/
|
|
33937
|
+
createOrganizationCustomRole(organizationId: string, organizationCustomRoleCreateRequest?: OrganizationCustomRoleCreateRequest, options?: any): AxiosPromise<OrganizationCustomRole> {
|
|
33938
|
+
return localVarFp.createOrganizationCustomRole(organizationId, organizationCustomRoleCreateRequest, options).then((request) => request(axios, basePath));
|
|
33939
|
+
},
|
|
33940
|
+
/**
|
|
33941
|
+
* Delete organization custom role
|
|
33942
|
+
* @summary Delete organization custom role
|
|
33943
|
+
* @param {string} organizationId Organization ID
|
|
33944
|
+
* @param {*} [options] Override http request option.
|
|
33945
|
+
* @throws {RequiredError}
|
|
33946
|
+
*/
|
|
33947
|
+
deleteOrganizationCustomRole(organizationId: string, options?: any): AxiosPromise<void> {
|
|
33948
|
+
return localVarFp.deleteOrganizationCustomRole(organizationId, options).then((request) => request(axios, basePath));
|
|
33949
|
+
},
|
|
33950
|
+
/**
|
|
33951
|
+
* Edit an organization custom role
|
|
33952
|
+
* @summary Edit an organization custom role
|
|
33953
|
+
* @param {string} organizationId Organization ID
|
|
33954
|
+
* @param {OrganizationCustomRoleUpdateRequest} [organizationCustomRoleUpdateRequest]
|
|
33955
|
+
* @param {*} [options] Override http request option.
|
|
33956
|
+
* @throws {RequiredError}
|
|
33957
|
+
*/
|
|
33958
|
+
editOrganizationCustomRole(organizationId: string, organizationCustomRoleUpdateRequest?: OrganizationCustomRoleUpdateRequest, options?: any): AxiosPromise<OrganizationCustomRole> {
|
|
33959
|
+
return localVarFp.editOrganizationCustomRole(organizationId, organizationCustomRoleUpdateRequest, options).then((request) => request(axios, basePath));
|
|
33960
|
+
},
|
|
33961
|
+
/**
|
|
33962
|
+
* Get an organization custom role
|
|
33963
|
+
* @summary Get an organization custom role
|
|
33964
|
+
* @param {string} organizationId Organization ID
|
|
33965
|
+
* @param {string} customRoleId Custom Role ID
|
|
33966
|
+
* @param {*} [options] Override http request option.
|
|
33967
|
+
* @throws {RequiredError}
|
|
33968
|
+
*/
|
|
33969
|
+
getOrganizationCustomRole(organizationId: string, customRoleId: string, options?: any): AxiosPromise<OrganizationCustomRole> {
|
|
33970
|
+
return localVarFp.getOrganizationCustomRole(organizationId, customRoleId, options).then((request) => request(axios, basePath));
|
|
33971
|
+
},
|
|
33972
|
+
/**
|
|
33973
|
+
* List organization custom roles
|
|
33974
|
+
* @summary List organization custom roles
|
|
33975
|
+
* @param {string} organizationId Organization ID
|
|
33976
|
+
* @param {*} [options] Override http request option.
|
|
33977
|
+
* @throws {RequiredError}
|
|
33978
|
+
*/
|
|
33979
|
+
listOrganizationCustomRoles(organizationId: string, options?: any): AxiosPromise<OrganizationCustomRoleList> {
|
|
33980
|
+
return localVarFp.listOrganizationCustomRoles(organizationId, options).then((request) => request(axios, basePath));
|
|
33981
|
+
},
|
|
33982
|
+
};
|
|
33983
|
+
};
|
|
33984
|
+
|
|
33985
|
+
/**
|
|
33986
|
+
* OrganizationCustomRoleApi - object-oriented interface
|
|
33987
|
+
* @export
|
|
33988
|
+
* @class OrganizationCustomRoleApi
|
|
33989
|
+
* @extends {BaseAPI}
|
|
33990
|
+
*/
|
|
33991
|
+
export class OrganizationCustomRoleApi extends BaseAPI {
|
|
33992
|
+
/**
|
|
33993
|
+
* Create an organization custom role
|
|
33994
|
+
* @summary Create an organization custom role
|
|
33995
|
+
* @param {string} organizationId Organization ID
|
|
33996
|
+
* @param {OrganizationCustomRoleCreateRequest} [organizationCustomRoleCreateRequest]
|
|
33997
|
+
* @param {*} [options] Override http request option.
|
|
33998
|
+
* @throws {RequiredError}
|
|
33999
|
+
* @memberof OrganizationCustomRoleApi
|
|
34000
|
+
*/
|
|
34001
|
+
public createOrganizationCustomRole(organizationId: string, organizationCustomRoleCreateRequest?: OrganizationCustomRoleCreateRequest, options?: AxiosRequestConfig) {
|
|
34002
|
+
return OrganizationCustomRoleApiFp(this.configuration).createOrganizationCustomRole(organizationId, organizationCustomRoleCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
34003
|
+
}
|
|
34004
|
+
|
|
34005
|
+
/**
|
|
34006
|
+
* Delete organization custom role
|
|
34007
|
+
* @summary Delete organization custom role
|
|
34008
|
+
* @param {string} organizationId Organization ID
|
|
34009
|
+
* @param {*} [options] Override http request option.
|
|
34010
|
+
* @throws {RequiredError}
|
|
34011
|
+
* @memberof OrganizationCustomRoleApi
|
|
34012
|
+
*/
|
|
34013
|
+
public deleteOrganizationCustomRole(organizationId: string, options?: AxiosRequestConfig) {
|
|
34014
|
+
return OrganizationCustomRoleApiFp(this.configuration).deleteOrganizationCustomRole(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
34015
|
+
}
|
|
34016
|
+
|
|
34017
|
+
/**
|
|
34018
|
+
* Edit an organization custom role
|
|
34019
|
+
* @summary Edit an organization custom role
|
|
34020
|
+
* @param {string} organizationId Organization ID
|
|
34021
|
+
* @param {OrganizationCustomRoleUpdateRequest} [organizationCustomRoleUpdateRequest]
|
|
34022
|
+
* @param {*} [options] Override http request option.
|
|
34023
|
+
* @throws {RequiredError}
|
|
34024
|
+
* @memberof OrganizationCustomRoleApi
|
|
34025
|
+
*/
|
|
34026
|
+
public editOrganizationCustomRole(organizationId: string, organizationCustomRoleUpdateRequest?: OrganizationCustomRoleUpdateRequest, options?: AxiosRequestConfig) {
|
|
34027
|
+
return OrganizationCustomRoleApiFp(this.configuration).editOrganizationCustomRole(organizationId, organizationCustomRoleUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
34028
|
+
}
|
|
34029
|
+
|
|
34030
|
+
/**
|
|
34031
|
+
* Get an organization custom role
|
|
34032
|
+
* @summary Get an organization custom role
|
|
34033
|
+
* @param {string} organizationId Organization ID
|
|
34034
|
+
* @param {string} customRoleId Custom Role ID
|
|
34035
|
+
* @param {*} [options] Override http request option.
|
|
34036
|
+
* @throws {RequiredError}
|
|
34037
|
+
* @memberof OrganizationCustomRoleApi
|
|
34038
|
+
*/
|
|
34039
|
+
public getOrganizationCustomRole(organizationId: string, customRoleId: string, options?: AxiosRequestConfig) {
|
|
34040
|
+
return OrganizationCustomRoleApiFp(this.configuration).getOrganizationCustomRole(organizationId, customRoleId, options).then((request) => request(this.axios, this.basePath));
|
|
34041
|
+
}
|
|
34042
|
+
|
|
34043
|
+
/**
|
|
34044
|
+
* List organization custom roles
|
|
34045
|
+
* @summary List organization custom roles
|
|
34046
|
+
* @param {string} organizationId Organization ID
|
|
34047
|
+
* @param {*} [options] Override http request option.
|
|
34048
|
+
* @throws {RequiredError}
|
|
34049
|
+
* @memberof OrganizationCustomRoleApi
|
|
34050
|
+
*/
|
|
34051
|
+
public listOrganizationCustomRoles(organizationId: string, options?: AxiosRequestConfig) {
|
|
34052
|
+
return OrganizationCustomRoleApiFp(this.configuration).listOrganizationCustomRoles(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
34053
|
+
}
|
|
34054
|
+
}
|
|
34055
|
+
|
|
34056
|
+
|
|
34057
|
+
/**
|
|
34058
|
+
* OrganizationMainCallsApi - axios parameter creator
|
|
34059
|
+
* @export
|
|
34060
|
+
*/
|
|
34061
|
+
export const OrganizationMainCallsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34062
|
+
return {
|
|
34063
|
+
/**
|
|
34064
|
+
*
|
|
34065
|
+
* @summary Create an organization
|
|
34066
|
+
* @param {OrganizationRequest} [organizationRequest]
|
|
34067
|
+
* @param {*} [options] Override http request option.
|
|
34068
|
+
* @throws {RequiredError}
|
|
34069
|
+
*/
|
|
34070
|
+
createOrganization: async (organizationRequest?: OrganizationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
34071
|
+
const localVarPath = `/organization`;
|
|
34072
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34073
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34074
|
+
let baseOptions;
|
|
34075
|
+
if (configuration) {
|
|
34076
|
+
baseOptions = configuration.baseOptions;
|
|
34077
|
+
}
|
|
34078
|
+
|
|
34079
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
34080
|
+
const localVarHeaderParameter = {} as any;
|
|
34081
|
+
const localVarQueryParameter = {} as any;
|
|
34082
|
+
|
|
34083
|
+
// authentication bearerAuth required
|
|
34084
|
+
// http bearer authentication required
|
|
34085
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
34086
|
+
|
|
34087
|
+
|
|
34088
|
+
|
|
34089
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
34090
|
+
|
|
34091
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34092
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34093
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
34094
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationRequest, localVarRequestOptions, configuration)
|
|
34095
|
+
|
|
34096
|
+
return {
|
|
34097
|
+
url: toPathString(localVarUrlObj),
|
|
34098
|
+
options: localVarRequestOptions,
|
|
34099
|
+
};
|
|
34100
|
+
},
|
|
34101
|
+
/**
|
|
34102
|
+
* To delete an organization you must have the admin permission
|
|
34103
|
+
* @summary Delete an organization
|
|
34104
|
+
* @param {string} organizationId Organization ID
|
|
34105
|
+
* @param {*} [options] Override http request option.
|
|
34106
|
+
* @throws {RequiredError}
|
|
34107
|
+
*/
|
|
34108
|
+
deleteOrganization: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
34109
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
34110
|
+
assertParamExists('deleteOrganization', 'organizationId', organizationId)
|
|
34111
|
+
const localVarPath = `/organization/{organizationId}`
|
|
34112
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
34113
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34114
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34115
|
+
let baseOptions;
|
|
34116
|
+
if (configuration) {
|
|
34117
|
+
baseOptions = configuration.baseOptions;
|
|
34118
|
+
}
|
|
34119
|
+
|
|
34120
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
34121
|
+
const localVarHeaderParameter = {} as any;
|
|
34122
|
+
const localVarQueryParameter = {} as any;
|
|
34123
|
+
|
|
34124
|
+
// authentication bearerAuth required
|
|
34125
|
+
// http bearer authentication required
|
|
34126
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
34127
|
+
|
|
34128
|
+
|
|
34129
|
+
|
|
34130
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34131
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34132
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
34133
|
+
|
|
34134
|
+
return {
|
|
34135
|
+
url: toPathString(localVarUrlObj),
|
|
34136
|
+
options: localVarRequestOptions,
|
|
34137
|
+
};
|
|
34138
|
+
},
|
|
34139
|
+
/**
|
|
34140
|
+
* To edit an organization you must have the admin permission
|
|
34141
|
+
* @summary Edit an organization
|
|
34142
|
+
* @param {string} organizationId Organization ID
|
|
34143
|
+
* @param {OrganizationEditRequest} [organizationEditRequest]
|
|
34144
|
+
* @param {*} [options] Override http request option.
|
|
34145
|
+
* @throws {RequiredError}
|
|
34146
|
+
*/
|
|
34147
|
+
editOrganization: async (organizationId: string, organizationEditRequest?: OrganizationEditRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
34148
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
34149
|
+
assertParamExists('editOrganization', 'organizationId', organizationId)
|
|
34150
|
+
const localVarPath = `/organization/{organizationId}`
|
|
34151
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
34152
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34153
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34154
|
+
let baseOptions;
|
|
34155
|
+
if (configuration) {
|
|
34156
|
+
baseOptions = configuration.baseOptions;
|
|
34157
|
+
}
|
|
34158
|
+
|
|
34159
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
34160
|
+
const localVarHeaderParameter = {} as any;
|
|
34161
|
+
const localVarQueryParameter = {} as any;
|
|
34162
|
+
|
|
34163
|
+
// authentication bearerAuth required
|
|
34164
|
+
// http bearer authentication required
|
|
34165
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
34166
|
+
|
|
34167
|
+
|
|
34168
|
+
|
|
34169
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
34170
|
+
|
|
34171
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34172
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34173
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
34174
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationEditRequest, localVarRequestOptions, configuration)
|
|
34175
|
+
|
|
34176
|
+
return {
|
|
34177
|
+
url: toPathString(localVarUrlObj),
|
|
34178
|
+
options: localVarRequestOptions,
|
|
34179
|
+
};
|
|
34180
|
+
},
|
|
34181
|
+
/**
|
|
34182
|
+
*
|
|
34183
|
+
* @summary Get organization by ID
|
|
34184
|
+
* @param {string} organizationId Organization ID
|
|
34185
|
+
* @param {*} [options] Override http request option.
|
|
34186
|
+
* @throws {RequiredError}
|
|
34187
|
+
*/
|
|
34188
|
+
getOrganization: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
34189
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
34190
|
+
assertParamExists('getOrganization', 'organizationId', organizationId)
|
|
34191
|
+
const localVarPath = `/organization/{organizationId}`
|
|
34192
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
33265
34193
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33266
34194
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33267
34195
|
let baseOptions;
|
|
@@ -33313,6 +34241,44 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
|
|
|
33313
34241
|
|
|
33314
34242
|
|
|
33315
34243
|
|
|
34244
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34245
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34246
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
34247
|
+
|
|
34248
|
+
return {
|
|
34249
|
+
url: toPathString(localVarUrlObj),
|
|
34250
|
+
options: localVarRequestOptions,
|
|
34251
|
+
};
|
|
34252
|
+
},
|
|
34253
|
+
/**
|
|
34254
|
+
* List organization available roles
|
|
34255
|
+
* @summary List organization available roles
|
|
34256
|
+
* @param {string} organizationId Organization ID
|
|
34257
|
+
* @param {*} [options] Override http request option.
|
|
34258
|
+
* @throws {RequiredError}
|
|
34259
|
+
*/
|
|
34260
|
+
listOrganizationAvailableRoles: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
34261
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
34262
|
+
assertParamExists('listOrganizationAvailableRoles', 'organizationId', organizationId)
|
|
34263
|
+
const localVarPath = `/organization/{organizationId}/availableRole`
|
|
34264
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
34265
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34266
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34267
|
+
let baseOptions;
|
|
34268
|
+
if (configuration) {
|
|
34269
|
+
baseOptions = configuration.baseOptions;
|
|
34270
|
+
}
|
|
34271
|
+
|
|
34272
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
34273
|
+
const localVarHeaderParameter = {} as any;
|
|
34274
|
+
const localVarQueryParameter = {} as any;
|
|
34275
|
+
|
|
34276
|
+
// authentication bearerAuth required
|
|
34277
|
+
// http bearer authentication required
|
|
34278
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
34279
|
+
|
|
34280
|
+
|
|
34281
|
+
|
|
33316
34282
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33317
34283
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33318
34284
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -33387,6 +34353,17 @@ export const OrganizationMainCallsApiFp = function(configuration?: Configuration
|
|
|
33387
34353
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganization(options);
|
|
33388
34354
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
33389
34355
|
},
|
|
34356
|
+
/**
|
|
34357
|
+
* List organization available roles
|
|
34358
|
+
* @summary List organization available roles
|
|
34359
|
+
* @param {string} organizationId Organization ID
|
|
34360
|
+
* @param {*} [options] Override http request option.
|
|
34361
|
+
* @throws {RequiredError}
|
|
34362
|
+
*/
|
|
34363
|
+
async listOrganizationAvailableRoles(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationAvailableRoleList>> {
|
|
34364
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizationAvailableRoles(organizationId, options);
|
|
34365
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
34366
|
+
},
|
|
33390
34367
|
}
|
|
33391
34368
|
};
|
|
33392
34369
|
|
|
@@ -33447,6 +34424,16 @@ export const OrganizationMainCallsApiFactory = function (configuration?: Configu
|
|
|
33447
34424
|
listOrganization(options?: any): AxiosPromise<OrganizationResponseList> {
|
|
33448
34425
|
return localVarFp.listOrganization(options).then((request) => request(axios, basePath));
|
|
33449
34426
|
},
|
|
34427
|
+
/**
|
|
34428
|
+
* List organization available roles
|
|
34429
|
+
* @summary List organization available roles
|
|
34430
|
+
* @param {string} organizationId Organization ID
|
|
34431
|
+
* @param {*} [options] Override http request option.
|
|
34432
|
+
* @throws {RequiredError}
|
|
34433
|
+
*/
|
|
34434
|
+
listOrganizationAvailableRoles(organizationId: string, options?: any): AxiosPromise<OrganizationAvailableRoleList> {
|
|
34435
|
+
return localVarFp.listOrganizationAvailableRoles(organizationId, options).then((request) => request(axios, basePath));
|
|
34436
|
+
},
|
|
33450
34437
|
};
|
|
33451
34438
|
};
|
|
33452
34439
|
|
|
@@ -33516,6 +34503,18 @@ export class OrganizationMainCallsApi extends BaseAPI {
|
|
|
33516
34503
|
public listOrganization(options?: AxiosRequestConfig) {
|
|
33517
34504
|
return OrganizationMainCallsApiFp(this.configuration).listOrganization(options).then((request) => request(this.axios, this.basePath));
|
|
33518
34505
|
}
|
|
34506
|
+
|
|
34507
|
+
/**
|
|
34508
|
+
* List organization available roles
|
|
34509
|
+
* @summary List organization available roles
|
|
34510
|
+
* @param {string} organizationId Organization ID
|
|
34511
|
+
* @param {*} [options] Override http request option.
|
|
34512
|
+
* @throws {RequiredError}
|
|
34513
|
+
* @memberof OrganizationMainCallsApi
|
|
34514
|
+
*/
|
|
34515
|
+
public listOrganizationAvailableRoles(organizationId: string, options?: AxiosRequestConfig) {
|
|
34516
|
+
return OrganizationMainCallsApiFp(this.configuration).listOrganizationAvailableRoles(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
34517
|
+
}
|
|
33519
34518
|
}
|
|
33520
34519
|
|
|
33521
34520
|
|