@sonatype/nexus-repo-api-client 3.81.16 → 3.81.18

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.
@@ -56,6 +56,7 @@ src/models/ApiPrivilegeApplicationRequest.ts
56
56
  src/models/ApiPrivilegeRepositoryAdminRequest.ts
57
57
  src/models/ApiPrivilegeRepositoryContentSelectorRequest.ts
58
58
  src/models/ApiPrivilegeRepositoryViewRequest.ts
59
+ src/models/ApiPrivilegeRequest.ts
59
60
  src/models/ApiPrivilegeScriptRequest.ts
60
61
  src/models/ApiPrivilegeWildcardRequest.ts
61
62
  src/models/ApiUser.ts
@@ -113,7 +114,6 @@ src/models/FileBlobStoreApiModel.ts
113
114
  src/models/FileBlobStoreApiUpdateRequest.ts
114
115
  src/models/FrequencyXO.ts
115
116
  src/models/GenericBlobStoreApiResponse.ts
116
- src/models/GetAllPrivileges200ResponseInner.ts
117
117
  src/models/GitLfsHostedRepositoryApiRequest.ts
118
118
  src/models/GolangGroupRepositoryApiRequest.ts
119
119
  src/models/GolangProxyRepositoryApiRequest.ts
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiPrivilegeApplicationRequest, ApiPrivilegeRepositoryAdminRequest, ApiPrivilegeRepositoryContentSelectorRequest, ApiPrivilegeRepositoryViewRequest, ApiPrivilegeScriptRequest, ApiPrivilegeWildcardRequest, GetAllPrivileges200ResponseInner } from '../models/index';
13
+ import type { ApiPrivilegeApplicationRequest, ApiPrivilegeRepositoryAdminRequest, ApiPrivilegeRepositoryContentSelectorRequest, ApiPrivilegeRepositoryViewRequest, ApiPrivilegeRequest, ApiPrivilegeScriptRequest, ApiPrivilegeWildcardRequest } from '../models/index';
14
14
  export interface SecurityManagementPrivilegesApiCreateApplicationPrivilegeRequest {
15
15
  body?: ApiPrivilegeApplicationRequest;
16
16
  }
@@ -122,19 +122,19 @@ export declare class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
122
122
  /**
123
123
  * Retrieve a list of privileges.
124
124
  */
125
- getAllPrivilegesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GetAllPrivileges200ResponseInner>>>;
125
+ getAllPrivilegesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiPrivilegeRequest>>>;
126
126
  /**
127
127
  * Retrieve a list of privileges.
128
128
  */
129
- getAllPrivileges(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GetAllPrivileges200ResponseInner>>;
129
+ getAllPrivileges(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiPrivilegeRequest>>;
130
130
  /**
131
131
  * Retrieve a privilege by name.
132
132
  */
133
- getPrivilegeRaw(requestParameters: SecurityManagementPrivilegesApiGetPrivilegeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllPrivileges200ResponseInner>>;
133
+ getPrivilegeRaw(requestParameters: SecurityManagementPrivilegesApiGetPrivilegeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPrivilegeRequest>>;
134
134
  /**
135
135
  * Retrieve a privilege by name.
136
136
  */
137
- getPrivilege(requestParameters: SecurityManagementPrivilegesApiGetPrivilegeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllPrivileges200ResponseInner>;
137
+ getPrivilege(requestParameters: SecurityManagementPrivilegesApiGetPrivilegeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPrivilegeRequest>;
138
138
  /**
139
139
  * Update an application type privilege.
140
140
  */
@@ -249,7 +249,7 @@ class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
249
249
  headers: headerParameters,
250
250
  query: queryParameters,
251
251
  }, initOverrides);
252
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GetAllPrivileges200ResponseInnerFromJSON));
252
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiPrivilegeRequestFromJSON));
253
253
  });
254
254
  }
255
255
  /**
@@ -280,7 +280,7 @@ class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
280
280
  headers: headerParameters,
281
281
  query: queryParameters,
282
282
  }, initOverrides);
283
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetAllPrivileges200ResponseInnerFromJSON)(jsonValue));
283
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiPrivilegeRequestFromJSON)(jsonValue));
284
284
  });
285
285
  }
286
286
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiPrivilegeApplicationRequest, ApiPrivilegeRepositoryAdminRequest, ApiPrivilegeRepositoryContentSelectorRequest, ApiPrivilegeRepositoryViewRequest, ApiPrivilegeScriptRequest, ApiPrivilegeWildcardRequest, GetAllPrivileges200ResponseInner } from '../models/index';
13
+ import type { ApiPrivilegeApplicationRequest, ApiPrivilegeRepositoryAdminRequest, ApiPrivilegeRepositoryContentSelectorRequest, ApiPrivilegeRepositoryViewRequest, ApiPrivilegeRequest, ApiPrivilegeScriptRequest, ApiPrivilegeWildcardRequest } from '../models/index';
14
14
  export interface SecurityManagementPrivilegesApiCreateApplicationPrivilegeRequest {
15
15
  body?: ApiPrivilegeApplicationRequest;
16
16
  }
@@ -122,19 +122,19 @@ export declare class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
122
122
  /**
123
123
  * Retrieve a list of privileges.
124
124
  */
125
- getAllPrivilegesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GetAllPrivileges200ResponseInner>>>;
125
+ getAllPrivilegesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiPrivilegeRequest>>>;
126
126
  /**
127
127
  * Retrieve a list of privileges.
128
128
  */
129
- getAllPrivileges(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GetAllPrivileges200ResponseInner>>;
129
+ getAllPrivileges(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiPrivilegeRequest>>;
130
130
  /**
131
131
  * Retrieve a privilege by name.
132
132
  */
133
- getPrivilegeRaw(requestParameters: SecurityManagementPrivilegesApiGetPrivilegeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllPrivileges200ResponseInner>>;
133
+ getPrivilegeRaw(requestParameters: SecurityManagementPrivilegesApiGetPrivilegeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPrivilegeRequest>>;
134
134
  /**
135
135
  * Retrieve a privilege by name.
136
136
  */
137
- getPrivilege(requestParameters: SecurityManagementPrivilegesApiGetPrivilegeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllPrivileges200ResponseInner>;
137
+ getPrivilege(requestParameters: SecurityManagementPrivilegesApiGetPrivilegeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPrivilegeRequest>;
138
138
  /**
139
139
  * Update an application type privilege.
140
140
  */
@@ -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 { ApiPrivilegeApplicationRequestToJSON, ApiPrivilegeRepositoryAdminRequestToJSON, ApiPrivilegeRepositoryContentSelectorRequestToJSON, ApiPrivilegeRepositoryViewRequestToJSON, ApiPrivilegeScriptRequestToJSON, ApiPrivilegeWildcardRequestToJSON, GetAllPrivileges200ResponseInnerFromJSON, } from '../models/index';
24
+ import { ApiPrivilegeApplicationRequestToJSON, ApiPrivilegeRepositoryAdminRequestToJSON, ApiPrivilegeRepositoryContentSelectorRequestToJSON, ApiPrivilegeRepositoryViewRequestToJSON, ApiPrivilegeRequestFromJSON, ApiPrivilegeScriptRequestToJSON, ApiPrivilegeWildcardRequestToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -246,7 +246,7 @@ export class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
246
246
  headers: headerParameters,
247
247
  query: queryParameters,
248
248
  }, initOverrides);
249
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GetAllPrivileges200ResponseInnerFromJSON));
249
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiPrivilegeRequestFromJSON));
250
250
  });
251
251
  }
