@sonatype/nexus-repo-api-client 3.93.1 → 3.93.2
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/.openapi-generator/FILES +3 -0
- package/dist/apis/RepositoryManagementApi.d.ts +7 -7
- package/dist/apis/RepositoryManagementApi.js +3 -3
- package/dist/esm/apis/RepositoryManagementApi.d.ts +7 -7
- package/dist/esm/apis/RepositoryManagementApi.js +4 -4
- package/dist/esm/models/AlpineGroupApiRepository.d.ts +77 -0
- package/dist/esm/models/AlpineGroupApiRepository.js +74 -0
- package/dist/esm/models/AlpineHostedApiRepository.d.ts +84 -0
- package/dist/esm/models/AlpineHostedApiRepository.js +73 -0
- package/dist/esm/models/AlpineProxyApiRepository.d.ts +117 -0
- package/dist/esm/models/AlpineProxyApiRepository.js +94 -0
- package/dist/esm/models/AptHostedApiRepository.d.ts +4 -4
- package/dist/esm/models/AptHostedApiRepository.js +0 -3
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/AlpineGroupApiRepository.d.ts +77 -0
- package/dist/models/AlpineGroupApiRepository.js +81 -0
- package/dist/models/AlpineHostedApiRepository.d.ts +84 -0
- package/dist/models/AlpineHostedApiRepository.js +80 -0
- package/dist/models/AlpineProxyApiRepository.d.ts +117 -0
- package/dist/models/AlpineProxyApiRepository.js +101 -0
- package/dist/models/AptHostedApiRepository.d.ts +4 -4
- package/dist/models/AptHostedApiRepository.js +0 -3
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/RepositoryManagementApi.ts +18 -9
- package/src/models/AlpineGroupApiRepository.ts +151 -0
- package/src/models/AlpineHostedApiRepository.ts +164 -0
- package/src/models/AlpineProxyApiRepository.ts +229 -0
- package/src/models/AptHostedApiRepository.ts +4 -7
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Sonatype Nexus Repository Manager
|
|
6
|
+
* This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.93.2-01.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 3.93.2-01
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAlpineProxyApiRepository = instanceOfAlpineProxyApiRepository;
|
|
17
|
+
exports.AlpineProxyApiRepositoryFromJSON = AlpineProxyApiRepositoryFromJSON;
|
|
18
|
+
exports.AlpineProxyApiRepositoryFromJSONTyped = AlpineProxyApiRepositoryFromJSONTyped;
|
|
19
|
+
exports.AlpineProxyApiRepositoryToJSON = AlpineProxyApiRepositoryToJSON;
|
|
20
|
+
exports.AlpineProxyApiRepositoryToJSONTyped = AlpineProxyApiRepositoryToJSONTyped;
|
|
21
|
+
const NegativeCacheAttributes_1 = require("./NegativeCacheAttributes");
|
|
22
|
+
const ProxyAttributes_1 = require("./ProxyAttributes");
|
|
23
|
+
const StorageAttributes_1 = require("./StorageAttributes");
|
|
24
|
+
const HttpClientAttributes_1 = require("./HttpClientAttributes");
|
|
25
|
+
const CleanupPolicyAttributes_1 = require("./CleanupPolicyAttributes");
|
|
26
|
+
const AlpineSigningRepositoriesAttributes_1 = require("./AlpineSigningRepositoriesAttributes");
|
|
27
|
+
const ReplicationAttributes_1 = require("./ReplicationAttributes");
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the AlpineProxyApiRepository interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfAlpineProxyApiRepository(value) {
|
|
32
|
+
if (!('alpineSigning' in value) || value['alpineSigning'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('httpClient' in value) || value['httpClient'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('negativeCache' in value) || value['negativeCache'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('online' in value) || value['online'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('proxy' in value) || value['proxy'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('storage' in value) || value['storage'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('format' in value) || value['format'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
function AlpineProxyApiRepositoryFromJSON(json) {
|
|
55
|
+
return AlpineProxyApiRepositoryFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function AlpineProxyApiRepositoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'alpineSigning': (0, AlpineSigningRepositoriesAttributes_1.AlpineSigningRepositoriesAttributesFromJSON)(json['alpineSigning']),
|
|
63
|
+
'cleanup': json['cleanup'] == null ? undefined : (0, CleanupPolicyAttributes_1.CleanupPolicyAttributesFromJSON)(json['cleanup']),
|
|
64
|
+
'httpClient': (0, HttpClientAttributes_1.HttpClientAttributesFromJSON)(json['httpClient']),
|
|
65
|
+
'name': json['name'],
|
|
66
|
+
'negativeCache': (0, NegativeCacheAttributes_1.NegativeCacheAttributesFromJSON)(json['negativeCache']),
|
|
67
|
+
'online': json['online'],
|
|
68
|
+
'proxy': (0, ProxyAttributes_1.ProxyAttributesFromJSON)(json['proxy']),
|
|
69
|
+
'replication': json['replication'] == null ? undefined : (0, ReplicationAttributes_1.ReplicationAttributesFromJSON)(json['replication']),
|
|
70
|
+
'routingRule': json['routingRule'] == null ? undefined : json['routingRule'],
|
|
71
|
+
'storage': (0, StorageAttributes_1.StorageAttributesFromJSON)(json['storage']),
|
|
72
|
+
'format': json['format'],
|
|
73
|
+
'routingRuleName': json['routingRuleName'] == null ? undefined : json['routingRuleName'],
|
|
74
|
+
'type': json['type'],
|
|
75
|
+
'url': json['url'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function AlpineProxyApiRepositoryToJSON(json) {
|
|
79
|
+
return AlpineProxyApiRepositoryToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
function AlpineProxyApiRepositoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
'alpineSigning': (0, AlpineSigningRepositoriesAttributes_1.AlpineSigningRepositoriesAttributesToJSON)(value['alpineSigning']),
|
|
87
|
+
'cleanup': (0, CleanupPolicyAttributes_1.CleanupPolicyAttributesToJSON)(value['cleanup']),
|
|
88
|
+
'httpClient': (0, HttpClientAttributes_1.HttpClientAttributesToJSON)(value['httpClient']),
|
|
89
|
+
'name': value['name'],
|
|
90
|
+
'negativeCache': (0, NegativeCacheAttributes_1.NegativeCacheAttributesToJSON)(value['negativeCache']),
|
|
91
|
+
'online': value['online'],
|
|
92
|
+
'proxy': (0, ProxyAttributes_1.ProxyAttributesToJSON)(value['proxy']),
|
|
93
|
+
'replication': (0, ReplicationAttributes_1.ReplicationAttributesToJSON)(value['replication']),
|
|
94
|
+
'routingRule': value['routingRule'],
|
|
95
|
+
'storage': (0, StorageAttributes_1.StorageAttributesToJSON)(value['storage']),
|
|
96
|
+
'format': value['format'],
|
|
97
|
+
'routingRuleName': value['routingRuleName'],
|
|
98
|
+
'type': value['type'],
|
|
99
|
+
'url': value['url'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -55,13 +55,13 @@ export interface AptHostedApiRepository {
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof AptHostedApiRepository
|
|
57
57
|
*/
|
|
58
|
-
name?: string;
|
|
58
|
+
readonly name?: string;
|
|
59
59
|
/**
|
|
60
60
|
* Whether this repository accepts incoming requests
|
|
61
61
|
* @type {boolean}
|
|
62
62
|
* @memberof AptHostedApiRepository
|
|
63
63
|
*/
|
|
64
|
-
online: boolean;
|
|
64
|
+
readonly online: boolean;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @type {HostedStorageAttributes}
|
|
@@ -79,7 +79,7 @@ export interface AptHostedApiRepository {
|
|
|
79
79
|
* @type {string}
|
|
80
80
|
* @memberof AptHostedApiRepository
|
|
81
81
|
*/
|
|
82
|
-
url?: string;
|
|
82
|
+
readonly url?: string;
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
85
|
* @export
|
|
@@ -97,4 +97,4 @@ export declare function instanceOfAptHostedApiRepository(value: object): value i
|
|
|
97
97
|
export declare function AptHostedApiRepositoryFromJSON(json: any): AptHostedApiRepository;
|
|
98
98
|
export declare function AptHostedApiRepositoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AptHostedApiRepository;
|
|
99
99
|
export declare function AptHostedApiRepositoryToJSON(json: any): AptHostedApiRepository;
|
|
100
|
-
export declare function AptHostedApiRepositoryToJSONTyped(value?: AptHostedApiRepository | null, ignoreDiscriminator?: boolean): any;
|
|
100
|
+
export declare function AptHostedApiRepositoryToJSONTyped(value?: Omit<AptHostedApiRepository, 'name' | 'online' | 'url'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -79,10 +79,7 @@ function AptHostedApiRepositoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
79
|
'cleanup': (0, CleanupPolicyAttributes_1.CleanupPolicyAttributesToJSON)(value['cleanup']),
|
|
80
80
|
'component': (0, ComponentAttributes_1.ComponentAttributesToJSON)(value['component']),
|
|
81
81
|
'format': value['format'],
|
|
82
|
-
'name': value['name'],
|
|
83
|
-
'online': value['online'],
|
|
84
82
|
'storage': (0, HostedStorageAttributes_1.HostedStorageAttributesToJSON)(value['storage']),
|
|
85
83
|
'type': value['type'],
|
|
86
|
-
'url': value['url'],
|
|
87
84
|
};
|
|
88
85
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from './AbstractApiRepository';
|
|
2
2
|
export * from './AcknowledgeRequestXO';
|
|
3
|
+
export * from './AlpineGroupApiRepository';
|
|
3
4
|
export * from './AlpineGroupRepositoryApiRequest';
|
|
5
|
+
export * from './AlpineHostedApiRepository';
|
|
4
6
|
export * from './AlpineHostedRepositoryApiRequest';
|
|
7
|
+
export * from './AlpineProxyApiRepository';
|
|
5
8
|
export * from './AlpineProxyRepositoryApiRequest';
|
|
6
9
|
export * from './AlpineSigningRepositoriesAttributes';
|
|
7
10
|
export * from './AnonymousAccessSettingsXO';
|
package/dist/models/index.js
CHANGED
|
@@ -18,8 +18,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AbstractApiRepository"), exports);
|
|
20
20
|
__exportStar(require("./AcknowledgeRequestXO"), exports);
|
|
21
|
+
__exportStar(require("./AlpineGroupApiRepository"), exports);
|
|
21
22
|
__exportStar(require("./AlpineGroupRepositoryApiRequest"), exports);
|
|
23
|
+
__exportStar(require("./AlpineHostedApiRepository"), exports);
|
|
22
24
|
__exportStar(require("./AlpineHostedRepositoryApiRequest"), exports);
|
|
25
|
+
__exportStar(require("./AlpineProxyApiRepository"), exports);
|
|
23
26
|
__exportStar(require("./AlpineProxyRepositoryApiRequest"), exports);
|
|
24
27
|
__exportStar(require("./AlpineSigningRepositoriesAttributes"), exports);
|
|
25
28
|
__exportStar(require("./AnonymousAccessSettingsXO"), exports);
|
package/package.json
CHANGED
|
@@ -16,8 +16,11 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
AbstractApiRepository,
|
|
19
|
+
AlpineGroupApiRepository,
|
|
19
20
|
AlpineGroupRepositoryApiRequest,
|
|
21
|
+
AlpineHostedApiRepository,
|
|
20
22
|
AlpineHostedRepositoryApiRequest,
|
|
23
|
+
AlpineProxyApiRepository,
|
|
21
24
|
AlpineProxyRepositoryApiRequest,
|
|
22
25
|
AnsibleGalaxyGroupApiRepository,
|
|
23
26
|
AnsibleGalaxyGroupRepositoryApiRequest,
|
|
@@ -115,10 +118,16 @@ import type {
|
|
|
115
118
|
import {
|
|
116
119
|
AbstractApiRepositoryFromJSON,
|
|
117
120
|
AbstractApiRepositoryToJSON,
|
|
121
|
+
AlpineGroupApiRepositoryFromJSON,
|
|
122
|
+
AlpineGroupApiRepositoryToJSON,
|
|
118
123
|
AlpineGroupRepositoryApiRequestFromJSON,
|
|
119
124
|
AlpineGroupRepositoryApiRequestToJSON,
|
|
125
|
+
AlpineHostedApiRepositoryFromJSON,
|
|
126
|
+
AlpineHostedApiRepositoryToJSON,
|
|
120
127
|
AlpineHostedRepositoryApiRequestFromJSON,
|
|
121
128
|
AlpineHostedRepositoryApiRequestToJSON,
|
|
129
|
+
AlpineProxyApiRepositoryFromJSON,
|
|
130
|
+
AlpineProxyApiRepositoryToJSON,
|
|
122
131
|
AlpineProxyRepositoryApiRequestFromJSON,
|
|
123
132
|
AlpineProxyRepositoryApiRequestToJSON,
|
|
124
133
|
AnsibleGalaxyGroupApiRepositoryFromJSON,
|
|
@@ -3615,7 +3624,7 @@ export class RepositoryManagementApi extends runtime.BaseAPI {
|
|
|
3615
3624
|
/**
|
|
3616
3625
|
* Get repository
|
|
3617
3626
|
*/
|
|
3618
|
-
async getAlpineGroupRepositoryRaw(requestParameters: RepositoryManagementApiGetAlpineGroupRepositoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
3627
|
+
async getAlpineGroupRepositoryRaw(requestParameters: RepositoryManagementApiGetAlpineGroupRepositoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AlpineGroupApiRepository>> {
|
|
3619
3628
|
if (requestParameters['repositoryName'] == null) {
|
|
3620
3629
|
throw new runtime.RequiredError(
|
|
3621
3630
|
'repositoryName',
|
|
@@ -3641,13 +3650,13 @@ export class RepositoryManagementApi extends runtime.BaseAPI {
|
|
|
3641
3650
|
query: queryParameters,
|
|
3642
3651
|
}, initOverrides);
|
|
3643
3652
|
|
|
3644
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
3653
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AlpineGroupApiRepositoryFromJSON(jsonValue));
|
|
3645
3654
|
}
|
|
3646
3655
|
|
|
3647
3656
|
/**
|
|
3648
3657
|
* Get repository
|
|
3649
3658
|
*/
|
|
3650
|
-
async getAlpineGroupRepository(requestParameters: RepositoryManagementApiGetAlpineGroupRepositoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
3659
|
+
async getAlpineGroupRepository(requestParameters: RepositoryManagementApiGetAlpineGroupRepositoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AlpineGroupApiRepository> {
|
|
3651
3660
|
const response = await this.getAlpineGroupRepositoryRaw(requestParameters, initOverrides);
|
|
3652
3661
|
return await response.value();
|
|
3653
3662
|
}
|
|
@@ -3655,7 +3664,7 @@ export class RepositoryManagementApi extends runtime.BaseAPI {
|
|
|
3655
3664
|
/**
|
|
3656
3665
|
* Get repository
|
|
3657
3666
|
*/
|
|
3658
|
-
async getAlpineHostedRepositoryRaw(requestParameters: RepositoryManagementApiGetAlpineHostedRepositoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
3667
|
+
async getAlpineHostedRepositoryRaw(requestParameters: RepositoryManagementApiGetAlpineHostedRepositoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AlpineHostedApiRepository>> {
|
|
3659
3668
|
if (requestParameters['repositoryName'] == null) {
|
|
3660
3669
|
throw new runtime.RequiredError(
|
|
3661
3670
|
'repositoryName',
|
|
@@ -3681,13 +3690,13 @@ export class RepositoryManagementApi extends runtime.BaseAPI {
|
|
|
3681
3690
|
query: queryParameters,
|
|
3682
3691
|
}, initOverrides);
|
|
3683
3692
|
|
|
3684
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
3693
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AlpineHostedApiRepositoryFromJSON(jsonValue));
|
|
3685
3694
|
}
|
|
3686
3695
|
|
|
3687
3696
|
/**
|
|
3688
3697
|
* Get repository
|
|
3689
3698
|
*/
|
|
3690
|
-
async getAlpineHostedRepository(requestParameters: RepositoryManagementApiGetAlpineHostedRepositoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
3699
|
+
async getAlpineHostedRepository(requestParameters: RepositoryManagementApiGetAlpineHostedRepositoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AlpineHostedApiRepository> {
|
|
3691
3700
|
const response = await this.getAlpineHostedRepositoryRaw(requestParameters, initOverrides);
|
|
3692
3701
|
return await response.value();
|
|
3693
3702
|
}
|
|
@@ -3695,7 +3704,7 @@ export class RepositoryManagementApi extends runtime.BaseAPI {
|
|
|
3695
3704
|
/**
|
|
3696
3705
|
* Get repository
|
|
3697
3706
|
*/
|
|
3698
|
-
async getAlpineProxyRepositoryRaw(requestParameters: RepositoryManagementApiGetAlpineProxyRepositoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
3707
|
+
async getAlpineProxyRepositoryRaw(requestParameters: RepositoryManagementApiGetAlpineProxyRepositoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AlpineProxyApiRepository>> {
|
|
3699
3708
|
if (requestParameters['repositoryName'] == null) {
|
|
3700
3709
|
throw new runtime.RequiredError(
|
|
3701
3710
|
'repositoryName',
|
|
@@ -3721,13 +3730,13 @@ export class RepositoryManagementApi extends runtime.BaseAPI {
|
|
|
3721
3730
|
query: queryParameters,
|
|
3722
3731
|
}, initOverrides);
|
|
3723
3732
|
|
|
3724
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
3733
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AlpineProxyApiRepositoryFromJSON(jsonValue));
|
|
3725
3734
|
}
|
|
3726
3735
|
|
|
3727
3736
|
/**
|
|
3728
3737
|
* Get repository
|
|
3729
3738
|
*/
|
|
3730
|
-
async getAlpineProxyRepository(requestParameters: RepositoryManagementApiGetAlpineProxyRepositoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
3739
|
+
async getAlpineProxyRepository(requestParameters: RepositoryManagementApiGetAlpineProxyRepositoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AlpineProxyApiRepository> {
|
|
3731
3740
|
const response = await this.getAlpineProxyRepositoryRaw(requestParameters, initOverrides);
|
|
3732
3741
|
return await response.value();
|
|
3733
3742
|
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sonatype Nexus Repository Manager
|
|
5
|
+
* This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.93.2-01.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.93.2-01
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { StorageAttributes } from './StorageAttributes';
|
|
17
|
+
import {
|
|
18
|
+
StorageAttributesFromJSON,
|
|
19
|
+
StorageAttributesFromJSONTyped,
|
|
20
|
+
StorageAttributesToJSON,
|
|
21
|
+
StorageAttributesToJSONTyped,
|
|
22
|
+
} from './StorageAttributes';
|
|
23
|
+
import type { GroupAttributes } from './GroupAttributes';
|
|
24
|
+
import {
|
|
25
|
+
GroupAttributesFromJSON,
|
|
26
|
+
GroupAttributesFromJSONTyped,
|
|
27
|
+
GroupAttributesToJSON,
|
|
28
|
+
GroupAttributesToJSONTyped,
|
|
29
|
+
} from './GroupAttributes';
|
|
30
|
+
import type { AlpineSigningRepositoriesAttributes } from './AlpineSigningRepositoriesAttributes';
|
|
31
|
+
import {
|
|
32
|
+
AlpineSigningRepositoriesAttributesFromJSON,
|
|
33
|
+
AlpineSigningRepositoriesAttributesFromJSONTyped,
|
|
34
|
+
AlpineSigningRepositoriesAttributesToJSON,
|
|
35
|
+
AlpineSigningRepositoriesAttributesToJSONTyped,
|
|
36
|
+
} from './AlpineSigningRepositoriesAttributes';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface AlpineGroupApiRepository
|
|
42
|
+
*/
|
|
43
|
+
export interface AlpineGroupApiRepository {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {AlpineSigningRepositoriesAttributes}
|
|
47
|
+
* @memberof AlpineGroupApiRepository
|
|
48
|
+
*/
|
|
49
|
+
alpineSigning: AlpineSigningRepositoriesAttributes;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {GroupAttributes}
|
|
53
|
+
* @memberof AlpineGroupApiRepository
|
|
54
|
+
*/
|
|
55
|
+
group: GroupAttributes;
|
|
56
|
+
/**
|
|
57
|
+
* A unique identifier for this repository
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof AlpineGroupApiRepository
|
|
60
|
+
*/
|
|
61
|
+
name: string;
|
|
62
|
+
/**
|
|
63
|
+
* Whether this repository accepts incoming requests
|
|
64
|
+
* @type {boolean}
|
|
65
|
+
* @memberof AlpineGroupApiRepository
|
|
66
|
+
*/
|
|
67
|
+
online: boolean;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {StorageAttributes}
|
|
71
|
+
* @memberof AlpineGroupApiRepository
|
|
72
|
+
*/
|
|
73
|
+
storage: StorageAttributes;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof AlpineGroupApiRepository
|
|
78
|
+
*/
|
|
79
|
+
format: string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof AlpineGroupApiRepository
|
|
84
|
+
*/
|
|
85
|
+
type: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof AlpineGroupApiRepository
|
|
90
|
+
*/
|
|
91
|
+
url: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Check if a given object implements the AlpineGroupApiRepository interface.
|
|
96
|
+
*/
|
|
97
|
+
export function instanceOfAlpineGroupApiRepository(value: object): value is AlpineGroupApiRepository {
|
|
98
|
+
if (!('alpineSigning' in value) || value['alpineSigning'] === undefined) return false;
|
|
99
|
+
if (!('group' in value) || value['group'] === undefined) return false;
|
|
100
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
101
|
+
if (!('online' in value) || value['online'] === undefined) return false;
|
|
102
|
+
if (!('storage' in value) || value['storage'] === undefined) return false;
|
|
103
|
+
if (!('format' in value) || value['format'] === undefined) return false;
|
|
104
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
105
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function AlpineGroupApiRepositoryFromJSON(json: any): AlpineGroupApiRepository {
|
|
110
|
+
return AlpineGroupApiRepositoryFromJSONTyped(json, false);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function AlpineGroupApiRepositoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlpineGroupApiRepository {
|
|
114
|
+
if (json == null) {
|
|
115
|
+
return json;
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'alpineSigning': AlpineSigningRepositoriesAttributesFromJSON(json['alpineSigning']),
|
|
120
|
+
'group': GroupAttributesFromJSON(json['group']),
|
|
121
|
+
'name': json['name'],
|
|
122
|
+
'online': json['online'],
|
|
123
|
+
'storage': StorageAttributesFromJSON(json['storage']),
|
|
124
|
+
'format': json['format'],
|
|
125
|
+
'type': json['type'],
|
|
126
|
+
'url': json['url'],
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function AlpineGroupApiRepositoryToJSON(json: any): AlpineGroupApiRepository {
|
|
131
|
+
return AlpineGroupApiRepositoryToJSONTyped(json, false);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function AlpineGroupApiRepositoryToJSONTyped(value?: AlpineGroupApiRepository | null, ignoreDiscriminator: boolean = false): any {
|
|
135
|
+
if (value == null) {
|
|
136
|
+
return value;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return {
|
|
140
|
+
|
|
141
|
+
'alpineSigning': AlpineSigningRepositoriesAttributesToJSON(value['alpineSigning']),
|
|
142
|
+
'group': GroupAttributesToJSON(value['group']),
|
|
143
|
+
'name': value['name'],
|
|
144
|
+
'online': value['online'],
|
|
145
|
+
'storage': StorageAttributesToJSON(value['storage']),
|
|
146
|
+
'format': value['format'],
|
|
147
|
+
'type': value['type'],
|
|
148
|
+
'url': value['url'],
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sonatype Nexus Repository Manager
|
|
5
|
+
* This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.93.2-01.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.93.2-01
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ComponentAttributes } from './ComponentAttributes';
|
|
17
|
+
import {
|
|
18
|
+
ComponentAttributesFromJSON,
|
|
19
|
+
ComponentAttributesFromJSONTyped,
|
|
20
|
+
ComponentAttributesToJSON,
|
|
21
|
+
ComponentAttributesToJSONTyped,
|
|
22
|
+
} from './ComponentAttributes';
|
|
23
|
+
import type { HostedStorageAttributes } from './HostedStorageAttributes';
|
|
24
|
+
import {
|
|
25
|
+
HostedStorageAttributesFromJSON,
|
|
26
|
+
HostedStorageAttributesFromJSONTyped,
|
|
27
|
+
HostedStorageAttributesToJSON,
|
|
28
|
+
HostedStorageAttributesToJSONTyped,
|
|
29
|
+
} from './HostedStorageAttributes';
|
|
30
|
+
import type { CleanupPolicyAttributes } from './CleanupPolicyAttributes';
|
|
31
|
+
import {
|
|
32
|
+
CleanupPolicyAttributesFromJSON,
|
|
33
|
+
CleanupPolicyAttributesFromJSONTyped,
|
|
34
|
+
CleanupPolicyAttributesToJSON,
|
|
35
|
+
CleanupPolicyAttributesToJSONTyped,
|
|
36
|
+
} from './CleanupPolicyAttributes';
|
|
37
|
+
import type { AlpineSigningRepositoriesAttributes } from './AlpineSigningRepositoriesAttributes';
|
|
38
|
+
import {
|
|
39
|
+
AlpineSigningRepositoriesAttributesFromJSON,
|
|
40
|
+
AlpineSigningRepositoriesAttributesFromJSONTyped,
|
|
41
|
+
AlpineSigningRepositoriesAttributesToJSON,
|
|
42
|
+
AlpineSigningRepositoriesAttributesToJSONTyped,
|
|
43
|
+
} from './AlpineSigningRepositoriesAttributes';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface AlpineHostedApiRepository
|
|
49
|
+
*/
|
|
50
|
+
export interface AlpineHostedApiRepository {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {AlpineSigningRepositoriesAttributes}
|
|
54
|
+
* @memberof AlpineHostedApiRepository
|
|
55
|
+
*/
|
|
56
|
+
alpineSigning?: AlpineSigningRepositoriesAttributes;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {CleanupPolicyAttributes}
|
|
60
|
+
* @memberof AlpineHostedApiRepository
|
|
61
|
+
*/
|
|
62
|
+
cleanup?: CleanupPolicyAttributes;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {ComponentAttributes}
|
|
66
|
+
* @memberof AlpineHostedApiRepository
|
|
67
|
+
*/
|
|
68
|
+
component?: ComponentAttributes;
|
|
69
|
+
/**
|
|
70
|
+
* A unique identifier for this repository
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof AlpineHostedApiRepository
|
|
73
|
+
*/
|
|
74
|
+
name: string;
|
|
75
|
+
/**
|
|
76
|
+
* Whether this repository accepts incoming requests
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof AlpineHostedApiRepository
|
|
79
|
+
*/
|
|
80
|
+
online: boolean;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {HostedStorageAttributes}
|
|
84
|
+
* @memberof AlpineHostedApiRepository
|
|
85
|
+
*/
|
|
86
|
+
storage: HostedStorageAttributes;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof AlpineHostedApiRepository
|
|
91
|
+
*/
|
|
92
|
+
format: string;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof AlpineHostedApiRepository
|
|
97
|
+
*/
|
|
98
|
+
type: string;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof AlpineHostedApiRepository
|
|
103
|
+
*/
|
|
104
|
+
url: string;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the AlpineHostedApiRepository interface.
|
|
109
|
+
*/
|
|
110
|
+
export function instanceOfAlpineHostedApiRepository(value: object): value is AlpineHostedApiRepository {
|
|
111
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
112
|
+
if (!('online' in value) || value['online'] === undefined) return false;
|
|
113
|
+
if (!('storage' in value) || value['storage'] === undefined) return false;
|
|
114
|
+
if (!('format' in value) || value['format'] === undefined) return false;
|
|
115
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
116
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function AlpineHostedApiRepositoryFromJSON(json: any): AlpineHostedApiRepository {
|
|
121
|
+
return AlpineHostedApiRepositoryFromJSONTyped(json, false);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function AlpineHostedApiRepositoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlpineHostedApiRepository {
|
|
125
|
+
if (json == null) {
|
|
126
|
+
return json;
|
|
127
|
+
}
|
|
128
|
+
return {
|
|
129
|
+
|
|
130
|
+
'alpineSigning': json['alpineSigning'] == null ? undefined : AlpineSigningRepositoriesAttributesFromJSON(json['alpineSigning']),
|
|
131
|
+
'cleanup': json['cleanup'] == null ? undefined : CleanupPolicyAttributesFromJSON(json['cleanup']),
|
|
132
|
+
'component': json['component'] == null ? undefined : ComponentAttributesFromJSON(json['component']),
|
|
133
|
+
'name': json['name'],
|
|
134
|
+
'online': json['online'],
|
|
135
|
+
'storage': HostedStorageAttributesFromJSON(json['storage']),
|
|
136
|
+
'format': json['format'],
|
|
137
|
+
'type': json['type'],
|
|
138
|
+
'url': json['url'],
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function AlpineHostedApiRepositoryToJSON(json: any): AlpineHostedApiRepository {
|
|
143
|
+
return AlpineHostedApiRepositoryToJSONTyped(json, false);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function AlpineHostedApiRepositoryToJSONTyped(value?: AlpineHostedApiRepository | null, ignoreDiscriminator: boolean = false): any {
|
|
147
|
+
if (value == null) {
|
|
148
|
+
return value;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return {
|
|
152
|
+
|
|
153
|
+
'alpineSigning': AlpineSigningRepositoriesAttributesToJSON(value['alpineSigning']),
|
|
154
|
+
'cleanup': CleanupPolicyAttributesToJSON(value['cleanup']),
|
|
155
|
+
'component': ComponentAttributesToJSON(value['component']),
|
|
156
|
+
'name': value['name'],
|
|
157
|
+
'online': value['online'],
|
|
158
|
+
'storage': HostedStorageAttributesToJSON(value['storage']),
|
|
159
|
+
'format': value['format'],
|
|
160
|
+
'type': value['type'],
|
|
161
|
+
'url': value['url'],
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|