@quantcdn/quant-client 4.36.0 → 4.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +974 -15
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +804 -15
- package/dist/api.js +322 -11
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +804 -15
- package/dist/esm/api.js +312 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* QuantCDN API
|
|
5
5
|
* Unified API for QuantCDN Admin and QuantCloud Platform services ## Rate limits - **Per token.** Each API token has a limit per organisation: by default 240 requests per minute. The limit counts after the token is validated, so tokens that share an IP address (for example Quant Cloud apps and CI runners) do not share a limit. An organisation can have a different limit (set per organisation or by subscription plan); contact Quant support to change it. - **Unauthenticated requests.** Requests that end without a valid token (no token, an invalid or expired token, public routes) have a coarse limit per client IP address: by default 600 requests per minute. A request with a valid token never counts against it and is never refused by it. A request with a valid token that is refused before the per-token limit runs (for example an organisation the token cannot use) still counts against the token. - **KV per project.** Some KV operations also have a limit per project, shared by every token: kv-admin 10 requests per minute (index create, delete and resume; upgrade; export create and resume; ledger declare, raise and drop), kv-erase 30 (ledger subject preview and shred), kv-verify 6 (ledger verify). - **Responses.** Over a limit the answer is 429 with a Retry-After header (seconds). KV routes answer the V2KvError body with code RATE_LIMITED and retryable true; other routes answer {\"message\": \"Too Many Attempts.\"}. Rate-limited routes send RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (IETF draft; Reset is seconds until the window resets) and X-RateLimit-Limit and X-RateLimit-Remaining on the responses of requests that reach a limiter, and X-RateLimit-Reset (Unix time) on a 429. A request refused before a limiter runs (for example a 401, 403 or 404 from an earlier check) can come back without these headers. When two limits apply, the headers describe the one with fewer requests left. Wait Retry-After seconds, then send the request again.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.38.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2479,6 +2479,407 @@ export interface ChatWithAIAgentRequest {
|
|
|
2479
2479
|
*/
|
|
2480
2480
|
'maxToolIterations'?: number;
|
|
2481
2481
|
}
|
|
2482
|
+
/**
|
|
2483
|
+
* The scope to delete: either {\"all\": true} alone (the whole cache of the pool), or repoId with optionally ref, version and key, where a field needs every field before it (repoId, ref, version, key). An empty object is refused.
|
|
2484
|
+
* @export
|
|
2485
|
+
* @interface CiCacheDeleteRequest
|
|
2486
|
+
*/
|
|
2487
|
+
export interface CiCacheDeleteRequest {
|
|
2488
|
+
/**
|
|
2489
|
+
* true clears the whole cache of the pool. Must be the only field.
|
|
2490
|
+
* @type {boolean}
|
|
2491
|
+
* @memberof CiCacheDeleteRequest
|
|
2492
|
+
*/
|
|
2493
|
+
'all'?: boolean;
|
|
2494
|
+
/**
|
|
2495
|
+
* GitHub repository id. A digit string is also accepted.
|
|
2496
|
+
* @type {number}
|
|
2497
|
+
* @memberof CiCacheDeleteRequest
|
|
2498
|
+
*/
|
|
2499
|
+
'repoId'?: number;
|
|
2500
|
+
/**
|
|
2501
|
+
* Git ref; starts with refs/, a valid git ref name without %.
|
|
2502
|
+
* @type {string}
|
|
2503
|
+
* @memberof CiCacheDeleteRequest
|
|
2504
|
+
*/
|
|
2505
|
+
'ref'?: string;
|
|
2506
|
+
/**
|
|
2507
|
+
*
|
|
2508
|
+
* @type {string}
|
|
2509
|
+
* @memberof CiCacheDeleteRequest
|
|
2510
|
+
*/
|
|
2511
|
+
'version'?: string;
|
|
2512
|
+
/**
|
|
2513
|
+
* The exact cache key. Deletes only that entry, not keys that start with it.
|
|
2514
|
+
* @type {string}
|
|
2515
|
+
* @memberof CiCacheDeleteRequest
|
|
2516
|
+
*/
|
|
2517
|
+
'key'?: string;
|
|
2518
|
+
}
|
|
2519
|
+
/**
|
|
2520
|
+
*
|
|
2521
|
+
* @export
|
|
2522
|
+
* @interface CiCacheDeleteResult
|
|
2523
|
+
*/
|
|
2524
|
+
export interface CiCacheDeleteResult {
|
|
2525
|
+
/**
|
|
2526
|
+
*
|
|
2527
|
+
* @type {number}
|
|
2528
|
+
* @memberof CiCacheDeleteResult
|
|
2529
|
+
*/
|
|
2530
|
+
'deletedEntries': number;
|
|
2531
|
+
/**
|
|
2532
|
+
*
|
|
2533
|
+
* @type {number}
|
|
2534
|
+
* @memberof CiCacheDeleteResult
|
|
2535
|
+
*/
|
|
2536
|
+
'deletedBytes': number;
|
|
2537
|
+
/**
|
|
2538
|
+
* false when the delete stopped at its time limit (about 12 seconds), a storage call failed or timed out, or storage refused some objects. false means: send the same request again until it is true. If a call returns false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects.
|
|
2539
|
+
* @type {boolean}
|
|
2540
|
+
* @memberof CiCacheDeleteResult
|
|
2541
|
+
*/
|
|
2542
|
+
'complete': boolean;
|
|
2543
|
+
}
|
|
2544
|
+
/**
|
|
2545
|
+
*
|
|
2546
|
+
* @export
|
|
2547
|
+
* @interface CiCacheEntry
|
|
2548
|
+
*/
|
|
2549
|
+
export interface CiCacheEntry {
|
|
2550
|
+
/**
|
|
2551
|
+
* GitHub repository id.
|
|
2552
|
+
* @type {number}
|
|
2553
|
+
* @memberof CiCacheEntry
|
|
2554
|
+
*/
|
|
2555
|
+
'repoId': number;
|
|
2556
|
+
/**
|
|
2557
|
+
* owner/name recorded for repoId, or null when none is recorded.
|
|
2558
|
+
* @type {string}
|
|
2559
|
+
* @memberof CiCacheEntry
|
|
2560
|
+
*/
|
|
2561
|
+
'repo': string | null;
|
|
2562
|
+
/**
|
|
2563
|
+
* The git ref that saved the entry. A pull request saves to refs/pull/<number>/merge.
|
|
2564
|
+
* @type {string}
|
|
2565
|
+
* @memberof CiCacheEntry
|
|
2566
|
+
*/
|
|
2567
|
+
'ref': string;
|
|
2568
|
+
/**
|
|
2569
|
+
* The actions/cache key.
|
|
2570
|
+
* @type {string}
|
|
2571
|
+
* @memberof CiCacheEntry
|
|
2572
|
+
*/
|
|
2573
|
+
'key': string;
|
|
2574
|
+
/**
|
|
2575
|
+
* The cache version (a hash of the paths and compression the job used).
|
|
2576
|
+
* @type {string}
|
|
2577
|
+
* @memberof CiCacheEntry
|
|
2578
|
+
*/
|
|
2579
|
+
'version': string;
|
|
2580
|
+
/**
|
|
2581
|
+
*
|
|
2582
|
+
* @type {number}
|
|
2583
|
+
* @memberof CiCacheEntry
|
|
2584
|
+
*/
|
|
2585
|
+
'sizeBytes': number;
|
|
2586
|
+
/**
|
|
2587
|
+
* When the entry was saved. Entries expire 14 days after they are saved.
|
|
2588
|
+
* @type {string}
|
|
2589
|
+
* @memberof CiCacheEntry
|
|
2590
|
+
*/
|
|
2591
|
+
'createdAt': string | null;
|
|
2592
|
+
}
|
|
2593
|
+
/**
|
|
2594
|
+
*
|
|
2595
|
+
* @export
|
|
2596
|
+
* @interface CiCacheList
|
|
2597
|
+
*/
|
|
2598
|
+
export interface CiCacheList {
|
|
2599
|
+
/**
|
|
2600
|
+
* Size of every entry that matches the filter (partial when totalsComplete is false).
|
|
2601
|
+
* @type {number}
|
|
2602
|
+
* @memberof CiCacheList
|
|
2603
|
+
*/
|
|
2604
|
+
'totalBytes': number;
|
|
2605
|
+
/**
|
|
2606
|
+
* Number of entries that match the filter (partial when totalsComplete is false).
|
|
2607
|
+
* @type {number}
|
|
2608
|
+
* @memberof CiCacheList
|
|
2609
|
+
*/
|
|
2610
|
+
'entryCount': number;
|
|
2611
|
+
/**
|
|
2612
|
+
* false when the count stopped at its time limit (about 10 seconds) on a very large cache; totalBytes and entryCount then cover only the part counted.
|
|
2613
|
+
* @type {boolean}
|
|
2614
|
+
* @memberof CiCacheList
|
|
2615
|
+
*/
|
|
2616
|
+
'totalsComplete': boolean;
|
|
2617
|
+
/**
|
|
2618
|
+
*
|
|
2619
|
+
* @type {Array<CiCacheEntry>}
|
|
2620
|
+
* @memberof CiCacheList
|
|
2621
|
+
*/
|
|
2622
|
+
'entries': Array<CiCacheEntry>;
|
|
2623
|
+
/**
|
|
2624
|
+
* Opaque. Pass as cursor, with the same filter, for the next page; null on the last page.
|
|
2625
|
+
* @type {string}
|
|
2626
|
+
* @memberof CiCacheList
|
|
2627
|
+
*/
|
|
2628
|
+
'nextCursor': string | null;
|
|
2629
|
+
}
|
|
2630
|
+
/**
|
|
2631
|
+
*
|
|
2632
|
+
* @export
|
|
2633
|
+
* @interface CiCacheStats
|
|
2634
|
+
*/
|
|
2635
|
+
export interface CiCacheStats {
|
|
2636
|
+
/**
|
|
2637
|
+
*
|
|
2638
|
+
* @type {number}
|
|
2639
|
+
* @memberof CiCacheStats
|
|
2640
|
+
*/
|
|
2641
|
+
'days': number;
|
|
2642
|
+
/**
|
|
2643
|
+
* Cache lookups that found an entry.
|
|
2644
|
+
* @type {number}
|
|
2645
|
+
* @memberof CiCacheStats
|
|
2646
|
+
*/
|
|
2647
|
+
'hits': number;
|
|
2648
|
+
/**
|
|
2649
|
+
* Cache lookups that found no entry.
|
|
2650
|
+
* @type {number}
|
|
2651
|
+
* @memberof CiCacheStats
|
|
2652
|
+
*/
|
|
2653
|
+
'misses': number;
|
|
2654
|
+
/**
|
|
2655
|
+
* Entries saved.
|
|
2656
|
+
* @type {number}
|
|
2657
|
+
* @memberof CiCacheStats
|
|
2658
|
+
*/
|
|
2659
|
+
'saves': number;
|
|
2660
|
+
/**
|
|
2661
|
+
* Bytes saved to the cache.
|
|
2662
|
+
* @type {number}
|
|
2663
|
+
* @memberof CiCacheStats
|
|
2664
|
+
*/
|
|
2665
|
+
'bytesIn': number;
|
|
2666
|
+
/**
|
|
2667
|
+
* Bytes restored from the cache.
|
|
2668
|
+
* @type {number}
|
|
2669
|
+
* @memberof CiCacheStats
|
|
2670
|
+
*/
|
|
2671
|
+
'bytesOut': number;
|
|
2672
|
+
/**
|
|
2673
|
+
* hits / (hits + misses); null when both are 0.
|
|
2674
|
+
* @type {number}
|
|
2675
|
+
* @memberof CiCacheStats
|
|
2676
|
+
*/
|
|
2677
|
+
'hitRate': number | null;
|
|
2678
|
+
}
|
|
2679
|
+
/**
|
|
2680
|
+
* The config of a ci-runner-pool resource. connection and alerts are set by Quant: they are ignored on input and kept on update.
|
|
2681
|
+
* @export
|
|
2682
|
+
* @interface CiRunnerPoolConfig
|
|
2683
|
+
*/
|
|
2684
|
+
export interface CiRunnerPoolConfig {
|
|
2685
|
+
/**
|
|
2686
|
+
* Hard cap on concurrent jobs: small 2, medium 4, large 8. When the pool is full, jobs wait.
|
|
2687
|
+
* @type {string}
|
|
2688
|
+
* @memberof CiRunnerPoolConfig
|
|
2689
|
+
*/
|
|
2690
|
+
'tier': CiRunnerPoolConfigTierEnum;
|
|
2691
|
+
/**
|
|
2692
|
+
*
|
|
2693
|
+
* @type {Set<string>}
|
|
2694
|
+
* @memberof CiRunnerPoolConfig
|
|
2695
|
+
*/
|
|
2696
|
+
'architectures'?: Set<CiRunnerPoolConfigArchitecturesEnum>;
|
|
2697
|
+
/**
|
|
2698
|
+
*
|
|
2699
|
+
* @type {string}
|
|
2700
|
+
* @memberof CiRunnerPoolConfig
|
|
2701
|
+
*/
|
|
2702
|
+
'networkMode'?: CiRunnerPoolConfigNetworkModeEnum;
|
|
2703
|
+
/**
|
|
2704
|
+
* Domains allowed when networkMode is restricted. Wildcard only as a leading *. label.
|
|
2705
|
+
* @type {Array<string>}
|
|
2706
|
+
* @memberof CiRunnerPoolConfig
|
|
2707
|
+
*/
|
|
2708
|
+
'egressAllowlist'?: Array<string>;
|
|
2709
|
+
/**
|
|
2710
|
+
*
|
|
2711
|
+
* @type {number}
|
|
2712
|
+
* @memberof CiRunnerPoolConfig
|
|
2713
|
+
*/
|
|
2714
|
+
'idleTimeoutMinutes'?: number;
|
|
2715
|
+
/**
|
|
2716
|
+
*
|
|
2717
|
+
* @type {CiRunnerPoolConfigBusinessHoursWarm}
|
|
2718
|
+
* @memberof CiRunnerPoolConfig
|
|
2719
|
+
*/
|
|
2720
|
+
'businessHoursWarm'?: CiRunnerPoolConfigBusinessHoursWarm;
|
|
2721
|
+
/**
|
|
2722
|
+
*
|
|
2723
|
+
* @type {CiRunnerPoolConfigConnection}
|
|
2724
|
+
* @memberof CiRunnerPoolConfig
|
|
2725
|
+
*/
|
|
2726
|
+
'connection'?: CiRunnerPoolConfigConnection;
|
|
2727
|
+
/**
|
|
2728
|
+
* Where the pool\'s GitHub Actions build cache may live. au-only keeps cache data in Australia; if the pool\'s cache is unavailable, jobs run without a cache. allow-github lets jobs use GitHub\'s cache when the pool\'s cache is unavailable. When not set, a pool that accepts public repositories uses allow-github and every other pool uses au-only. A change applies to the next job each runner machine starts.
|
|
2729
|
+
* @type {string}
|
|
2730
|
+
* @memberof CiRunnerPoolConfig
|
|
2731
|
+
*/
|
|
2732
|
+
'cacheResidency'?: CiRunnerPoolConfigCacheResidencyEnum;
|
|
2733
|
+
/**
|
|
2734
|
+
*
|
|
2735
|
+
* @type {Array<CiRunnerPoolConfigAlertsInner>}
|
|
2736
|
+
* @memberof CiRunnerPoolConfig
|
|
2737
|
+
*/
|
|
2738
|
+
'alerts'?: Array<CiRunnerPoolConfigAlertsInner>;
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
export const CiRunnerPoolConfigTierEnum = {
|
|
2742
|
+
Small: 'small',
|
|
2743
|
+
Medium: 'medium',
|
|
2744
|
+
Large: 'large'
|
|
2745
|
+
} as const;
|
|
2746
|
+
|
|
2747
|
+
export type CiRunnerPoolConfigTierEnum = typeof CiRunnerPoolConfigTierEnum[keyof typeof CiRunnerPoolConfigTierEnum];
|
|
2748
|
+
export const CiRunnerPoolConfigArchitecturesEnum = {
|
|
2749
|
+
Arm64: 'arm64',
|
|
2750
|
+
X64: 'x64'
|
|
2751
|
+
} as const;
|
|
2752
|
+
|
|
2753
|
+
export type CiRunnerPoolConfigArchitecturesEnum = typeof CiRunnerPoolConfigArchitecturesEnum[keyof typeof CiRunnerPoolConfigArchitecturesEnum];
|
|
2754
|
+
export const CiRunnerPoolConfigNetworkModeEnum = {
|
|
2755
|
+
Public: 'public',
|
|
2756
|
+
Restricted: 'restricted'
|
|
2757
|
+
} as const;
|
|
2758
|
+
|
|
2759
|
+
export type CiRunnerPoolConfigNetworkModeEnum = typeof CiRunnerPoolConfigNetworkModeEnum[keyof typeof CiRunnerPoolConfigNetworkModeEnum];
|
|
2760
|
+
export const CiRunnerPoolConfigCacheResidencyEnum = {
|
|
2761
|
+
AuOnly: 'au-only',
|
|
2762
|
+
AllowGithub: 'allow-github'
|
|
2763
|
+
} as const;
|
|
2764
|
+
|
|
2765
|
+
export type CiRunnerPoolConfigCacheResidencyEnum = typeof CiRunnerPoolConfigCacheResidencyEnum[keyof typeof CiRunnerPoolConfigCacheResidencyEnum];
|
|
2766
|
+
|
|
2767
|
+
/**
|
|
2768
|
+
*
|
|
2769
|
+
* @export
|
|
2770
|
+
* @interface CiRunnerPoolConfigAlertsInner
|
|
2771
|
+
*/
|
|
2772
|
+
export interface CiRunnerPoolConfigAlertsInner {
|
|
2773
|
+
/**
|
|
2774
|
+
* pool_error: runner VMs failed to start, VMs reported themselves unhealthy, or a job never reached this pool\'s runners (detail says which). labels_unfit: a job asked for labels or an architecture this pool\'s runners do not have, so the pool did not take it.
|
|
2775
|
+
* @type {string}
|
|
2776
|
+
* @memberof CiRunnerPoolConfigAlertsInner
|
|
2777
|
+
*/
|
|
2778
|
+
'type'?: CiRunnerPoolConfigAlertsInnerTypeEnum;
|
|
2779
|
+
/**
|
|
2780
|
+
*
|
|
2781
|
+
* @type {string}
|
|
2782
|
+
* @memberof CiRunnerPoolConfigAlertsInner
|
|
2783
|
+
*/
|
|
2784
|
+
'since'?: string;
|
|
2785
|
+
/**
|
|
2786
|
+
*
|
|
2787
|
+
* @type {string}
|
|
2788
|
+
* @memberof CiRunnerPoolConfigAlertsInner
|
|
2789
|
+
*/
|
|
2790
|
+
'detail'?: string;
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
export const CiRunnerPoolConfigAlertsInnerTypeEnum = {
|
|
2794
|
+
QueueWait: 'queue_wait',
|
|
2795
|
+
AtCapacity: 'at_capacity',
|
|
2796
|
+
PoolError: 'pool_error',
|
|
2797
|
+
LabelsUnfit: 'labels_unfit'
|
|
2798
|
+
} as const;
|
|
2799
|
+
|
|
2800
|
+
export type CiRunnerPoolConfigAlertsInnerTypeEnum = typeof CiRunnerPoolConfigAlertsInnerTypeEnum[keyof typeof CiRunnerPoolConfigAlertsInnerTypeEnum];
|
|
2801
|
+
|
|
2802
|
+
/**
|
|
2803
|
+
*
|
|
2804
|
+
* @export
|
|
2805
|
+
* @interface CiRunnerPoolConfigBusinessHoursWarm
|
|
2806
|
+
*/
|
|
2807
|
+
export interface CiRunnerPoolConfigBusinessHoursWarm {
|
|
2808
|
+
/**
|
|
2809
|
+
*
|
|
2810
|
+
* @type {boolean}
|
|
2811
|
+
* @memberof CiRunnerPoolConfigBusinessHoursWarm
|
|
2812
|
+
*/
|
|
2813
|
+
'enabled'?: boolean;
|
|
2814
|
+
/**
|
|
2815
|
+
*
|
|
2816
|
+
* @type {string}
|
|
2817
|
+
* @memberof CiRunnerPoolConfigBusinessHoursWarm
|
|
2818
|
+
*/
|
|
2819
|
+
'timezone'?: string;
|
|
2820
|
+
/**
|
|
2821
|
+
* HH:MM
|
|
2822
|
+
* @type {string}
|
|
2823
|
+
* @memberof CiRunnerPoolConfigBusinessHoursWarm
|
|
2824
|
+
*/
|
|
2825
|
+
'start'?: string;
|
|
2826
|
+
/**
|
|
2827
|
+
* HH:MM
|
|
2828
|
+
* @type {string}
|
|
2829
|
+
* @memberof CiRunnerPoolConfigBusinessHoursWarm
|
|
2830
|
+
*/
|
|
2831
|
+
'end'?: string;
|
|
2832
|
+
}
|
|
2833
|
+
/**
|
|
2834
|
+
*
|
|
2835
|
+
* @export
|
|
2836
|
+
* @interface CiRunnerPoolConfigConnection
|
|
2837
|
+
*/
|
|
2838
|
+
export interface CiRunnerPoolConfigConnection {
|
|
2839
|
+
/**
|
|
2840
|
+
*
|
|
2841
|
+
* @type {string}
|
|
2842
|
+
* @memberof CiRunnerPoolConfigConnection
|
|
2843
|
+
*/
|
|
2844
|
+
'provider'?: CiRunnerPoolConfigConnectionProviderEnum;
|
|
2845
|
+
/**
|
|
2846
|
+
*
|
|
2847
|
+
* @type {number}
|
|
2848
|
+
* @memberof CiRunnerPoolConfigConnection
|
|
2849
|
+
*/
|
|
2850
|
+
'installationId'?: number;
|
|
2851
|
+
/**
|
|
2852
|
+
*
|
|
2853
|
+
* @type {string}
|
|
2854
|
+
* @memberof CiRunnerPoolConfigConnection
|
|
2855
|
+
*/
|
|
2856
|
+
'githubOrg'?: string;
|
|
2857
|
+
/**
|
|
2858
|
+
* The GitHub App that owns the installation.
|
|
2859
|
+
* @type {number}
|
|
2860
|
+
* @memberof CiRunnerPoolConfigConnection
|
|
2861
|
+
*/
|
|
2862
|
+
'appId'?: number;
|
|
2863
|
+
/**
|
|
2864
|
+
*
|
|
2865
|
+
* @type {string}
|
|
2866
|
+
* @memberof CiRunnerPoolConfigConnection
|
|
2867
|
+
*/
|
|
2868
|
+
'status'?: CiRunnerPoolConfigConnectionStatusEnum;
|
|
2869
|
+
}
|
|
2870
|
+
|
|
2871
|
+
export const CiRunnerPoolConfigConnectionProviderEnum = {
|
|
2872
|
+
Github: 'github'
|
|
2873
|
+
} as const;
|
|
2874
|
+
|
|
2875
|
+
export type CiRunnerPoolConfigConnectionProviderEnum = typeof CiRunnerPoolConfigConnectionProviderEnum[keyof typeof CiRunnerPoolConfigConnectionProviderEnum];
|
|
2876
|
+
export const CiRunnerPoolConfigConnectionStatusEnum = {
|
|
2877
|
+
Connected: 'connected',
|
|
2878
|
+
Disconnected: 'disconnected'
|
|
2879
|
+
} as const;
|
|
2880
|
+
|
|
2881
|
+
export type CiRunnerPoolConfigConnectionStatusEnum = typeof CiRunnerPoolConfigConnectionStatusEnum[keyof typeof CiRunnerPoolConfigConnectionStatusEnum];
|
|
2882
|
+
|
|
2482
2883
|
/**
|
|
2483
2884
|
*
|
|
2484
2885
|
* @export
|
|
@@ -2533,6 +2934,18 @@ export interface CiValue {
|
|
|
2533
2934
|
* @memberof CiValue
|
|
2534
2935
|
*/
|
|
2535
2936
|
'value'?: string;
|
|
2937
|
+
/**
|
|
2938
|
+
* Present on a repository value that jobs do not get. repo_identity_unproven: the value was saved before values were bound to repository IDs, and its repository was created after the value was last saved. Save the value again to fix this.
|
|
2939
|
+
* @type {string}
|
|
2940
|
+
* @memberof CiValue
|
|
2941
|
+
*/
|
|
2942
|
+
'withheldReason'?: string;
|
|
2943
|
+
/**
|
|
2944
|
+
* When the value was first withheld. Present with withheldReason.
|
|
2945
|
+
* @type {string}
|
|
2946
|
+
* @memberof CiValue
|
|
2947
|
+
*/
|
|
2948
|
+
'withheldAt'?: string;
|
|
2536
2949
|
}
|
|
2537
2950
|
|
|
2538
2951
|
export const CiValueKindEnum = {
|
|
@@ -11005,7 +11418,7 @@ export interface OrgResource {
|
|
|
11005
11418
|
*/
|
|
11006
11419
|
'scope'?: OrgResourceScopeEnum;
|
|
11007
11420
|
/**
|
|
11008
|
-
* Type-specific settings,
|
|
11421
|
+
* Type-specific settings: dataStorageMaxGb for a cache, and a CiRunnerPoolConfig for a CI runner pool.
|
|
11009
11422
|
* @type {object}
|
|
11010
11423
|
* @memberof OrgResource
|
|
11011
11424
|
*/
|
|
@@ -11016,6 +11429,12 @@ export interface OrgResource {
|
|
|
11016
11429
|
* @memberof OrgResource
|
|
11017
11430
|
*/
|
|
11018
11431
|
'physical'?: object;
|
|
11432
|
+
/**
|
|
11433
|
+
* CI runner pool only (absent on other types): the cache residency the pool runs with. It is config.cacheResidency when set; otherwise allow-github for a pool that accepts public repositories, and au-only for every other pool.
|
|
11434
|
+
* @type {string}
|
|
11435
|
+
* @memberof OrgResource
|
|
11436
|
+
*/
|
|
11437
|
+
'effectiveCacheResidency'?: OrgResourceEffectiveCacheResidencyEnum;
|
|
11019
11438
|
/**
|
|
11020
11439
|
*
|
|
11021
11440
|
* @type {string}
|
|
@@ -11047,6 +11466,12 @@ export const OrgResourceScopeEnum = {
|
|
|
11047
11466
|
} as const;
|
|
11048
11467
|
|
|
11049
11468
|
export type OrgResourceScopeEnum = typeof OrgResourceScopeEnum[keyof typeof OrgResourceScopeEnum];
|
|
11469
|
+
export const OrgResourceEffectiveCacheResidencyEnum = {
|
|
11470
|
+
AuOnly: 'au-only',
|
|
11471
|
+
AllowGithub: 'allow-github'
|
|
11472
|
+
} as const;
|
|
11473
|
+
|
|
11474
|
+
export type OrgResourceEffectiveCacheResidencyEnum = typeof OrgResourceEffectiveCacheResidencyEnum[keyof typeof OrgResourceEffectiveCacheResidencyEnum];
|
|
11050
11475
|
|
|
11051
11476
|
/**
|
|
11052
11477
|
*
|
|
@@ -11660,6 +12085,32 @@ export interface PutApplicationMetadata400Response {
|
|
|
11660
12085
|
*/
|
|
11661
12086
|
'errors'?: Array<string>;
|
|
11662
12087
|
}
|
|
12088
|
+
/**
|
|
12089
|
+
*
|
|
12090
|
+
* @export
|
|
12091
|
+
* @interface PutCiValue502Response
|
|
12092
|
+
*/
|
|
12093
|
+
export interface PutCiValue502Response {
|
|
12094
|
+
/**
|
|
12095
|
+
*
|
|
12096
|
+
* @type {string}
|
|
12097
|
+
* @memberof PutCiValue502Response
|
|
12098
|
+
*/
|
|
12099
|
+
'error'?: string;
|
|
12100
|
+
}
|
|
12101
|
+
/**
|
|
12102
|
+
*
|
|
12103
|
+
* @export
|
|
12104
|
+
* @interface PutCiValue503Response
|
|
12105
|
+
*/
|
|
12106
|
+
export interface PutCiValue503Response {
|
|
12107
|
+
/**
|
|
12108
|
+
*
|
|
12109
|
+
* @type {string}
|
|
12110
|
+
* @memberof PutCiValue503Response
|
|
12111
|
+
*/
|
|
12112
|
+
'error'?: string;
|
|
12113
|
+
}
|
|
11663
12114
|
/**
|
|
11664
12115
|
*
|
|
11665
12116
|
* @export
|
|
@@ -12978,19 +13429,6 @@ export interface UpdateAutoMode409Response {
|
|
|
12978
13429
|
*/
|
|
12979
13430
|
'error': string;
|
|
12980
13431
|
}
|
|
12981
|
-
/**
|
|
12982
|
-
*
|
|
12983
|
-
* @export
|
|
12984
|
-
* @interface UpdateContainer400Response
|
|
12985
|
-
*/
|
|
12986
|
-
export interface UpdateContainer400Response {
|
|
12987
|
-
/**
|
|
12988
|
-
*
|
|
12989
|
-
* @type {string}
|
|
12990
|
-
* @memberof UpdateContainer400Response
|
|
12991
|
-
*/
|
|
12992
|
-
'error'?: string;
|
|
12993
|
-
}
|
|
12994
13432
|
/**
|
|
12995
13433
|
*
|
|
12996
13434
|
* @export
|
|
@@ -21302,6 +21740,12 @@ export interface V2Rule {
|
|
|
21302
21740
|
* @memberof V2Rule
|
|
21303
21741
|
*/
|
|
21304
21742
|
'traffic_source_is_not'?: Array<string>;
|
|
21743
|
+
/**
|
|
21744
|
+
*
|
|
21745
|
+
* @type {V2RuleSchedule}
|
|
21746
|
+
* @memberof V2Rule
|
|
21747
|
+
*/
|
|
21748
|
+
'schedule'?: V2RuleSchedule | null;
|
|
21305
21749
|
/**
|
|
21306
21750
|
* Country code
|
|
21307
21751
|
* @type {string}
|
|
@@ -21471,6 +21915,12 @@ export interface V2RuleAuth {
|
|
|
21471
21915
|
* @memberof V2RuleAuth
|
|
21472
21916
|
*/
|
|
21473
21917
|
'traffic_source_is_not'?: Array<string>;
|
|
21918
|
+
/**
|
|
21919
|
+
*
|
|
21920
|
+
* @type {V2RuleSchedule}
|
|
21921
|
+
* @memberof V2RuleAuth
|
|
21922
|
+
*/
|
|
21923
|
+
'schedule'?: V2RuleSchedule;
|
|
21474
21924
|
/**
|
|
21475
21925
|
* Country code
|
|
21476
21926
|
* @type {string}
|
|
@@ -21665,6 +22115,12 @@ export interface V2RuleAuthFunction {
|
|
|
21665
22115
|
* @memberof V2RuleAuthFunction
|
|
21666
22116
|
*/
|
|
21667
22117
|
'traffic_source_is_not'?: Array<string>;
|
|
22118
|
+
/**
|
|
22119
|
+
*
|
|
22120
|
+
* @type {V2RuleSchedule}
|
|
22121
|
+
* @memberof V2RuleAuthFunction
|
|
22122
|
+
*/
|
|
22123
|
+
'schedule'?: V2RuleSchedule;
|
|
21668
22124
|
/**
|
|
21669
22125
|
* Country code
|
|
21670
22126
|
* @type {string}
|
|
@@ -21859,6 +22315,12 @@ export interface V2RuleAuthFunctionRequest {
|
|
|
21859
22315
|
* @memberof V2RuleAuthFunctionRequest
|
|
21860
22316
|
*/
|
|
21861
22317
|
'traffic_source_is_not'?: Array<V2RuleAuthFunctionRequestTrafficSourceIsNotEnum>;
|
|
22318
|
+
/**
|
|
22319
|
+
*
|
|
22320
|
+
* @type {V2RuleSchedule}
|
|
22321
|
+
* @memberof V2RuleAuthFunctionRequest
|
|
22322
|
+
*/
|
|
22323
|
+
'schedule'?: V2RuleSchedule | null;
|
|
21862
22324
|
/**
|
|
21863
22325
|
* Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
|
|
21864
22326
|
* @type {string}
|
|
@@ -22063,6 +22525,12 @@ export interface V2RuleAuthRequest {
|
|
|
22063
22525
|
* @memberof V2RuleAuthRequest
|
|
22064
22526
|
*/
|
|
22065
22527
|
'traffic_source_is_not'?: Array<V2RuleAuthRequestTrafficSourceIsNotEnum>;
|
|
22528
|
+
/**
|
|
22529
|
+
*
|
|
22530
|
+
* @type {V2RuleSchedule}
|
|
22531
|
+
* @memberof V2RuleAuthRequest
|
|
22532
|
+
*/
|
|
22533
|
+
'schedule'?: V2RuleSchedule;
|
|
22066
22534
|
/**
|
|
22067
22535
|
* Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
|
|
22068
22536
|
* @type {string}
|
|
@@ -22267,6 +22735,12 @@ export interface V2RuleBotChallenge {
|
|
|
22267
22735
|
* @memberof V2RuleBotChallenge
|
|
22268
22736
|
*/
|
|
22269
22737
|
'traffic_source_is_not'?: Array<string>;
|
|
22738
|
+
/**
|
|
22739
|
+
*
|
|
22740
|
+
* @type {V2RuleSchedule}
|
|
22741
|
+
* @memberof V2RuleBotChallenge
|
|
22742
|
+
*/
|
|
22743
|
+
'schedule'?: V2RuleSchedule;
|
|
22270
22744
|
/**
|
|
22271
22745
|
* Country code
|
|
22272
22746
|
* @type {string}
|
|
@@ -22473,6 +22947,12 @@ export interface V2RuleBotChallengeRequest {
|
|
|
22473
22947
|
* @memberof V2RuleBotChallengeRequest
|
|
22474
22948
|
*/
|
|
22475
22949
|
'traffic_source_is_not'?: Array<V2RuleBotChallengeRequestTrafficSourceIsNotEnum>;
|
|
22950
|
+
/**
|
|
22951
|
+
*
|
|
22952
|
+
* @type {V2RuleSchedule}
|
|
22953
|
+
* @memberof V2RuleBotChallengeRequest
|
|
22954
|
+
*/
|
|
22955
|
+
'schedule'?: V2RuleSchedule;
|
|
22476
22956
|
/**
|
|
22477
22957
|
* Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
|
|
22478
22958
|
* @type {string}
|
|
@@ -22683,6 +23163,12 @@ export interface V2RuleContentFilter {
|
|
|
22683
23163
|
* @memberof V2RuleContentFilter
|
|
22684
23164
|
*/
|
|
22685
23165
|
'traffic_source_is_not'?: Array<string>;
|
|
23166
|
+
/**
|
|
23167
|
+
*
|
|
23168
|
+
* @type {V2RuleSchedule}
|
|
23169
|
+
* @memberof V2RuleContentFilter
|
|
23170
|
+
*/
|
|
23171
|
+
'schedule'?: V2RuleSchedule;
|
|
22686
23172
|
/**
|
|
22687
23173
|
* Country code
|
|
22688
23174
|
* @type {string}
|
|
@@ -22877,6 +23363,12 @@ export interface V2RuleContentFilterRequest {
|
|
|
22877
23363
|
* @memberof V2RuleContentFilterRequest
|
|
22878
23364
|
*/
|
|
22879
23365
|
'traffic_source_is_not'?: Array<V2RuleContentFilterRequestTrafficSourceIsNotEnum>;
|
|
23366
|
+
/**
|
|
23367
|
+
*
|
|
23368
|
+
* @type {V2RuleSchedule}
|
|
23369
|
+
* @memberof V2RuleContentFilterRequest
|
|
23370
|
+
*/
|
|
23371
|
+
'schedule'?: V2RuleSchedule | null;
|
|
22880
23372
|
/**
|
|
22881
23373
|
* Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
|
|
22882
23374
|
* @type {string}
|
|
@@ -23075,6 +23567,12 @@ export interface V2RuleCustomResponse {
|
|
|
23075
23567
|
* @memberof V2RuleCustomResponse
|
|
23076
23568
|
*/
|
|
23077
23569
|
'traffic_source_is_not'?: Array<string>;
|
|
23570
|
+
/**
|
|
23571
|
+
*
|
|
23572
|
+
* @type {V2RuleSchedule}
|
|
23573
|
+
* @memberof V2RuleCustomResponse
|
|
23574
|
+
*/
|
|
23575
|
+
'schedule'?: V2RuleSchedule;
|
|
23078
23576
|
/**
|
|
23079
23577
|
* Country code
|
|
23080
23578
|
* @type {string}
|
|
@@ -23275,6 +23773,12 @@ export interface V2RuleCustomResponseRequest {
|
|
|
23275
23773
|
* @memberof V2RuleCustomResponseRequest
|
|
23276
23774
|
*/
|
|
23277
23775
|
'traffic_source_is_not'?: Array<V2RuleCustomResponseRequestTrafficSourceIsNotEnum>;
|
|
23776
|
+
/**
|
|
23777
|
+
*
|
|
23778
|
+
* @type {V2RuleSchedule}
|
|
23779
|
+
* @memberof V2RuleCustomResponseRequest
|
|
23780
|
+
*/
|
|
23781
|
+
'schedule'?: V2RuleSchedule | null;
|
|
23278
23782
|
/**
|
|
23279
23783
|
* Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
|
|
23280
23784
|
* @type {string}
|
|
@@ -23491,6 +23995,12 @@ export interface V2RuleErrorPage {
|
|
|
23491
23995
|
* @memberof V2RuleErrorPage
|
|
23492
23996
|
*/
|
|
23493
23997
|
'traffic_source_is_not'?: Array<string>;
|
|
23998
|
+
/**
|
|
23999
|
+
*
|
|
24000
|
+
* @type {V2RuleSchedule}
|
|
24001
|
+
* @memberof V2RuleErrorPage
|
|
24002
|
+
*/
|
|
24003
|
+
'schedule'?: V2RuleSchedule;
|
|
23494
24004
|
/**
|
|
23495
24005
|
* Country code
|
|
23496
24006
|
* @type {string}
|
|
@@ -23691,6 +24201,12 @@ export interface V2RuleErrorPageRequest {
|
|
|
23691
24201
|
* @memberof V2RuleErrorPageRequest
|
|
23692
24202
|
*/
|
|
23693
24203
|
'traffic_source_is_not'?: Array<V2RuleErrorPageRequestTrafficSourceIsNotEnum>;
|
|
24204
|
+
/**
|
|
24205
|
+
*
|
|
24206
|
+
* @type {V2RuleSchedule}
|
|
24207
|
+
* @memberof V2RuleErrorPageRequest
|
|
24208
|
+
*/
|
|
24209
|
+
'schedule'?: V2RuleSchedule;
|
|
23694
24210
|
/**
|
|
23695
24211
|
* Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
|
|
23696
24212
|
* @type {string}
|
|
@@ -23895,6 +24411,12 @@ export interface V2RuleFunction {
|
|
|
23895
24411
|
* @memberof V2RuleFunction
|
|
23896
24412
|
*/
|
|
23897
24413
|
'traffic_source_is_not'?: Array<string>;
|
|
24414
|
+
/**
|
|
24415
|
+
*
|
|
24416
|
+
* @type {V2RuleSchedule}
|
|
24417
|
+
* @memberof V2RuleFunction
|
|
24418
|
+
*/
|
|
24419
|
+
'schedule'?: V2RuleSchedule;
|
|
23898
24420
|
/**
|
|
23899
24421
|
* Country code
|
|
23900
24422
|
* @type {string}
|
|
@@ -24089,6 +24611,12 @@ export interface V2RuleFunctionRequest {
|
|
|
24089
24611
|
* @memberof V2RuleFunctionRequest
|
|
24090
24612
|
*/
|
|
24091
24613
|
'traffic_source_is_not'?: Array<V2RuleFunctionRequestTrafficSourceIsNotEnum>;
|
|
24614
|
+
/**
|
|
24615
|
+
*
|
|
24616
|
+
* @type {V2RuleSchedule}
|
|
24617
|
+
* @memberof V2RuleFunctionRequest
|
|
24618
|
+
*/
|
|
24619
|
+
'schedule'?: V2RuleSchedule | null;
|
|
24092
24620
|
/**
|
|
24093
24621
|
* Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
|
|
24094
24622
|
* @type {string}
|
|
@@ -24287,6 +24815,12 @@ export interface V2RuleHeader {
|
|
|
24287
24815
|
* @memberof V2RuleHeader
|
|
24288
24816
|
*/
|
|
24289
24817
|
'traffic_source_is_not'?: Array<string>;
|
|
24818
|
+
/**
|
|
24819
|
+
*
|
|
24820
|
+
* @type {V2RuleSchedule}
|
|
24821
|
+
* @memberof V2RuleHeader
|
|
24822
|
+
*/
|
|
24823
|
+
'schedule'?: V2RuleSchedule;
|
|
24290
24824
|
/**
|
|
24291
24825
|
* Country code
|
|
24292
24826
|
* @type {string}
|
|
@@ -24481,6 +25015,12 @@ export interface V2RuleHeaderRequest {
|
|
|
24481
25015
|
* @memberof V2RuleHeaderRequest
|
|
24482
25016
|
*/
|
|
24483
25017
|
'traffic_source_is_not'?: Array<V2RuleHeaderRequestTrafficSourceIsNotEnum>;
|
|
25018
|
+
/**
|
|
25019
|
+
*
|
|
25020
|
+
* @type {V2RuleSchedule}
|
|
25021
|
+
* @memberof V2RuleHeaderRequest
|
|
25022
|
+
*/
|
|
25023
|
+
'schedule'?: V2RuleSchedule;
|
|
24484
25024
|
/**
|
|
24485
25025
|
* Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
|
|
24486
25026
|
* @type {string}
|
|
@@ -24679,6 +25219,12 @@ export interface V2RuleProxy {
|
|
|
24679
25219
|
* @memberof V2RuleProxy
|
|
24680
25220
|
*/
|
|
24681
25221
|
'traffic_source_is_not'?: Array<string>;
|
|
25222
|
+
/**
|
|
25223
|
+
*
|
|
25224
|
+
* @type {V2RuleSchedule}
|
|
25225
|
+
* @memberof V2RuleProxy
|
|
25226
|
+
*/
|
|
25227
|
+
'schedule'?: V2RuleSchedule;
|
|
24682
25228
|
/**
|
|
24683
25229
|
* Country code
|
|
24684
25230
|
* @type {string}
|
|
@@ -25099,6 +25645,12 @@ export interface V2RuleProxyRequest {
|
|
|
25099
25645
|
* @memberof V2RuleProxyRequest
|
|
25100
25646
|
*/
|
|
25101
25647
|
'traffic_source_is_not'?: Array<V2RuleProxyRequestTrafficSourceIsNotEnum>;
|
|
25648
|
+
/**
|
|
25649
|
+
*
|
|
25650
|
+
* @type {V2RuleSchedule}
|
|
25651
|
+
* @memberof V2RuleProxyRequest
|
|
25652
|
+
*/
|
|
25653
|
+
'schedule'?: V2RuleSchedule | null;
|
|
25102
25654
|
/**
|
|
25103
25655
|
* Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
|
|
25104
25656
|
* @type {string}
|
|
@@ -25447,6 +25999,12 @@ export interface V2RuleRedirect {
|
|
|
25447
25999
|
* @memberof V2RuleRedirect
|
|
25448
26000
|
*/
|
|
25449
26001
|
'traffic_source_is_not'?: Array<string>;
|
|
26002
|
+
/**
|
|
26003
|
+
*
|
|
26004
|
+
* @type {V2RuleSchedule}
|
|
26005
|
+
* @memberof V2RuleRedirect
|
|
26006
|
+
*/
|
|
26007
|
+
'schedule'?: V2RuleSchedule;
|
|
25450
26008
|
/**
|
|
25451
26009
|
* Country code
|
|
25452
26010
|
* @type {string}
|
|
@@ -25647,6 +26205,12 @@ export interface V2RuleRedirectRequest {
|
|
|
25647
26205
|
* @memberof V2RuleRedirectRequest
|
|
25648
26206
|
*/
|
|
25649
26207
|
'traffic_source_is_not'?: Array<V2RuleRedirectRequestTrafficSourceIsNotEnum>;
|
|
26208
|
+
/**
|
|
26209
|
+
*
|
|
26210
|
+
* @type {V2RuleSchedule}
|
|
26211
|
+
* @memberof V2RuleRedirectRequest
|
|
26212
|
+
*/
|
|
26213
|
+
'schedule'?: V2RuleSchedule | null;
|
|
25650
26214
|
/**
|
|
25651
26215
|
* Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
|
|
25652
26216
|
* @type {string}
|
|
@@ -25857,6 +26421,12 @@ export interface V2RuleRequest {
|
|
|
25857
26421
|
* @memberof V2RuleRequest
|
|
25858
26422
|
*/
|
|
25859
26423
|
'traffic_source_is_not'?: Array<V2RuleRequestTrafficSourceIsNotEnum>;
|
|
26424
|
+
/**
|
|
26425
|
+
*
|
|
26426
|
+
* @type {V2RuleSchedule}
|
|
26427
|
+
* @memberof V2RuleRequest
|
|
26428
|
+
*/
|
|
26429
|
+
'schedule'?: V2RuleSchedule | null;
|
|
25860
26430
|
/**
|
|
25861
26431
|
* Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
|
|
25862
26432
|
* @type {string}
|
|
@@ -25905,6 +26475,102 @@ export const V2RuleRequestTrafficSourceIsNotEnum = {
|
|
|
25905
26475
|
|
|
25906
26476
|
export type V2RuleRequestTrafficSourceIsNotEnum = typeof V2RuleRequestTrafficSourceIsNotEnum[keyof typeof V2RuleRequestTrafficSourceIsNotEnum];
|
|
25907
26477
|
|
|
26478
|
+
/**
|
|
26479
|
+
* Weekly windows and one-off ranges in local wall time for one IANA time zone. Start is inclusive, end is exclusive. A weekly window whose end is not later than its start crosses midnight. With no windows the rule always applies.
|
|
26480
|
+
* @export
|
|
26481
|
+
* @interface V2RuleSchedule
|
|
26482
|
+
*/
|
|
26483
|
+
export interface V2RuleSchedule {
|
|
26484
|
+
/**
|
|
26485
|
+
* IANA time zone name, or UTC. Invalid values return 422.
|
|
26486
|
+
* @type {string}
|
|
26487
|
+
* @memberof V2RuleSchedule
|
|
26488
|
+
*/
|
|
26489
|
+
'timezone': string;
|
|
26490
|
+
/**
|
|
26491
|
+
* active_during: the rule applies only inside the windows. inactive_during: the rule applies only outside them.
|
|
26492
|
+
* @type {string}
|
|
26493
|
+
* @memberof V2RuleSchedule
|
|
26494
|
+
*/
|
|
26495
|
+
'mode': V2RuleScheduleModeEnum;
|
|
26496
|
+
/**
|
|
26497
|
+
* Weekly windows. Stored as an empty list when omitted.
|
|
26498
|
+
* @type {Array<V2RuleScheduleWeeklyInner>}
|
|
26499
|
+
* @memberof V2RuleSchedule
|
|
26500
|
+
*/
|
|
26501
|
+
'weekly'?: Array<V2RuleScheduleWeeklyInner>;
|
|
26502
|
+
/**
|
|
26503
|
+
* One-off ranges. Stored as an empty list when omitted.
|
|
26504
|
+
* @type {Array<V2RuleScheduleOnceInner>}
|
|
26505
|
+
* @memberof V2RuleSchedule
|
|
26506
|
+
*/
|
|
26507
|
+
'once'?: Array<V2RuleScheduleOnceInner>;
|
|
26508
|
+
}
|
|
26509
|
+
|
|
26510
|
+
export const V2RuleScheduleModeEnum = {
|
|
26511
|
+
ActiveDuring: 'active_during',
|
|
26512
|
+
InactiveDuring: 'inactive_during'
|
|
26513
|
+
} as const;
|
|
26514
|
+
|
|
26515
|
+
export type V2RuleScheduleModeEnum = typeof V2RuleScheduleModeEnum[keyof typeof V2RuleScheduleModeEnum];
|
|
26516
|
+
|
|
26517
|
+
/**
|
|
26518
|
+
*
|
|
26519
|
+
* @export
|
|
26520
|
+
* @interface V2RuleScheduleOnceInner
|
|
26521
|
+
*/
|
|
26522
|
+
export interface V2RuleScheduleOnceInner {
|
|
26523
|
+
/**
|
|
26524
|
+
* Local date and time, YYYY-MM-DDTHH:MM, no offset.
|
|
26525
|
+
* @type {string}
|
|
26526
|
+
* @memberof V2RuleScheduleOnceInner
|
|
26527
|
+
*/
|
|
26528
|
+
'start': string;
|
|
26529
|
+
/**
|
|
26530
|
+
* Local date and time after start, YYYY-MM-DDTHH:MM, no offset.
|
|
26531
|
+
* @type {string}
|
|
26532
|
+
* @memberof V2RuleScheduleOnceInner
|
|
26533
|
+
*/
|
|
26534
|
+
'end': string;
|
|
26535
|
+
}
|
|
26536
|
+
/**
|
|
26537
|
+
*
|
|
26538
|
+
* @export
|
|
26539
|
+
* @interface V2RuleScheduleWeeklyInner
|
|
26540
|
+
*/
|
|
26541
|
+
export interface V2RuleScheduleWeeklyInner {
|
|
26542
|
+
/**
|
|
26543
|
+
*
|
|
26544
|
+
* @type {Array<string>}
|
|
26545
|
+
* @memberof V2RuleScheduleWeeklyInner
|
|
26546
|
+
*/
|
|
26547
|
+
'days': Array<V2RuleScheduleWeeklyInnerDaysEnum>;
|
|
26548
|
+
/**
|
|
26549
|
+
* Local time HH:MM, 00:00 to 23:59.
|
|
26550
|
+
* @type {string}
|
|
26551
|
+
* @memberof V2RuleScheduleWeeklyInner
|
|
26552
|
+
*/
|
|
26553
|
+
'start': string;
|
|
26554
|
+
/**
|
|
26555
|
+
* Local time HH:MM, 00:00 to 24:00.
|
|
26556
|
+
* @type {string}
|
|
26557
|
+
* @memberof V2RuleScheduleWeeklyInner
|
|
26558
|
+
*/
|
|
26559
|
+
'end': string;
|
|
26560
|
+
}
|
|
26561
|
+
|
|
26562
|
+
export const V2RuleScheduleWeeklyInnerDaysEnum = {
|
|
26563
|
+
Mon: 'mon',
|
|
26564
|
+
Tue: 'tue',
|
|
26565
|
+
Wed: 'wed',
|
|
26566
|
+
Thu: 'thu',
|
|
26567
|
+
Fri: 'fri',
|
|
26568
|
+
Sat: 'sat',
|
|
26569
|
+
Sun: 'sun'
|
|
26570
|
+
} as const;
|
|
26571
|
+
|
|
26572
|
+
export type V2RuleScheduleWeeklyInnerDaysEnum = typeof V2RuleScheduleWeeklyInnerDaysEnum[keyof typeof V2RuleScheduleWeeklyInnerDaysEnum];
|
|
26573
|
+
|
|
25908
26574
|
/**
|
|
25909
26575
|
*
|
|
25910
26576
|
* @export
|
|
@@ -26049,6 +26715,12 @@ export interface V2RuleServeStatic {
|
|
|
26049
26715
|
* @memberof V2RuleServeStatic
|
|
26050
26716
|
*/
|
|
26051
26717
|
'traffic_source_is_not'?: Array<string>;
|
|
26718
|
+
/**
|
|
26719
|
+
*
|
|
26720
|
+
* @type {V2RuleSchedule}
|
|
26721
|
+
* @memberof V2RuleServeStatic
|
|
26722
|
+
*/
|
|
26723
|
+
'schedule'?: V2RuleSchedule;
|
|
26052
26724
|
/**
|
|
26053
26725
|
* Country code
|
|
26054
26726
|
* @type {string}
|
|
@@ -26243,6 +26915,12 @@ export interface V2RuleServeStaticRequest {
|
|
|
26243
26915
|
* @memberof V2RuleServeStaticRequest
|
|
26244
26916
|
*/
|
|
26245
26917
|
'traffic_source_is_not'?: Array<V2RuleServeStaticRequestTrafficSourceIsNotEnum>;
|
|
26918
|
+
/**
|
|
26919
|
+
*
|
|
26920
|
+
* @type {V2RuleSchedule}
|
|
26921
|
+
* @memberof V2RuleServeStaticRequest
|
|
26922
|
+
*/
|
|
26923
|
+
'schedule'?: V2RuleSchedule;
|
|
26246
26924
|
/**
|
|
26247
26925
|
* Write name of only_with_cookie: the rule applies only when this cookie is present. Empty string clears it.
|
|
26248
26926
|
* @type {string}
|
|
@@ -53233,6 +53911,54 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
53233
53911
|
options: localVarRequestOptions,
|
|
53234
53912
|
};
|
|
53235
53913
|
},
|
|
53914
|
+
/**
|
|
53915
|
+
* Deletes the part of the pool\'s build cache that the body names: one entry (repoId, ref, version and key), one version of a ref (repoId, ref, version), one ref (repoId, ref), one repository (repoId) or, with exactly {\"all\": true}, the whole cache. A missing or empty body is refused. Only the named scope is deleted; a delete is permanent, and a later job saves a new entry. A large delete stops after about 12 seconds and returns complete false with what it deleted so far; send the same request again until complete is true. complete false means: send the same request again. If a call returns complete false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects. After a 502 the delete may still be running on the platform; the request is idempotent, so a client can send the same request again.
|
|
53916
|
+
* @summary Delete build cache entries of a CI runner pool
|
|
53917
|
+
* @param {string} organisation The organisation ID
|
|
53918
|
+
* @param {string} resource The CI runner pool resource ID
|
|
53919
|
+
* @param {CiCacheDeleteRequest} ciCacheDeleteRequest
|
|
53920
|
+
* @param {*} [options] Override http request option.
|
|
53921
|
+
* @throws {RequiredError}
|
|
53922
|
+
*/
|
|
53923
|
+
deleteCiRunnerPoolCache: async (organisation: string, resource: string, ciCacheDeleteRequest: CiCacheDeleteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
53924
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
53925
|
+
assertParamExists('deleteCiRunnerPoolCache', 'organisation', organisation)
|
|
53926
|
+
// verify required parameter 'resource' is not null or undefined
|
|
53927
|
+
assertParamExists('deleteCiRunnerPoolCache', 'resource', resource)
|
|
53928
|
+
// verify required parameter 'ciCacheDeleteRequest' is not null or undefined
|
|
53929
|
+
assertParamExists('deleteCiRunnerPoolCache', 'ciCacheDeleteRequest', ciCacheDeleteRequest)
|
|
53930
|
+
const localVarPath = `/api/v3/organizations/{organisation}/resources/{resource}/cache`
|
|
53931
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
53932
|
+
.replace(`{${"resource"}}`, encodeURIComponent(String(resource)));
|
|
53933
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
53934
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
53935
|
+
let baseOptions;
|
|
53936
|
+
if (configuration) {
|
|
53937
|
+
baseOptions = configuration.baseOptions;
|
|
53938
|
+
}
|
|
53939
|
+
|
|
53940
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
53941
|
+
const localVarHeaderParameter = {} as any;
|
|
53942
|
+
const localVarQueryParameter = {} as any;
|
|
53943
|
+
|
|
53944
|
+
// authentication BearerAuth required
|
|
53945
|
+
// http bearer authentication required
|
|
53946
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
53947
|
+
|
|
53948
|
+
|
|
53949
|
+
|
|
53950
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
53951
|
+
|
|
53952
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
53953
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
53954
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
53955
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ciCacheDeleteRequest, localVarRequestOptions, configuration)
|
|
53956
|
+
|
|
53957
|
+
return {
|
|
53958
|
+
url: toPathString(localVarUrlObj),
|
|
53959
|
+
options: localVarRequestOptions,
|
|
53960
|
+
};
|
|
53961
|
+
},
|
|
53236
53962
|
/**
|
|
53237
53963
|
* Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
|
|
53238
53964
|
* @summary Delete a shared resource
|
|
@@ -53321,6 +54047,53 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
53321
54047
|
|
|
53322
54048
|
|
|
53323
54049
|
|
|
54050
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54051
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54052
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
54053
|
+
|
|
54054
|
+
return {
|
|
54055
|
+
url: toPathString(localVarUrlObj),
|
|
54056
|
+
options: localVarRequestOptions,
|
|
54057
|
+
};
|
|
54058
|
+
},
|
|
54059
|
+
/**
|
|
54060
|
+
* Sums of the pool\'s build cache hits, misses, saves and bytes over the last days days. hitRate is hits / (hits + misses), or null when both are 0.
|
|
54061
|
+
* @summary Get build cache statistics of a CI runner pool
|
|
54062
|
+
* @param {string} organisation The organisation ID
|
|
54063
|
+
* @param {string} resource The CI runner pool resource ID
|
|
54064
|
+
* @param {number} [days]
|
|
54065
|
+
* @param {*} [options] Override http request option.
|
|
54066
|
+
* @throws {RequiredError}
|
|
54067
|
+
*/
|
|
54068
|
+
getCiRunnerPoolCacheStats: async (organisation: string, resource: string, days?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54069
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
54070
|
+
assertParamExists('getCiRunnerPoolCacheStats', 'organisation', organisation)
|
|
54071
|
+
// verify required parameter 'resource' is not null or undefined
|
|
54072
|
+
assertParamExists('getCiRunnerPoolCacheStats', 'resource', resource)
|
|
54073
|
+
const localVarPath = `/api/v3/organizations/{organisation}/resources/{resource}/cache/stats`
|
|
54074
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
54075
|
+
.replace(`{${"resource"}}`, encodeURIComponent(String(resource)));
|
|
54076
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54077
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54078
|
+
let baseOptions;
|
|
54079
|
+
if (configuration) {
|
|
54080
|
+
baseOptions = configuration.baseOptions;
|
|
54081
|
+
}
|
|
54082
|
+
|
|
54083
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
54084
|
+
const localVarHeaderParameter = {} as any;
|
|
54085
|
+
const localVarQueryParameter = {} as any;
|
|
54086
|
+
|
|
54087
|
+
// authentication BearerAuth required
|
|
54088
|
+
// http bearer authentication required
|
|
54089
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
54090
|
+
|
|
54091
|
+
if (days !== undefined) {
|
|
54092
|
+
localVarQueryParameter['days'] = days;
|
|
54093
|
+
}
|
|
54094
|
+
|
|
54095
|
+
|
|
54096
|
+
|
|
53324
54097
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
53325
54098
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
53326
54099
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -53405,6 +54178,63 @@ export const ResourcesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
53405
54178
|
|
|
53406
54179
|
|
|
53407
54180
|
|
|
54181
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54182
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54183
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
54184
|
+
|
|
54185
|
+
return {
|
|
54186
|
+
url: toPathString(localVarUrlObj),
|
|
54187
|
+
options: localVarRequestOptions,
|
|
54188
|
+
};
|
|
54189
|
+
},
|
|
54190
|
+
/**
|
|
54191
|
+
* Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
|
|
54192
|
+
* @summary List the build cache entries of a CI runner pool
|
|
54193
|
+
* @param {string} organisation The organisation ID
|
|
54194
|
+
* @param {string} resource The CI runner pool resource ID
|
|
54195
|
+
* @param {number} [repoId] Only the entries of this GitHub repository id.
|
|
54196
|
+
* @param {string} [ref] Only the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
|
|
54197
|
+
* @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
|
|
54198
|
+
* @param {*} [options] Override http request option.
|
|
54199
|
+
* @throws {RequiredError}
|
|
54200
|
+
*/
|
|
54201
|
+
listCiRunnerPoolCache: async (organisation: string, resource: string, repoId?: number, ref?: string, cursor?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54202
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
54203
|
+
assertParamExists('listCiRunnerPoolCache', 'organisation', organisation)
|
|
54204
|
+
// verify required parameter 'resource' is not null or undefined
|
|
54205
|
+
assertParamExists('listCiRunnerPoolCache', 'resource', resource)
|
|
54206
|
+
const localVarPath = `/api/v3/organizations/{organisation}/resources/{resource}/cache`
|
|
54207
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
54208
|
+
.replace(`{${"resource"}}`, encodeURIComponent(String(resource)));
|
|
54209
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54210
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54211
|
+
let baseOptions;
|
|
54212
|
+
if (configuration) {
|
|
54213
|
+
baseOptions = configuration.baseOptions;
|
|
54214
|
+
}
|
|
54215
|
+
|
|
54216
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
54217
|
+
const localVarHeaderParameter = {} as any;
|
|
54218
|
+
const localVarQueryParameter = {} as any;
|
|
54219
|
+
|
|
54220
|
+
// authentication BearerAuth required
|
|
54221
|
+
// http bearer authentication required
|
|
54222
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
54223
|
+
|
|
54224
|
+
if (repoId !== undefined) {
|
|
54225
|
+
localVarQueryParameter['repoId'] = repoId;
|
|
54226
|
+
}
|
|
54227
|
+
|
|
54228
|
+
if (ref !== undefined) {
|
|
54229
|
+
localVarQueryParameter['ref'] = ref;
|
|
54230
|
+
}
|
|
54231
|
+
|
|
54232
|
+
if (cursor !== undefined) {
|
|
54233
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
54234
|
+
}
|
|
54235
|
+
|
|
54236
|
+
|
|
54237
|
+
|
|
53408
54238
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
53409
54239
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
53410
54240
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -53539,6 +54369,21 @@ export const ResourcesApiFp = function(configuration?: Configuration) {
|
|
|
53539
54369
|
const localVarOperationServerBasePath = operationServerMap['ResourcesApi.createOrgResource']?.[localVarOperationServerIndex]?.url;
|
|
53540
54370
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
53541
54371
|
},
|
|
54372
|
+
/**
|
|
54373
|
+
* Deletes the part of the pool\'s build cache that the body names: one entry (repoId, ref, version and key), one version of a ref (repoId, ref, version), one ref (repoId, ref), one repository (repoId) or, with exactly {\"all\": true}, the whole cache. A missing or empty body is refused. Only the named scope is deleted; a delete is permanent, and a later job saves a new entry. A large delete stops after about 12 seconds and returns complete false with what it deleted so far; send the same request again until complete is true. complete false means: send the same request again. If a call returns complete false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects. After a 502 the delete may still be running on the platform; the request is idempotent, so a client can send the same request again.
|
|
54374
|
+
* @summary Delete build cache entries of a CI runner pool
|
|
54375
|
+
* @param {string} organisation The organisation ID
|
|
54376
|
+
* @param {string} resource The CI runner pool resource ID
|
|
54377
|
+
* @param {CiCacheDeleteRequest} ciCacheDeleteRequest
|
|
54378
|
+
* @param {*} [options] Override http request option.
|
|
54379
|
+
* @throws {RequiredError}
|
|
54380
|
+
*/
|
|
54381
|
+
async deleteCiRunnerPoolCache(organisation: string, resource: string, ciCacheDeleteRequest: CiCacheDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CiCacheDeleteResult>> {
|
|
54382
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options);
|
|
54383
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
54384
|
+
const localVarOperationServerBasePath = operationServerMap['ResourcesApi.deleteCiRunnerPoolCache']?.[localVarOperationServerIndex]?.url;
|
|
54385
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
54386
|
+
},
|
|
53542
54387
|
/**
|
|
53543
54388
|
* Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
|
|
53544
54389
|
* @summary Delete a shared resource
|
|
@@ -53570,6 +54415,21 @@ export const ResourcesApiFp = function(configuration?: Configuration) {
|
|
|
53570
54415
|
const localVarOperationServerBasePath = operationServerMap['ResourcesApi.detachOrgResource']?.[localVarOperationServerIndex]?.url;
|
|
53571
54416
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
53572
54417
|
},
|
|
54418
|
+
/**
|
|
54419
|
+
* Sums of the pool\'s build cache hits, misses, saves and bytes over the last days days. hitRate is hits / (hits + misses), or null when both are 0.
|
|
54420
|
+
* @summary Get build cache statistics of a CI runner pool
|
|
54421
|
+
* @param {string} organisation The organisation ID
|
|
54422
|
+
* @param {string} resource The CI runner pool resource ID
|
|
54423
|
+
* @param {number} [days]
|
|
54424
|
+
* @param {*} [options] Override http request option.
|
|
54425
|
+
* @throws {RequiredError}
|
|
54426
|
+
*/
|
|
54427
|
+
async getCiRunnerPoolCacheStats(organisation: string, resource: string, days?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CiCacheStats>> {
|
|
54428
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCiRunnerPoolCacheStats(organisation, resource, days, options);
|
|
54429
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
54430
|
+
const localVarOperationServerBasePath = operationServerMap['ResourcesApi.getCiRunnerPoolCacheStats']?.[localVarOperationServerIndex]?.url;
|
|
54431
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
54432
|
+
},
|
|
53573
54433
|
/**
|
|
53574
54434
|
*
|
|
53575
54435
|
* @summary Get a shared resource and its attachments
|
|
@@ -53598,6 +54458,23 @@ export const ResourcesApiFp = function(configuration?: Configuration) {
|
|
|
53598
54458
|
const localVarOperationServerBasePath = operationServerMap['ResourcesApi.getOrgResourceCredentials']?.[localVarOperationServerIndex]?.url;
|
|
53599
54459
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
53600
54460
|
},
|
|
54461
|
+
/**
|
|
54462
|
+
* Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
|
|
54463
|
+
* @summary List the build cache entries of a CI runner pool
|
|
54464
|
+
* @param {string} organisation The organisation ID
|
|
54465
|
+
* @param {string} resource The CI runner pool resource ID
|
|
54466
|
+
* @param {number} [repoId] Only the entries of this GitHub repository id.
|
|
54467
|
+
* @param {string} [ref] Only the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
|
|
54468
|
+
* @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
|
|
54469
|
+
* @param {*} [options] Override http request option.
|
|
54470
|
+
* @throws {RequiredError}
|
|
54471
|
+
*/
|
|
54472
|
+
async listCiRunnerPoolCache(organisation: string, resource: string, repoId?: number, ref?: string, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CiCacheList>> {
|
|
54473
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options);
|
|
54474
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
54475
|
+
const localVarOperationServerBasePath = operationServerMap['ResourcesApi.listCiRunnerPoolCache']?.[localVarOperationServerIndex]?.url;
|
|
54476
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
54477
|
+
},
|
|
53601
54478
|
/**
|
|
53602
54479
|
*
|
|
53603
54480
|
* @summary List an organisation\'s shared resources
|
|
@@ -53659,6 +54536,18 @@ export const ResourcesApiFactory = function (configuration?: Configuration, base
|
|
|
53659
54536
|
createOrgResource(organisation: string, createOrgResourceRequest: CreateOrgResourceRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgResource> {
|
|
53660
54537
|
return localVarFp.createOrgResource(organisation, createOrgResourceRequest, options).then((request) => request(axios, basePath));
|
|
53661
54538
|
},
|
|
54539
|
+
/**
|
|
54540
|
+
* Deletes the part of the pool\'s build cache that the body names: one entry (repoId, ref, version and key), one version of a ref (repoId, ref, version), one ref (repoId, ref), one repository (repoId) or, with exactly {\"all\": true}, the whole cache. A missing or empty body is refused. Only the named scope is deleted; a delete is permanent, and a later job saves a new entry. A large delete stops after about 12 seconds and returns complete false with what it deleted so far; send the same request again until complete is true. complete false means: send the same request again. If a call returns complete false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects. After a 502 the delete may still be running on the platform; the request is idempotent, so a client can send the same request again.
|
|
54541
|
+
* @summary Delete build cache entries of a CI runner pool
|
|
54542
|
+
* @param {string} organisation The organisation ID
|
|
54543
|
+
* @param {string} resource The CI runner pool resource ID
|
|
54544
|
+
* @param {CiCacheDeleteRequest} ciCacheDeleteRequest
|
|
54545
|
+
* @param {*} [options] Override http request option.
|
|
54546
|
+
* @throws {RequiredError}
|
|
54547
|
+
*/
|
|
54548
|
+
deleteCiRunnerPoolCache(organisation: string, resource: string, ciCacheDeleteRequest: CiCacheDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CiCacheDeleteResult> {
|
|
54549
|
+
return localVarFp.deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options).then((request) => request(axios, basePath));
|
|
54550
|
+
},
|
|
53662
54551
|
/**
|
|
53663
54552
|
* Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
|
|
53664
54553
|
* @summary Delete a shared resource
|
|
@@ -53684,6 +54573,18 @@ export const ResourcesApiFactory = function (configuration?: Configuration, base
|
|
|
53684
54573
|
detachOrgResource(organisation: string, resource: string, application: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
53685
54574
|
return localVarFp.detachOrgResource(organisation, resource, application, environment, options).then((request) => request(axios, basePath));
|
|
53686
54575
|
},
|
|
54576
|
+
/**
|
|
54577
|
+
* Sums of the pool\'s build cache hits, misses, saves and bytes over the last days days. hitRate is hits / (hits + misses), or null when both are 0.
|
|
54578
|
+
* @summary Get build cache statistics of a CI runner pool
|
|
54579
|
+
* @param {string} organisation The organisation ID
|
|
54580
|
+
* @param {string} resource The CI runner pool resource ID
|
|
54581
|
+
* @param {number} [days]
|
|
54582
|
+
* @param {*} [options] Override http request option.
|
|
54583
|
+
* @throws {RequiredError}
|
|
54584
|
+
*/
|
|
54585
|
+
getCiRunnerPoolCacheStats(organisation: string, resource: string, days?: number, options?: RawAxiosRequestConfig): AxiosPromise<CiCacheStats> {
|
|
54586
|
+
return localVarFp.getCiRunnerPoolCacheStats(organisation, resource, days, options).then((request) => request(axios, basePath));
|
|
54587
|
+
},
|
|
53687
54588
|
/**
|
|
53688
54589
|
*
|
|
53689
54590
|
* @summary Get a shared resource and its attachments
|
|
@@ -53706,6 +54607,20 @@ export const ResourcesApiFactory = function (configuration?: Configuration, base
|
|
|
53706
54607
|
getOrgResourceCredentials(organisation: string, resource: string, options?: RawAxiosRequestConfig): AxiosPromise<GetOrgResourceCredentials200Response> {
|
|
53707
54608
|
return localVarFp.getOrgResourceCredentials(organisation, resource, options).then((request) => request(axios, basePath));
|
|
53708
54609
|
},
|
|
54610
|
+
/**
|
|
54611
|
+
* Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
|
|
54612
|
+
* @summary List the build cache entries of a CI runner pool
|
|
54613
|
+
* @param {string} organisation The organisation ID
|
|
54614
|
+
* @param {string} resource The CI runner pool resource ID
|
|
54615
|
+
* @param {number} [repoId] Only the entries of this GitHub repository id.
|
|
54616
|
+
* @param {string} [ref] Only the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
|
|
54617
|
+
* @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
|
|
54618
|
+
* @param {*} [options] Override http request option.
|
|
54619
|
+
* @throws {RequiredError}
|
|
54620
|
+
*/
|
|
54621
|
+
listCiRunnerPoolCache(organisation: string, resource: string, repoId?: number, ref?: string, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise<CiCacheList> {
|
|
54622
|
+
return localVarFp.listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options).then((request) => request(axios, basePath));
|
|
54623
|
+
},
|
|
53709
54624
|
/**
|
|
53710
54625
|
*
|
|
53711
54626
|
* @summary List an organisation\'s shared resources
|
|
@@ -53765,6 +54680,20 @@ export class ResourcesApi extends BaseAPI {
|
|
|
53765
54680
|
return ResourcesApiFp(this.configuration).createOrgResource(organisation, createOrgResourceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
53766
54681
|
}
|
|
53767
54682
|
|
|
54683
|
+
/**
|
|
54684
|
+
* Deletes the part of the pool\'s build cache that the body names: one entry (repoId, ref, version and key), one version of a ref (repoId, ref, version), one ref (repoId, ref), one repository (repoId) or, with exactly {\"all\": true}, the whole cache. A missing or empty body is refused. Only the named scope is deleted; a delete is permanent, and a later job saves a new entry. A large delete stops after about 12 seconds and returns complete false with what it deleted so far; send the same request again until complete is true. complete false means: send the same request again. If a call returns complete false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects. After a 502 the delete may still be running on the platform; the request is idempotent, so a client can send the same request again.
|
|
54685
|
+
* @summary Delete build cache entries of a CI runner pool
|
|
54686
|
+
* @param {string} organisation The organisation ID
|
|
54687
|
+
* @param {string} resource The CI runner pool resource ID
|
|
54688
|
+
* @param {CiCacheDeleteRequest} ciCacheDeleteRequest
|
|
54689
|
+
* @param {*} [options] Override http request option.
|
|
54690
|
+
* @throws {RequiredError}
|
|
54691
|
+
* @memberof ResourcesApi
|
|
54692
|
+
*/
|
|
54693
|
+
public deleteCiRunnerPoolCache(organisation: string, resource: string, ciCacheDeleteRequest: CiCacheDeleteRequest, options?: RawAxiosRequestConfig) {
|
|
54694
|
+
return ResourcesApiFp(this.configuration).deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
54695
|
+
}
|
|
54696
|
+
|
|
53768
54697
|
/**
|
|
53769
54698
|
* Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
|
|
53770
54699
|
* @summary Delete a shared resource
|
|
@@ -53794,6 +54723,20 @@ export class ResourcesApi extends BaseAPI {
|
|
|
53794
54723
|
return ResourcesApiFp(this.configuration).detachOrgResource(organisation, resource, application, environment, options).then((request) => request(this.axios, this.basePath));
|
|
53795
54724
|
}
|
|
53796
54725
|
|
|
54726
|
+
/**
|
|
54727
|
+
* Sums of the pool\'s build cache hits, misses, saves and bytes over the last days days. hitRate is hits / (hits + misses), or null when both are 0.
|
|
54728
|
+
* @summary Get build cache statistics of a CI runner pool
|
|
54729
|
+
* @param {string} organisation The organisation ID
|
|
54730
|
+
* @param {string} resource The CI runner pool resource ID
|
|
54731
|
+
* @param {number} [days]
|
|
54732
|
+
* @param {*} [options] Override http request option.
|
|
54733
|
+
* @throws {RequiredError}
|
|
54734
|
+
* @memberof ResourcesApi
|
|
54735
|
+
*/
|
|
54736
|
+
public getCiRunnerPoolCacheStats(organisation: string, resource: string, days?: number, options?: RawAxiosRequestConfig) {
|
|
54737
|
+
return ResourcesApiFp(this.configuration).getCiRunnerPoolCacheStats(organisation, resource, days, options).then((request) => request(this.axios, this.basePath));
|
|
54738
|
+
}
|
|
54739
|
+
|
|
53797
54740
|
/**
|
|
53798
54741
|
*
|
|
53799
54742
|
* @summary Get a shared resource and its attachments
|
|
@@ -53820,6 +54763,22 @@ export class ResourcesApi extends BaseAPI {
|
|
|
53820
54763
|
return ResourcesApiFp(this.configuration).getOrgResourceCredentials(organisation, resource, options).then((request) => request(this.axios, this.basePath));
|
|
53821
54764
|
}
|
|
53822
54765
|
|
|
54766
|
+
/**
|
|
54767
|
+
* Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
|
|
54768
|
+
* @summary List the build cache entries of a CI runner pool
|
|
54769
|
+
* @param {string} organisation The organisation ID
|
|
54770
|
+
* @param {string} resource The CI runner pool resource ID
|
|
54771
|
+
* @param {number} [repoId] Only the entries of this GitHub repository id.
|
|
54772
|
+
* @param {string} [ref] Only the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
|
|
54773
|
+
* @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
|
|
54774
|
+
* @param {*} [options] Override http request option.
|
|
54775
|
+
* @throws {RequiredError}
|
|
54776
|
+
* @memberof ResourcesApi
|
|
54777
|
+
*/
|
|
54778
|
+
public listCiRunnerPoolCache(organisation: string, resource: string, repoId?: number, ref?: string, cursor?: string, options?: RawAxiosRequestConfig) {
|
|
54779
|
+
return ResourcesApiFp(this.configuration).listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
54780
|
+
}
|
|
54781
|
+
|
|
53823
54782
|
/**
|
|
53824
54783
|
*
|
|
53825
54784
|
* @summary List an organisation\'s shared resources
|