252
252
  /**
@@ -277,7 +277,7 @@ export class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
277
277
  headers: headerParameters,
278
278
  query: queryParameters,
279
279
  }, initOverrides);
280
- return new runtime.JSONApiResponse(response, (jsonValue) => GetAllPrivileges200ResponseInnerFromJSON(jsonValue));
280
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiPrivilegeRequestFromJSON(jsonValue));
281
281
  });
282
282
  }
283
283
  /**
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Sonatype Nexus Repository Manager
3
+ * This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.81.1-01.
4
+ *
5
+ * The version of the OpenAPI document: 3.81.1-01
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ApiPrivilegeRequest
16
+ */
17
+ export interface ApiPrivilegeRequest {
18
+ /**
19
+ * A collection of actions to associate with the privilege, using BREAD syntax (browse,read,edit,add,delete,all) as well as 'run' for script privileges.
20
+ *
21
+ * Only applicable for Privilege Types: repository-admin, repository-content-selector, repository-view, script
22
+ * @type {Array<string>}
23
+ * @memberof ApiPrivilegeRequest
24
+ */
25
+ actions?: Array<string>;
26
+ /**
27
+ * The name of a content selector that will be used to grant access to content via this privilege.
28
+ *
29
+ * Only applicable for Privilege Types: repository-content-selector
30
+ * @type {string}
31
+ * @memberof ApiPrivilegeRequest
32
+ */
33
+ contentSelector?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ApiPrivilegeRequest
38
+ */
39
+ description?: string;
40
+ /**
41
+ * The domain (i.e. 'blobstores', 'capabilities' or even '*' for all) that this privilege is granting access to. Note that creating new privileges with a domain is only necessary when using plugins that define their own domain(s).
42
+ *
43
+ * Only applicable for Privilege Types: application
44
+ * @type {string}
45
+ * @memberof ApiPrivilegeRequest
46
+ */
47
+ domain?: string;
48
+ /**
49
+ * The repository format (i.e 'nuget', 'npm') this privilege will grant access to (or * for all).
50
+ *
51
+ * Only applicable for Privilege Types: repository-admin, repository-content-selector, repository-view
52
+ * @type {string}
53
+ * @memberof ApiPrivilegeRequest
54
+ */
55
+ format?: string;
56
+ /**
57
+ * The name of the privilege. This value cannot be changed.
58
+ * @type {string}
59
+ * @memberof ApiPrivilegeRequest
60
+ */
61
+ name: string;
62
+ /**
63
+ * A colon separated list of parts that create a permission string.
64
+ *
65
+ * Only applicable for Privilege Types: wildcard
66
+ * @type {string}
67
+ * @memberof ApiPrivilegeRequest
68
+ */
69
+ pattern?: string;
70
+ /**
71
+ * Indicates whether the privilege can be changed. External values supplied to this will be ignored by the system.
72
+ * @type {boolean}
73
+ * @memberof ApiPrivilegeRequest
74
+ */
75
+ readOnly?: boolean;
76
+ /**
77
+ * The name of the repository this privilege will grant access to (or * for all). The repository MUST exist.
78
+ *
79
+ * Only applicable for Privilege Types: repository-admin, repository-content-selector, repository-view
80
+ * @type {string}
81
+ * @memberof ApiPrivilegeRequest
82
+ */
83
+ repository?: string;
84
+ /**
85
+ * The name of a script to give access to.
86
+ *
87
+ * Only applicable for Privilege Types: script
88
+ * @type {string}
89
+ * @memberof ApiPrivilegeRequest
90
+ */
91
+ scriptName?: string;
92
+ /**
93
+ * The type of privilege, each type covers different portion of the system. External values supplied to this will be ignored by the system.
94
+ * @type {string}
95
+ * @memberof ApiPrivilegeRequest
96
+ */
97
+ type: ApiPrivilegeRequestTypeEnum;
98
+ }
99
+ /**
100
+ * @export
101
+ */
102
+ export declare const ApiPrivilegeRequestTypeEnum: {
103
+ readonly Application: "application";
104
+ readonly RepositoryAdmin: "repository-admin";
105
+ readonly RepositoryContentSelector: "repository-content-selector";
106
+ readonly RepositoryView: "repository-view";
107
+ readonly Script: "script";
108
+ readonly Wildcard: "wildcard";
109
+ };
110
+ export type ApiPrivilegeRequestTypeEnum = typeof ApiPrivilegeRequestTypeEnum[keyof typeof ApiPrivilegeRequestTypeEnum];
111
+ /**
112
+ * Check if a given object implements the ApiPrivilegeRequest interface.
113
+ */
114
+ export declare function instanceOfApiPrivilegeRequest(value: object): value is ApiPrivilegeRequest;
115
+ export declare function ApiPrivilegeRequestFromJSON(json: any): ApiPrivilegeRequest;
116
+ export declare function ApiPrivilegeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPrivilegeRequest;
117
+ export declare function ApiPrivilegeRequestToJSON(json: any): ApiPrivilegeRequest;
118
+ export declare function ApiPrivilegeRequestToJSONTyped(value?: ApiPrivilegeRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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.81.1-01.
6
+ *
7
+ * The version of the OpenAPI document: 3.81.1-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
+ * @export
16
+ */
17
+ export const ApiPrivilegeRequestTypeEnum = {
18
+ Application: 'application',
19
+ RepositoryAdmin: 'repository-admin',
20
+ RepositoryContentSelector: 'repository-content-selector',
21
+ RepositoryView: 'repository-view',
22
+ Script: 'script',
23
+ Wildcard: 'wildcard'
24
+ };
25
+ /**
26
+ * Check if a given object implements the ApiPrivilegeRequest interface.
27
+ */
28
+ export function instanceOfApiPrivilegeRequest(value) {
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ if (!('type' in value) || value['type'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ export function ApiPrivilegeRequestFromJSON(json) {
36
+ return ApiPrivilegeRequestFromJSONTyped(json, false);
37
+ }
38
+ export function ApiPrivilegeRequestFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'actions': json['actions'] == null ? undefined : json['actions'],
44
+ 'contentSelector': json['contentSelector'] == null ? undefined : json['contentSelector'],
45
+ 'description': json['description'] == null ? undefined : json['description'],
46
+ 'domain': json['domain'] == null ? undefined : json['domain'],
47
+ 'format': json['format'] == null ? undefined : json['format'],
48
+ 'name': json['name'],
49
+ 'pattern': json['pattern'] == null ? undefined : json['pattern'],
50
+ 'readOnly': json['readOnly'] == null ? undefined : json['readOnly'],
51
+ 'repository': json['repository'] == null ? undefined : json['repository'],
52
+ 'scriptName': json['scriptName'] == null ? undefined : json['scriptName'],
53
+ 'type': json['type'],
54
+ };
55
+ }
56
+ export function ApiPrivilegeRequestToJSON(json) {
57
+ return ApiPrivilegeRequestToJSONTyped(json, false);
58
+ }
59
+ export function ApiPrivilegeRequestToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'actions': value['actions'],
65
+ 'contentSelector': value['contentSelector'],
66
+ 'description': value['description'],
67
+ 'domain': value['domain'],
68
+ 'format': value['format'],
69
+ 'name': value['name'],
70
+ 'pattern': value['pattern'],
71
+ 'readOnly': value['readOnly'],
72
+ 'repository': value['repository'],
73
+ 'scriptName': value['scriptName'],
74
+ 'type': value['type'],
75
+ };
76
+ }
@@ -10,6 +10,7 @@ export * from './ApiPrivilegeApplicationRequest';
10
10
  export * from './ApiPrivilegeRepositoryAdminRequest';
11
11
  export * from './ApiPrivilegeRepositoryContentSelectorRequest';
12
12
  export * from './ApiPrivilegeRepositoryViewRequest';
13
+ export * from './ApiPrivilegeRequest';
13
14
  export * from './ApiPrivilegeScriptRequest';
14
15
  export * from './ApiPrivilegeWildcardRequest';
15
16
  export * from './ApiUser';
