@sonatype/nexus-repo-api-client 3.81.9 → 3.81.11

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.
@@ -59,11 +59,11 @@ export declare class ManageSonatypeRepositoryFirewallConfigurationApi extends ru
59
59
  /**
60
60
  * Get Sonatype Repository Firewall configuration
61
61
  */
62
- getConfigurationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
62
+ getConfigurationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IqConnectionXo>>;
63
63
  /**
64
64
  * Get Sonatype Repository Firewall configuration
65
65
  */
66
- getConfiguration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
66
+ getConfiguration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IqConnectionXo>;
67
67
  /**
68
68
  * Manage audit
69
69
  */
@@ -157,7 +157,7 @@ class ManageSonatypeRepositoryFirewallConfigurationApi extends runtime.BaseAPI {
157
157
  headers: headerParameters,
158
158
  query: queryParameters,
159
159
  }, initOverrides);
160
- return new runtime.VoidApiResponse(response);
160
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IqConnectionXoFromJSON)(jsonValue));
161
161
  });
162
162
  }
163
163
  /**
@@ -165,7 +165,8 @@ class ManageSonatypeRepositoryFirewallConfigurationApi extends runtime.BaseAPI {
165
165
  */
166
166
  getConfiguration(initOverrides) {
167
167
  return __awaiter(this, void 0, void 0, function* () {
168
- yield this.getConfigurationRaw(initOverrides);
168
+ const response = yield this.getConfigurationRaw(initOverrides);
169
+ return yield response.value();
169
170
  });
170
171
  }
171
172
  /**
@@ -59,11 +59,11 @@ export declare class ManageSonatypeRepositoryFirewallConfigurationApi extends ru
59
59
  /**
60
60
  * Get Sonatype Repository Firewall configuration
61
61
  */
62
- getConfigurationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
62
+ getConfigurationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IqConnectionXo>>;
63
63
  /**
64
64
  * Get Sonatype Repository Firewall configuration
65
65
  */
66
- getConfiguration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
66
+ getConfiguration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IqConnectionXo>;
67
67
  /**
68
68
  * Manage audit
69
69
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { IqAuditXoFromJSON, IqAuditXoToJSON, IqConnectionXoToJSON, } from '../models/index';
24
+ import { IqAuditXoFromJSON, IqAuditXoToJSON, IqConnectionXoFromJSON, IqConnectionXoToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -154,7 +154,7 @@ export class ManageSonatypeRepositoryFirewallConfigurationApi extends runtime.Ba
154
154
  headers: headerParameters,
155
155
  query: queryParameters,
156
156
  }, initOverrides);
157
- return new runtime.VoidApiResponse(response);
157
+ return new runtime.JSONApiResponse(response, (jsonValue) => IqConnectionXoFromJSON(jsonValue));
158
158
  });
159
159
  }
160
160
  /**
@@ -162,7 +162,8 @@ export class ManageSonatypeRepositoryFirewallConfigurationApi extends runtime.Ba
162
162
  */
163
163
  getConfiguration(initOverrides) {
164
164
  return __awaiter(this, void 0, void 0, function* () {
165
- yield this.getConfigurationRaw(initOverrides);
165
+ const response = yield this.getConfigurationRaw(initOverrides);
166
+ return yield response.value();
166
167
  });
167
168
  }
168
169
  /**
@@ -17,6 +17,12 @@ import type { StorageAttributes } from './StorageAttributes';
17
17
  * @interface SimpleApiGroupDeployRepository
18
18
  */
19
19
  export interface SimpleApiGroupDeployRepository {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof SimpleApiGroupDeployRepository
24
+ */
25
+ format?: string;
20
26
  /**
21
27
  *
22
28
  * @type {GroupDeployAttributes}
@@ -41,6 +47,18 @@ export interface SimpleApiGroupDeployRepository {
41
47
  * @memberof SimpleApiGroupDeployRepository
42
48
  */
43
49
  storage: StorageAttributes;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof SimpleApiGroupDeployRepository
54
+ */
55
+ type?: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof SimpleApiGroupDeployRepository
60
+ */
61
+ url?: string;
44
62
  }
45
63
  /**
46
64
  * Check if a given object implements the SimpleApiGroupDeployRepository interface.
@@ -33,10 +33,13 @@ export function SimpleApiGroupDeployRepositoryFromJSONTyped(json, ignoreDiscrimi
33
33
  return json;
34
34
  }
35
35
  return {
36
+ 'format': json['format'] == null ? undefined : json['format'],
36
37
  'group': GroupDeployAttributesFromJSON(json['group']),
37
38
  'name': json['name'] == null ? undefined : json['name'],
38
39
  'online': json['online'],
39
40
  'storage': StorageAttributesFromJSON(json['storage']),
41
+ 'type': json['type'] == null ? undefined : json['type'],
42
+ 'url': json['url'] == null ? undefined : json['url'],
40
43
  };
41
44
  }
42
45
  export function SimpleApiGroupDeployRepositoryToJSON(json) {
@@ -47,7 +50,10 @@ export function SimpleApiGroupDeployRepositoryToJSONTyped(value, ignoreDiscrimin
47
50
  return value;
48
51
  }
49
52
  return {
53
+ 'format': value['format'],
50
54
  'group': GroupDeployAttributesToJSON(value['group']),
51
55
  'storage': StorageAttributesToJSON(value['storage']),
56
+ 'type': value['type'],
57
+ 'url': value['url'],
52
58
  };
53
59
  }
@@ -17,6 +17,12 @@ import type { StorageAttributes } from './StorageAttributes';
17
17
  * @interface SimpleApiGroupDeployRepository
18
18
  */
