@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,229 @@
|
|
|
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 { NegativeCacheAttributes } from './NegativeCacheAttributes';
|
|
17
|
+
import {
|
|
18
|
+
NegativeCacheAttributesFromJSON,
|
|
19
|
+
NegativeCacheAttributesFromJSONTyped,
|
|
20
|
+
NegativeCacheAttributesToJSON,
|
|
21
|
+
NegativeCacheAttributesToJSONTyped,
|
|
22
|
+
} from './NegativeCacheAttributes';
|
|
23
|
+
import type { ProxyAttributes } from './ProxyAttributes';
|
|
24
|
+
import {
|
|
25
|
+
ProxyAttributesFromJSON,
|
|
26
|
+
ProxyAttributesFromJSONTyped,
|
|
27
|
+
ProxyAttributesToJSON,
|
|
28
|
+
ProxyAttributesToJSONTyped,
|
|
29
|
+
} from './ProxyAttributes';
|
|
30
|
+
import type { StorageAttributes } from './StorageAttributes';
|
|
31
|
+
import {
|
|
32
|
+
StorageAttributesFromJSON,
|
|
33
|
+
StorageAttributesFromJSONTyped,
|
|
34
|
+
StorageAttributesToJSON,
|
|
35
|
+
StorageAttributesToJSONTyped,
|
|
36
|
+
} from './StorageAttributes';
|
|
37
|
+
import type { HttpClientAttributes } from './HttpClientAttributes';
|
|
38
|
+
import {
|
|
39
|
+
HttpClientAttributesFromJSON,
|
|
40
|
+
HttpClientAttributesFromJSONTyped,
|
|
41
|
+
HttpClientAttributesToJSON,
|
|
42
|
+
HttpClientAttributesToJSONTyped,
|
|
43
|
+
} from './HttpClientAttributes';
|
|
44
|
+
import type { CleanupPolicyAttributes } from './CleanupPolicyAttributes';
|
|
45
|
+
import {
|
|
46
|
+
CleanupPolicyAttributesFromJSON,
|
|
47
|
+
CleanupPolicyAttributesFromJSONTyped,
|
|
48
|
+
CleanupPolicyAttributesToJSON,
|
|
49
|
+
CleanupPolicyAttributesToJSONTyped,
|
|
50
|
+
} from './CleanupPolicyAttributes';
|
|
51
|
+
import type { AlpineSigningRepositoriesAttributes } from './AlpineSigningRepositoriesAttributes';
|
|
52
|
+
import {
|
|
53
|
+
AlpineSigningRepositoriesAttributesFromJSON,
|
|
54
|
+
AlpineSigningRepositoriesAttributesFromJSONTyped,
|
|
55
|
+
AlpineSigningRepositoriesAttributesToJSON,
|
|
56
|
+
AlpineSigningRepositoriesAttributesToJSONTyped,
|
|
57
|
+
} from './AlpineSigningRepositoriesAttributes';
|
|
58
|
+
import type { ReplicationAttributes } from './ReplicationAttributes';
|
|
59
|
+
import {
|
|
60
|
+
ReplicationAttributesFromJSON,
|
|
61
|
+
ReplicationAttributesFromJSONTyped,
|
|
62
|
+
ReplicationAttributesToJSON,
|
|
63
|
+
ReplicationAttributesToJSONTyped,
|
|
64
|
+
} from './ReplicationAttributes';
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @export
|
|
69
|
+
* @interface AlpineProxyApiRepository
|
|
70
|
+
*/
|
|
71
|
+
export interface AlpineProxyApiRepository {
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {AlpineSigningRepositoriesAttributes}
|
|
75
|
+
* @memberof AlpineProxyApiRepository
|
|
76
|
+
*/
|
|
77
|
+
alpineSigning: AlpineSigningRepositoriesAttributes;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {CleanupPolicyAttributes}
|
|
81
|
+
* @memberof AlpineProxyApiRepository
|
|
82
|
+
*/
|
|
83
|
+
cleanup?: CleanupPolicyAttributes;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {HttpClientAttributes}
|
|
87
|
+
* @memberof AlpineProxyApiRepository
|
|
88
|
+
*/
|
|
89
|
+
httpClient: HttpClientAttributes;
|
|
90
|
+
/**
|
|
91
|
+
* A unique identifier for this repository
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof AlpineProxyApiRepository
|
|
94
|
+
*/
|
|
95
|
+
name: string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {NegativeCacheAttributes}
|
|
99
|
+
* @memberof AlpineProxyApiRepository
|
|
100
|
+
*/
|
|
101
|
+
negativeCache: NegativeCacheAttributes;
|
|
102
|
+
/**
|
|
103
|
+
* Whether this repository accepts incoming requests
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof AlpineProxyApiRepository
|
|
106
|
+
*/
|
|
107
|
+
online: boolean;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {ProxyAttributes}
|
|
111
|
+
* @memberof AlpineProxyApiRepository
|
|
112
|
+
*/
|
|
113
|
+
proxy: ProxyAttributes;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {ReplicationAttributes}
|
|
117
|
+
* @memberof AlpineProxyApiRepository
|
|
118
|
+
*/
|
|
119
|
+
replication?: ReplicationAttributes;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof AlpineProxyApiRepository
|
|
124
|
+
*/
|
|
125
|
+
routingRule?: string;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {StorageAttributes}
|
|
129
|
+
* @memberof AlpineProxyApiRepository
|
|
130
|
+
*/
|
|
131
|
+
storage: StorageAttributes;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof AlpineProxyApiRepository
|
|
136
|
+
*/
|
|
137
|
+
format: string;
|
|
138
|
+
/**
|
|
139
|
+
* The name of the routing rule assigned to this repository
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof AlpineProxyApiRepository
|
|
142
|
+
*/
|
|
143
|
+
routingRuleName?: string;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof AlpineProxyApiRepository
|
|
148
|
+
*/
|
|
149
|
+
type: string;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @memberof AlpineProxyApiRepository
|
|
154
|
+
*/
|
|
155
|
+
url: string;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Check if a given object implements the AlpineProxyApiRepository interface.
|
|
160
|
+
*/
|
|
161
|
+
export function instanceOfAlpineProxyApiRepository(value: object): value is AlpineProxyApiRepository {
|
|
162
|
+
if (!('alpineSigning' in value) || value['alpineSigning'] === undefined) return false;
|
|
163
|
+
if (!('httpClient' in value) || value['httpClient'] === undefined) return false;
|
|
164
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
165
|
+
if (!('negativeCache' in value) || value['negativeCache'] === undefined) return false;
|
|
166
|
+
if (!('online' in value) || value['online'] === undefined) return false;
|
|
167
|
+
if (!('proxy' in value) || value['proxy'] === undefined) return false;
|
|
168
|
+
if (!('storage' in value) || value['storage'] === undefined) return false;
|
|
169
|
+
if (!('format' in value) || value['format'] === undefined) return false;
|
|
170
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
171
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
172
|
+
return true;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export function AlpineProxyApiRepositoryFromJSON(json: any): AlpineProxyApiRepository {
|
|
176
|
+
return AlpineProxyApiRepositoryFromJSONTyped(json, false);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export function AlpineProxyApiRepositoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlpineProxyApiRepository {
|
|
180
|
+
if (json == null) {
|
|
181
|
+
return json;
|
|
182
|
+
}
|
|
183
|
+
return {
|
|
184
|
+
|
|
185
|
+
'alpineSigning': AlpineSigningRepositoriesAttributesFromJSON(json['alpineSigning']),
|
|
186
|
+
'cleanup': json['cleanup'] == null ? undefined : CleanupPolicyAttributesFromJSON(json['cleanup']),
|
|
187
|
+
'httpClient': HttpClientAttributesFromJSON(json['httpClient']),
|
|
188
|
+
'name': json['name'],
|
|
189
|
+
'negativeCache': NegativeCacheAttributesFromJSON(json['negativeCache']),
|
|
190
|
+
'online': json['online'],
|
|
191
|
+
'proxy': ProxyAttributesFromJSON(json['proxy']),
|
|
192
|
+
'replication': json['replication'] == null ? undefined : ReplicationAttributesFromJSON(json['replication']),
|
|
193
|
+
'routingRule': json['routingRule'] == null ? undefined : json['routingRule'],
|
|
194
|
+
'storage': StorageAttributesFromJSON(json['storage']),
|
|
195
|
+
'format': json['format'],
|
|
196
|
+
'routingRuleName': json['routingRuleName'] == null ? undefined : json['routingRuleName'],
|
|
197
|
+
'type': json['type'],
|
|
198
|
+
'url': json['url'],
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export function AlpineProxyApiRepositoryToJSON(json: any): AlpineProxyApiRepository {
|
|
203
|
+
return AlpineProxyApiRepositoryToJSONTyped(json, false);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export function AlpineProxyApiRepositoryToJSONTyped(value?: AlpineProxyApiRepository | null, ignoreDiscriminator: boolean = false): any {
|
|
207
|
+
if (value == null) {
|
|
208
|
+
return value;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
return {
|
|
212
|
+
|
|
213
|
+
'alpineSigning': AlpineSigningRepositoriesAttributesToJSON(value['alpineSigning']),
|
|
214
|
+
'cleanup': CleanupPolicyAttributesToJSON(value['cleanup']),
|
|
215
|
+
'httpClient': HttpClientAttributesToJSON(value['httpClient']),
|
|
216
|
+
'name': value['name'],
|
|
217
|
+
'negativeCache': NegativeCacheAttributesToJSON(value['negativeCache']),
|
|
218
|
+
'online': value['online'],
|
|
219
|
+
'proxy': ProxyAttributesToJSON(value['proxy']),
|
|
220
|
+
'replication': ReplicationAttributesToJSON(value['replication']),
|
|
221
|
+
'routingRule': value['routingRule'],
|
|
222
|
+
'storage': StorageAttributesToJSON(value['storage']),
|
|
223
|
+
'format': value['format'],
|
|
224
|
+
'routingRuleName': value['routingRuleName'],
|
|
225
|
+
'type': value['type'],
|
|
226
|
+
'url': value['url'],
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
|
|
@@ -90,13 +90,13 @@ export interface AptHostedApiRepository {
|
|
|
90
90
|
* @type {string}
|
|
91
91
|
* @memberof AptHostedApiRepository
|
|
92
92
|
*/
|
|
93
|
-
name?: string;
|
|
93
|
+
readonly name?: string;
|
|
94
94
|
/**
|
|
95
95
|
* Whether this repository accepts incoming requests
|
|
96
96
|
* @type {boolean}
|
|
97
97
|
* @memberof AptHostedApiRepository
|
|
98
98
|
*/
|
|
99
|
-
online: boolean;
|
|
99
|
+
readonly online: boolean;
|
|
100
100
|
/**
|
|
101
101
|
*
|
|
102
102
|
* @type {HostedStorageAttributes}
|
|
@@ -114,7 +114,7 @@ export interface AptHostedApiRepository {
|
|
|
114
114
|
* @type {string}
|
|
115
115
|
* @memberof AptHostedApiRepository
|
|
116
116
|
*/
|
|
117
|
-
url?: string;
|
|
117
|
+
readonly url?: string;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
|
|
@@ -167,7 +167,7 @@ export function AptHostedApiRepositoryToJSON(json: any): AptHostedApiRepository
|
|
|
167
167
|
return AptHostedApiRepositoryToJSONTyped(json, false);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
export function AptHostedApiRepositoryToJSONTyped(value?: AptHostedApiRepository | null, ignoreDiscriminator: boolean = false): any {
|
|
170
|
+
export function AptHostedApiRepositoryToJSONTyped(value?: Omit<AptHostedApiRepository, 'name'|'online'|'url'> | null, ignoreDiscriminator: boolean = false): any {
|
|
171
171
|
if (value == null) {
|
|
172
172
|
return value;
|
|
173
173
|
}
|
|
@@ -179,11 +179,8 @@ export function AptHostedApiRepositoryToJSONTyped(value?: AptHostedApiRepository
|
|
|
179
179
|
'cleanup': CleanupPolicyAttributesToJSON(value['cleanup']),
|
|
180
180
|
'component': ComponentAttributesToJSON(value['component']),
|
|
181
181
|
'format': value['format'],
|
|
182
|
-
'name': value['name'],
|
|
183
|
-
'online': value['online'],
|
|
184
182
|
'storage': HostedStorageAttributesToJSON(value['storage']),
|
|
185
183
|
'type': value['type'],
|
|
186
|
-
'url': value['url'],
|
|
187
184
|
};
|
|
188
185
|
}
|
|
189
186
|
|
package/src/models/index.ts
CHANGED
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AbstractApiRepository';
|
|
4
4
|
export * from './AcknowledgeRequestXO';
|
|
5
|
+
export * from './AlpineGroupApiRepository';
|
|
5
6
|
export * from './AlpineGroupRepositoryApiRequest';
|
|
7
|
+
export * from './AlpineHostedApiRepository';
|
|
6
8
|
export * from './AlpineHostedRepositoryApiRequest';
|
|
9
|
+
export * from './AlpineProxyApiRepository';
|
|
7
10
|
export * from './AlpineProxyRepositoryApiRequest';
|
|
8
11
|
export * from './AlpineSigningRepositoriesAttributes';
|
|
9
12
|
export * from './AnonymousAccessSettingsXO';
|