@@ -67,7 +68,6 @@ export * from './FileBlobStoreApiModel';
67
68
  export * from './FileBlobStoreApiUpdateRequest';
68
69
  export * from './FrequencyXO';
69
70
  export * from './GenericBlobStoreApiResponse';
70
- export * from './GetAllPrivileges200ResponseInner';
71
71
  export * from './GitLfsHostedRepositoryApiRequest';
72
72
  export * from './GolangGroupRepositoryApiRequest';
73
73
  export * from './GolangProxyRepositoryApiRequest';
@@ -12,6 +12,7 @@ export * from './ApiPrivilegeApplicationRequest';
12
12
  export * from './ApiPrivilegeRepositoryAdminRequest';
13
13
  export * from './ApiPrivilegeRepositoryContentSelectorRequest';
14
14
  export * from './ApiPrivilegeRepositoryViewRequest';
15
+ export * from './ApiPrivilegeRequest';
15
16
  export * from './ApiPrivilegeScriptRequest';
16
17
  export * from './ApiPrivilegeWildcardRequest';
17
18
  export * from './ApiUser';
@@ -69,7 +70,6 @@ export * from './FileBlobStoreApiModel';
69
70
  export * from './FileBlobStoreApiUpdateRequest';
70
71
  export * from './FrequencyXO';
71
72
  export * from './GenericBlobStoreApiResponse';
72
- export * from './GetAllPrivileges200ResponseInner';
73
73
  export * from './GitLfsHostedRepositoryApiRequest';
74
74
  export * from './GolangGroupRepositoryApiRequest';
75
75
  export * from './GolangProxyRepositoryApiRequest';
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Sonatype Nexus Repository Manager
3
+ * This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.81.1-01.
4
+ *
5
+ * The version of the OpenAPI document: 3.81.1-01
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ApiPrivilegeRequest
16
+ */
17
+ export interface ApiPrivilegeRequest {
18
+ /**
19
+ * A collection of actions to associate with the privilege, using BREAD syntax (browse,read,edit,add,delete,all) as well as 'run' for script privileges.
20
+ *
21
+ * Only applicable for Privilege Types: repository-admin, repository-content-selector, repository-view, script
22
+ * @type {Array<string>}
23
+ * @memberof ApiPrivilegeRequest
24
+ */
25
+ actions?: Array<string>;
26
+ /**
27
+ * The name of a content selector that will be used to grant access to content via this privilege.
28
+ *
29
+ * Only applicable for Privilege Types: repository-content-selector
30
+ * @type {string}
31
+ * @memberof ApiPrivilegeRequest
32
+ */
33
+ contentSelector?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ApiPrivilegeRequest
38
+ */
39
+ description?: string;
40
+ /**
41
+ * The domain (i.e. 'blobstores', 'capabilities' or even '*' for all) that this privilege is granting access to. Note that creating new privileges with a domain is only necessary when using plugins that define their own domain(s).
42
+ *
43
+ * Only applicable for Privilege Types: application
44
+ * @type {string}
45
+ * @memberof ApiPrivilegeRequest
46
+ */
47
+ domain?: string;
48
+ /**
49
+ * The repository format (i.e 'nuget', 'npm') this privilege will grant access to (or * for all).
50
+ *
51
+ * Only applicable for Privilege Types: repository-admin, repository-content-selector, repository-view
52
+ * @type {string}
53
+ * @memberof ApiPrivilegeRequest
54
+ */
55
+ format?: string;
56
+ /**
57
+ * The name of the privilege. This value cannot be changed.
58
+ * @type {string}
59
+ * @memberof ApiPrivilegeRequest
60
+ */
61
+ name: string;
62
+ /**
63
+ * A colon separated list of parts that create a permission string.
64
+ *
65
+ * Only applicable for Privilege Types: wildcard
66
+ * @type {string}
67
+ * @memberof ApiPrivilegeRequest
68
+ */
69
+ pattern?: string;
70
+ /**
71
+ * Indicates whether the privilege can be changed. External values supplied to this will be ignored by the system.
72
+ * @type {boolean}
73
+ * @memberof ApiPrivilegeRequest
74
+ */
75
+ readOnly?: boolean;
76
+ /**
77
+ * The name of the repository this privilege will grant access to (or * for all). The repository MUST exist.
78
+ *
79
+ * Only applicable for Privilege Types: repository-admin, repository-content-selector, repository-view
80
+ * @type {string}
81
+ * @memberof ApiPrivilegeRequest
82
+ */
83
+ repository?: string;
84
+ /**
85
+ * The name of a script to give access to.
86
+ *
87
+ * Only applicable for Privilege Types: script
88
+ * @type {string}
89
+ * @memberof ApiPrivilegeRequest
90
+ */
91
+ scriptName?: string;
92
+ /**
93
+ * The type of privilege, each type covers different portion of the system. External values supplied to this will be ignored by the system.
94
+ * @type {string}
95
+ * @memberof ApiPrivilegeRequest
96
+ */
97
+ type: ApiPrivilegeRequestTypeEnum;
98
+ }
99
+ /**
100
+ * @export
101
+ */
102
+ export declare const ApiPrivilegeRequestTypeEnum: {
103
+ readonly Application: "application";
104
+ readonly RepositoryAdmin: "repository-admin";
105
+ readonly RepositoryContentSelector: "repository-content-selector";
106
+ readonly RepositoryView: "repository-view";
107
+ readonly Script: "script";
108
+ readonly Wildcard: "wildcard";
109
+ };
110
+ export type ApiPrivilegeRequestTypeEnum = typeof ApiPrivilegeRequestTypeEnum[keyof typeof ApiPrivilegeRequestTypeEnum];
111
+ /**
112
+ * Check if a given object implements the ApiPrivilegeRequest interface.
113
+ */
114
+ export declare function instanceOfApiPrivilegeRequest(value: object): value is ApiPrivilegeRequest;
115
+ export declare function ApiPrivilegeRequestFromJSON(json: any): ApiPrivilegeRequest;
116
+ export declare function ApiPrivilegeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPrivilegeRequest;
117
+ export declare function ApiPrivilegeRequestToJSON(json: any): ApiPrivilegeRequest;
118
+ export declare function ApiPrivilegeRequestToJSONTyped(value?: ApiPrivilegeRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,84 @@
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.81.1-01.
7
+ *
8
+ * The version of the OpenAPI document: 3.81.1-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.ApiPrivilegeRequestTypeEnum = void 0;
17
+ exports.instanceOfApiPrivilegeRequest = instanceOfApiPrivilegeRequest;
18
+ exports.ApiPrivilegeRequestFromJSON = ApiPrivilegeRequestFromJSON;
19
+ exports.ApiPrivilegeRequestFromJSONTyped = ApiPrivilegeRequestFromJSONTyped;
20
+ exports.ApiPrivilegeRequestToJSON = ApiPrivilegeRequestToJSON;
21
+ exports.ApiPrivilegeRequestToJSONTyped = ApiPrivilegeRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ApiPrivilegeRequestTypeEnum = {
26
+ Application: 'application',
27
+ RepositoryAdmin: 'repository-admin',
28
+ RepositoryContentSelector: 'repository-content-selector',
29
+ RepositoryView: 'repository-view',
30
+ Script: 'script',
31
+ Wildcard: 'wildcard'
32
+ };
33
+ /**
34
+ * Check if a given object implements the ApiPrivilegeRequest interface.
35
+ */
36
+ function instanceOfApiPrivilegeRequest(value) {
37
+ if (!('name' in value) || value['name'] === undefined)
38
+ return false;
39
+ if (!('type' in value) || value['type'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function ApiPrivilegeRequestFromJSON(json) {
44
+ return ApiPrivilegeRequestFromJSONTyped(json, false);
45
+ }
46
+ function ApiPrivilegeRequestFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'actions': json['actions'] == null ? undefined : json['actions'],
52
+ 'contentSelector': json['contentSelector'] == null ? undefined : json['contentSelector'],
53
+ 'description': json['description'] == null ? undefined : json['description'],
54
+ 'domain': json['domain'] == null ? undefined : json['domain'],
55
+ 'format': json['format'] == null ? undefined : json['format'],
56
+ 'name': json['name'],
57
+ 'pattern': json['pattern'] == null ? undefined : json['pattern'],
58
+ 'readOnly': json['readOnly'] == null ? undefined : json['readOnly'],
59
+ 'repository': json['repository'] == null ? undefined : json['repository'],
60
+ 'scriptName': json['scriptName'] == null ? undefined : json['scriptName'],
61
+ 'type': json['type'],
62
+ };
63
+ }
64
+ function ApiPrivilegeRequestToJSON(json) {
65
+ return ApiPrivilegeRequestToJSONTyped(json, false);
66
+ }
67
+ function ApiPrivilegeRequestToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'actions': value['actions'],
73
+ 'contentSelector': value['contentSelector'],
74
+ 'description': value['description'],
75
+ 'domain': value['domain'],
76
+ 'format': value['format'],
77
+ 'name': value['name'],
78
+ 'pattern': value['pattern'],
79
+ 'readOnly': value['readOnly'],
80
+ 'repository': value['repository'],
81
+ 'scriptName': value['scriptName'],
82
+ 'type': value['type'],
83
+ };
84
+ }
@@ -10,6 +10,7 @@ export * from './ApiPrivilegeApplicationRequest';
10
10
  export * from './ApiPrivilegeRepositoryAdminRequest';