19
19
  export interface SimpleApiGroupDeployRepository {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof SimpleApiGroupDeployRepository
24
+ */
25
+ format?: string;
20
26
  /**
21
27
  *
22
28
  * @type {GroupDeployAttributes}
@@ -41,6 +47,18 @@ export interface SimpleApiGroupDeployRepository {
41
47
  * @memberof SimpleApiGroupDeployRepository
42
48
  */
43
49
  storage: StorageAttributes;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof SimpleApiGroupDeployRepository
54
+ */
55
+ type?: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof SimpleApiGroupDeployRepository
60
+ */
61
+ url?: string;
44
62
  }
45
63
  /**
46
64
  * Check if a given object implements the SimpleApiGroupDeployRepository interface.
@@ -40,10 +40,13 @@ function SimpleApiGroupDeployRepositoryFromJSONTyped(json, ignoreDiscriminator)
40
40
  return json;
41
41
  }
42
42
  return {
43
+ 'format': json['format'] == null ? undefined : json['format'],
43
44
  'group': (0, GroupDeployAttributes_1.GroupDeployAttributesFromJSON)(json['group']),
44
45
  'name': json['name'] == null ? undefined : json['name'],
45
46
  'online': json['online'],
46
47
  'storage': (0, StorageAttributes_1.StorageAttributesFromJSON)(json['storage']),
48
+ 'type': json['type'] == null ? undefined : json['type'],
49
+ 'url': json['url'] == null ? undefined : json['url'],
47
50
  };
48
51
  }
49
52
  function SimpleApiGroupDeployRepositoryToJSON(json) {
@@ -54,7 +57,10 @@ function SimpleApiGroupDeployRepositoryToJSONTyped(value, ignoreDiscriminator =
54
57
  return value;
55
58
  }
56
59
  return {
60
+ 'format': value['format'],
57
61
  'group': (0, GroupDeployAttributes_1.GroupDeployAttributesToJSON)(value['group']),
58
62
  'storage': (0, StorageAttributes_1.StorageAttributesToJSON)(value['storage']),
63
+ 'type': value['type'],
64
+ 'url': value['url'],
59
65
  };
60
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonatype/nexus-repo-api-client",
3
- "version": "3.81.9",
3
+ "version": "3.81.11",
4
4
  "description": "OpenAPI client for @sonatype/nexus-repo-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -165,7 +165,7 @@ export class ManageSonatypeRepositoryFirewallConfigurationApi extends runtime.Ba
165
165
  /**
166
166
  * Get Sonatype Repository Firewall configuration
167
167
  */
168
- async getConfigurationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
168
+ async getConfigurationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IqConnectionXo>> {
169
169
  const queryParameters: any = {};
170
170
 
171
171
  const headerParameters: runtime.HTTPHeaders = {};
@@ -180,14 +180,15 @@ export class ManageSonatypeRepositoryFirewallConfigurationApi extends runtime.Ba
180
180
  query: queryParameters,
181
181
  }, initOverrides);
182
182
 
183
- return new runtime.VoidApiResponse(response);
183
+ return new runtime.JSONApiResponse(response, (jsonValue) => IqConnectionXoFromJSON(jsonValue));
184
184
  }
185
185
 
186
186
  /**
187
187
  * Get Sonatype Repository Firewall configuration
188
188
  */
189
- async getConfiguration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
190
- await this.getConfigurationRaw(initOverrides);
189
+ async getConfiguration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IqConnectionXo> {
190
+ const response = await this.getConfigurationRaw(initOverrides);
191
+ return await response.value();
191
192
  }
192
193
 
193
194
  /**
@@ -34,6 +34,12 @@ import {
34
34
  * @interface SimpleApiGroupDeployRepository
35
35
  */
36
36
  export interface SimpleApiGroupDeployRepository {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof SimpleApiGroupDeployRepository
41
+ */
42
+ format?: string;
37
43
  /**
38
44
  *
39
45
  * @type {GroupDeployAttributes}
@@ -58,6 +64,18 @@ export interface SimpleApiGroupDeployRepository {
58
64
  * @memberof SimpleApiGroupDeployRepository
59
65
  */
60
66
  storage: StorageAttributes;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof SimpleApiGroupDeployRepository
71
+ */
72
+ type?: string;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof SimpleApiGroupDeployRepository
77
+ */
78
+ url?: string;
61
79
  }
62
80
 
63
81
  /**
@@ -80,10 +98,13 @@ export function SimpleApiGroupDeployRepositoryFromJSONTyped(json: any, ignoreDis
80
98
  }
81
99
  return {
82
100
 
101
+ 'format': json['format'] == null ? undefined : json['format'],
83
102
  'group': GroupDeployAttributesFromJSON(json['group']),
84
103
  'name': json['name'] == null ? undefined : json['name'],
85
104
  'online': json['online'],
86
105
  'storage': StorageAttributesFromJSON(json['storage']),
106
+ 'type': json['type'] == null ? undefined : json['type'],
107
+ 'url': json['url'] == null ? undefined : json['url'],
87
108
  };
88
109
  }
89
110
 
@@ -98,8 +119,11 @@ export function SimpleApiGroupDeployRepositoryToJSONTyped(value?: Omit<SimpleApi
98
119
 
99
120
  return {
100
121
 
122
+ 'format': value['format'],
101
123
  'group': GroupDeployAttributesToJSON(value['group']),
102
124
  'storage': StorageAttributesToJSON(value['storage']),
125
+ 'type': value['type'],
126
+ 'url': value['url'],
103
127
  };
104
128
  }
105
129