11
11
  export * from './ApiPrivilegeRepositoryContentSelectorRequest';
12
12
  export * from './ApiPrivilegeRepositoryViewRequest';
13
+ export * from './ApiPrivilegeRequest';
13
14
  export * from './ApiPrivilegeScriptRequest';
14
15
  export * from './ApiPrivilegeWildcardRequest';
15
16
  export * from './ApiUser';
@@ -67,7 +68,6 @@ export * from './FileBlobStoreApiModel';
67
68
  export * from './FileBlobStoreApiUpdateRequest';
68
69
  export * from './FrequencyXO';
69
70
  export * from './GenericBlobStoreApiResponse';
70
- export * from './GetAllPrivileges200ResponseInner';
71
71
  export * from './GitLfsHostedRepositoryApiRequest';
72
72
  export * from './GolangGroupRepositoryApiRequest';
73
73
  export * from './GolangProxyRepositoryApiRequest';
@@ -28,6 +28,7 @@ __exportStar(require("./ApiPrivilegeApplicationRequest"), exports);
28
28
  __exportStar(require("./ApiPrivilegeRepositoryAdminRequest"), exports);
29
29
  __exportStar(require("./ApiPrivilegeRepositoryContentSelectorRequest"), exports);
30
30
  __exportStar(require("./ApiPrivilegeRepositoryViewRequest"), exports);
31
+ __exportStar(require("./ApiPrivilegeRequest"), exports);
31
32
  __exportStar(require("./ApiPrivilegeScriptRequest"), exports);
32
33
  __exportStar(require("./ApiPrivilegeWildcardRequest"), exports);
33
34
  __exportStar(require("./ApiUser"), exports);
@@ -85,7 +86,6 @@ __exportStar(require("./FileBlobStoreApiModel"), exports);
85
86
  __exportStar(require("./FileBlobStoreApiUpdateRequest"), exports);
86
87
  __exportStar(require("./FrequencyXO"), exports);
87
88
  __exportStar(require("./GenericBlobStoreApiResponse"), exports);
88
- __exportStar(require("./GetAllPrivileges200ResponseInner"), exports);
89
89
  __exportStar(require("./GitLfsHostedRepositoryApiRequest"), exports);
90
90
  __exportStar(require("./GolangGroupRepositoryApiRequest"), exports);
91
91
  __exportStar(require("./GolangProxyRepositoryApiRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonatype/nexus-repo-api-client",
3
- "version": "3.81.16",
3
+ "version": "3.81.18",
4
4
  "description": "OpenAPI client for @sonatype/nexus-repo-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -19,9 +19,9 @@ import type {
19
19
  ApiPrivilegeRepositoryAdminRequest,
20
20
  ApiPrivilegeRepositoryContentSelectorRequest,
21
21
  ApiPrivilegeRepositoryViewRequest,
22
+ ApiPrivilegeRequest,
22
23
  ApiPrivilegeScriptRequest,
23
24
  ApiPrivilegeWildcardRequest,
24
- GetAllPrivileges200ResponseInner,
25
25
  } from '../models/index';
26
26
  import {
27
27
  ApiPrivilegeApplicationRequestFromJSON,
@@ -32,12 +32,12 @@ import {
32
32
  ApiPrivilegeRepositoryContentSelectorRequestToJSON,
33
33
  ApiPrivilegeRepositoryViewRequestFromJSON,
34
34
  ApiPrivilegeRepositoryViewRequestToJSON,
35
+ ApiPrivilegeRequestFromJSON,
36
+ ApiPrivilegeRequestToJSON,
35
37
  ApiPrivilegeScriptRequestFromJSON,
36
38
  ApiPrivilegeScriptRequestToJSON,
37
39
  ApiPrivilegeWildcardRequestFromJSON,
38
40
  ApiPrivilegeWildcardRequestToJSON,
39
- GetAllPrivileges200ResponseInnerFromJSON,
40
- GetAllPrivileges200ResponseInnerToJSON,
41
41
  } from '../models/index';
42
42
 
43
43
  export interface SecurityManagementPrivilegesApiCreateApplicationPrivilegeRequest {
@@ -331,7 +331,7 @@ export class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
331
331
  /**
332
332
  * Retrieve a list of privileges.
333
333
  */
334
- async getAllPrivilegesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GetAllPrivileges200ResponseInner>>> {
334
+ async getAllPrivilegesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiPrivilegeRequest>>> {
335
335
  const queryParameters: any = {};
336
336
 
337
337
  const headerParameters: runtime.HTTPHeaders = {};
@@ -346,13 +346,13 @@ export class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
346
346
  query: queryParameters,
347
347
  }, initOverrides);
348
348
 
349
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GetAllPrivileges200ResponseInnerFromJSON));
349
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiPrivilegeRequestFromJSON));
350
350
  }
351
351
 
352
352
  /**
353
353
  * Retrieve a list of privileges.
354
354
  */
355
- async getAllPrivileges(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GetAllPrivileges200ResponseInner>> {
355
+ async getAllPrivileges(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiPrivilegeRequest>> {
356
356
  const response = await this.getAllPrivilegesRaw(initOverrides);
357
357
  return await response.value();
358
358
  }
@@ -360,7 +360,7 @@ export class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
360
360
  /**
361
361
  * Retrieve a privilege by name.
362
362
  */
363
- async getPrivilegeRaw(requestParameters: SecurityManagementPrivilegesApiGetPrivilegeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllPrivileges200ResponseInner>> {
363
+ async getPrivilegeRaw(requestParameters: SecurityManagementPrivilegesApiGetPrivilegeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPrivilegeRequest>> {
364
364
  if (requestParameters['privilegeName'] == null) {
365
365
  throw new runtime.RequiredError(
366
366
  'privilegeName',
@@ -382,13 +382,13 @@ export class SecurityManagementPrivilegesApi extends runtime.BaseAPI {
382
382
  query: queryParameters,
383
383
  }, initOverrides);
384
384
 
385
- return new runtime.JSONApiResponse(response, (jsonValue) => GetAllPrivileges200ResponseInnerFromJSON(jsonValue));
385
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiPrivilegeRequestFromJSON(jsonValue));
386
386
  }
387
387
 
388
388
  /**
389
389
  * Retrieve a privilege by name.
390
390
  */
391
- async getPrivilege(requestParameters: SecurityManagementPrivilegesApiGetPrivilegeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllPrivileges200ResponseInner> {
391
+ async getPrivilege(requestParameters: SecurityManagementPrivilegesApiGetPrivilegeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPrivilegeRequest> {
392
392
  const response = await this.getPrivilegeRaw(requestParameters, initOverrides);
393
393
  return await response.value();
394
394
  }
@@ -0,0 +1,176 @@
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.81.1-01.
6
+ *
7
+ * The version of the OpenAPI document: 3.81.1-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
+ /**
17
+ *
18
+ * @export
19
+ * @interface ApiPrivilegeRequest
20
+ */
21
+ export interface ApiPrivilegeRequest {
22
+ /**
23
+ * A collection of actions to associate with the privilege, using BREAD syntax (browse,read,edit,add,delete,all) as well as 'run' for script privileges.
24
+ *
25
+ * Only applicable for Privilege Types: repository-admin, repository-content-selector, repository-view, script
26
+ * @type {Array<string>}
27
+ * @memberof ApiPrivilegeRequest
28
+ */
29
+ actions?: Array<string>;
30
+ /**
31
+ * The name of a content selector that will be used to grant access to content via this privilege.
32
+ *
33
+ * Only applicable for Privilege Types: repository-content-selector
34
+ * @type {string}
35
+ * @memberof ApiPrivilegeRequest
36
+ */
37
+ contentSelector?: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof ApiPrivilegeRequest
42
+ */
43
+ description?: string;
44
+ /**
45
+ * The domain (i.e. 'blobstores', 'capabilities' or even '*' for all) that this privilege is granting access to. Note that creating new privileges with a domain is only necessary when using plugins that define their own domain(s).
46
+ *
47
+ * Only applicable for Privilege Types: application
48
+ * @type {string}
49
+ * @memberof ApiPrivilegeRequest
50
+ */
51
+ domain?: string;
52
+ /**
53
+ * The repository format (i.e 'nuget', 'npm') this privilege will grant access to (or * for all).
54
+ *
55
+ * Only applicable for Privilege Types: repository-admin, repository-content-selector, repository-view
56
+ * @type {string}
57
+ * @memberof ApiPrivilegeRequest
58
+ */
59
+ format?: string;
60
+ /**
61
+ * The name of the privilege. This value cannot be changed.
62
+ * @type {string}
63
+ * @memberof ApiPrivilegeRequest
64
+ */
65
+ name: string;
66
+ /**
67
+ * A colon separated list of parts that create a permission string.
68
+ *
69
+ * Only applicable for Privilege Types: wildcard
70
+ * @type {string}
71
+ * @memberof ApiPrivilegeRequest
72
+ */
73
+ pattern?: string;
74
+ /**
75
+ * Indicates whether the privilege can be changed. External values supplied to this will be ignored by the system.
76
+ * @type {boolean}
77
+ * @memberof ApiPrivilegeRequest
78
+ */
79
+ readOnly?: boolean;
80
+ /**
81
+ * The name of the repository this privilege will grant access to (or * for all). The repository MUST exist.
82
+ *
83
+ * Only applicable for Privilege Types: repository-admin, repository-content-selector, repository-view
84
+ * @type {string}
85
+ * @memberof ApiPrivilegeRequest
86
+ */
87
+ repository?: string;
88
+ /**
89
+ * The name of a script to give access to.
90
+ *
91
+ * Only applicable for Privilege Types: script
92
+ * @type {string}
93
+ * @memberof ApiPrivilegeRequest
94
+ */
95
+ scriptName?: string;
96
+ /**
97
+ * The type of privilege, each type covers different portion of the system. External values supplied to this will be ignored by the system.
98
+ * @type {string}
99
+ * @memberof ApiPrivilegeRequest
100
+ */
101
+ type: ApiPrivilegeRequestTypeEnum;
102
+ }
103
+
104
+
105
+ /**
106
+ * @export
107
+ */
108
+ export const ApiPrivilegeRequestTypeEnum = {
109
+ Application: 'application',
110
+ RepositoryAdmin: 'repository-admin',
111
+ RepositoryContentSelector: 'repository-content-selector',
112
+ RepositoryView: 'repository-view',
113
+ Script: 'script',
114
+ Wildcard: 'wildcard'
115
+ } as const;
116
+ export type ApiPrivilegeRequestTypeEnum = typeof ApiPrivilegeRequestTypeEnum[keyof typeof ApiPrivilegeRequestTypeEnum];
117
+
118
+
119
+ /**
120
+ * Check if a given object implements the ApiPrivilegeRequest interface.
121
+ */
122
+ export function instanceOfApiPrivilegeRequest(value: object): value is ApiPrivilegeRequest {
123
+ if (!('name' in value) || value['name'] === undefined) return false;
124
+ if (!('type' in value) || value['type'] === undefined) return false;
125
+ return true;
126
+ }
127
+
128
+ export function ApiPrivilegeRequestFromJSON(json: any): ApiPrivilegeRequest {
129
+ return ApiPrivilegeRequestFromJSONTyped(json, false);
130
+ }
131
+
132
+ export function ApiPrivilegeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPrivilegeRequest {
133
+ if (json == null) {
134
+ return json;
135
+ }
136
+ return {
137
+
138
+ 'actions': json['actions'] == null ? undefined : json['actions'],
139
+ 'contentSelector': json['contentSelector'] == null ? undefined : json['contentSelector'],
140
+ 'description': json['description'] == null ? undefined : json['description'],
141
+ 'domain': json['domain'] == null ? undefined : json['domain'],
142
+ 'format': json['format'] == null ? undefined : json['format'],
143
+ 'name': json['name'],
144
+ 'pattern': json['pattern'] == null ? undefined : json['pattern'],
145
+ 'readOnly': json['readOnly'] == null ? undefined : json['readOnly'],
146
+ 'repository': json['repository'] == null ? undefined : json['repository'],
147
+ 'scriptName': json['scriptName'] == null ? undefined : json['scriptName'],
148
+ 'type': json['type'],
149
+ };
150
+ }
151
+
152
+ export function ApiPrivilegeRequestToJSON(json: any): ApiPrivilegeRequest {
153
+ return ApiPrivilegeRequestToJSONTyped(json, false);
154
+ }
155
+
156
+ export function ApiPrivilegeRequestToJSONTyped(value?: ApiPrivilegeRequest | null, ignoreDiscriminator: boolean = false): any {
157
+ if (value == null) {
158
+ return value;
159
+ }
160
+
161
+ return {
162
+
163
+ 'actions': value['actions'],
164
+ 'contentSelector': value['contentSelector'],
165
+ 'description': value['description'],
166
+ 'domain': value['domain'],
167
+ 'format': value['format'],
168
+ 'name': value['name'],
169
+ 'pattern': value['pattern'],
170
+ 'readOnly': value['readOnly'],
171
+ 'repository': value['repository'],
172
+ 'scriptName': value['scriptName'],
173
+ 'type': value['type'],
174
+ };
175
+ }
176
+
@@ -12,6 +12,7 @@ export * from './ApiPrivilegeApplicationRequest';
12
12
  export * from './ApiPrivilegeRepositoryAdminRequest';
13
13
  export * from './ApiPrivilegeRepositoryContentSelectorRequest';
14
14
  export * from './ApiPrivilegeRepositoryViewRequest';
15
+ export * from './ApiPrivilegeRequest';
15
16
  export * from './ApiPrivilegeScriptRequest';
16
17
  export * from './ApiPrivilegeWildcardRequest';
17
18
  export * from './ApiUser';
@@ -69,7 +70,6 @@ export * from './FileBlobStoreApiModel';
69
70
  export * from './FileBlobStoreApiUpdateRequest';
70
71
  export * from './FrequencyXO';
71
72
  export * from './GenericBlobStoreApiResponse';
72
- export * from './GetAllPrivileges200ResponseInner';
73
73
  export * from './GitLfsHostedRepositoryApiRequest';
74
74
  export * from './GolangGroupRepositoryApiRequest';
75
75
  export * from './GolangProxyRepositoryApiRequest';
@@ -1,28 +0,0 @@
1
- /**
2
- * Sonatype Nexus Repository Manager
3
- * This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.81.1-01.
4
- *
5
- * The version of the OpenAPI document: 3.81.1-01
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { ApiPrivilege } from './ApiPrivilege';
13
- import type { ApiPrivilegeApplicationRequest } from './ApiPrivilegeApplicationRequest';
14
- import type { ApiPrivilegeRepositoryAdminRequest } from './ApiPrivilegeRepositoryAdminRequest';
15
- import type { ApiPrivilegeRepositoryContentSelectorRequest } from './ApiPrivilegeRepositoryContentSelectorRequest';
16
- import type { ApiPrivilegeRepositoryViewRequest } from './ApiPrivilegeRepositoryViewRequest';
17
- import type { ApiPrivilegeScriptRequest } from './ApiPrivilegeScriptRequest';
18
- import type { ApiPrivilegeWildcardRequest } from './ApiPrivilegeWildcardRequest';
19
- /**
20
- * @type GetAllPrivileges200ResponseInner
21
- *
22
- * @export
23
- */
24
- export type GetAllPrivileges200ResponseInner = ApiPrivilege | ApiPrivilegeApplicationRequest | ApiPrivilegeRepositoryAdminRequest | ApiPrivilegeRepositoryContentSelectorRequest | ApiPrivilegeRepositoryViewRequest | ApiPrivilegeScriptRequest | ApiPrivilegeWildcardRequest;
25
- export declare function GetAllPrivileges200ResponseInnerFromJSON(json: any): GetAllPrivileges200ResponseInner;
26
- export declare function GetAllPrivileges200ResponseInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllPrivileges200ResponseInner;
27
- export declare function GetAllPrivileges200ResponseInnerToJSON(json: any): any;
28
- export declare function GetAllPrivileges200ResponseInnerToJSONTyped(value?: GetAllPrivileges200ResponseInner | null, ignoreDiscriminator?: boolean): any;
@@ -1,86 +0,0 @@
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.81.1-01.
6
- *
7
- * The version of the OpenAPI document: 3.81.1-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
- import { instanceOfApiPrivilege, ApiPrivilegeFromJSONTyped, ApiPrivilegeToJSON, } from './ApiPrivilege';
15
- import { instanceOfApiPrivilegeApplicationRequest, ApiPrivilegeApplicationRequestFromJSONTyped, ApiPrivilegeApplicationRequestToJSON, } from './ApiPrivilegeApplicationRequest';
16
- import { instanceOfApiPrivilegeRepositoryAdminRequest, ApiPrivilegeRepositoryAdminRequestFromJSONTyped, ApiPrivilegeRepositoryAdminRequestToJSON, } from './ApiPrivilegeRepositoryAdminRequest';
17
- import { instanceOfApiPrivilegeRepositoryContentSelectorRequest, ApiPrivilegeRepositoryContentSelectorRequestFromJSONTyped, ApiPrivilegeRepositoryContentSelectorRequestToJSON, } from './ApiPrivilegeRepositoryContentSelectorRequest';
18
- import { instanceOfApiPrivilegeRepositoryViewRequest, ApiPrivilegeRepositoryViewRequestFromJSONTyped, ApiPrivilegeRepositoryViewRequestToJSON, } from './ApiPrivilegeRepositoryViewRequest';
19
- import { instanceOfApiPrivilegeScriptRequest, ApiPrivilegeScriptRequestFromJSONTyped, ApiPrivilegeScriptRequestToJSON, } from './ApiPrivilegeScriptRequest';
20
- import { instanceOfApiPrivilegeWildcardRequest, ApiPrivilegeWildcardRequestFromJSONTyped, ApiPrivilegeWildcardRequestToJSON, } from './ApiPrivilegeWildcardRequest';
21
- export function GetAllPrivileges200ResponseInnerFromJSON(json) {
22
- return GetAllPrivileges200ResponseInnerFromJSONTyped(json, false);
23
- }
24
- export function GetAllPrivileges200ResponseInnerFromJSONTyped(json, ignoreDiscriminator) {
25
- if (json == null) {
26
- return json;
27
- }
28
- if (typeof json !== 'object') {
29
- return json;
30
- }
31
- if (instanceOfApiPrivilege(json)) {
32
- return ApiPrivilegeFromJSONTyped(json, true);
33
- }
34
- if (instanceOfApiPrivilegeApplicationRequest(json)) {
35
- return ApiPrivilegeApplicationRequestFromJSONTyped(json, true);
36
- }
37
- if (instanceOfApiPrivilegeRepositoryAdminRequest(json)) {
38
- return ApiPrivilegeRepositoryAdminRequestFromJSONTyped(json, true);
39
- }
40
- if (instanceOfApiPrivilegeRepositoryContentSelectorRequest(json)) {
41
- return ApiPrivilegeRepositoryContentSelectorRequestFromJSONTyped(json, true);
42
- }
43
- if (instanceOfApiPrivilegeRepositoryViewRequest(json)) {
44
- return ApiPrivilegeRepositoryViewRequestFromJSONTyped(json, true);
45
- }
46
- if (instanceOfApiPrivilegeScriptRequest(json)) {
47
- return ApiPrivilegeScriptRequestFromJSONTyped(json, true);
48
- }
49
- if (instanceOfApiPrivilegeWildcardRequest(json)) {
50
- return ApiPrivilegeWildcardRequestFromJSONTyped(json, true);
51
- }
52
- return {};
53
- }
54
- export function GetAllPrivileges200ResponseInnerToJSON(json) {
55
- return GetAllPrivileges200ResponseInnerToJSONTyped(json, false);
56
- }
57
- export function GetAllPrivileges200ResponseInnerToJSONTyped(value, ignoreDiscriminator = false) {
58
- if (value == null) {
59
- return value;
60
- }
61
- if (typeof value !== 'object') {
62
- return value;
63
- }
64
- if (instanceOfApiPrivilege(value)) {
65
- return ApiPrivilegeToJSON(value);
66
- }
67
- if (instanceOfApiPrivilegeApplicationRequest(value)) {
68
- return ApiPrivilegeApplicationRequestToJSON(value);
69
- }
70
- if (instanceOfApiPrivilegeRepositoryAdminRequest(value)) {
71
- return ApiPrivilegeRepositoryAdminRequestToJSON(value);
72
- }
73
- if (instanceOfApiPrivilegeRepositoryContentSelectorRequest(value)) {
74
- return ApiPrivilegeRepositoryContentSelectorRequestToJSON(value);
75
- }
76
- if (instanceOfApiPrivilegeRepositoryViewRequest(value)) {
77
- return ApiPrivilegeRepositoryViewRequestToJSON(value);
78
- }
79
- if (instanceOfApiPrivilegeScriptRequest(value)) {
80
- return ApiPrivilegeScriptRequestToJSON(value);
81
- }
82
- if (instanceOfApiPrivilegeWildcardRequest(value)) {
83
- return ApiPrivilegeWildcardRequestToJSON(value);
84
- }
85
- return {};
86
- }
@@ -1,28 +0,0 @@
1
- /**
2
- * Sonatype Nexus Repository Manager
3
- * This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.81.1-01.
4
- *
5
- * The version of the OpenAPI document: 3.81.1-01
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { ApiPrivilege } from './ApiPrivilege';
13
- import type { ApiPrivilegeApplicationRequest } from './ApiPrivilegeApplicationRequest';
14
- import type { ApiPrivilegeRepositoryAdminRequest } from './ApiPrivilegeRepositoryAdminRequest';
15
- import type { ApiPrivilegeRepositoryContentSelectorRequest } from './ApiPrivilegeRepositoryContentSelectorRequest';
16
- import type { ApiPrivilegeRepositoryViewRequest } from './ApiPrivilegeRepositoryViewRequest';
17
- import type { ApiPrivilegeScriptRequest } from './ApiPrivilegeScriptRequest';
18
- import type { ApiPrivilegeWildcardRequest } from './ApiPrivilegeWildcardRequest';
19
- /**
20
- * @type GetAllPrivileges200ResponseInner
21
- *
22
- * @export
23
- */
24
- export type GetAllPrivileges200ResponseInner = ApiPrivilege | ApiPrivilegeApplicationRequest | ApiPrivilegeRepositoryAdminRequest | ApiPrivilegeRepositoryContentSelectorRequest | ApiPrivilegeRepositoryViewRequest | ApiPrivilegeScriptRequest | ApiPrivilegeWildcardRequest;
25
- export declare function GetAllPrivileges200ResponseInnerFromJSON(json: any): GetAllPrivileges200ResponseInner;
26
- export declare function GetAllPrivileges200ResponseInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllPrivileges200ResponseInner;
27
- export declare function GetAllPrivileges200ResponseInnerToJSON(json: any): any;
28
- export declare function GetAllPrivileges200ResponseInnerToJSONTyped(value?: GetAllPrivileges200ResponseInner | null, ignoreDiscriminator?: boolean): any;
@@ -1,92 +0,0 @@
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.81.1-01.
7
- *
8
- * The version of the OpenAPI document: 3.81.1-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.GetAllPrivileges200ResponseInnerFromJSON = GetAllPrivileges200ResponseInnerFromJSON;
17
- exports.GetAllPrivileges200ResponseInnerFromJSONTyped = GetAllPrivileges200ResponseInnerFromJSONTyped;
18
- exports.GetAllPrivileges200ResponseInnerToJSON = GetAllPrivileges200ResponseInnerToJSON;
19
- exports.GetAllPrivileges200ResponseInnerToJSONTyped = GetAllPrivileges200ResponseInnerToJSONTyped;
20
- const ApiPrivilege_1 = require("./ApiPrivilege");
21
- const ApiPrivilegeApplicationRequest_1 = require("./ApiPrivilegeApplicationRequest");
22
- const ApiPrivilegeRepositoryAdminRequest_1 = require("./ApiPrivilegeRepositoryAdminRequest");
23
- const ApiPrivilegeRepositoryContentSelectorRequest_1 = require("./ApiPrivilegeRepositoryContentSelectorRequest");
24
- const ApiPrivilegeRepositoryViewRequest_1 = require("./ApiPrivilegeRepositoryViewRequest");
25
- const ApiPrivilegeScriptRequest_1 = require("./ApiPrivilegeScriptRequest");
26
- const ApiPrivilegeWildcardRequest_1 = require("./ApiPrivilegeWildcardRequest");
27
- function GetAllPrivileges200ResponseInnerFromJSON(json) {
28
- return GetAllPrivileges200ResponseInnerFromJSONTyped(json, false);
29
- }
30
- function GetAllPrivileges200ResponseInnerFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- if (typeof json !== 'object') {
35
- return json;
36
- }
37
- if ((0, ApiPrivilege_1.instanceOfApiPrivilege)(json)) {
38
- return (0, ApiPrivilege_1.ApiPrivilegeFromJSONTyped)(json, true);
39
- }
40
- if ((0, ApiPrivilegeApplicationRequest_1.instanceOfApiPrivilegeApplicationRequest)(json)) {
41
- return (0, ApiPrivilegeApplicationRequest_1.ApiPrivilegeApplicationRequestFromJSONTyped)(json, true);
42
- }
43
- if ((0, ApiPrivilegeRepositoryAdminRequest_1.instanceOfApiPrivilegeRepositoryAdminRequest)(json)) {
44
- return (0, ApiPrivilegeRepositoryAdminRequest_1.ApiPrivilegeRepositoryAdminRequestFromJSONTyped)(json, true);
45
- }
46
- if ((0, ApiPrivilegeRepositoryContentSelectorRequest_1.instanceOfApiPrivilegeRepositoryContentSelectorRequest)(json)) {
47
- return (0, ApiPrivilegeRepositoryContentSelectorRequest_1.ApiPrivilegeRepositoryContentSelectorRequestFromJSONTyped)(json, true);
48
- }
49
- if ((0, ApiPrivilegeRepositoryViewRequest_1.instanceOfApiPrivilegeRepositoryViewRequest)(json)) {
50
- return (0, ApiPrivilegeRepositoryViewRequest_1.ApiPrivilegeRepositoryViewRequestFromJSONTyped)(json, true);
51
- }
52
- if ((0, ApiPrivilegeScriptRequest_1.instanceOfApiPrivilegeScriptRequest)(json)) {
53
- return (0, ApiPrivilegeScriptRequest_1.ApiPrivilegeScriptRequestFromJSONTyped)(json, true);
54
- }
55
- if ((0, ApiPrivilegeWildcardRequest_1.instanceOfApiPrivilegeWildcardRequest)(json)) {
56
- return (0, ApiPrivilegeWildcardRequest_1.ApiPrivilegeWildcardRequestFromJSONTyped)(json, true);
57
- }
58
- return {};
59
- }
60
- function GetAllPrivileges200ResponseInnerToJSON(json) {
61
- return GetAllPrivileges200ResponseInnerToJSONTyped(json, false);
62
- }
63
- function GetAllPrivileges200ResponseInnerToJSONTyped(value, ignoreDiscriminator = false) {
64
- if (value == null) {
65
- return value;
66
- }
67
- if (typeof value !== 'object') {
68
- return value;
69
- }
70
- if ((0, ApiPrivilege_1.instanceOfApiPrivilege)(value)) {
71
- return (0, ApiPrivilege_1.ApiPrivilegeToJSON)(value);
72
- }
73
- if ((0, ApiPrivilegeApplicationRequest_1.instanceOfApiPrivilegeApplicationRequest)(value)) {
74
- return (0, ApiPrivilegeApplicationRequest_1.ApiPrivilegeApplicationRequestToJSON)(value);
75
- }
76
- if ((0, ApiPrivilegeRepositoryAdminRequest_1.instanceOfApiPrivilegeRepositoryAdminRequest)(value)) {
77
- return (0, ApiPrivilegeRepositoryAdminRequest_1.ApiPrivilegeRepositoryAdminRequestToJSON)(value);
78
- }
79
- if ((0, ApiPrivilegeRepositoryContentSelectorRequest_1.instanceOfApiPrivilegeRepositoryContentSelectorRequest)(value)) {
80
- return (0, ApiPrivilegeRepositoryContentSelectorRequest_1.ApiPrivilegeRepositoryContentSelectorRequestToJSON)(value);
81
- }
82
- if ((0, ApiPrivilegeRepositoryViewRequest_1.instanceOfApiPrivilegeRepositoryViewRequest)(value)) {
83
- return (0, ApiPrivilegeRepositoryViewRequest_1.ApiPrivilegeRepositoryViewRequestToJSON)(value);
84
- }
85
- if ((0, ApiPrivilegeScriptRequest_1.instanceOfApiPrivilegeScriptRequest)(value)) {
86
- return (0, ApiPrivilegeScriptRequest_1.ApiPrivilegeScriptRequestToJSON)(value);
87
- }
88
- if ((0, ApiPrivilegeWildcardRequest_1.instanceOfApiPrivilegeWildcardRequest)(value)) {
89
- return (0, ApiPrivilegeWildcardRequest_1.ApiPrivilegeWildcardRequestToJSON)(value);
90
- }
91
- return {};
92
- }
@@ -1,143 +0,0 @@
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.81.1-01.
6
- *
7
- * The version of the OpenAPI document: 3.81.1-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 type { ApiPrivilege } from './ApiPrivilege';
16
- import {
17
- instanceOfApiPrivilege,
18
- ApiPrivilegeFromJSON,
19
- ApiPrivilegeFromJSONTyped,
20
- ApiPrivilegeToJSON,
21
- } from './ApiPrivilege';
22
- import type { ApiPrivilegeApplicationRequest } from './ApiPrivilegeApplicationRequest';
23
- import {
24
- instanceOfApiPrivilegeApplicationRequest,
25
- ApiPrivilegeApplicationRequestFromJSON,
26
- ApiPrivilegeApplicationRequestFromJSONTyped,
27
- ApiPrivilegeApplicationRequestToJSON,
28
- } from './ApiPrivilegeApplicationRequest';
29
- import type { ApiPrivilegeRepositoryAdminRequest } from './ApiPrivilegeRepositoryAdminRequest';
30
- import {
31
- instanceOfApiPrivilegeRepositoryAdminRequest,
32
- ApiPrivilegeRepositoryAdminRequestFromJSON,
33
- ApiPrivilegeRepositoryAdminRequestFromJSONTyped,
34
- ApiPrivilegeRepositoryAdminRequestToJSON,
35
- } from './ApiPrivilegeRepositoryAdminRequest';
36
- import type { ApiPrivilegeRepositoryContentSelectorRequest } from './ApiPrivilegeRepositoryContentSelectorRequest';
37
- import {
38
- instanceOfApiPrivilegeRepositoryContentSelectorRequest,
39
- ApiPrivilegeRepositoryContentSelectorRequestFromJSON,
40
- ApiPrivilegeRepositoryContentSelectorRequestFromJSONTyped,
41
- ApiPrivilegeRepositoryContentSelectorRequestToJSON,
42
- } from './ApiPrivilegeRepositoryContentSelectorRequest';
43
- import type { ApiPrivilegeRepositoryViewRequest } from './ApiPrivilegeRepositoryViewRequest';
44
- import {
45
- instanceOfApiPrivilegeRepositoryViewRequest,
46
- ApiPrivilegeRepositoryViewRequestFromJSON,
47
- ApiPrivilegeRepositoryViewRequestFromJSONTyped,
48
- ApiPrivilegeRepositoryViewRequestToJSON,
49
- } from './ApiPrivilegeRepositoryViewRequest';
50
- import type { ApiPrivilegeScriptRequest } from './ApiPrivilegeScriptRequest';
51
- import {
52
- instanceOfApiPrivilegeScriptRequest,
53
- ApiPrivilegeScriptRequestFromJSON,
54
- ApiPrivilegeScriptRequestFromJSONTyped,
55
- ApiPrivilegeScriptRequestToJSON,
56
- } from './ApiPrivilegeScriptRequest';
57
- import type { ApiPrivilegeWildcardRequest } from './ApiPrivilegeWildcardRequest';
58
- import {
59
- instanceOfApiPrivilegeWildcardRequest,
60
- ApiPrivilegeWildcardRequestFromJSON,
61
- ApiPrivilegeWildcardRequestFromJSONTyped,
62
- ApiPrivilegeWildcardRequestToJSON,
63
- } from './ApiPrivilegeWildcardRequest';
64
-
65
- /**
66
- * @type GetAllPrivileges200ResponseInner
67
- *
68
- * @export
69
- */
70
- export type GetAllPrivileges200ResponseInner = ApiPrivilege | ApiPrivilegeApplicationRequest | ApiPrivilegeRepositoryAdminRequest | ApiPrivilegeRepositoryContentSelectorRequest | ApiPrivilegeRepositoryViewRequest | ApiPrivilegeScriptRequest | ApiPrivilegeWildcardRequest;
71
-
72
- export function GetAllPrivileges200ResponseInnerFromJSON(json: any): GetAllPrivileges200ResponseInner {
73
- return GetAllPrivileges200ResponseInnerFromJSONTyped(json, false);
74
- }
75
-
76
- export function GetAllPrivileges200ResponseInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllPrivileges200ResponseInner {
77
- if (json == null) {
78
- return json;
79
- }
80
- if (typeof json !== 'object') {
81
- return json;
82
- }
83
- if (instanceOfApiPrivilege(json)) {
84
- return ApiPrivilegeFromJSONTyped(json, true);
85
- }
86
- if (instanceOfApiPrivilegeApplicationRequest(json)) {
87
- return ApiPrivilegeApplicationRequestFromJSONTyped(json, true);
88
- }
89
- if (instanceOfApiPrivilegeRepositoryAdminRequest(json)) {
90
- return ApiPrivilegeRepositoryAdminRequestFromJSONTyped(json, true);
91
- }
92
- if (instanceOfApiPrivilegeRepositoryContentSelectorRequest(json)) {
93
- return ApiPrivilegeRepositoryContentSelectorRequestFromJSONTyped(json, true);
94
- }
95
- if (instanceOfApiPrivilegeRepositoryViewRequest(json)) {
96
- return ApiPrivilegeRepositoryViewRequestFromJSONTyped(json, true);
97
- }
98
- if (instanceOfApiPrivilegeScriptRequest(json)) {
99
- return ApiPrivilegeScriptRequestFromJSONTyped(json, true);
100
- }
101
- if (instanceOfApiPrivilegeWildcardRequest(json)) {
102
- return ApiPrivilegeWildcardRequestFromJSONTyped(json, true);
103
- }
104
-
105
- return {} as any;
106
- }
107
-
108
- export function GetAllPrivileges200ResponseInnerToJSON(json: any): any {
109
- return GetAllPrivileges200ResponseInnerToJSONTyped(json, false);
110
- }
111
-
112
- export function GetAllPrivileges200ResponseInnerToJSONTyped(value?: GetAllPrivileges200ResponseInner | null, ignoreDiscriminator: boolean = false): any {
113
- if (value == null) {
114
- return value;
115
- }
116
- if (typeof value !== 'object') {
117
- return value;
118
- }
119
- if (instanceOfApiPrivilege(value)) {
120
- return ApiPrivilegeToJSON(value as ApiPrivilege);
121
- }
122
- if (instanceOfApiPrivilegeApplicationRequest(value)) {
123
- return ApiPrivilegeApplicationRequestToJSON(value as ApiPrivilegeApplicationRequest);
124
- }
125
- if (instanceOfApiPrivilegeRepositoryAdminRequest(value)) {
126
- return ApiPrivilegeRepositoryAdminRequestToJSON(value as ApiPrivilegeRepositoryAdminRequest);
127
- }
128
- if (instanceOfApiPrivilegeRepositoryContentSelectorRequest(value)) {
129
- return ApiPrivilegeRepositoryContentSelectorRequestToJSON(value as ApiPrivilegeRepositoryContentSelectorRequest);
130
- }
131
- if (instanceOfApiPrivilegeRepositoryViewRequest(value)) {
132
- return ApiPrivilegeRepositoryViewRequestToJSON(value as ApiPrivilegeRepositoryViewRequest);
133
- }
134
- if (instanceOfApiPrivilegeScriptRequest(value)) {
135
- return ApiPrivilegeScriptRequestToJSON(value as ApiPrivilegeScriptRequest);
136
- }
137
- if (instanceOfApiPrivilegeWildcardRequest(value)) {
138
- return ApiPrivilegeWildcardRequestToJSON(value as ApiPrivilegeWildcardRequest);
139
- }
140
-
141
- return {};
142
- }
143
-