@redhat-cloud-services/compliance-client 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/LICENSE +201 -0
  3. package/README.md +67 -0
  4. package/dist/AssignRule/index.d.ts +38 -0
  5. package/dist/AssignRule/index.js +54 -0
  6. package/dist/AssignRule/index.js.map +1 -0
  7. package/dist/AssignRules/index.d.ts +40 -0
  8. package/dist/AssignRules/index.js +56 -0
  9. package/dist/AssignRules/index.js.map +1 -0
  10. package/dist/AssignSystem/index.d.ts +32 -0
  11. package/dist/AssignSystem/index.js +53 -0
  12. package/dist/AssignSystem/index.js.map +1 -0
  13. package/dist/AssignSystems/index.d.ts +34 -0
  14. package/dist/AssignSystems/index.js +55 -0
  15. package/dist/AssignSystems/index.js.map +1 -0
  16. package/dist/CreatePolicy/index.d.ts +27 -0
  17. package/dist/CreatePolicy/index.js +53 -0
  18. package/dist/CreatePolicy/index.js.map +1 -0
  19. package/dist/DeletePolicy/index.d.ts +26 -0
  20. package/dist/DeletePolicy/index.js +52 -0
  21. package/dist/DeletePolicy/index.js.map +1 -0
  22. package/dist/Policies/index.d.ts +44 -0
  23. package/dist/Policies/index.js +63 -0
  24. package/dist/Policies/index.js.map +1 -0
  25. package/dist/Policy/index.d.ts +26 -0
  26. package/dist/Policy/index.js +52 -0
  27. package/dist/Policy/index.js.map +1 -0
  28. package/dist/PolicySystems/index.d.ts +50 -0
  29. package/dist/PolicySystems/index.js +64 -0
  30. package/dist/PolicySystems/index.js.map +1 -0
  31. package/dist/Profile/index.d.ts +32 -0
  32. package/dist/Profile/index.js +53 -0
  33. package/dist/Profile/index.js.map +1 -0
  34. package/dist/ProfileRule/index.d.ts +38 -0
  35. package/dist/ProfileRule/index.js +54 -0
  36. package/dist/ProfileRule/index.js.map +1 -0
  37. package/dist/ProfileRules/index.d.ts +56 -0
  38. package/dist/ProfileRules/index.js +65 -0
  39. package/dist/ProfileRules/index.js.map +1 -0
  40. package/dist/Profiles/index.d.ts +50 -0
  41. package/dist/Profiles/index.js +64 -0
  42. package/dist/Profiles/index.js.map +1 -0
  43. package/dist/Rule/index.d.ts +32 -0
  44. package/dist/Rule/index.js +53 -0
  45. package/dist/Rule/index.js.map +1 -0
  46. package/dist/RuleGroup/index.d.ts +32 -0
  47. package/dist/RuleGroup/index.js +53 -0
  48. package/dist/RuleGroup/index.js.map +1 -0
  49. package/dist/RuleGroups/index.d.ts +50 -0
  50. package/dist/RuleGroups/index.js +64 -0
  51. package/dist/RuleGroups/index.js.map +1 -0
  52. package/dist/Rules/index.d.ts +50 -0
  53. package/dist/Rules/index.js +64 -0
  54. package/dist/Rules/index.js.map +1 -0
  55. package/dist/SecurityGuide/index.d.ts +26 -0
  56. package/dist/SecurityGuide/index.js +52 -0
  57. package/dist/SecurityGuide/index.js.map +1 -0
  58. package/dist/SecurityGuideRuleTree/index.d.ts +26 -0
  59. package/dist/SecurityGuideRuleTree/index.js +52 -0
  60. package/dist/SecurityGuideRuleTree/index.js.map +1 -0
  61. package/dist/SecurityGuides/index.d.ts +44 -0
  62. package/dist/SecurityGuides/index.js +63 -0
  63. package/dist/SecurityGuides/index.js.map +1 -0
  64. package/dist/SupportedProfiles/index.d.ts +44 -0
  65. package/dist/SupportedProfiles/index.js +63 -0
  66. package/dist/SupportedProfiles/index.js.map +1 -0
  67. package/dist/System/index.d.ts +26 -0
  68. package/dist/System/index.js +52 -0
  69. package/dist/System/index.js.map +1 -0
  70. package/dist/Systems/index.d.ts +44 -0
  71. package/dist/Systems/index.js +63 -0
  72. package/dist/Systems/index.js.map +1 -0
  73. package/dist/SystemsPolicies/index.d.ts +50 -0
  74. package/dist/SystemsPolicies/index.js +64 -0
  75. package/dist/SystemsPolicies/index.js.map +1 -0
  76. package/dist/Tailoring/index.d.ts +32 -0
  77. package/dist/Tailoring/index.js +53 -0
  78. package/dist/Tailoring/index.js.map +1 -0
  79. package/dist/TailoringFile/index.d.ts +32 -0
  80. package/dist/TailoringFile/index.js +53 -0
  81. package/dist/TailoringFile/index.js.map +1 -0
  82. package/dist/TailoringRules/index.d.ts +56 -0
  83. package/dist/TailoringRules/index.js +65 -0
  84. package/dist/TailoringRules/index.js.map +1 -0
  85. package/dist/Tailorings/index.d.ts +50 -0
  86. package/dist/Tailorings/index.js +64 -0
  87. package/dist/Tailorings/index.js.map +1 -0
  88. package/dist/UnassignRule/index.d.ts +38 -0
  89. package/dist/UnassignRule/index.js +54 -0
  90. package/dist/UnassignRule/index.js.map +1 -0
  91. package/dist/UnassignSystem/index.d.ts +32 -0
  92. package/dist/UnassignSystem/index.js +53 -0
  93. package/dist/UnassignSystem/index.js.map +1 -0
  94. package/dist/UpdatePolicy/index.d.ts +33 -0
  95. package/dist/UpdatePolicy/index.js +54 -0
  96. package/dist/UpdatePolicy/index.js.map +1 -0
  97. package/dist/ValueDefinition/index.d.ts +32 -0
  98. package/dist/ValueDefinition/index.js +53 -0
  99. package/dist/ValueDefinition/index.js.map +1 -0
  100. package/dist/ValueDefinitions/index.d.ts +50 -0
  101. package/dist/ValueDefinitions/index.js +64 -0
  102. package/dist/ValueDefinitions/index.js.map +1 -0
  103. package/dist/api.d.ts +4310 -0
  104. package/dist/api.js +4565 -0
  105. package/dist/api.js.map +1 -0
  106. package/dist/base.d.ts +54 -0
  107. package/dist/base.js +67 -0
  108. package/dist/base.js.map +1 -0
  109. package/dist/common.d.ts +65 -0
  110. package/dist/common.js +207 -0
  111. package/dist/common.js.map +1 -0
  112. package/dist/configuration.d.ts +83 -0
  113. package/dist/configuration.js +45 -0
  114. package/dist/configuration.js.map +1 -0
  115. package/dist/index.d.ts +34 -0
  116. package/dist/index.js +106 -0
  117. package/dist/index.js.map +1 -0
  118. package/dist/types/index.d.ts +1103 -0
  119. package/dist/types/index.js +31 -0
  120. package/dist/types/index.js.map +1 -0
  121. package/doc/.nojekyll +1 -0
  122. package/doc/README.md +69 -0
  123. package/doc/interfaces/AssignRulesRequest.md +27 -0
  124. package/doc/interfaces/CreatePolicy201Response.md +27 -0
  125. package/doc/interfaces/CreatePolicy201ResponseData.md +27 -0
  126. package/doc/interfaces/Errors.md +27 -0
  127. package/doc/interfaces/Links.md +80 -0
  128. package/doc/interfaces/Metadata.md +97 -0
  129. package/doc/interfaces/Policies200Response.md +57 -0
  130. package/doc/interfaces/Policy.md +195 -0
  131. package/doc/interfaces/PolicyUpdate.md +63 -0
  132. package/doc/interfaces/Profile.md +110 -0
  133. package/doc/interfaces/Profile200Response.md +27 -0
  134. package/doc/interfaces/Profile200ResponseData.md +27 -0
  135. package/doc/interfaces/Profiles200Response.md +57 -0
  136. package/doc/interfaces/Rule.md +161 -0
  137. package/doc/interfaces/Rule200Response.md +27 -0
  138. package/doc/interfaces/Rule200ResponseData.md +27 -0
  139. package/doc/interfaces/RuleGroup.md +127 -0
  140. package/doc/interfaces/RuleGroup200Response.md +27 -0
  141. package/doc/interfaces/RuleGroup200ResponseData.md +27 -0
  142. package/doc/interfaces/RuleGroups200Response.md +57 -0
  143. package/doc/interfaces/Rules200Response.md +57 -0
  144. package/doc/interfaces/SecurityGuide.md +127 -0
  145. package/doc/interfaces/SecurityGuide200Response.md +27 -0
  146. package/doc/interfaces/SecurityGuide200ResponseData.md +27 -0
  147. package/doc/interfaces/SecurityGuides200Response.md +57 -0
  148. package/doc/interfaces/SupportedProfile.md +127 -0
  149. package/doc/interfaces/SupportedProfiles200Response.md +57 -0
  150. package/doc/interfaces/System.md +215 -0
  151. package/doc/interfaces/System200Response.md +27 -0
  152. package/doc/interfaces/System200ResponseData.md +27 -0
  153. package/doc/interfaces/Systems200Response.md +57 -0
  154. package/doc/interfaces/Tailoring.md +110 -0
  155. package/doc/interfaces/Tailoring200Response.md +27 -0
  156. package/doc/interfaces/Tailoring200ResponseData.md +27 -0
  157. package/doc/interfaces/TailoringFile.md +33 -0
  158. package/doc/interfaces/Tailorings200Response.md +57 -0
  159. package/doc/interfaces/ValueDefinition.md +127 -0
  160. package/doc/interfaces/ValueDefinition200Response.md +27 -0
  161. package/doc/interfaces/ValueDefinition200ResponseData.md +27 -0
  162. package/doc/interfaces/ValueDefinitions200Response.md +57 -0
  163. package/doc/modules.md +1306 -0
  164. package/package.json +30 -0
package/dist/api.js ADDED
@@ -0,0 +1,4565 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cloud Services for RHEL Compliance API v2
6
+ * This is the API for Cloud Services for RHEL Compliance. You can find out more about Red Hat Cloud Services for RHEL at [https://console.redhat.com/](https://console.redhat.com/)
7
+ *
8
+ * The version of the OpenAPI document: v2
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.ProfileRuleApiAxiosParamCreator = exports.ProfileApi = exports.ProfileApiFactory = exports.ProfileApiFp = exports.ProfileApiAxiosParamCreator = exports.PolicySystemsApi = exports.PolicySystemsApiFactory = exports.PolicySystemsApiFp = exports.PolicySystemsApiAxiosParamCreator = exports.PolicyApi = exports.PolicyApiFactory = exports.PolicyApiFp = exports.PolicyApiAxiosParamCreator = exports.PoliciesApi = exports.PoliciesApiFactory = exports.PoliciesApiFp = exports.PoliciesApiAxiosParamCreator = exports.DeletePolicyApi = exports.DeletePolicyApiFactory = exports.DeletePolicyApiFp = exports.DeletePolicyApiAxiosParamCreator = exports.CreatePolicyApi = exports.CreatePolicyApiFactory = exports.CreatePolicyApiFp = exports.CreatePolicyApiAxiosParamCreator = exports.AssignSystemsApi = exports.AssignSystemsApiFactory = exports.AssignSystemsApiFp = exports.AssignSystemsApiAxiosParamCreator = exports.AssignSystemApi = exports.AssignSystemApiFactory = exports.AssignSystemApiFp = exports.AssignSystemApiAxiosParamCreator = exports.AssignRulesApi = exports.AssignRulesApiFactory = exports.AssignRulesApiFp = exports.AssignRulesApiAxiosParamCreator = exports.AssignRuleApi = exports.AssignRuleApiFactory = exports.AssignRuleApiFp = exports.AssignRuleApiAxiosParamCreator = exports.ValueDefinitionTypeEnum = exports.TailoringTypeEnum = exports.SystemTypeEnum = exports.SupportedProfileTypeEnum = exports.SecurityGuideTypeEnum = exports.RuleGroupTypeEnum = exports.RuleTypeEnum = exports.ProfileTypeEnum = exports.PolicyTypeEnum = void 0;
17
+ exports.SystemsApiFactory = exports.SystemsApiFp = exports.SystemsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.SupportedProfilesApi = exports.SupportedProfilesApiFactory = exports.SupportedProfilesApiFp = exports.SupportedProfilesApiAxiosParamCreator = exports.SecurityGuidesApi = exports.SecurityGuidesApiFactory = exports.SecurityGuidesApiFp = exports.SecurityGuidesApiAxiosParamCreator = exports.SecurityGuideRuleTreeApi = exports.SecurityGuideRuleTreeApiFactory = exports.SecurityGuideRuleTreeApiFp = exports.SecurityGuideRuleTreeApiAxiosParamCreator = exports.SecurityGuideApi = exports.SecurityGuideApiFactory = exports.SecurityGuideApiFp = exports.SecurityGuideApiAxiosParamCreator = exports.RulesApi = exports.RulesApiFactory = exports.RulesApiFp = exports.RulesApiAxiosParamCreator = exports.RuleGroupsApi = exports.RuleGroupsApiFactory = exports.RuleGroupsApiFp = exports.RuleGroupsApiAxiosParamCreator = exports.RuleGroupApi = exports.RuleGroupApiFactory = exports.RuleGroupApiFp = exports.RuleGroupApiAxiosParamCreator = exports.RuleApi = exports.RuleApiFactory = exports.RuleApiFp = exports.RuleApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.ProfileRulesApi = exports.ProfileRulesApiFactory = exports.ProfileRulesApiFp = exports.ProfileRulesApiAxiosParamCreator = exports.ProfileRuleApi = exports.ProfileRuleApiFactory = exports.ProfileRuleApiFp = void 0;
18
+ exports.ValueDefinitionsApi = exports.ValueDefinitionsApiFactory = exports.ValueDefinitionsApiFp = exports.ValueDefinitionsApiAxiosParamCreator = exports.ValueDefinitionApi = exports.ValueDefinitionApiFactory = exports.ValueDefinitionApiFp = exports.ValueDefinitionApiAxiosParamCreator = exports.UpdatePolicyApi = exports.UpdatePolicyApiFactory = exports.UpdatePolicyApiFp = exports.UpdatePolicyApiAxiosParamCreator = exports.UnassignSystemApi = exports.UnassignSystemApiFactory = exports.UnassignSystemApiFp = exports.UnassignSystemApiAxiosParamCreator = exports.UnassignRuleApi = exports.UnassignRuleApiFactory = exports.UnassignRuleApiFp = exports.UnassignRuleApiAxiosParamCreator = exports.TailoringsApi = exports.TailoringsApiFactory = exports.TailoringsApiFp = exports.TailoringsApiAxiosParamCreator = exports.TailoringRulesApi = exports.TailoringRulesApiFactory = exports.TailoringRulesApiFp = exports.TailoringRulesApiAxiosParamCreator = exports.TailoringFileApi = exports.TailoringFileApiFactory = exports.TailoringFileApiFp = exports.TailoringFileApiAxiosParamCreator = exports.TailoringApi = exports.TailoringApiFactory = exports.TailoringApiFp = exports.TailoringApiAxiosParamCreator = exports.SystemsPoliciesApi = exports.SystemsPoliciesApiFactory = exports.SystemsPoliciesApiFp = exports.SystemsPoliciesApiAxiosParamCreator = exports.SystemsApi = void 0;
19
+ var tslib_1 = require("tslib");
20
+ var axios_1 = require("axios");
21
+ // Some imports not used depending on template conditions
22
+ // @ts-ignore
23
+ var common_1 = require("./common");
24
+ // @ts-ignore
25
+ var base_1 = require("./base");
26
+ exports.PolicyTypeEnum = {
27
+ Policy: 'policy'
28
+ };
29
+ exports.ProfileTypeEnum = {
30
+ Profile: 'profile'
31
+ };
32
+ exports.RuleTypeEnum = {
33
+ Rule: 'rule'
34
+ };
35
+ exports.RuleGroupTypeEnum = {
36
+ RuleGroup: 'rule_group'
37
+ };
38
+ exports.SecurityGuideTypeEnum = {
39
+ SecurityGuide: 'security_guide'
40
+ };
41
+ exports.SupportedProfileTypeEnum = {
42
+ SupportedProfile: 'supported_profile'
43
+ };
44
+ exports.SystemTypeEnum = {
45
+ System: 'system'
46
+ };
47
+ exports.TailoringTypeEnum = {
48
+ Tailoring: 'tailoring'
49
+ };
50
+ exports.ValueDefinitionTypeEnum = {
51
+ ValueDefinition: 'value_definition'
52
+ };
53
+ /**
54
+ * AssignRuleApi - axios parameter creator
55
+ * @export
56
+ */
57
+ var AssignRuleApiAxiosParamCreator = function (configuration) {
58
+ var _this = this;
59
+ return {
60
+ /**
61
+ * Assigns a Rule to a Tailoring
62
+ * @summary Assign a Rule to a Tailoring
63
+ * @param {any} policyId
64
+ * @param {any} tailoringId
65
+ * @param {any} id
66
+ * @param {any} [xRHIDENTITY]
67
+ * @param {*} [options] Override http request option.
68
+ * @throws {RequiredError}
69
+ */
70
+ assignRule: function (policyId, tailoringId, id, xRHIDENTITY, options) {
71
+ if (options === void 0) { options = {}; }
72
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
73
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
74
+ return tslib_1.__generator(this, function (_a) {
75
+ // verify required parameter 'policyId' is not null or undefined
76
+ (0, common_1.assertParamExists)('assignRule', 'policyId', policyId);
77
+ // verify required parameter 'tailoringId' is not null or undefined
78
+ (0, common_1.assertParamExists)('assignRule', 'tailoringId', tailoringId);
79
+ // verify required parameter 'id' is not null or undefined
80
+ (0, common_1.assertParamExists)('assignRule', 'id', id);
81
+ localVarPath = "/policies/{policy_id}/tailorings/{tailoring_id}/rules/{id}"
82
+ .replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)))
83
+ .replace("{".concat("tailoring_id", "}"), encodeURIComponent(String(tailoringId)))
84
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
85
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
86
+ if (configuration) {
87
+ baseOptions = configuration.baseOptions;
88
+ }
89
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'PATCH' }, baseOptions), options);
90
+ localVarHeaderParameter = {};
91
+ localVarQueryParameter = {};
92
+ if (xRHIDENTITY != null) {
93
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
94
+ ? xRHIDENTITY
95
+ : JSON.stringify(xRHIDENTITY);
96
+ }
97
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
98
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
99
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
100
+ return [2 /*return*/, {
101
+ url: (0, common_1.toPathString)(localVarUrlObj),
102
+ options: localVarRequestOptions,
103
+ }];
104
+ });
105
+ });
106
+ },
107
+ };
108
+ };
109
+ exports.AssignRuleApiAxiosParamCreator = AssignRuleApiAxiosParamCreator;
110
+ /**
111
+ * AssignRuleApi - functional programming interface
112
+ * @export
113
+ */
114
+ var AssignRuleApiFp = function (configuration) {
115
+ var localVarAxiosParamCreator = (0, exports.AssignRuleApiAxiosParamCreator)(configuration);
116
+ return {
117
+ /**
118
+ * Assigns a Rule to a Tailoring
119
+ * @summary Assign a Rule to a Tailoring
120
+ * @param {any} policyId
121
+ * @param {any} tailoringId
122
+ * @param {any} id
123
+ * @param {any} [xRHIDENTITY]
124
+ * @param {*} [options] Override http request option.
125
+ * @throws {RequiredError}
126
+ */
127
+ assignRule: function (policyId, tailoringId, id, xRHIDENTITY, options) {
128
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
129
+ var localVarAxiosArgs;
130
+ return tslib_1.__generator(this, function (_a) {
131
+ switch (_a.label) {
132
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.assignRule(policyId, tailoringId, id, xRHIDENTITY, options)];
133
+ case 1:
134
+ localVarAxiosArgs = _a.sent();
135
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
136
+ }
137
+ });
138
+ });
139
+ },
140
+ };
141
+ };
142
+ exports.AssignRuleApiFp = AssignRuleApiFp;
143
+ /**
144
+ * AssignRuleApi - factory interface
145
+ * @export
146
+ */
147
+ var AssignRuleApiFactory = function (configuration, basePath, axios) {
148
+ var localVarFp = (0, exports.AssignRuleApiFp)(configuration);
149
+ return {
150
+ /**
151
+ * Assigns a Rule to a Tailoring
152
+ * @summary Assign a Rule to a Tailoring
153
+ * @param {AssignRuleApiAssignRuleRequest} requestParameters Request parameters.
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ assignRule: function (requestParameters, options) {
158
+ return localVarFp.assignRule(requestParameters.policyId, requestParameters.tailoringId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
159
+ },
160
+ };
161
+ };
162
+ exports.AssignRuleApiFactory = AssignRuleApiFactory;
163
+ /**
164
+ * AssignRuleApi - object-oriented interface
165
+ * @export
166
+ * @class AssignRuleApi
167
+ * @extends {BaseAPI}
168
+ */
169
+ var AssignRuleApi = /** @class */ (function (_super) {
170
+ tslib_1.__extends(AssignRuleApi, _super);
171
+ function AssignRuleApi() {
172
+ return _super !== null && _super.apply(this, arguments) || this;
173
+ }
174
+ /**
175
+ * Assigns a Rule to a Tailoring
176
+ * @summary Assign a Rule to a Tailoring
177
+ * @param {AssignRuleApiAssignRuleRequest} requestParameters Request parameters.
178
+ * @param {*} [options] Override http request option.
179
+ * @throws {RequiredError}
180
+ * @memberof AssignRuleApi
181
+ */
182
+ AssignRuleApi.prototype.assignRule = function (requestParameters, options) {
183
+ var _this = this;
184
+ return (0, exports.AssignRuleApiFp)(this.configuration).assignRule(requestParameters.policyId, requestParameters.tailoringId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
185
+ };
186
+ return AssignRuleApi;
187
+ }(base_1.BaseAPI));
188
+ exports.AssignRuleApi = AssignRuleApi;
189
+ /**
190
+ * AssignRulesApi - axios parameter creator
191
+ * @export
192
+ */
193
+ var AssignRulesApiAxiosParamCreator = function (configuration) {
194
+ var _this = this;
195
+ return {
196
+ /**
197
+ * This feature is exclusively used by the frontend
198
+ * @summary Bulk assign Rules to a Tailoring
199
+ * @param {any} policyId
200
+ * @param {any} tailoringId
201
+ * @param {any} [xRHIDENTITY]
202
+ * @param {AssignRulesRequest} [assignRulesRequest]
203
+ * @param {*} [options] Override http request option.
204
+ * @deprecated
205
+ * @throws {RequiredError}
206
+ */
207
+ assignRules: function (policyId, tailoringId, xRHIDENTITY, assignRulesRequest, options) {
208
+ if (options === void 0) { options = {}; }
209
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
210
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
211
+ return tslib_1.__generator(this, function (_a) {
212
+ // verify required parameter 'policyId' is not null or undefined
213
+ (0, common_1.assertParamExists)('assignRules', 'policyId', policyId);
214
+ // verify required parameter 'tailoringId' is not null or undefined
215
+ (0, common_1.assertParamExists)('assignRules', 'tailoringId', tailoringId);
216
+ localVarPath = "/policies/{policy_id}/tailorings/{tailoring_id}/rules"
217
+ .replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)))
218
+ .replace("{".concat("tailoring_id", "}"), encodeURIComponent(String(tailoringId)));
219
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
220
+ if (configuration) {
221
+ baseOptions = configuration.baseOptions;
222
+ }
223
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'POST' }, baseOptions), options);
224
+ localVarHeaderParameter = {};
225
+ localVarQueryParameter = {};
226
+ if (xRHIDENTITY != null) {
227
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
228
+ ? xRHIDENTITY
229
+ : JSON.stringify(xRHIDENTITY);
230
+ }
231
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
232
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
233
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
234
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
235
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(assignRulesRequest, localVarRequestOptions, configuration);
236
+ return [2 /*return*/, {
237
+ url: (0, common_1.toPathString)(localVarUrlObj),
238
+ options: localVarRequestOptions,
239
+ }];
240
+ });
241
+ });
242
+ },
243
+ };
244
+ };
245
+ exports.AssignRulesApiAxiosParamCreator = AssignRulesApiAxiosParamCreator;
246
+ /**
247
+ * AssignRulesApi - functional programming interface
248
+ * @export
249
+ */
250
+ var AssignRulesApiFp = function (configuration) {
251
+ var localVarAxiosParamCreator = (0, exports.AssignRulesApiAxiosParamCreator)(configuration);
252
+ return {
253
+ /**
254
+ * This feature is exclusively used by the frontend
255
+ * @summary Bulk assign Rules to a Tailoring
256
+ * @param {any} policyId
257
+ * @param {any} tailoringId
258
+ * @param {any} [xRHIDENTITY]
259
+ * @param {AssignRulesRequest} [assignRulesRequest]
260
+ * @param {*} [options] Override http request option.
261
+ * @deprecated
262
+ * @throws {RequiredError}
263
+ */
264
+ assignRules: function (policyId, tailoringId, xRHIDENTITY, assignRulesRequest, options) {
265
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
266
+ var localVarAxiosArgs;
267
+ return tslib_1.__generator(this, function (_a) {
268
+ switch (_a.label) {
269
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.assignRules(policyId, tailoringId, xRHIDENTITY, assignRulesRequest, options)];
270
+ case 1:
271
+ localVarAxiosArgs = _a.sent();
272
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
273
+ }
274
+ });
275
+ });
276
+ },
277
+ };
278
+ };
279
+ exports.AssignRulesApiFp = AssignRulesApiFp;
280
+ /**
281
+ * AssignRulesApi - factory interface
282
+ * @export
283
+ */
284
+ var AssignRulesApiFactory = function (configuration, basePath, axios) {
285
+ var localVarFp = (0, exports.AssignRulesApiFp)(configuration);
286
+ return {
287
+ /**
288
+ * This feature is exclusively used by the frontend
289
+ * @summary Bulk assign Rules to a Tailoring
290
+ * @param {AssignRulesApiAssignRulesRequest} requestParameters Request parameters.
291
+ * @param {*} [options] Override http request option.
292
+ * @deprecated
293
+ * @throws {RequiredError}
294
+ */
295
+ assignRules: function (requestParameters, options) {
296
+ return localVarFp.assignRules(requestParameters.policyId, requestParameters.tailoringId, requestParameters.xRHIDENTITY, requestParameters.assignRulesRequest, options).then(function (request) { return request(axios, basePath); });
297
+ },
298
+ };
299
+ };
300
+ exports.AssignRulesApiFactory = AssignRulesApiFactory;
301
+ /**
302
+ * AssignRulesApi - object-oriented interface
303
+ * @export
304
+ * @class AssignRulesApi
305
+ * @extends {BaseAPI}
306
+ */
307
+ var AssignRulesApi = /** @class */ (function (_super) {
308
+ tslib_1.__extends(AssignRulesApi, _super);
309
+ function AssignRulesApi() {
310
+ return _super !== null && _super.apply(this, arguments) || this;
311
+ }
312
+ /**
313
+ * This feature is exclusively used by the frontend
314
+ * @summary Bulk assign Rules to a Tailoring
315
+ * @param {AssignRulesApiAssignRulesRequest} requestParameters Request parameters.
316
+ * @param {*} [options] Override http request option.
317
+ * @deprecated
318
+ * @throws {RequiredError}
319
+ * @memberof AssignRulesApi
320
+ */
321
+ AssignRulesApi.prototype.assignRules = function (requestParameters, options) {
322
+ var _this = this;
323
+ return (0, exports.AssignRulesApiFp)(this.configuration).assignRules(requestParameters.policyId, requestParameters.tailoringId, requestParameters.xRHIDENTITY, requestParameters.assignRulesRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
324
+ };
325
+ return AssignRulesApi;
326
+ }(base_1.BaseAPI));
327
+ exports.AssignRulesApi = AssignRulesApi;
328
+ /**
329
+ * AssignSystemApi - axios parameter creator
330
+ * @export
331
+ */
332
+ var AssignSystemApiAxiosParamCreator = function (configuration) {
333
+ var _this = this;
334
+ return {
335
+ /**
336
+ * Assigns a System to a Policy
337
+ * @summary Assign a System to a Policy
338
+ * @param {any} id
339
+ * @param {any} policyId
340
+ * @param {any} [xRHIDENTITY]
341
+ * @param {*} [options] Override http request option.
342
+ * @throws {RequiredError}
343
+ */
344
+ assignSystem: function (id, policyId, xRHIDENTITY, options) {
345
+ if (options === void 0) { options = {}; }
346
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
347
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
348
+ return tslib_1.__generator(this, function (_a) {
349
+ // verify required parameter 'id' is not null or undefined
350
+ (0, common_1.assertParamExists)('assignSystem', 'id', id);
351
+ // verify required parameter 'policyId' is not null or undefined
352
+ (0, common_1.assertParamExists)('assignSystem', 'policyId', policyId);
353
+ localVarPath = "/policies/{policy_id}/systems/{id}"
354
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
355
+ .replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
356
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
357
+ if (configuration) {
358
+ baseOptions = configuration.baseOptions;
359
+ }
360
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'PATCH' }, baseOptions), options);
361
+ localVarHeaderParameter = {};
362
+ localVarQueryParameter = {};
363
+ if (xRHIDENTITY != null) {
364
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
365
+ ? xRHIDENTITY
366
+ : JSON.stringify(xRHIDENTITY);
367
+ }
368
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
369
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
370
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
371
+ return [2 /*return*/, {
372
+ url: (0, common_1.toPathString)(localVarUrlObj),
373
+ options: localVarRequestOptions,
374
+ }];
375
+ });
376
+ });
377
+ },
378
+ };
379
+ };
380
+ exports.AssignSystemApiAxiosParamCreator = AssignSystemApiAxiosParamCreator;
381
+ /**
382
+ * AssignSystemApi - functional programming interface
383
+ * @export
384
+ */
385
+ var AssignSystemApiFp = function (configuration) {
386
+ var localVarAxiosParamCreator = (0, exports.AssignSystemApiAxiosParamCreator)(configuration);
387
+ return {
388
+ /**
389
+ * Assigns a System to a Policy
390
+ * @summary Assign a System to a Policy
391
+ * @param {any} id
392
+ * @param {any} policyId
393
+ * @param {any} [xRHIDENTITY]
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ assignSystem: function (id, policyId, xRHIDENTITY, options) {
398
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
399
+ var localVarAxiosArgs;
400
+ return tslib_1.__generator(this, function (_a) {
401
+ switch (_a.label) {
402
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.assignSystem(id, policyId, xRHIDENTITY, options)];
403
+ case 1:
404
+ localVarAxiosArgs = _a.sent();
405
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
406
+ }
407
+ });
408
+ });
409
+ },
410
+ };
411
+ };
412
+ exports.AssignSystemApiFp = AssignSystemApiFp;
413
+ /**
414
+ * AssignSystemApi - factory interface
415
+ * @export
416
+ */
417
+ var AssignSystemApiFactory = function (configuration, basePath, axios) {
418
+ var localVarFp = (0, exports.AssignSystemApiFp)(configuration);
419
+ return {
420
+ /**
421
+ * Assigns a System to a Policy
422
+ * @summary Assign a System to a Policy
423
+ * @param {AssignSystemApiAssignSystemRequest} requestParameters Request parameters.
424
+ * @param {*} [options] Override http request option.
425
+ * @throws {RequiredError}
426
+ */
427
+ assignSystem: function (requestParameters, options) {
428
+ return localVarFp.assignSystem(requestParameters.id, requestParameters.policyId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
429
+ },
430
+ };
431
+ };
432
+ exports.AssignSystemApiFactory = AssignSystemApiFactory;
433
+ /**
434
+ * AssignSystemApi - object-oriented interface
435
+ * @export
436
+ * @class AssignSystemApi
437
+ * @extends {BaseAPI}
438
+ */
439
+ var AssignSystemApi = /** @class */ (function (_super) {
440
+ tslib_1.__extends(AssignSystemApi, _super);
441
+ function AssignSystemApi() {
442
+ return _super !== null && _super.apply(this, arguments) || this;
443
+ }
444
+ /**
445
+ * Assigns a System to a Policy
446
+ * @summary Assign a System to a Policy
447
+ * @param {AssignSystemApiAssignSystemRequest} requestParameters Request parameters.
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ * @memberof AssignSystemApi
451
+ */
452
+ AssignSystemApi.prototype.assignSystem = function (requestParameters, options) {
453
+ var _this = this;
454
+ return (0, exports.AssignSystemApiFp)(this.configuration).assignSystem(requestParameters.id, requestParameters.policyId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
455
+ };
456
+ return AssignSystemApi;
457
+ }(base_1.BaseAPI));
458
+ exports.AssignSystemApi = AssignSystemApi;
459
+ /**
460
+ * AssignSystemsApi - axios parameter creator
461
+ * @export
462
+ */
463
+ var AssignSystemsApiAxiosParamCreator = function (configuration) {
464
+ var _this = this;
465
+ return {
466
+ /**
467
+ * This feature is exclusively used by the frontend
468
+ * @summary Bulk assign Systems to a Policy
469
+ * @param {any} policyId
470
+ * @param {any} [xRHIDENTITY]
471
+ * @param {AssignRulesRequest} [assignRulesRequest]
472
+ * @param {*} [options] Override http request option.
473
+ * @deprecated
474
+ * @throws {RequiredError}
475
+ */
476
+ assignSystems: function (policyId, xRHIDENTITY, assignRulesRequest, options) {
477
+ if (options === void 0) { options = {}; }
478
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
479
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
480
+ return tslib_1.__generator(this, function (_a) {
481
+ // verify required parameter 'policyId' is not null or undefined
482
+ (0, common_1.assertParamExists)('assignSystems', 'policyId', policyId);
483
+ localVarPath = "/policies/{policy_id}/systems"
484
+ .replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
485
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
486
+ if (configuration) {
487
+ baseOptions = configuration.baseOptions;
488
+ }
489
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'POST' }, baseOptions), options);
490
+ localVarHeaderParameter = {};
491
+ localVarQueryParameter = {};
492
+ if (xRHIDENTITY != null) {
493
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
494
+ ? xRHIDENTITY
495
+ : JSON.stringify(xRHIDENTITY);
496
+ }
497
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
498
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
499
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
500
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
501
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(assignRulesRequest, localVarRequestOptions, configuration);
502
+ return [2 /*return*/, {
503
+ url: (0, common_1.toPathString)(localVarUrlObj),
504
+ options: localVarRequestOptions,
505
+ }];
506
+ });
507
+ });
508
+ },
509
+ };
510
+ };
511
+ exports.AssignSystemsApiAxiosParamCreator = AssignSystemsApiAxiosParamCreator;
512
+ /**
513
+ * AssignSystemsApi - functional programming interface
514
+ * @export
515
+ */
516
+ var AssignSystemsApiFp = function (configuration) {
517
+ var localVarAxiosParamCreator = (0, exports.AssignSystemsApiAxiosParamCreator)(configuration);
518
+ return {
519
+ /**
520
+ * This feature is exclusively used by the frontend
521
+ * @summary Bulk assign Systems to a Policy
522
+ * @param {any} policyId
523
+ * @param {any} [xRHIDENTITY]
524
+ * @param {AssignRulesRequest} [assignRulesRequest]
525
+ * @param {*} [options] Override http request option.
526
+ * @deprecated
527
+ * @throws {RequiredError}
528
+ */
529
+ assignSystems: function (policyId, xRHIDENTITY, assignRulesRequest, options) {
530
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
531
+ var localVarAxiosArgs;
532
+ return tslib_1.__generator(this, function (_a) {
533
+ switch (_a.label) {
534
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.assignSystems(policyId, xRHIDENTITY, assignRulesRequest, options)];
535
+ case 1:
536
+ localVarAxiosArgs = _a.sent();
537
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
538
+ }
539
+ });
540
+ });
541
+ },
542
+ };
543
+ };
544
+ exports.AssignSystemsApiFp = AssignSystemsApiFp;
545
+ /**
546
+ * AssignSystemsApi - factory interface
547
+ * @export
548
+ */
549
+ var AssignSystemsApiFactory = function (configuration, basePath, axios) {
550
+ var localVarFp = (0, exports.AssignSystemsApiFp)(configuration);
551
+ return {
552
+ /**
553
+ * This feature is exclusively used by the frontend
554
+ * @summary Bulk assign Systems to a Policy
555
+ * @param {AssignSystemsApiAssignSystemsRequest} requestParameters Request parameters.
556
+ * @param {*} [options] Override http request option.
557
+ * @deprecated
558
+ * @throws {RequiredError}
559
+ */
560
+ assignSystems: function (requestParameters, options) {
561
+ return localVarFp.assignSystems(requestParameters.policyId, requestParameters.xRHIDENTITY, requestParameters.assignRulesRequest, options).then(function (request) { return request(axios, basePath); });
562
+ },
563
+ };
564
+ };
565
+ exports.AssignSystemsApiFactory = AssignSystemsApiFactory;
566
+ /**
567
+ * AssignSystemsApi - object-oriented interface
568
+ * @export
569
+ * @class AssignSystemsApi
570
+ * @extends {BaseAPI}
571
+ */
572
+ var AssignSystemsApi = /** @class */ (function (_super) {
573
+ tslib_1.__extends(AssignSystemsApi, _super);
574
+ function AssignSystemsApi() {
575
+ return _super !== null && _super.apply(this, arguments) || this;
576
+ }
577
+ /**
578
+ * This feature is exclusively used by the frontend
579
+ * @summary Bulk assign Systems to a Policy
580
+ * @param {AssignSystemsApiAssignSystemsRequest} requestParameters Request parameters.
581
+ * @param {*} [options] Override http request option.
582
+ * @deprecated
583
+ * @throws {RequiredError}
584
+ * @memberof AssignSystemsApi
585
+ */
586
+ AssignSystemsApi.prototype.assignSystems = function (requestParameters, options) {
587
+ var _this = this;
588
+ return (0, exports.AssignSystemsApiFp)(this.configuration).assignSystems(requestParameters.policyId, requestParameters.xRHIDENTITY, requestParameters.assignRulesRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
589
+ };
590
+ return AssignSystemsApi;
591
+ }(base_1.BaseAPI));
592
+ exports.AssignSystemsApi = AssignSystemsApi;
593
+ /**
594
+ * CreatePolicyApi - axios parameter creator
595
+ * @export
596
+ */
597
+ var CreatePolicyApiAxiosParamCreator = function (configuration) {
598
+ var _this = this;
599
+ return {
600
+ /**
601
+ * Create a Policy with the provided attributes
602
+ * @summary Create a Policy
603
+ * @param {any} [xRHIDENTITY]
604
+ * @param {Policy} [policy]
605
+ * @param {*} [options] Override http request option.
606
+ * @throws {RequiredError}
607
+ */
608
+ createPolicy: function (xRHIDENTITY, policy, options) {
609
+ if (options === void 0) { options = {}; }
610
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
611
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
612
+ return tslib_1.__generator(this, function (_a) {
613
+ localVarPath = "/policies";
614
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
615
+ if (configuration) {
616
+ baseOptions = configuration.baseOptions;
617
+ }
618
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'POST' }, baseOptions), options);
619
+ localVarHeaderParameter = {};
620
+ localVarQueryParameter = {};
621
+ if (xRHIDENTITY != null) {
622
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
623
+ ? xRHIDENTITY
624
+ : JSON.stringify(xRHIDENTITY);
625
+ }
626
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
627
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
628
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
629
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
630
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(policy, localVarRequestOptions, configuration);
631
+ return [2 /*return*/, {
632
+ url: (0, common_1.toPathString)(localVarUrlObj),
633
+ options: localVarRequestOptions,
634
+ }];
635
+ });
636
+ });
637
+ },
638
+ };
639
+ };
640
+ exports.CreatePolicyApiAxiosParamCreator = CreatePolicyApiAxiosParamCreator;
641
+ /**
642
+ * CreatePolicyApi - functional programming interface
643
+ * @export
644
+ */
645
+ var CreatePolicyApiFp = function (configuration) {
646
+ var localVarAxiosParamCreator = (0, exports.CreatePolicyApiAxiosParamCreator)(configuration);
647
+ return {
648
+ /**
649
+ * Create a Policy with the provided attributes
650
+ * @summary Create a Policy
651
+ * @param {any} [xRHIDENTITY]
652
+ * @param {Policy} [policy]
653
+ * @param {*} [options] Override http request option.
654
+ * @throws {RequiredError}
655
+ */
656
+ createPolicy: function (xRHIDENTITY, policy, options) {
657
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
658
+ var localVarAxiosArgs;
659
+ return tslib_1.__generator(this, function (_a) {
660
+ switch (_a.label) {
661
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPolicy(xRHIDENTITY, policy, options)];
662
+ case 1:
663
+ localVarAxiosArgs = _a.sent();
664
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
665
+ }
666
+ });
667
+ });
668
+ },
669
+ };
670
+ };
671
+ exports.CreatePolicyApiFp = CreatePolicyApiFp;
672
+ /**
673
+ * CreatePolicyApi - factory interface
674
+ * @export
675
+ */
676
+ var CreatePolicyApiFactory = function (configuration, basePath, axios) {
677
+ var localVarFp = (0, exports.CreatePolicyApiFp)(configuration);
678
+ return {
679
+ /**
680
+ * Create a Policy with the provided attributes
681
+ * @summary Create a Policy
682
+ * @param {CreatePolicyApiCreatePolicyRequest} requestParameters Request parameters.
683
+ * @param {*} [options] Override http request option.
684
+ * @throws {RequiredError}
685
+ */
686
+ createPolicy: function (requestParameters, options) {
687
+ if (requestParameters === void 0) { requestParameters = {}; }
688
+ return localVarFp.createPolicy(requestParameters.xRHIDENTITY, requestParameters.policy, options).then(function (request) { return request(axios, basePath); });
689
+ },
690
+ };
691
+ };
692
+ exports.CreatePolicyApiFactory = CreatePolicyApiFactory;
693
+ /**
694
+ * CreatePolicyApi - object-oriented interface
695
+ * @export
696
+ * @class CreatePolicyApi
697
+ * @extends {BaseAPI}
698
+ */
699
+ var CreatePolicyApi = /** @class */ (function (_super) {
700
+ tslib_1.__extends(CreatePolicyApi, _super);
701
+ function CreatePolicyApi() {
702
+ return _super !== null && _super.apply(this, arguments) || this;
703
+ }
704
+ /**
705
+ * Create a Policy with the provided attributes
706
+ * @summary Create a Policy
707
+ * @param {CreatePolicyApiCreatePolicyRequest} requestParameters Request parameters.
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ * @memberof CreatePolicyApi
711
+ */
712
+ CreatePolicyApi.prototype.createPolicy = function (requestParameters, options) {
713
+ var _this = this;
714
+ if (requestParameters === void 0) { requestParameters = {}; }
715
+ return (0, exports.CreatePolicyApiFp)(this.configuration).createPolicy(requestParameters.xRHIDENTITY, requestParameters.policy, options).then(function (request) { return request(_this.axios, _this.basePath); });
716
+ };
717
+ return CreatePolicyApi;
718
+ }(base_1.BaseAPI));
719
+ exports.CreatePolicyApi = CreatePolicyApi;
720
+ /**
721
+ * DeletePolicyApi - axios parameter creator
722
+ * @export
723
+ */
724
+ var DeletePolicyApiAxiosParamCreator = function (configuration) {
725
+ var _this = this;
726
+ return {
727
+ /**
728
+ * Deletes a Policy
729
+ * @summary Delete a Policy
730
+ * @param {any} id
731
+ * @param {any} [xRHIDENTITY]
732
+ * @param {*} [options] Override http request option.
733
+ * @throws {RequiredError}
734
+ */
735
+ deletePolicy: function (id, xRHIDENTITY, options) {
736
+ if (options === void 0) { options = {}; }
737
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
738
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
739
+ return tslib_1.__generator(this, function (_a) {
740
+ // verify required parameter 'id' is not null or undefined
741
+ (0, common_1.assertParamExists)('deletePolicy', 'id', id);
742
+ localVarPath = "/policies/{id}"
743
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
744
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
745
+ if (configuration) {
746
+ baseOptions = configuration.baseOptions;
747
+ }
748
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'DELETE' }, baseOptions), options);
749
+ localVarHeaderParameter = {};
750
+ localVarQueryParameter = {};
751
+ if (xRHIDENTITY != null) {
752
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
753
+ ? xRHIDENTITY
754
+ : JSON.stringify(xRHIDENTITY);
755
+ }
756
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
757
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
758
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
759
+ return [2 /*return*/, {
760
+ url: (0, common_1.toPathString)(localVarUrlObj),
761
+ options: localVarRequestOptions,
762
+ }];
763
+ });
764
+ });
765
+ },
766
+ };
767
+ };
768
+ exports.DeletePolicyApiAxiosParamCreator = DeletePolicyApiAxiosParamCreator;
769
+ /**
770
+ * DeletePolicyApi - functional programming interface
771
+ * @export
772
+ */
773
+ var DeletePolicyApiFp = function (configuration) {
774
+ var localVarAxiosParamCreator = (0, exports.DeletePolicyApiAxiosParamCreator)(configuration);
775
+ return {
776
+ /**
777
+ * Deletes a Policy
778
+ * @summary Delete a Policy
779
+ * @param {any} id
780
+ * @param {any} [xRHIDENTITY]
781
+ * @param {*} [options] Override http request option.
782
+ * @throws {RequiredError}
783
+ */
784
+ deletePolicy: function (id, xRHIDENTITY, options) {
785
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
786
+ var localVarAxiosArgs;
787
+ return tslib_1.__generator(this, function (_a) {
788
+ switch (_a.label) {
789
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePolicy(id, xRHIDENTITY, options)];
790
+ case 1:
791
+ localVarAxiosArgs = _a.sent();
792
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
793
+ }
794
+ });
795
+ });
796
+ },
797
+ };
798
+ };
799
+ exports.DeletePolicyApiFp = DeletePolicyApiFp;
800
+ /**
801
+ * DeletePolicyApi - factory interface
802
+ * @export
803
+ */
804
+ var DeletePolicyApiFactory = function (configuration, basePath, axios) {
805
+ var localVarFp = (0, exports.DeletePolicyApiFp)(configuration);
806
+ return {
807
+ /**
808
+ * Deletes a Policy
809
+ * @summary Delete a Policy
810
+ * @param {DeletePolicyApiDeletePolicyRequest} requestParameters Request parameters.
811
+ * @param {*} [options] Override http request option.
812
+ * @throws {RequiredError}
813
+ */
814
+ deletePolicy: function (requestParameters, options) {
815
+ return localVarFp.deletePolicy(requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
816
+ },
817
+ };
818
+ };
819
+ exports.DeletePolicyApiFactory = DeletePolicyApiFactory;
820
+ /**
821
+ * DeletePolicyApi - object-oriented interface
822
+ * @export
823
+ * @class DeletePolicyApi
824
+ * @extends {BaseAPI}
825
+ */
826
+ var DeletePolicyApi = /** @class */ (function (_super) {
827
+ tslib_1.__extends(DeletePolicyApi, _super);
828
+ function DeletePolicyApi() {
829
+ return _super !== null && _super.apply(this, arguments) || this;
830
+ }
831
+ /**
832
+ * Deletes a Policy
833
+ * @summary Delete a Policy
834
+ * @param {DeletePolicyApiDeletePolicyRequest} requestParameters Request parameters.
835
+ * @param {*} [options] Override http request option.
836
+ * @throws {RequiredError}
837
+ * @memberof DeletePolicyApi
838
+ */
839
+ DeletePolicyApi.prototype.deletePolicy = function (requestParameters, options) {
840
+ var _this = this;
841
+ return (0, exports.DeletePolicyApiFp)(this.configuration).deletePolicy(requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
842
+ };
843
+ return DeletePolicyApi;
844
+ }(base_1.BaseAPI));
845
+ exports.DeletePolicyApi = DeletePolicyApi;
846
+ /**
847
+ * PoliciesApi - axios parameter creator
848
+ * @export
849
+ */
850
+ var PoliciesApiAxiosParamCreator = function (configuration) {
851
+ var _this = this;
852
+ return {
853
+ /**
854
+ * Lists Policies
855
+ * @summary Request Policies
856
+ * @param {any} [xRHIDENTITY]
857
+ * @param {any} [limit] Number of items to return per page
858
+ * @param {any} [offset] Offset of first item of paginated response
859
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
860
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Policies are searchable using attributes `title` and `os_major_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
861
+ * @param {*} [options] Override http request option.
862
+ * @throws {RequiredError}
863
+ */
864
+ policies: function (xRHIDENTITY, limit, offset, sortBy, filter, options) {
865
+ if (options === void 0) { options = {}; }
866
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
867
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
868
+ return tslib_1.__generator(this, function (_a) {
869
+ localVarPath = "/policies";
870
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
871
+ if (configuration) {
872
+ baseOptions = configuration.baseOptions;
873
+ }
874
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
875
+ localVarHeaderParameter = {};
876
+ localVarQueryParameter = {};
877
+ if (limit !== undefined) {
878
+ localVarQueryParameter['limit'] = limit;
879
+ }
880
+ if (offset !== undefined) {
881
+ localVarQueryParameter['offset'] = offset;
882
+ }
883
+ if (sortBy !== undefined) {
884
+ localVarQueryParameter['sort_by'] = sortBy;
885
+ }
886
+ if (filter !== undefined) {
887
+ localVarQueryParameter['filter'] = filter;
888
+ }
889
+ if (xRHIDENTITY != null) {
890
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
891
+ ? xRHIDENTITY
892
+ : JSON.stringify(xRHIDENTITY);
893
+ }
894
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
895
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
896
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
897
+ return [2 /*return*/, {
898
+ url: (0, common_1.toPathString)(localVarUrlObj),
899
+ options: localVarRequestOptions,
900
+ }];
901
+ });
902
+ });
903
+ },
904
+ };
905
+ };
906
+ exports.PoliciesApiAxiosParamCreator = PoliciesApiAxiosParamCreator;
907
+ /**
908
+ * PoliciesApi - functional programming interface
909
+ * @export
910
+ */
911
+ var PoliciesApiFp = function (configuration) {
912
+ var localVarAxiosParamCreator = (0, exports.PoliciesApiAxiosParamCreator)(configuration);
913
+ return {
914
+ /**
915
+ * Lists Policies
916
+ * @summary Request Policies
917
+ * @param {any} [xRHIDENTITY]
918
+ * @param {any} [limit] Number of items to return per page
919
+ * @param {any} [offset] Offset of first item of paginated response
920
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
921
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Policies are searchable using attributes `title` and `os_major_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
922
+ * @param {*} [options] Override http request option.
923
+ * @throws {RequiredError}
924
+ */
925
+ policies: function (xRHIDENTITY, limit, offset, sortBy, filter, options) {
926
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
927
+ var localVarAxiosArgs;
928
+ return tslib_1.__generator(this, function (_a) {
929
+ switch (_a.label) {
930
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.policies(xRHIDENTITY, limit, offset, sortBy, filter, options)];
931
+ case 1:
932
+ localVarAxiosArgs = _a.sent();
933
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
934
+ }
935
+ });
936
+ });
937
+ },
938
+ };
939
+ };
940
+ exports.PoliciesApiFp = PoliciesApiFp;
941
+ /**
942
+ * PoliciesApi - factory interface
943
+ * @export
944
+ */
945
+ var PoliciesApiFactory = function (configuration, basePath, axios) {
946
+ var localVarFp = (0, exports.PoliciesApiFp)(configuration);
947
+ return {
948
+ /**
949
+ * Lists Policies
950
+ * @summary Request Policies
951
+ * @param {PoliciesApiPoliciesRequest} requestParameters Request parameters.
952
+ * @param {*} [options] Override http request option.
953
+ * @throws {RequiredError}
954
+ */
955
+ policies: function (requestParameters, options) {
956
+ if (requestParameters === void 0) { requestParameters = {}; }
957
+ return localVarFp.policies(requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
958
+ },
959
+ };
960
+ };
961
+ exports.PoliciesApiFactory = PoliciesApiFactory;
962
+ /**
963
+ * PoliciesApi - object-oriented interface
964
+ * @export
965
+ * @class PoliciesApi
966
+ * @extends {BaseAPI}
967
+ */
968
+ var PoliciesApi = /** @class */ (function (_super) {
969
+ tslib_1.__extends(PoliciesApi, _super);
970
+ function PoliciesApi() {
971
+ return _super !== null && _super.apply(this, arguments) || this;
972
+ }
973
+ /**
974
+ * Lists Policies
975
+ * @summary Request Policies
976
+ * @param {PoliciesApiPoliciesRequest} requestParameters Request parameters.
977
+ * @param {*} [options] Override http request option.
978
+ * @throws {RequiredError}
979
+ * @memberof PoliciesApi
980
+ */
981
+ PoliciesApi.prototype.policies = function (requestParameters, options) {
982
+ var _this = this;
983
+ if (requestParameters === void 0) { requestParameters = {}; }
984
+ return (0, exports.PoliciesApiFp)(this.configuration).policies(requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
985
+ };
986
+ return PoliciesApi;
987
+ }(base_1.BaseAPI));
988
+ exports.PoliciesApi = PoliciesApi;
989
+ /**
990
+ * PolicyApi - axios parameter creator
991
+ * @export
992
+ */
993
+ var PolicyApiAxiosParamCreator = function (configuration) {
994
+ var _this = this;
995
+ return {
996
+ /**
997
+ * Returns a Policy
998
+ * @summary Request a Policy
999
+ * @param {any} id
1000
+ * @param {any} [xRHIDENTITY]
1001
+ * @param {*} [options] Override http request option.
1002
+ * @throws {RequiredError}
1003
+ */
1004
+ policy: function (id, xRHIDENTITY, options) {
1005
+ if (options === void 0) { options = {}; }
1006
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
1007
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1008
+ return tslib_1.__generator(this, function (_a) {
1009
+ // verify required parameter 'id' is not null or undefined
1010
+ (0, common_1.assertParamExists)('policy', 'id', id);
1011
+ localVarPath = "/policies/{id}"
1012
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1013
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1014
+ if (configuration) {
1015
+ baseOptions = configuration.baseOptions;
1016
+ }
1017
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
1018
+ localVarHeaderParameter = {};
1019
+ localVarQueryParameter = {};
1020
+ if (xRHIDENTITY != null) {
1021
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
1022
+ ? xRHIDENTITY
1023
+ : JSON.stringify(xRHIDENTITY);
1024
+ }
1025
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1026
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1027
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1028
+ return [2 /*return*/, {
1029
+ url: (0, common_1.toPathString)(localVarUrlObj),
1030
+ options: localVarRequestOptions,
1031
+ }];
1032
+ });
1033
+ });
1034
+ },
1035
+ };
1036
+ };
1037
+ exports.PolicyApiAxiosParamCreator = PolicyApiAxiosParamCreator;
1038
+ /**
1039
+ * PolicyApi - functional programming interface
1040
+ * @export
1041
+ */
1042
+ var PolicyApiFp = function (configuration) {
1043
+ var localVarAxiosParamCreator = (0, exports.PolicyApiAxiosParamCreator)(configuration);
1044
+ return {
1045
+ /**
1046
+ * Returns a Policy
1047
+ * @summary Request a Policy
1048
+ * @param {any} id
1049
+ * @param {any} [xRHIDENTITY]
1050
+ * @param {*} [options] Override http request option.
1051
+ * @throws {RequiredError}
1052
+ */
1053
+ policy: function (id, xRHIDENTITY, options) {
1054
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
1055
+ var localVarAxiosArgs;
1056
+ return tslib_1.__generator(this, function (_a) {
1057
+ switch (_a.label) {
1058
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.policy(id, xRHIDENTITY, options)];
1059
+ case 1:
1060
+ localVarAxiosArgs = _a.sent();
1061
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1062
+ }
1063
+ });
1064
+ });
1065
+ },
1066
+ };
1067
+ };
1068
+ exports.PolicyApiFp = PolicyApiFp;
1069
+ /**
1070
+ * PolicyApi - factory interface
1071
+ * @export
1072
+ */
1073
+ var PolicyApiFactory = function (configuration, basePath, axios) {
1074
+ var localVarFp = (0, exports.PolicyApiFp)(configuration);
1075
+ return {
1076
+ /**
1077
+ * Returns a Policy
1078
+ * @summary Request a Policy
1079
+ * @param {PolicyApiPolicyRequest} requestParameters Request parameters.
1080
+ * @param {*} [options] Override http request option.
1081
+ * @throws {RequiredError}
1082
+ */
1083
+ policy: function (requestParameters, options) {
1084
+ return localVarFp.policy(requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
1085
+ },
1086
+ };
1087
+ };
1088
+ exports.PolicyApiFactory = PolicyApiFactory;
1089
+ /**
1090
+ * PolicyApi - object-oriented interface
1091
+ * @export
1092
+ * @class PolicyApi
1093
+ * @extends {BaseAPI}
1094
+ */
1095
+ var PolicyApi = /** @class */ (function (_super) {
1096
+ tslib_1.__extends(PolicyApi, _super);
1097
+ function PolicyApi() {
1098
+ return _super !== null && _super.apply(this, arguments) || this;
1099
+ }
1100
+ /**
1101
+ * Returns a Policy
1102
+ * @summary Request a Policy
1103
+ * @param {PolicyApiPolicyRequest} requestParameters Request parameters.
1104
+ * @param {*} [options] Override http request option.
1105
+ * @throws {RequiredError}
1106
+ * @memberof PolicyApi
1107
+ */
1108
+ PolicyApi.prototype.policy = function (requestParameters, options) {
1109
+ var _this = this;
1110
+ return (0, exports.PolicyApiFp)(this.configuration).policy(requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
1111
+ };
1112
+ return PolicyApi;
1113
+ }(base_1.BaseAPI));
1114
+ exports.PolicyApi = PolicyApi;
1115
+ /**
1116
+ * PolicySystemsApi - axios parameter creator
1117
+ * @export
1118
+ */
1119
+ var PolicySystemsApiAxiosParamCreator = function (configuration) {
1120
+ var _this = this;
1121
+ return {
1122
+ /**
1123
+ * Lists Systems assigned to a Policy
1124
+ * @summary Request Systems assigned to a Policy
1125
+ * @param {any} policyId
1126
+ * @param {any} [xRHIDENTITY]
1127
+ * @param {any} [limit] Number of items to return per page
1128
+ * @param {any} [offset] Offset of first item of paginated response
1129
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
1130
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Systems are searchable using attributes `display_name`, `os_major_version`, and `os_minor_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
1131
+ * @param {*} [options] Override http request option.
1132
+ * @throws {RequiredError}
1133
+ */
1134
+ policySystems: function (policyId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
1135
+ if (options === void 0) { options = {}; }
1136
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
1137
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1138
+ return tslib_1.__generator(this, function (_a) {
1139
+ // verify required parameter 'policyId' is not null or undefined
1140
+ (0, common_1.assertParamExists)('policySystems', 'policyId', policyId);
1141
+ localVarPath = "/policies/{policy_id}/systems"
1142
+ .replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
1143
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1144
+ if (configuration) {
1145
+ baseOptions = configuration.baseOptions;
1146
+ }
1147
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
1148
+ localVarHeaderParameter = {};
1149
+ localVarQueryParameter = {};
1150
+ if (limit !== undefined) {
1151
+ localVarQueryParameter['limit'] = limit;
1152
+ }
1153
+ if (offset !== undefined) {
1154
+ localVarQueryParameter['offset'] = offset;
1155
+ }
1156
+ if (sortBy !== undefined) {
1157
+ localVarQueryParameter['sort_by'] = sortBy;
1158
+ }
1159
+ if (filter !== undefined) {
1160
+ localVarQueryParameter['filter'] = filter;
1161
+ }
1162
+ if (xRHIDENTITY != null) {
1163
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
1164
+ ? xRHIDENTITY
1165
+ : JSON.stringify(xRHIDENTITY);
1166
+ }
1167
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1168
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1169
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1170
+ return [2 /*return*/, {
1171
+ url: (0, common_1.toPathString)(localVarUrlObj),
1172
+ options: localVarRequestOptions,
1173
+ }];
1174
+ });
1175
+ });
1176
+ },
1177
+ };
1178
+ };
1179
+ exports.PolicySystemsApiAxiosParamCreator = PolicySystemsApiAxiosParamCreator;
1180
+ /**
1181
+ * PolicySystemsApi - functional programming interface
1182
+ * @export
1183
+ */
1184
+ var PolicySystemsApiFp = function (configuration) {
1185
+ var localVarAxiosParamCreator = (0, exports.PolicySystemsApiAxiosParamCreator)(configuration);
1186
+ return {
1187
+ /**
1188
+ * Lists Systems assigned to a Policy
1189
+ * @summary Request Systems assigned to a Policy
1190
+ * @param {any} policyId
1191
+ * @param {any} [xRHIDENTITY]
1192
+ * @param {any} [limit] Number of items to return per page
1193
+ * @param {any} [offset] Offset of first item of paginated response
1194
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
1195
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Systems are searchable using attributes `display_name`, `os_major_version`, and `os_minor_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
1196
+ * @param {*} [options] Override http request option.
1197
+ * @throws {RequiredError}
1198
+ */
1199
+ policySystems: function (policyId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
1200
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
1201
+ var localVarAxiosArgs;
1202
+ return tslib_1.__generator(this, function (_a) {
1203
+ switch (_a.label) {
1204
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.policySystems(policyId, xRHIDENTITY, limit, offset, sortBy, filter, options)];
1205
+ case 1:
1206
+ localVarAxiosArgs = _a.sent();
1207
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1208
+ }
1209
+ });
1210
+ });
1211
+ },
1212
+ };
1213
+ };
1214
+ exports.PolicySystemsApiFp = PolicySystemsApiFp;
1215
+ /**
1216
+ * PolicySystemsApi - factory interface
1217
+ * @export
1218
+ */
1219
+ var PolicySystemsApiFactory = function (configuration, basePath, axios) {
1220
+ var localVarFp = (0, exports.PolicySystemsApiFp)(configuration);
1221
+ return {
1222
+ /**
1223
+ * Lists Systems assigned to a Policy
1224
+ * @summary Request Systems assigned to a Policy
1225
+ * @param {PolicySystemsApiPolicySystemsRequest} requestParameters Request parameters.
1226
+ * @param {*} [options] Override http request option.
1227
+ * @throws {RequiredError}
1228
+ */
1229
+ policySystems: function (requestParameters, options) {
1230
+ return localVarFp.policySystems(requestParameters.policyId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
1231
+ },
1232
+ };
1233
+ };
1234
+ exports.PolicySystemsApiFactory = PolicySystemsApiFactory;
1235
+ /**
1236
+ * PolicySystemsApi - object-oriented interface
1237
+ * @export
1238
+ * @class PolicySystemsApi
1239
+ * @extends {BaseAPI}
1240
+ */
1241
+ var PolicySystemsApi = /** @class */ (function (_super) {
1242
+ tslib_1.__extends(PolicySystemsApi, _super);
1243
+ function PolicySystemsApi() {
1244
+ return _super !== null && _super.apply(this, arguments) || this;
1245
+ }
1246
+ /**
1247
+ * Lists Systems assigned to a Policy
1248
+ * @summary Request Systems assigned to a Policy
1249
+ * @param {PolicySystemsApiPolicySystemsRequest} requestParameters Request parameters.
1250
+ * @param {*} [options] Override http request option.
1251
+ * @throws {RequiredError}
1252
+ * @memberof PolicySystemsApi
1253
+ */
1254
+ PolicySystemsApi.prototype.policySystems = function (requestParameters, options) {
1255
+ var _this = this;
1256
+ return (0, exports.PolicySystemsApiFp)(this.configuration).policySystems(requestParameters.policyId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
1257
+ };
1258
+ return PolicySystemsApi;
1259
+ }(base_1.BaseAPI));
1260
+ exports.PolicySystemsApi = PolicySystemsApi;
1261
+ /**
1262
+ * ProfileApi - axios parameter creator
1263
+ * @export
1264
+ */
1265
+ var ProfileApiAxiosParamCreator = function (configuration) {
1266
+ var _this = this;
1267
+ return {
1268
+ /**
1269
+ * Returns a Profile
1270
+ * @summary Request a Profile
1271
+ * @param {any} securityGuideId
1272
+ * @param {any} id
1273
+ * @param {any} [xRHIDENTITY]
1274
+ * @param {*} [options] Override http request option.
1275
+ * @throws {RequiredError}
1276
+ */
1277
+ profile: function (securityGuideId, id, xRHIDENTITY, options) {
1278
+ if (options === void 0) { options = {}; }
1279
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
1280
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1281
+ return tslib_1.__generator(this, function (_a) {
1282
+ // verify required parameter 'securityGuideId' is not null or undefined
1283
+ (0, common_1.assertParamExists)('profile', 'securityGuideId', securityGuideId);
1284
+ // verify required parameter 'id' is not null or undefined
1285
+ (0, common_1.assertParamExists)('profile', 'id', id);
1286
+ localVarPath = "/security_guides/{security_guide_id}/profiles/{id}"
1287
+ .replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)))
1288
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1289
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1290
+ if (configuration) {
1291
+ baseOptions = configuration.baseOptions;
1292
+ }
1293
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
1294
+ localVarHeaderParameter = {};
1295
+ localVarQueryParameter = {};
1296
+ if (xRHIDENTITY != null) {
1297
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
1298
+ ? xRHIDENTITY
1299
+ : JSON.stringify(xRHIDENTITY);
1300
+ }
1301
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1302
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1303
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1304
+ return [2 /*return*/, {
1305
+ url: (0, common_1.toPathString)(localVarUrlObj),
1306
+ options: localVarRequestOptions,
1307
+ }];
1308
+ });
1309
+ });
1310
+ },
1311
+ };
1312
+ };
1313
+ exports.ProfileApiAxiosParamCreator = ProfileApiAxiosParamCreator;
1314
+ /**
1315
+ * ProfileApi - functional programming interface
1316
+ * @export
1317
+ */
1318
+ var ProfileApiFp = function (configuration) {
1319
+ var localVarAxiosParamCreator = (0, exports.ProfileApiAxiosParamCreator)(configuration);
1320
+ return {
1321
+ /**
1322
+ * Returns a Profile
1323
+ * @summary Request a Profile
1324
+ * @param {any} securityGuideId
1325
+ * @param {any} id
1326
+ * @param {any} [xRHIDENTITY]
1327
+ * @param {*} [options] Override http request option.
1328
+ * @throws {RequiredError}
1329
+ */
1330
+ profile: function (securityGuideId, id, xRHIDENTITY, options) {
1331
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
1332
+ var localVarAxiosArgs;
1333
+ return tslib_1.__generator(this, function (_a) {
1334
+ switch (_a.label) {
1335
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.profile(securityGuideId, id, xRHIDENTITY, options)];
1336
+ case 1:
1337
+ localVarAxiosArgs = _a.sent();
1338
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1339
+ }
1340
+ });
1341
+ });
1342
+ },
1343
+ };
1344
+ };
1345
+ exports.ProfileApiFp = ProfileApiFp;
1346
+ /**
1347
+ * ProfileApi - factory interface
1348
+ * @export
1349
+ */
1350
+ var ProfileApiFactory = function (configuration, basePath, axios) {
1351
+ var localVarFp = (0, exports.ProfileApiFp)(configuration);
1352
+ return {
1353
+ /**
1354
+ * Returns a Profile
1355
+ * @summary Request a Profile
1356
+ * @param {ProfileApiProfileRequest} requestParameters Request parameters.
1357
+ * @param {*} [options] Override http request option.
1358
+ * @throws {RequiredError}
1359
+ */
1360
+ profile: function (requestParameters, options) {
1361
+ return localVarFp.profile(requestParameters.securityGuideId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
1362
+ },
1363
+ };
1364
+ };
1365
+ exports.ProfileApiFactory = ProfileApiFactory;
1366
+ /**
1367
+ * ProfileApi - object-oriented interface
1368
+ * @export
1369
+ * @class ProfileApi
1370
+ * @extends {BaseAPI}
1371
+ */
1372
+ var ProfileApi = /** @class */ (function (_super) {
1373
+ tslib_1.__extends(ProfileApi, _super);
1374
+ function ProfileApi() {
1375
+ return _super !== null && _super.apply(this, arguments) || this;
1376
+ }
1377
+ /**
1378
+ * Returns a Profile
1379
+ * @summary Request a Profile
1380
+ * @param {ProfileApiProfileRequest} requestParameters Request parameters.
1381
+ * @param {*} [options] Override http request option.
1382
+ * @throws {RequiredError}
1383
+ * @memberof ProfileApi
1384
+ */
1385
+ ProfileApi.prototype.profile = function (requestParameters, options) {
1386
+ var _this = this;
1387
+ return (0, exports.ProfileApiFp)(this.configuration).profile(requestParameters.securityGuideId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
1388
+ };
1389
+ return ProfileApi;
1390
+ }(base_1.BaseAPI));
1391
+ exports.ProfileApi = ProfileApi;
1392
+ /**
1393
+ * ProfileRuleApi - axios parameter creator
1394
+ * @export
1395
+ */
1396
+ var ProfileRuleApiAxiosParamCreator = function (configuration) {
1397
+ var _this = this;
1398
+ return {
1399
+ /**
1400
+ * Returns a Rule assigned to a Profile
1401
+ * @summary Request a Rule assigned to a Profile
1402
+ * @param {any} securityGuideId
1403
+ * @param {any} profileId
1404
+ * @param {any} id
1405
+ * @param {any} [xRHIDENTITY]
1406
+ * @param {*} [options] Override http request option.
1407
+ * @throws {RequiredError}
1408
+ */
1409
+ profileRule: function (securityGuideId, profileId, id, xRHIDENTITY, options) {
1410
+ if (options === void 0) { options = {}; }
1411
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
1412
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1413
+ return tslib_1.__generator(this, function (_a) {
1414
+ // verify required parameter 'securityGuideId' is not null or undefined
1415
+ (0, common_1.assertParamExists)('profileRule', 'securityGuideId', securityGuideId);
1416
+ // verify required parameter 'profileId' is not null or undefined
1417
+ (0, common_1.assertParamExists)('profileRule', 'profileId', profileId);
1418
+ // verify required parameter 'id' is not null or undefined
1419
+ (0, common_1.assertParamExists)('profileRule', 'id', id);
1420
+ localVarPath = "/security_guides/{security_guide_id}/profiles/{profile_id}/rules/{id}"
1421
+ .replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)))
1422
+ .replace("{".concat("profile_id", "}"), encodeURIComponent(String(profileId)))
1423
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1424
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1425
+ if (configuration) {
1426
+ baseOptions = configuration.baseOptions;
1427
+ }
1428
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
1429
+ localVarHeaderParameter = {};
1430
+ localVarQueryParameter = {};
1431
+ if (xRHIDENTITY != null) {
1432
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
1433
+ ? xRHIDENTITY
1434
+ : JSON.stringify(xRHIDENTITY);
1435
+ }
1436
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1437
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1438
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1439
+ return [2 /*return*/, {
1440
+ url: (0, common_1.toPathString)(localVarUrlObj),
1441
+ options: localVarRequestOptions,
1442
+ }];
1443
+ });
1444
+ });
1445
+ },
1446
+ };
1447
+ };
1448
+ exports.ProfileRuleApiAxiosParamCreator = ProfileRuleApiAxiosParamCreator;
1449
+ /**
1450
+ * ProfileRuleApi - functional programming interface
1451
+ * @export
1452
+ */
1453
+ var ProfileRuleApiFp = function (configuration) {
1454
+ var localVarAxiosParamCreator = (0, exports.ProfileRuleApiAxiosParamCreator)(configuration);
1455
+ return {
1456
+ /**
1457
+ * Returns a Rule assigned to a Profile
1458
+ * @summary Request a Rule assigned to a Profile
1459
+ * @param {any} securityGuideId
1460
+ * @param {any} profileId
1461
+ * @param {any} id
1462
+ * @param {any} [xRHIDENTITY]
1463
+ * @param {*} [options] Override http request option.
1464
+ * @throws {RequiredError}
1465
+ */
1466
+ profileRule: function (securityGuideId, profileId, id, xRHIDENTITY, options) {
1467
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
1468
+ var localVarAxiosArgs;
1469
+ return tslib_1.__generator(this, function (_a) {
1470
+ switch (_a.label) {
1471
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.profileRule(securityGuideId, profileId, id, xRHIDENTITY, options)];
1472
+ case 1:
1473
+ localVarAxiosArgs = _a.sent();
1474
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1475
+ }
1476
+ });
1477
+ });
1478
+ },
1479
+ };
1480
+ };
1481
+ exports.ProfileRuleApiFp = ProfileRuleApiFp;
1482
+ /**
1483
+ * ProfileRuleApi - factory interface
1484
+ * @export
1485
+ */
1486
+ var ProfileRuleApiFactory = function (configuration, basePath, axios) {
1487
+ var localVarFp = (0, exports.ProfileRuleApiFp)(configuration);
1488
+ return {
1489
+ /**
1490
+ * Returns a Rule assigned to a Profile
1491
+ * @summary Request a Rule assigned to a Profile
1492
+ * @param {ProfileRuleApiProfileRuleRequest} requestParameters Request parameters.
1493
+ * @param {*} [options] Override http request option.
1494
+ * @throws {RequiredError}
1495
+ */
1496
+ profileRule: function (requestParameters, options) {
1497
+ return localVarFp.profileRule(requestParameters.securityGuideId, requestParameters.profileId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
1498
+ },
1499
+ };
1500
+ };
1501
+ exports.ProfileRuleApiFactory = ProfileRuleApiFactory;
1502
+ /**
1503
+ * ProfileRuleApi - object-oriented interface
1504
+ * @export
1505
+ * @class ProfileRuleApi
1506
+ * @extends {BaseAPI}
1507
+ */
1508
+ var ProfileRuleApi = /** @class */ (function (_super) {
1509
+ tslib_1.__extends(ProfileRuleApi, _super);
1510
+ function ProfileRuleApi() {
1511
+ return _super !== null && _super.apply(this, arguments) || this;
1512
+ }
1513
+ /**
1514
+ * Returns a Rule assigned to a Profile
1515
+ * @summary Request a Rule assigned to a Profile
1516
+ * @param {ProfileRuleApiProfileRuleRequest} requestParameters Request parameters.
1517
+ * @param {*} [options] Override http request option.
1518
+ * @throws {RequiredError}
1519
+ * @memberof ProfileRuleApi
1520
+ */
1521
+ ProfileRuleApi.prototype.profileRule = function (requestParameters, options) {
1522
+ var _this = this;
1523
+ return (0, exports.ProfileRuleApiFp)(this.configuration).profileRule(requestParameters.securityGuideId, requestParameters.profileId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
1524
+ };
1525
+ return ProfileRuleApi;
1526
+ }(base_1.BaseAPI));
1527
+ exports.ProfileRuleApi = ProfileRuleApi;
1528
+ /**
1529
+ * ProfileRulesApi - axios parameter creator
1530
+ * @export
1531
+ */
1532
+ var ProfileRulesApiAxiosParamCreator = function (configuration) {
1533
+ var _this = this;
1534
+ return {
1535
+ /**
1536
+ * Lists Rules assigned to a Profile
1537
+ * @summary Request Rules assigned to a Profile
1538
+ * @param {any} securityGuideId
1539
+ * @param {any} profileId
1540
+ * @param {any} [xRHIDENTITY]
1541
+ * @param {any} [limit] Number of items to return per page
1542
+ * @param {any} [offset] Offset of first item of paginated response
1543
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
1544
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Rules are searchable using attributes `title` and `severity`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
1545
+ * @param {*} [options] Override http request option.
1546
+ * @throws {RequiredError}
1547
+ */
1548
+ profileRules: function (securityGuideId, profileId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
1549
+ if (options === void 0) { options = {}; }
1550
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
1551
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1552
+ return tslib_1.__generator(this, function (_a) {
1553
+ // verify required parameter 'securityGuideId' is not null or undefined
1554
+ (0, common_1.assertParamExists)('profileRules', 'securityGuideId', securityGuideId);
1555
+ // verify required parameter 'profileId' is not null or undefined
1556
+ (0, common_1.assertParamExists)('profileRules', 'profileId', profileId);
1557
+ localVarPath = "/security_guides/{security_guide_id}/profiles/{profile_id}/rules"
1558
+ .replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)))
1559
+ .replace("{".concat("profile_id", "}"), encodeURIComponent(String(profileId)));
1560
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1561
+ if (configuration) {
1562
+ baseOptions = configuration.baseOptions;
1563
+ }
1564
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
1565
+ localVarHeaderParameter = {};
1566
+ localVarQueryParameter = {};
1567
+ if (limit !== undefined) {
1568
+ localVarQueryParameter['limit'] = limit;
1569
+ }
1570
+ if (offset !== undefined) {
1571
+ localVarQueryParameter['offset'] = offset;
1572
+ }
1573
+ if (sortBy !== undefined) {
1574
+ localVarQueryParameter['sort_by'] = sortBy;
1575
+ }
1576
+ if (filter !== undefined) {
1577
+ localVarQueryParameter['filter'] = filter;
1578
+ }
1579
+ if (xRHIDENTITY != null) {
1580
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
1581
+ ? xRHIDENTITY
1582
+ : JSON.stringify(xRHIDENTITY);
1583
+ }
1584
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1585
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1586
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1587
+ return [2 /*return*/, {
1588
+ url: (0, common_1.toPathString)(localVarUrlObj),
1589
+ options: localVarRequestOptions,
1590
+ }];
1591
+ });
1592
+ });
1593
+ },
1594
+ };
1595
+ };
1596
+ exports.ProfileRulesApiAxiosParamCreator = ProfileRulesApiAxiosParamCreator;
1597
+ /**
1598
+ * ProfileRulesApi - functional programming interface
1599
+ * @export
1600
+ */
1601
+ var ProfileRulesApiFp = function (configuration) {
1602
+ var localVarAxiosParamCreator = (0, exports.ProfileRulesApiAxiosParamCreator)(configuration);
1603
+ return {
1604
+ /**
1605
+ * Lists Rules assigned to a Profile
1606
+ * @summary Request Rules assigned to a Profile
1607
+ * @param {any} securityGuideId
1608
+ * @param {any} profileId
1609
+ * @param {any} [xRHIDENTITY]
1610
+ * @param {any} [limit] Number of items to return per page
1611
+ * @param {any} [offset] Offset of first item of paginated response
1612
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
1613
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Rules are searchable using attributes `title` and `severity`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
1614
+ * @param {*} [options] Override http request option.
1615
+ * @throws {RequiredError}
1616
+ */
1617
+ profileRules: function (securityGuideId, profileId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
1618
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
1619
+ var localVarAxiosArgs;
1620
+ return tslib_1.__generator(this, function (_a) {
1621
+ switch (_a.label) {
1622
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.profileRules(securityGuideId, profileId, xRHIDENTITY, limit, offset, sortBy, filter, options)];
1623
+ case 1:
1624
+ localVarAxiosArgs = _a.sent();
1625
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1626
+ }
1627
+ });
1628
+ });
1629
+ },
1630
+ };
1631
+ };
1632
+ exports.ProfileRulesApiFp = ProfileRulesApiFp;
1633
+ /**
1634
+ * ProfileRulesApi - factory interface
1635
+ * @export
1636
+ */
1637
+ var ProfileRulesApiFactory = function (configuration, basePath, axios) {
1638
+ var localVarFp = (0, exports.ProfileRulesApiFp)(configuration);
1639
+ return {
1640
+ /**
1641
+ * Lists Rules assigned to a Profile
1642
+ * @summary Request Rules assigned to a Profile
1643
+ * @param {ProfileRulesApiProfileRulesRequest} requestParameters Request parameters.
1644
+ * @param {*} [options] Override http request option.
1645
+ * @throws {RequiredError}
1646
+ */
1647
+ profileRules: function (requestParameters, options) {
1648
+ return localVarFp.profileRules(requestParameters.securityGuideId, requestParameters.profileId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
1649
+ },
1650
+ };
1651
+ };
1652
+ exports.ProfileRulesApiFactory = ProfileRulesApiFactory;
1653
+ /**
1654
+ * ProfileRulesApi - object-oriented interface
1655
+ * @export
1656
+ * @class ProfileRulesApi
1657
+ * @extends {BaseAPI}
1658
+ */
1659
+ var ProfileRulesApi = /** @class */ (function (_super) {
1660
+ tslib_1.__extends(ProfileRulesApi, _super);
1661
+ function ProfileRulesApi() {
1662
+ return _super !== null && _super.apply(this, arguments) || this;
1663
+ }
1664
+ /**
1665
+ * Lists Rules assigned to a Profile
1666
+ * @summary Request Rules assigned to a Profile
1667
+ * @param {ProfileRulesApiProfileRulesRequest} requestParameters Request parameters.
1668
+ * @param {*} [options] Override http request option.
1669
+ * @throws {RequiredError}
1670
+ * @memberof ProfileRulesApi
1671
+ */
1672
+ ProfileRulesApi.prototype.profileRules = function (requestParameters, options) {
1673
+ var _this = this;
1674
+ return (0, exports.ProfileRulesApiFp)(this.configuration).profileRules(requestParameters.securityGuideId, requestParameters.profileId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
1675
+ };
1676
+ return ProfileRulesApi;
1677
+ }(base_1.BaseAPI));
1678
+ exports.ProfileRulesApi = ProfileRulesApi;
1679
+ /**
1680
+ * ProfilesApi - axios parameter creator
1681
+ * @export
1682
+ */
1683
+ var ProfilesApiAxiosParamCreator = function (configuration) {
1684
+ var _this = this;
1685
+ return {
1686
+ /**
1687
+ * Lists Profiles
1688
+ * @summary Request Profiles
1689
+ * @param {any} securityGuideId
1690
+ * @param {any} [xRHIDENTITY]
1691
+ * @param {any} [limit] Number of items to return per page
1692
+ * @param {any} [offset] Offset of first item of paginated response
1693
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
1694
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Profiles are searchable using attributes `title` and `ref_id`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
1695
+ * @param {*} [options] Override http request option.
1696
+ * @throws {RequiredError}
1697
+ */
1698
+ profiles: function (securityGuideId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
1699
+ if (options === void 0) { options = {}; }
1700
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
1701
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1702
+ return tslib_1.__generator(this, function (_a) {
1703
+ // verify required parameter 'securityGuideId' is not null or undefined
1704
+ (0, common_1.assertParamExists)('profiles', 'securityGuideId', securityGuideId);
1705
+ localVarPath = "/security_guides/{security_guide_id}/profiles"
1706
+ .replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)));
1707
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1708
+ if (configuration) {
1709
+ baseOptions = configuration.baseOptions;
1710
+ }
1711
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
1712
+ localVarHeaderParameter = {};
1713
+ localVarQueryParameter = {};
1714
+ if (limit !== undefined) {
1715
+ localVarQueryParameter['limit'] = limit;
1716
+ }
1717
+ if (offset !== undefined) {
1718
+ localVarQueryParameter['offset'] = offset;
1719
+ }
1720
+ if (sortBy !== undefined) {
1721
+ localVarQueryParameter['sort_by'] = sortBy;
1722
+ }
1723
+ if (filter !== undefined) {
1724
+ localVarQueryParameter['filter'] = filter;
1725
+ }
1726
+ if (xRHIDENTITY != null) {
1727
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
1728
+ ? xRHIDENTITY
1729
+ : JSON.stringify(xRHIDENTITY);
1730
+ }
1731
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1732
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1733
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1734
+ return [2 /*return*/, {
1735
+ url: (0, common_1.toPathString)(localVarUrlObj),
1736
+ options: localVarRequestOptions,
1737
+ }];
1738
+ });
1739
+ });
1740
+ },
1741
+ };
1742
+ };
1743
+ exports.ProfilesApiAxiosParamCreator = ProfilesApiAxiosParamCreator;
1744
+ /**
1745
+ * ProfilesApi - functional programming interface
1746
+ * @export
1747
+ */
1748
+ var ProfilesApiFp = function (configuration) {
1749
+ var localVarAxiosParamCreator = (0, exports.ProfilesApiAxiosParamCreator)(configuration);
1750
+ return {
1751
+ /**
1752
+ * Lists Profiles
1753
+ * @summary Request Profiles
1754
+ * @param {any} securityGuideId
1755
+ * @param {any} [xRHIDENTITY]
1756
+ * @param {any} [limit] Number of items to return per page
1757
+ * @param {any} [offset] Offset of first item of paginated response
1758
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
1759
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Profiles are searchable using attributes `title` and `ref_id`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
1760
+ * @param {*} [options] Override http request option.
1761
+ * @throws {RequiredError}
1762
+ */
1763
+ profiles: function (securityGuideId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
1764
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
1765
+ var localVarAxiosArgs;
1766
+ return tslib_1.__generator(this, function (_a) {
1767
+ switch (_a.label) {
1768
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.profiles(securityGuideId, xRHIDENTITY, limit, offset, sortBy, filter, options)];
1769
+ case 1:
1770
+ localVarAxiosArgs = _a.sent();
1771
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1772
+ }
1773
+ });
1774
+ });
1775
+ },
1776
+ };
1777
+ };
1778
+ exports.ProfilesApiFp = ProfilesApiFp;
1779
+ /**
1780
+ * ProfilesApi - factory interface
1781
+ * @export
1782
+ */
1783
+ var ProfilesApiFactory = function (configuration, basePath, axios) {
1784
+ var localVarFp = (0, exports.ProfilesApiFp)(configuration);
1785
+ return {
1786
+ /**
1787
+ * Lists Profiles
1788
+ * @summary Request Profiles
1789
+ * @param {ProfilesApiProfilesRequest} requestParameters Request parameters.
1790
+ * @param {*} [options] Override http request option.
1791
+ * @throws {RequiredError}
1792
+ */
1793
+ profiles: function (requestParameters, options) {
1794
+ return localVarFp.profiles(requestParameters.securityGuideId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
1795
+ },
1796
+ };
1797
+ };
1798
+ exports.ProfilesApiFactory = ProfilesApiFactory;
1799
+ /**
1800
+ * ProfilesApi - object-oriented interface
1801
+ * @export
1802
+ * @class ProfilesApi
1803
+ * @extends {BaseAPI}
1804
+ */
1805
+ var ProfilesApi = /** @class */ (function (_super) {
1806
+ tslib_1.__extends(ProfilesApi, _super);
1807
+ function ProfilesApi() {
1808
+ return _super !== null && _super.apply(this, arguments) || this;
1809
+ }
1810
+ /**
1811
+ * Lists Profiles
1812
+ * @summary Request Profiles
1813
+ * @param {ProfilesApiProfilesRequest} requestParameters Request parameters.
1814
+ * @param {*} [options] Override http request option.
1815
+ * @throws {RequiredError}
1816
+ * @memberof ProfilesApi
1817
+ */
1818
+ ProfilesApi.prototype.profiles = function (requestParameters, options) {
1819
+ var _this = this;
1820
+ return (0, exports.ProfilesApiFp)(this.configuration).profiles(requestParameters.securityGuideId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
1821
+ };
1822
+ return ProfilesApi;
1823
+ }(base_1.BaseAPI));
1824
+ exports.ProfilesApi = ProfilesApi;
1825
+ /**
1826
+ * RuleApi - axios parameter creator
1827
+ * @export
1828
+ */
1829
+ var RuleApiAxiosParamCreator = function (configuration) {
1830
+ var _this = this;
1831
+ return {
1832
+ /**
1833
+ * Returns a Rule
1834
+ * @summary Request a Rule
1835
+ * @param {any} securityGuideId
1836
+ * @param {any} id
1837
+ * @param {any} [xRHIDENTITY]
1838
+ * @param {*} [options] Override http request option.
1839
+ * @throws {RequiredError}
1840
+ */
1841
+ rule: function (securityGuideId, id, xRHIDENTITY, options) {
1842
+ if (options === void 0) { options = {}; }
1843
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
1844
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1845
+ return tslib_1.__generator(this, function (_a) {
1846
+ // verify required parameter 'securityGuideId' is not null or undefined
1847
+ (0, common_1.assertParamExists)('rule', 'securityGuideId', securityGuideId);
1848
+ // verify required parameter 'id' is not null or undefined
1849
+ (0, common_1.assertParamExists)('rule', 'id', id);
1850
+ localVarPath = "/security_guides/{security_guide_id}/rules/{id}"
1851
+ .replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)))
1852
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1853
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1854
+ if (configuration) {
1855
+ baseOptions = configuration.baseOptions;
1856
+ }
1857
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
1858
+ localVarHeaderParameter = {};
1859
+ localVarQueryParameter = {};
1860
+ if (xRHIDENTITY != null) {
1861
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
1862
+ ? xRHIDENTITY
1863
+ : JSON.stringify(xRHIDENTITY);
1864
+ }
1865
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1866
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1867
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1868
+ return [2 /*return*/, {
1869
+ url: (0, common_1.toPathString)(localVarUrlObj),
1870
+ options: localVarRequestOptions,
1871
+ }];
1872
+ });
1873
+ });
1874
+ },
1875
+ };
1876
+ };
1877
+ exports.RuleApiAxiosParamCreator = RuleApiAxiosParamCreator;
1878
+ /**
1879
+ * RuleApi - functional programming interface
1880
+ * @export
1881
+ */
1882
+ var RuleApiFp = function (configuration) {
1883
+ var localVarAxiosParamCreator = (0, exports.RuleApiAxiosParamCreator)(configuration);
1884
+ return {
1885
+ /**
1886
+ * Returns a Rule
1887
+ * @summary Request a Rule
1888
+ * @param {any} securityGuideId
1889
+ * @param {any} id
1890
+ * @param {any} [xRHIDENTITY]
1891
+ * @param {*} [options] Override http request option.
1892
+ * @throws {RequiredError}
1893
+ */
1894
+ rule: function (securityGuideId, id, xRHIDENTITY, options) {
1895
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
1896
+ var localVarAxiosArgs;
1897
+ return tslib_1.__generator(this, function (_a) {
1898
+ switch (_a.label) {
1899
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.rule(securityGuideId, id, xRHIDENTITY, options)];
1900
+ case 1:
1901
+ localVarAxiosArgs = _a.sent();
1902
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1903
+ }
1904
+ });
1905
+ });
1906
+ },
1907
+ };
1908
+ };
1909
+ exports.RuleApiFp = RuleApiFp;
1910
+ /**
1911
+ * RuleApi - factory interface
1912
+ * @export
1913
+ */
1914
+ var RuleApiFactory = function (configuration, basePath, axios) {
1915
+ var localVarFp = (0, exports.RuleApiFp)(configuration);
1916
+ return {
1917
+ /**
1918
+ * Returns a Rule
1919
+ * @summary Request a Rule
1920
+ * @param {RuleApiRuleRequest} requestParameters Request parameters.
1921
+ * @param {*} [options] Override http request option.
1922
+ * @throws {RequiredError}
1923
+ */
1924
+ rule: function (requestParameters, options) {
1925
+ return localVarFp.rule(requestParameters.securityGuideId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
1926
+ },
1927
+ };
1928
+ };
1929
+ exports.RuleApiFactory = RuleApiFactory;
1930
+ /**
1931
+ * RuleApi - object-oriented interface
1932
+ * @export
1933
+ * @class RuleApi
1934
+ * @extends {BaseAPI}
1935
+ */
1936
+ var RuleApi = /** @class */ (function (_super) {
1937
+ tslib_1.__extends(RuleApi, _super);
1938
+ function RuleApi() {
1939
+ return _super !== null && _super.apply(this, arguments) || this;
1940
+ }
1941
+ /**
1942
+ * Returns a Rule
1943
+ * @summary Request a Rule
1944
+ * @param {RuleApiRuleRequest} requestParameters Request parameters.
1945
+ * @param {*} [options] Override http request option.
1946
+ * @throws {RequiredError}
1947
+ * @memberof RuleApi
1948
+ */
1949
+ RuleApi.prototype.rule = function (requestParameters, options) {
1950
+ var _this = this;
1951
+ return (0, exports.RuleApiFp)(this.configuration).rule(requestParameters.securityGuideId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
1952
+ };
1953
+ return RuleApi;
1954
+ }(base_1.BaseAPI));
1955
+ exports.RuleApi = RuleApi;
1956
+ /**
1957
+ * RuleGroupApi - axios parameter creator
1958
+ * @export
1959
+ */
1960
+ var RuleGroupApiAxiosParamCreator = function (configuration) {
1961
+ var _this = this;
1962
+ return {
1963
+ /**
1964
+ * Returns a Rule Group
1965
+ * @summary Request a Rule Group
1966
+ * @param {any} securityGuideId
1967
+ * @param {any} id
1968
+ * @param {any} [xRHIDENTITY]
1969
+ * @param {*} [options] Override http request option.
1970
+ * @throws {RequiredError}
1971
+ */
1972
+ ruleGroup: function (securityGuideId, id, xRHIDENTITY, options) {
1973
+ if (options === void 0) { options = {}; }
1974
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
1975
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1976
+ return tslib_1.__generator(this, function (_a) {
1977
+ // verify required parameter 'securityGuideId' is not null or undefined
1978
+ (0, common_1.assertParamExists)('ruleGroup', 'securityGuideId', securityGuideId);
1979
+ // verify required parameter 'id' is not null or undefined
1980
+ (0, common_1.assertParamExists)('ruleGroup', 'id', id);
1981
+ localVarPath = "/security_guides/{security_guide_id}/rule_groups/{id}"
1982
+ .replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)))
1983
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1984
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1985
+ if (configuration) {
1986
+ baseOptions = configuration.baseOptions;
1987
+ }
1988
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
1989
+ localVarHeaderParameter = {};
1990
+ localVarQueryParameter = {};
1991
+ if (xRHIDENTITY != null) {
1992
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
1993
+ ? xRHIDENTITY
1994
+ : JSON.stringify(xRHIDENTITY);
1995
+ }
1996
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1997
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1998
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1999
+ return [2 /*return*/, {
2000
+ url: (0, common_1.toPathString)(localVarUrlObj),
2001
+ options: localVarRequestOptions,
2002
+ }];
2003
+ });
2004
+ });
2005
+ },
2006
+ };
2007
+ };
2008
+ exports.RuleGroupApiAxiosParamCreator = RuleGroupApiAxiosParamCreator;
2009
+ /**
2010
+ * RuleGroupApi - functional programming interface
2011
+ * @export
2012
+ */
2013
+ var RuleGroupApiFp = function (configuration) {
2014
+ var localVarAxiosParamCreator = (0, exports.RuleGroupApiAxiosParamCreator)(configuration);
2015
+ return {
2016
+ /**
2017
+ * Returns a Rule Group
2018
+ * @summary Request a Rule Group
2019
+ * @param {any} securityGuideId
2020
+ * @param {any} id
2021
+ * @param {any} [xRHIDENTITY]
2022
+ * @param {*} [options] Override http request option.
2023
+ * @throws {RequiredError}
2024
+ */
2025
+ ruleGroup: function (securityGuideId, id, xRHIDENTITY, options) {
2026
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
2027
+ var localVarAxiosArgs;
2028
+ return tslib_1.__generator(this, function (_a) {
2029
+ switch (_a.label) {
2030
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.ruleGroup(securityGuideId, id, xRHIDENTITY, options)];
2031
+ case 1:
2032
+ localVarAxiosArgs = _a.sent();
2033
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2034
+ }
2035
+ });
2036
+ });
2037
+ },
2038
+ };
2039
+ };
2040
+ exports.RuleGroupApiFp = RuleGroupApiFp;
2041
+ /**
2042
+ * RuleGroupApi - factory interface
2043
+ * @export
2044
+ */
2045
+ var RuleGroupApiFactory = function (configuration, basePath, axios) {
2046
+ var localVarFp = (0, exports.RuleGroupApiFp)(configuration);
2047
+ return {
2048
+ /**
2049
+ * Returns a Rule Group
2050
+ * @summary Request a Rule Group
2051
+ * @param {RuleGroupApiRuleGroupRequest} requestParameters Request parameters.
2052
+ * @param {*} [options] Override http request option.
2053
+ * @throws {RequiredError}
2054
+ */
2055
+ ruleGroup: function (requestParameters, options) {
2056
+ return localVarFp.ruleGroup(requestParameters.securityGuideId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
2057
+ },
2058
+ };
2059
+ };
2060
+ exports.RuleGroupApiFactory = RuleGroupApiFactory;
2061
+ /**
2062
+ * RuleGroupApi - object-oriented interface
2063
+ * @export
2064
+ * @class RuleGroupApi
2065
+ * @extends {BaseAPI}
2066
+ */
2067
+ var RuleGroupApi = /** @class */ (function (_super) {
2068
+ tslib_1.__extends(RuleGroupApi, _super);
2069
+ function RuleGroupApi() {
2070
+ return _super !== null && _super.apply(this, arguments) || this;
2071
+ }
2072
+ /**
2073
+ * Returns a Rule Group
2074
+ * @summary Request a Rule Group
2075
+ * @param {RuleGroupApiRuleGroupRequest} requestParameters Request parameters.
2076
+ * @param {*} [options] Override http request option.
2077
+ * @throws {RequiredError}
2078
+ * @memberof RuleGroupApi
2079
+ */
2080
+ RuleGroupApi.prototype.ruleGroup = function (requestParameters, options) {
2081
+ var _this = this;
2082
+ return (0, exports.RuleGroupApiFp)(this.configuration).ruleGroup(requestParameters.securityGuideId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
2083
+ };
2084
+ return RuleGroupApi;
2085
+ }(base_1.BaseAPI));
2086
+ exports.RuleGroupApi = RuleGroupApi;
2087
+ /**
2088
+ * RuleGroupsApi - axios parameter creator
2089
+ * @export
2090
+ */
2091
+ var RuleGroupsApiAxiosParamCreator = function (configuration) {
2092
+ var _this = this;
2093
+ return {
2094
+ /**
2095
+ * Lists Rule Groups
2096
+ * @summary Request Rule Groups
2097
+ * @param {any} securityGuideId
2098
+ * @param {any} [xRHIDENTITY]
2099
+ * @param {any} [limit] Number of items to return per page
2100
+ * @param {any} [offset] Offset of first item of paginated response
2101
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
2102
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Rule Groups are searchable using attributes <br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
2103
+ * @param {*} [options] Override http request option.
2104
+ * @throws {RequiredError}
2105
+ */
2106
+ ruleGroups: function (securityGuideId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
2107
+ if (options === void 0) { options = {}; }
2108
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
2109
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2110
+ return tslib_1.__generator(this, function (_a) {
2111
+ // verify required parameter 'securityGuideId' is not null or undefined
2112
+ (0, common_1.assertParamExists)('ruleGroups', 'securityGuideId', securityGuideId);
2113
+ localVarPath = "/security_guides/{security_guide_id}/rule_groups"
2114
+ .replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)));
2115
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2116
+ if (configuration) {
2117
+ baseOptions = configuration.baseOptions;
2118
+ }
2119
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
2120
+ localVarHeaderParameter = {};
2121
+ localVarQueryParameter = {};
2122
+ if (limit !== undefined) {
2123
+ localVarQueryParameter['limit'] = limit;
2124
+ }
2125
+ if (offset !== undefined) {
2126
+ localVarQueryParameter['offset'] = offset;
2127
+ }
2128
+ if (sortBy !== undefined) {
2129
+ localVarQueryParameter['sort_by'] = sortBy;
2130
+ }
2131
+ if (filter !== undefined) {
2132
+ localVarQueryParameter['filter'] = filter;
2133
+ }
2134
+ if (xRHIDENTITY != null) {
2135
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
2136
+ ? xRHIDENTITY
2137
+ : JSON.stringify(xRHIDENTITY);
2138
+ }
2139
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2140
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2141
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2142
+ return [2 /*return*/, {
2143
+ url: (0, common_1.toPathString)(localVarUrlObj),
2144
+ options: localVarRequestOptions,
2145
+ }];
2146
+ });
2147
+ });
2148
+ },
2149
+ };
2150
+ };
2151
+ exports.RuleGroupsApiAxiosParamCreator = RuleGroupsApiAxiosParamCreator;
2152
+ /**
2153
+ * RuleGroupsApi - functional programming interface
2154
+ * @export
2155
+ */
2156
+ var RuleGroupsApiFp = function (configuration) {
2157
+ var localVarAxiosParamCreator = (0, exports.RuleGroupsApiAxiosParamCreator)(configuration);
2158
+ return {
2159
+ /**
2160
+ * Lists Rule Groups
2161
+ * @summary Request Rule Groups
2162
+ * @param {any} securityGuideId
2163
+ * @param {any} [xRHIDENTITY]
2164
+ * @param {any} [limit] Number of items to return per page
2165
+ * @param {any} [offset] Offset of first item of paginated response
2166
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
2167
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Rule Groups are searchable using attributes <br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
2168
+ * @param {*} [options] Override http request option.
2169
+ * @throws {RequiredError}
2170
+ */
2171
+ ruleGroups: function (securityGuideId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
2172
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
2173
+ var localVarAxiosArgs;
2174
+ return tslib_1.__generator(this, function (_a) {
2175
+ switch (_a.label) {
2176
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.ruleGroups(securityGuideId, xRHIDENTITY, limit, offset, sortBy, filter, options)];
2177
+ case 1:
2178
+ localVarAxiosArgs = _a.sent();
2179
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2180
+ }
2181
+ });
2182
+ });
2183
+ },
2184
+ };
2185
+ };
2186
+ exports.RuleGroupsApiFp = RuleGroupsApiFp;
2187
+ /**
2188
+ * RuleGroupsApi - factory interface
2189
+ * @export
2190
+ */
2191
+ var RuleGroupsApiFactory = function (configuration, basePath, axios) {
2192
+ var localVarFp = (0, exports.RuleGroupsApiFp)(configuration);
2193
+ return {
2194
+ /**
2195
+ * Lists Rule Groups
2196
+ * @summary Request Rule Groups
2197
+ * @param {RuleGroupsApiRuleGroupsRequest} requestParameters Request parameters.
2198
+ * @param {*} [options] Override http request option.
2199
+ * @throws {RequiredError}
2200
+ */
2201
+ ruleGroups: function (requestParameters, options) {
2202
+ return localVarFp.ruleGroups(requestParameters.securityGuideId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
2203
+ },
2204
+ };
2205
+ };
2206
+ exports.RuleGroupsApiFactory = RuleGroupsApiFactory;
2207
+ /**
2208
+ * RuleGroupsApi - object-oriented interface
2209
+ * @export
2210
+ * @class RuleGroupsApi
2211
+ * @extends {BaseAPI}
2212
+ */
2213
+ var RuleGroupsApi = /** @class */ (function (_super) {
2214
+ tslib_1.__extends(RuleGroupsApi, _super);
2215
+ function RuleGroupsApi() {
2216
+ return _super !== null && _super.apply(this, arguments) || this;
2217
+ }
2218
+ /**
2219
+ * Lists Rule Groups
2220
+ * @summary Request Rule Groups
2221
+ * @param {RuleGroupsApiRuleGroupsRequest} requestParameters Request parameters.
2222
+ * @param {*} [options] Override http request option.
2223
+ * @throws {RequiredError}
2224
+ * @memberof RuleGroupsApi
2225
+ */
2226
+ RuleGroupsApi.prototype.ruleGroups = function (requestParameters, options) {
2227
+ var _this = this;
2228
+ return (0, exports.RuleGroupsApiFp)(this.configuration).ruleGroups(requestParameters.securityGuideId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
2229
+ };
2230
+ return RuleGroupsApi;
2231
+ }(base_1.BaseAPI));
2232
+ exports.RuleGroupsApi = RuleGroupsApi;
2233
+ /**
2234
+ * RulesApi - axios parameter creator
2235
+ * @export
2236
+ */
2237
+ var RulesApiAxiosParamCreator = function (configuration) {
2238
+ var _this = this;
2239
+ return {
2240
+ /**
2241
+ * Lists Rules assigned
2242
+ * @summary Request Rules
2243
+ * @param {any} securityGuideId
2244
+ * @param {any} [xRHIDENTITY]
2245
+ * @param {any} [limit] Number of items to return per page
2246
+ * @param {any} [offset] Offset of first item of paginated response
2247
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
2248
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Rules are searchable using attributes `title` and `severity`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
2249
+ * @param {*} [options] Override http request option.
2250
+ * @throws {RequiredError}
2251
+ */
2252
+ rules: function (securityGuideId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
2253
+ if (options === void 0) { options = {}; }
2254
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
2255
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2256
+ return tslib_1.__generator(this, function (_a) {
2257
+ // verify required parameter 'securityGuideId' is not null or undefined
2258
+ (0, common_1.assertParamExists)('rules', 'securityGuideId', securityGuideId);
2259
+ localVarPath = "/security_guides/{security_guide_id}/rules"
2260
+ .replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)));
2261
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2262
+ if (configuration) {
2263
+ baseOptions = configuration.baseOptions;
2264
+ }
2265
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
2266
+ localVarHeaderParameter = {};
2267
+ localVarQueryParameter = {};
2268
+ if (limit !== undefined) {
2269
+ localVarQueryParameter['limit'] = limit;
2270
+ }
2271
+ if (offset !== undefined) {
2272
+ localVarQueryParameter['offset'] = offset;
2273
+ }
2274
+ if (sortBy !== undefined) {
2275
+ localVarQueryParameter['sort_by'] = sortBy;
2276
+ }
2277
+ if (filter !== undefined) {
2278
+ localVarQueryParameter['filter'] = filter;
2279
+ }
2280
+ if (xRHIDENTITY != null) {
2281
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
2282
+ ? xRHIDENTITY
2283
+ : JSON.stringify(xRHIDENTITY);
2284
+ }
2285
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2286
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2287
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2288
+ return [2 /*return*/, {
2289
+ url: (0, common_1.toPathString)(localVarUrlObj),
2290
+ options: localVarRequestOptions,
2291
+ }];
2292
+ });
2293
+ });
2294
+ },
2295
+ };
2296
+ };
2297
+ exports.RulesApiAxiosParamCreator = RulesApiAxiosParamCreator;
2298
+ /**
2299
+ * RulesApi - functional programming interface
2300
+ * @export
2301
+ */
2302
+ var RulesApiFp = function (configuration) {
2303
+ var localVarAxiosParamCreator = (0, exports.RulesApiAxiosParamCreator)(configuration);
2304
+ return {
2305
+ /**
2306
+ * Lists Rules assigned
2307
+ * @summary Request Rules
2308
+ * @param {any} securityGuideId
2309
+ * @param {any} [xRHIDENTITY]
2310
+ * @param {any} [limit] Number of items to return per page
2311
+ * @param {any} [offset] Offset of first item of paginated response
2312
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
2313
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Rules are searchable using attributes `title` and `severity`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
2314
+ * @param {*} [options] Override http request option.
2315
+ * @throws {RequiredError}
2316
+ */
2317
+ rules: function (securityGuideId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
2318
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
2319
+ var localVarAxiosArgs;
2320
+ return tslib_1.__generator(this, function (_a) {
2321
+ switch (_a.label) {
2322
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.rules(securityGuideId, xRHIDENTITY, limit, offset, sortBy, filter, options)];
2323
+ case 1:
2324
+ localVarAxiosArgs = _a.sent();
2325
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2326
+ }
2327
+ });
2328
+ });
2329
+ },
2330
+ };
2331
+ };
2332
+ exports.RulesApiFp = RulesApiFp;
2333
+ /**
2334
+ * RulesApi - factory interface
2335
+ * @export
2336
+ */
2337
+ var RulesApiFactory = function (configuration, basePath, axios) {
2338
+ var localVarFp = (0, exports.RulesApiFp)(configuration);
2339
+ return {
2340
+ /**
2341
+ * Lists Rules assigned
2342
+ * @summary Request Rules
2343
+ * @param {RulesApiRulesRequest} requestParameters Request parameters.
2344
+ * @param {*} [options] Override http request option.
2345
+ * @throws {RequiredError}
2346
+ */
2347
+ rules: function (requestParameters, options) {
2348
+ return localVarFp.rules(requestParameters.securityGuideId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
2349
+ },
2350
+ };
2351
+ };
2352
+ exports.RulesApiFactory = RulesApiFactory;
2353
+ /**
2354
+ * RulesApi - object-oriented interface
2355
+ * @export
2356
+ * @class RulesApi
2357
+ * @extends {BaseAPI}
2358
+ */
2359
+ var RulesApi = /** @class */ (function (_super) {
2360
+ tslib_1.__extends(RulesApi, _super);
2361
+ function RulesApi() {
2362
+ return _super !== null && _super.apply(this, arguments) || this;
2363
+ }
2364
+ /**
2365
+ * Lists Rules assigned
2366
+ * @summary Request Rules
2367
+ * @param {RulesApiRulesRequest} requestParameters Request parameters.
2368
+ * @param {*} [options] Override http request option.
2369
+ * @throws {RequiredError}
2370
+ * @memberof RulesApi
2371
+ */
2372
+ RulesApi.prototype.rules = function (requestParameters, options) {
2373
+ var _this = this;
2374
+ return (0, exports.RulesApiFp)(this.configuration).rules(requestParameters.securityGuideId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
2375
+ };
2376
+ return RulesApi;
2377
+ }(base_1.BaseAPI));
2378
+ exports.RulesApi = RulesApi;
2379
+ /**
2380
+ * SecurityGuideApi - axios parameter creator
2381
+ * @export
2382
+ */
2383
+ var SecurityGuideApiAxiosParamCreator = function (configuration) {
2384
+ var _this = this;
2385
+ return {
2386
+ /**
2387
+ * Returns a Security Guide
2388
+ * @summary Request a Security Guide
2389
+ * @param {any} id
2390
+ * @param {any} [xRHIDENTITY]
2391
+ * @param {*} [options] Override http request option.
2392
+ * @throws {RequiredError}
2393
+ */
2394
+ securityGuide: function (id, xRHIDENTITY, options) {
2395
+ if (options === void 0) { options = {}; }
2396
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
2397
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2398
+ return tslib_1.__generator(this, function (_a) {
2399
+ // verify required parameter 'id' is not null or undefined
2400
+ (0, common_1.assertParamExists)('securityGuide', 'id', id);
2401
+ localVarPath = "/security_guides/{id}"
2402
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
2403
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2404
+ if (configuration) {
2405
+ baseOptions = configuration.baseOptions;
2406
+ }
2407
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
2408
+ localVarHeaderParameter = {};
2409
+ localVarQueryParameter = {};
2410
+ if (xRHIDENTITY != null) {
2411
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
2412
+ ? xRHIDENTITY
2413
+ : JSON.stringify(xRHIDENTITY);
2414
+ }
2415
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2416
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2417
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2418
+ return [2 /*return*/, {
2419
+ url: (0, common_1.toPathString)(localVarUrlObj),
2420
+ options: localVarRequestOptions,
2421
+ }];
2422
+ });
2423
+ });
2424
+ },
2425
+ };
2426
+ };
2427
+ exports.SecurityGuideApiAxiosParamCreator = SecurityGuideApiAxiosParamCreator;
2428
+ /**
2429
+ * SecurityGuideApi - functional programming interface
2430
+ * @export
2431
+ */
2432
+ var SecurityGuideApiFp = function (configuration) {
2433
+ var localVarAxiosParamCreator = (0, exports.SecurityGuideApiAxiosParamCreator)(configuration);
2434
+ return {
2435
+ /**
2436
+ * Returns a Security Guide
2437
+ * @summary Request a Security Guide
2438
+ * @param {any} id
2439
+ * @param {any} [xRHIDENTITY]
2440
+ * @param {*} [options] Override http request option.
2441
+ * @throws {RequiredError}
2442
+ */
2443
+ securityGuide: function (id, xRHIDENTITY, options) {
2444
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
2445
+ var localVarAxiosArgs;
2446
+ return tslib_1.__generator(this, function (_a) {
2447
+ switch (_a.label) {
2448
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.securityGuide(id, xRHIDENTITY, options)];
2449
+ case 1:
2450
+ localVarAxiosArgs = _a.sent();
2451
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2452
+ }
2453
+ });
2454
+ });
2455
+ },
2456
+ };
2457
+ };
2458
+ exports.SecurityGuideApiFp = SecurityGuideApiFp;
2459
+ /**
2460
+ * SecurityGuideApi - factory interface
2461
+ * @export
2462
+ */
2463
+ var SecurityGuideApiFactory = function (configuration, basePath, axios) {
2464
+ var localVarFp = (0, exports.SecurityGuideApiFp)(configuration);
2465
+ return {
2466
+ /**
2467
+ * Returns a Security Guide
2468
+ * @summary Request a Security Guide
2469
+ * @param {SecurityGuideApiSecurityGuideRequest} requestParameters Request parameters.
2470
+ * @param {*} [options] Override http request option.
2471
+ * @throws {RequiredError}
2472
+ */
2473
+ securityGuide: function (requestParameters, options) {
2474
+ return localVarFp.securityGuide(requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
2475
+ },
2476
+ };
2477
+ };
2478
+ exports.SecurityGuideApiFactory = SecurityGuideApiFactory;
2479
+ /**
2480
+ * SecurityGuideApi - object-oriented interface
2481
+ * @export
2482
+ * @class SecurityGuideApi
2483
+ * @extends {BaseAPI}
2484
+ */
2485
+ var SecurityGuideApi = /** @class */ (function (_super) {
2486
+ tslib_1.__extends(SecurityGuideApi, _super);
2487
+ function SecurityGuideApi() {
2488
+ return _super !== null && _super.apply(this, arguments) || this;
2489
+ }
2490
+ /**
2491
+ * Returns a Security Guide
2492
+ * @summary Request a Security Guide
2493
+ * @param {SecurityGuideApiSecurityGuideRequest} requestParameters Request parameters.
2494
+ * @param {*} [options] Override http request option.
2495
+ * @throws {RequiredError}
2496
+ * @memberof SecurityGuideApi
2497
+ */
2498
+ SecurityGuideApi.prototype.securityGuide = function (requestParameters, options) {
2499
+ var _this = this;
2500
+ return (0, exports.SecurityGuideApiFp)(this.configuration).securityGuide(requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
2501
+ };
2502
+ return SecurityGuideApi;
2503
+ }(base_1.BaseAPI));
2504
+ exports.SecurityGuideApi = SecurityGuideApi;
2505
+ /**
2506
+ * SecurityGuideRuleTreeApi - axios parameter creator
2507
+ * @export
2508
+ */
2509
+ var SecurityGuideRuleTreeApiAxiosParamCreator = function (configuration) {
2510
+ var _this = this;
2511
+ return {
2512
+ /**
2513
+ * Returns the Rule Tree of a Security Guide
2514
+ * @summary Request the Rule Tree of a Security Guide
2515
+ * @param {any} id
2516
+ * @param {any} [xRHIDENTITY]
2517
+ * @param {*} [options] Override http request option.
2518
+ * @throws {RequiredError}
2519
+ */
2520
+ securityGuideRuleTree: function (id, xRHIDENTITY, options) {
2521
+ if (options === void 0) { options = {}; }
2522
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
2523
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2524
+ return tslib_1.__generator(this, function (_a) {
2525
+ // verify required parameter 'id' is not null or undefined
2526
+ (0, common_1.assertParamExists)('securityGuideRuleTree', 'id', id);
2527
+ localVarPath = "/security_guides/{id}/rule_tree"
2528
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
2529
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2530
+ if (configuration) {
2531
+ baseOptions = configuration.baseOptions;
2532
+ }
2533
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
2534
+ localVarHeaderParameter = {};
2535
+ localVarQueryParameter = {};
2536
+ if (xRHIDENTITY != null) {
2537
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
2538
+ ? xRHIDENTITY
2539
+ : JSON.stringify(xRHIDENTITY);
2540
+ }
2541
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2542
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2543
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2544
+ return [2 /*return*/, {
2545
+ url: (0, common_1.toPathString)(localVarUrlObj),
2546
+ options: localVarRequestOptions,
2547
+ }];
2548
+ });
2549
+ });
2550
+ },
2551
+ };
2552
+ };
2553
+ exports.SecurityGuideRuleTreeApiAxiosParamCreator = SecurityGuideRuleTreeApiAxiosParamCreator;
2554
+ /**
2555
+ * SecurityGuideRuleTreeApi - functional programming interface
2556
+ * @export
2557
+ */
2558
+ var SecurityGuideRuleTreeApiFp = function (configuration) {
2559
+ var localVarAxiosParamCreator = (0, exports.SecurityGuideRuleTreeApiAxiosParamCreator)(configuration);
2560
+ return {
2561
+ /**
2562
+ * Returns the Rule Tree of a Security Guide
2563
+ * @summary Request the Rule Tree of a Security Guide
2564
+ * @param {any} id
2565
+ * @param {any} [xRHIDENTITY]
2566
+ * @param {*} [options] Override http request option.
2567
+ * @throws {RequiredError}
2568
+ */
2569
+ securityGuideRuleTree: function (id, xRHIDENTITY, options) {
2570
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
2571
+ var localVarAxiosArgs;
2572
+ return tslib_1.__generator(this, function (_a) {
2573
+ switch (_a.label) {
2574
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.securityGuideRuleTree(id, xRHIDENTITY, options)];
2575
+ case 1:
2576
+ localVarAxiosArgs = _a.sent();
2577
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2578
+ }
2579
+ });
2580
+ });
2581
+ },
2582
+ };
2583
+ };
2584
+ exports.SecurityGuideRuleTreeApiFp = SecurityGuideRuleTreeApiFp;
2585
+ /**
2586
+ * SecurityGuideRuleTreeApi - factory interface
2587
+ * @export
2588
+ */
2589
+ var SecurityGuideRuleTreeApiFactory = function (configuration, basePath, axios) {
2590
+ var localVarFp = (0, exports.SecurityGuideRuleTreeApiFp)(configuration);
2591
+ return {
2592
+ /**
2593
+ * Returns the Rule Tree of a Security Guide
2594
+ * @summary Request the Rule Tree of a Security Guide
2595
+ * @param {SecurityGuideRuleTreeApiSecurityGuideRuleTreeRequest} requestParameters Request parameters.
2596
+ * @param {*} [options] Override http request option.
2597
+ * @throws {RequiredError}
2598
+ */
2599
+ securityGuideRuleTree: function (requestParameters, options) {
2600
+ return localVarFp.securityGuideRuleTree(requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
2601
+ },
2602
+ };
2603
+ };
2604
+ exports.SecurityGuideRuleTreeApiFactory = SecurityGuideRuleTreeApiFactory;
2605
+ /**
2606
+ * SecurityGuideRuleTreeApi - object-oriented interface
2607
+ * @export
2608
+ * @class SecurityGuideRuleTreeApi
2609
+ * @extends {BaseAPI}
2610
+ */
2611
+ var SecurityGuideRuleTreeApi = /** @class */ (function (_super) {
2612
+ tslib_1.__extends(SecurityGuideRuleTreeApi, _super);
2613
+ function SecurityGuideRuleTreeApi() {
2614
+ return _super !== null && _super.apply(this, arguments) || this;
2615
+ }
2616
+ /**
2617
+ * Returns the Rule Tree of a Security Guide
2618
+ * @summary Request the Rule Tree of a Security Guide
2619
+ * @param {SecurityGuideRuleTreeApiSecurityGuideRuleTreeRequest} requestParameters Request parameters.
2620
+ * @param {*} [options] Override http request option.
2621
+ * @throws {RequiredError}
2622
+ * @memberof SecurityGuideRuleTreeApi
2623
+ */
2624
+ SecurityGuideRuleTreeApi.prototype.securityGuideRuleTree = function (requestParameters, options) {
2625
+ var _this = this;
2626
+ return (0, exports.SecurityGuideRuleTreeApiFp)(this.configuration).securityGuideRuleTree(requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
2627
+ };
2628
+ return SecurityGuideRuleTreeApi;
2629
+ }(base_1.BaseAPI));
2630
+ exports.SecurityGuideRuleTreeApi = SecurityGuideRuleTreeApi;
2631
+ /**
2632
+ * SecurityGuidesApi - axios parameter creator
2633
+ * @export
2634
+ */
2635
+ var SecurityGuidesApiAxiosParamCreator = function (configuration) {
2636
+ var _this = this;
2637
+ return {
2638
+ /**
2639
+ * Lists Security Guides
2640
+ * @summary Request Security Guides
2641
+ * @param {any} [xRHIDENTITY]
2642
+ * @param {any} [limit] Number of items to return per page
2643
+ * @param {any} [offset] Offset of first item of paginated response
2644
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
2645
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Security Guides are searchable using attributes `title`, `version`, `ref_id`, and `os_major_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
2646
+ * @param {*} [options] Override http request option.
2647
+ * @throws {RequiredError}
2648
+ */
2649
+ securityGuides: function (xRHIDENTITY, limit, offset, sortBy, filter, options) {
2650
+ if (options === void 0) { options = {}; }
2651
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
2652
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2653
+ return tslib_1.__generator(this, function (_a) {
2654
+ localVarPath = "/security_guides";
2655
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2656
+ if (configuration) {
2657
+ baseOptions = configuration.baseOptions;
2658
+ }
2659
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
2660
+ localVarHeaderParameter = {};
2661
+ localVarQueryParameter = {};
2662
+ if (limit !== undefined) {
2663
+ localVarQueryParameter['limit'] = limit;
2664
+ }
2665
+ if (offset !== undefined) {
2666
+ localVarQueryParameter['offset'] = offset;
2667
+ }
2668
+ if (sortBy !== undefined) {
2669
+ localVarQueryParameter['sort_by'] = sortBy;
2670
+ }
2671
+ if (filter !== undefined) {
2672
+ localVarQueryParameter['filter'] = filter;
2673
+ }
2674
+ if (xRHIDENTITY != null) {
2675
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
2676
+ ? xRHIDENTITY
2677
+ : JSON.stringify(xRHIDENTITY);
2678
+ }
2679
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2680
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2681
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2682
+ return [2 /*return*/, {
2683
+ url: (0, common_1.toPathString)(localVarUrlObj),
2684
+ options: localVarRequestOptions,
2685
+ }];
2686
+ });
2687
+ });
2688
+ },
2689
+ };
2690
+ };
2691
+ exports.SecurityGuidesApiAxiosParamCreator = SecurityGuidesApiAxiosParamCreator;
2692
+ /**
2693
+ * SecurityGuidesApi - functional programming interface
2694
+ * @export
2695
+ */
2696
+ var SecurityGuidesApiFp = function (configuration) {
2697
+ var localVarAxiosParamCreator = (0, exports.SecurityGuidesApiAxiosParamCreator)(configuration);
2698
+ return {
2699
+ /**
2700
+ * Lists Security Guides
2701
+ * @summary Request Security Guides
2702
+ * @param {any} [xRHIDENTITY]
2703
+ * @param {any} [limit] Number of items to return per page
2704
+ * @param {any} [offset] Offset of first item of paginated response
2705
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
2706
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Security Guides are searchable using attributes `title`, `version`, `ref_id`, and `os_major_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
2707
+ * @param {*} [options] Override http request option.
2708
+ * @throws {RequiredError}
2709
+ */
2710
+ securityGuides: function (xRHIDENTITY, limit, offset, sortBy, filter, options) {
2711
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
2712
+ var localVarAxiosArgs;
2713
+ return tslib_1.__generator(this, function (_a) {
2714
+ switch (_a.label) {
2715
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.securityGuides(xRHIDENTITY, limit, offset, sortBy, filter, options)];
2716
+ case 1:
2717
+ localVarAxiosArgs = _a.sent();
2718
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2719
+ }
2720
+ });
2721
+ });
2722
+ },
2723
+ };
2724
+ };
2725
+ exports.SecurityGuidesApiFp = SecurityGuidesApiFp;
2726
+ /**
2727
+ * SecurityGuidesApi - factory interface
2728
+ * @export
2729
+ */
2730
+ var SecurityGuidesApiFactory = function (configuration, basePath, axios) {
2731
+ var localVarFp = (0, exports.SecurityGuidesApiFp)(configuration);
2732
+ return {
2733
+ /**
2734
+ * Lists Security Guides
2735
+ * @summary Request Security Guides
2736
+ * @param {SecurityGuidesApiSecurityGuidesRequest} requestParameters Request parameters.
2737
+ * @param {*} [options] Override http request option.
2738
+ * @throws {RequiredError}
2739
+ */
2740
+ securityGuides: function (requestParameters, options) {
2741
+ if (requestParameters === void 0) { requestParameters = {}; }
2742
+ return localVarFp.securityGuides(requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
2743
+ },
2744
+ };
2745
+ };
2746
+ exports.SecurityGuidesApiFactory = SecurityGuidesApiFactory;
2747
+ /**
2748
+ * SecurityGuidesApi - object-oriented interface
2749
+ * @export
2750
+ * @class SecurityGuidesApi
2751
+ * @extends {BaseAPI}
2752
+ */
2753
+ var SecurityGuidesApi = /** @class */ (function (_super) {
2754
+ tslib_1.__extends(SecurityGuidesApi, _super);
2755
+ function SecurityGuidesApi() {
2756
+ return _super !== null && _super.apply(this, arguments) || this;
2757
+ }
2758
+ /**
2759
+ * Lists Security Guides
2760
+ * @summary Request Security Guides
2761
+ * @param {SecurityGuidesApiSecurityGuidesRequest} requestParameters Request parameters.
2762
+ * @param {*} [options] Override http request option.
2763
+ * @throws {RequiredError}
2764
+ * @memberof SecurityGuidesApi
2765
+ */
2766
+ SecurityGuidesApi.prototype.securityGuides = function (requestParameters, options) {
2767
+ var _this = this;
2768
+ if (requestParameters === void 0) { requestParameters = {}; }
2769
+ return (0, exports.SecurityGuidesApiFp)(this.configuration).securityGuides(requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
2770
+ };
2771
+ return SecurityGuidesApi;
2772
+ }(base_1.BaseAPI));
2773
+ exports.SecurityGuidesApi = SecurityGuidesApi;
2774
+ /**
2775
+ * SupportedProfilesApi - axios parameter creator
2776
+ * @export
2777
+ */
2778
+ var SupportedProfilesApiAxiosParamCreator = function (configuration) {
2779
+ var _this = this;
2780
+ return {
2781
+ /**
2782
+ * Lists Supported Profiles
2783
+ * @summary Request Supported Profiles
2784
+ * @param {any} [xRHIDENTITY]
2785
+ * @param {any} [limit] Number of items to return per page
2786
+ * @param {any} [offset] Offset of first item of paginated response
2787
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
2788
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Supported Profiles are searchable using attributes `os_major_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
2789
+ * @param {*} [options] Override http request option.
2790
+ * @throws {RequiredError}
2791
+ */
2792
+ supportedProfiles: function (xRHIDENTITY, limit, offset, sortBy, filter, options) {
2793
+ if (options === void 0) { options = {}; }
2794
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
2795
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2796
+ return tslib_1.__generator(this, function (_a) {
2797
+ localVarPath = "/security_guides/supported_profiles";
2798
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2799
+ if (configuration) {
2800
+ baseOptions = configuration.baseOptions;
2801
+ }
2802
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
2803
+ localVarHeaderParameter = {};
2804
+ localVarQueryParameter = {};
2805
+ if (limit !== undefined) {
2806
+ localVarQueryParameter['limit'] = limit;
2807
+ }
2808
+ if (offset !== undefined) {
2809
+ localVarQueryParameter['offset'] = offset;
2810
+ }
2811
+ if (sortBy !== undefined) {
2812
+ localVarQueryParameter['sort_by'] = sortBy;
2813
+ }
2814
+ if (filter !== undefined) {
2815
+ localVarQueryParameter['filter'] = filter;
2816
+ }
2817
+ if (xRHIDENTITY != null) {
2818
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
2819
+ ? xRHIDENTITY
2820
+ : JSON.stringify(xRHIDENTITY);
2821
+ }
2822
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2823
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2824
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2825
+ return [2 /*return*/, {
2826
+ url: (0, common_1.toPathString)(localVarUrlObj),
2827
+ options: localVarRequestOptions,
2828
+ }];
2829
+ });
2830
+ });
2831
+ },
2832
+ };
2833
+ };
2834
+ exports.SupportedProfilesApiAxiosParamCreator = SupportedProfilesApiAxiosParamCreator;
2835
+ /**
2836
+ * SupportedProfilesApi - functional programming interface
2837
+ * @export
2838
+ */
2839
+ var SupportedProfilesApiFp = function (configuration) {
2840
+ var localVarAxiosParamCreator = (0, exports.SupportedProfilesApiAxiosParamCreator)(configuration);
2841
+ return {
2842
+ /**
2843
+ * Lists Supported Profiles
2844
+ * @summary Request Supported Profiles
2845
+ * @param {any} [xRHIDENTITY]
2846
+ * @param {any} [limit] Number of items to return per page
2847
+ * @param {any} [offset] Offset of first item of paginated response
2848
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
2849
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Supported Profiles are searchable using attributes `os_major_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
2850
+ * @param {*} [options] Override http request option.
2851
+ * @throws {RequiredError}
2852
+ */
2853
+ supportedProfiles: function (xRHIDENTITY, limit, offset, sortBy, filter, options) {
2854
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
2855
+ var localVarAxiosArgs;
2856
+ return tslib_1.__generator(this, function (_a) {
2857
+ switch (_a.label) {
2858
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.supportedProfiles(xRHIDENTITY, limit, offset, sortBy, filter, options)];
2859
+ case 1:
2860
+ localVarAxiosArgs = _a.sent();
2861
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2862
+ }
2863
+ });
2864
+ });
2865
+ },
2866
+ };
2867
+ };
2868
+ exports.SupportedProfilesApiFp = SupportedProfilesApiFp;
2869
+ /**
2870
+ * SupportedProfilesApi - factory interface
2871
+ * @export
2872
+ */
2873
+ var SupportedProfilesApiFactory = function (configuration, basePath, axios) {
2874
+ var localVarFp = (0, exports.SupportedProfilesApiFp)(configuration);
2875
+ return {
2876
+ /**
2877
+ * Lists Supported Profiles
2878
+ * @summary Request Supported Profiles
2879
+ * @param {SupportedProfilesApiSupportedProfilesRequest} requestParameters Request parameters.
2880
+ * @param {*} [options] Override http request option.
2881
+ * @throws {RequiredError}
2882
+ */
2883
+ supportedProfiles: function (requestParameters, options) {
2884
+ if (requestParameters === void 0) { requestParameters = {}; }
2885
+ return localVarFp.supportedProfiles(requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
2886
+ },
2887
+ };
2888
+ };
2889
+ exports.SupportedProfilesApiFactory = SupportedProfilesApiFactory;
2890
+ /**
2891
+ * SupportedProfilesApi - object-oriented interface
2892
+ * @export
2893
+ * @class SupportedProfilesApi
2894
+ * @extends {BaseAPI}
2895
+ */
2896
+ var SupportedProfilesApi = /** @class */ (function (_super) {
2897
+ tslib_1.__extends(SupportedProfilesApi, _super);
2898
+ function SupportedProfilesApi() {
2899
+ return _super !== null && _super.apply(this, arguments) || this;
2900
+ }
2901
+ /**
2902
+ * Lists Supported Profiles
2903
+ * @summary Request Supported Profiles
2904
+ * @param {SupportedProfilesApiSupportedProfilesRequest} requestParameters Request parameters.
2905
+ * @param {*} [options] Override http request option.
2906
+ * @throws {RequiredError}
2907
+ * @memberof SupportedProfilesApi
2908
+ */
2909
+ SupportedProfilesApi.prototype.supportedProfiles = function (requestParameters, options) {
2910
+ var _this = this;
2911
+ if (requestParameters === void 0) { requestParameters = {}; }
2912
+ return (0, exports.SupportedProfilesApiFp)(this.configuration).supportedProfiles(requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
2913
+ };
2914
+ return SupportedProfilesApi;
2915
+ }(base_1.BaseAPI));
2916
+ exports.SupportedProfilesApi = SupportedProfilesApi;
2917
+ /**
2918
+ * SystemApi - axios parameter creator
2919
+ * @export
2920
+ */
2921
+ var SystemApiAxiosParamCreator = function (configuration) {
2922
+ var _this = this;
2923
+ return {
2924
+ /**
2925
+ * Returns a System
2926
+ * @summary Request a System
2927
+ * @param {any} id
2928
+ * @param {any} [xRHIDENTITY]
2929
+ * @param {*} [options] Override http request option.
2930
+ * @throws {RequiredError}
2931
+ */
2932
+ system: function (id, xRHIDENTITY, options) {
2933
+ if (options === void 0) { options = {}; }
2934
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
2935
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2936
+ return tslib_1.__generator(this, function (_a) {
2937
+ // verify required parameter 'id' is not null or undefined
2938
+ (0, common_1.assertParamExists)('system', 'id', id);
2939
+ localVarPath = "/systems/{id}"
2940
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
2941
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2942
+ if (configuration) {
2943
+ baseOptions = configuration.baseOptions;
2944
+ }
2945
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
2946
+ localVarHeaderParameter = {};
2947
+ localVarQueryParameter = {};
2948
+ if (xRHIDENTITY != null) {
2949
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
2950
+ ? xRHIDENTITY
2951
+ : JSON.stringify(xRHIDENTITY);
2952
+ }
2953
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2954
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2955
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2956
+ return [2 /*return*/, {
2957
+ url: (0, common_1.toPathString)(localVarUrlObj),
2958
+ options: localVarRequestOptions,
2959
+ }];
2960
+ });
2961
+ });
2962
+ },
2963
+ };
2964
+ };
2965
+ exports.SystemApiAxiosParamCreator = SystemApiAxiosParamCreator;
2966
+ /**
2967
+ * SystemApi - functional programming interface
2968
+ * @export
2969
+ */
2970
+ var SystemApiFp = function (configuration) {
2971
+ var localVarAxiosParamCreator = (0, exports.SystemApiAxiosParamCreator)(configuration);
2972
+ return {
2973
+ /**
2974
+ * Returns a System
2975
+ * @summary Request a System
2976
+ * @param {any} id
2977
+ * @param {any} [xRHIDENTITY]
2978
+ * @param {*} [options] Override http request option.
2979
+ * @throws {RequiredError}
2980
+ */
2981
+ system: function (id, xRHIDENTITY, options) {
2982
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
2983
+ var localVarAxiosArgs;
2984
+ return tslib_1.__generator(this, function (_a) {
2985
+ switch (_a.label) {
2986
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.system(id, xRHIDENTITY, options)];
2987
+ case 1:
2988
+ localVarAxiosArgs = _a.sent();
2989
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
2990
+ }
2991
+ });
2992
+ });
2993
+ },
2994
+ };
2995
+ };
2996
+ exports.SystemApiFp = SystemApiFp;
2997
+ /**
2998
+ * SystemApi - factory interface
2999
+ * @export
3000
+ */
3001
+ var SystemApiFactory = function (configuration, basePath, axios) {
3002
+ var localVarFp = (0, exports.SystemApiFp)(configuration);
3003
+ return {
3004
+ /**
3005
+ * Returns a System
3006
+ * @summary Request a System
3007
+ * @param {SystemApiSystemRequest} requestParameters Request parameters.
3008
+ * @param {*} [options] Override http request option.
3009
+ * @throws {RequiredError}
3010
+ */
3011
+ system: function (requestParameters, options) {
3012
+ return localVarFp.system(requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
3013
+ },
3014
+ };
3015
+ };
3016
+ exports.SystemApiFactory = SystemApiFactory;
3017
+ /**
3018
+ * SystemApi - object-oriented interface
3019
+ * @export
3020
+ * @class SystemApi
3021
+ * @extends {BaseAPI}
3022
+ */
3023
+ var SystemApi = /** @class */ (function (_super) {
3024
+ tslib_1.__extends(SystemApi, _super);
3025
+ function SystemApi() {
3026
+ return _super !== null && _super.apply(this, arguments) || this;
3027
+ }
3028
+ /**
3029
+ * Returns a System
3030
+ * @summary Request a System
3031
+ * @param {SystemApiSystemRequest} requestParameters Request parameters.
3032
+ * @param {*} [options] Override http request option.
3033
+ * @throws {RequiredError}
3034
+ * @memberof SystemApi
3035
+ */
3036
+ SystemApi.prototype.system = function (requestParameters, options) {
3037
+ var _this = this;
3038
+ return (0, exports.SystemApiFp)(this.configuration).system(requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
3039
+ };
3040
+ return SystemApi;
3041
+ }(base_1.BaseAPI));
3042
+ exports.SystemApi = SystemApi;
3043
+ /**
3044
+ * SystemsApi - axios parameter creator
3045
+ * @export
3046
+ */
3047
+ var SystemsApiAxiosParamCreator = function (configuration) {
3048
+ var _this = this;
3049
+ return {
3050
+ /**
3051
+ * Lists Systems
3052
+ * @summary Request Systems
3053
+ * @param {any} [xRHIDENTITY]
3054
+ * @param {any} [limit] Number of items to return per page
3055
+ * @param {any} [offset] Offset of first item of paginated response
3056
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
3057
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Systems are searchable using attributes `display_name`, `os_major_version`, and `os_minor_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
3058
+ * @param {*} [options] Override http request option.
3059
+ * @throws {RequiredError}
3060
+ */
3061
+ systems: function (xRHIDENTITY, limit, offset, sortBy, filter, options) {
3062
+ if (options === void 0) { options = {}; }
3063
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
3064
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3065
+ return tslib_1.__generator(this, function (_a) {
3066
+ localVarPath = "/systems";
3067
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3068
+ if (configuration) {
3069
+ baseOptions = configuration.baseOptions;
3070
+ }
3071
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
3072
+ localVarHeaderParameter = {};
3073
+ localVarQueryParameter = {};
3074
+ if (limit !== undefined) {
3075
+ localVarQueryParameter['limit'] = limit;
3076
+ }
3077
+ if (offset !== undefined) {
3078
+ localVarQueryParameter['offset'] = offset;
3079
+ }
3080
+ if (sortBy !== undefined) {
3081
+ localVarQueryParameter['sort_by'] = sortBy;
3082
+ }
3083
+ if (filter !== undefined) {
3084
+ localVarQueryParameter['filter'] = filter;
3085
+ }
3086
+ if (xRHIDENTITY != null) {
3087
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
3088
+ ? xRHIDENTITY
3089
+ : JSON.stringify(xRHIDENTITY);
3090
+ }
3091
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3092
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3093
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3094
+ return [2 /*return*/, {
3095
+ url: (0, common_1.toPathString)(localVarUrlObj),
3096
+ options: localVarRequestOptions,
3097
+ }];
3098
+ });
3099
+ });
3100
+ },
3101
+ };
3102
+ };
3103
+ exports.SystemsApiAxiosParamCreator = SystemsApiAxiosParamCreator;
3104
+ /**
3105
+ * SystemsApi - functional programming interface
3106
+ * @export
3107
+ */
3108
+ var SystemsApiFp = function (configuration) {
3109
+ var localVarAxiosParamCreator = (0, exports.SystemsApiAxiosParamCreator)(configuration);
3110
+ return {
3111
+ /**
3112
+ * Lists Systems
3113
+ * @summary Request Systems
3114
+ * @param {any} [xRHIDENTITY]
3115
+ * @param {any} [limit] Number of items to return per page
3116
+ * @param {any} [offset] Offset of first item of paginated response
3117
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
3118
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Systems are searchable using attributes `display_name`, `os_major_version`, and `os_minor_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
3119
+ * @param {*} [options] Override http request option.
3120
+ * @throws {RequiredError}
3121
+ */
3122
+ systems: function (xRHIDENTITY, limit, offset, sortBy, filter, options) {
3123
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
3124
+ var localVarAxiosArgs;
3125
+ return tslib_1.__generator(this, function (_a) {
3126
+ switch (_a.label) {
3127
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.systems(xRHIDENTITY, limit, offset, sortBy, filter, options)];
3128
+ case 1:
3129
+ localVarAxiosArgs = _a.sent();
3130
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3131
+ }
3132
+ });
3133
+ });
3134
+ },
3135
+ };
3136
+ };
3137
+ exports.SystemsApiFp = SystemsApiFp;
3138
+ /**
3139
+ * SystemsApi - factory interface
3140
+ * @export
3141
+ */
3142
+ var SystemsApiFactory = function (configuration, basePath, axios) {
3143
+ var localVarFp = (0, exports.SystemsApiFp)(configuration);
3144
+ return {
3145
+ /**
3146
+ * Lists Systems
3147
+ * @summary Request Systems
3148
+ * @param {SystemsApiSystemsRequest} requestParameters Request parameters.
3149
+ * @param {*} [options] Override http request option.
3150
+ * @throws {RequiredError}
3151
+ */
3152
+ systems: function (requestParameters, options) {
3153
+ if (requestParameters === void 0) { requestParameters = {}; }
3154
+ return localVarFp.systems(requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
3155
+ },
3156
+ };
3157
+ };
3158
+ exports.SystemsApiFactory = SystemsApiFactory;
3159
+ /**
3160
+ * SystemsApi - object-oriented interface
3161
+ * @export
3162
+ * @class SystemsApi
3163
+ * @extends {BaseAPI}
3164
+ */
3165
+ var SystemsApi = /** @class */ (function (_super) {
3166
+ tslib_1.__extends(SystemsApi, _super);
3167
+ function SystemsApi() {
3168
+ return _super !== null && _super.apply(this, arguments) || this;
3169
+ }
3170
+ /**
3171
+ * Lists Systems
3172
+ * @summary Request Systems
3173
+ * @param {SystemsApiSystemsRequest} requestParameters Request parameters.
3174
+ * @param {*} [options] Override http request option.
3175
+ * @throws {RequiredError}
3176
+ * @memberof SystemsApi
3177
+ */
3178
+ SystemsApi.prototype.systems = function (requestParameters, options) {
3179
+ var _this = this;
3180
+ if (requestParameters === void 0) { requestParameters = {}; }
3181
+ return (0, exports.SystemsApiFp)(this.configuration).systems(requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
3182
+ };
3183
+ return SystemsApi;
3184
+ }(base_1.BaseAPI));
3185
+ exports.SystemsApi = SystemsApi;
3186
+ /**
3187
+ * SystemsPoliciesApi - axios parameter creator
3188
+ * @export
3189
+ */
3190
+ var SystemsPoliciesApiAxiosParamCreator = function (configuration) {
3191
+ var _this = this;
3192
+ return {
3193
+ /**
3194
+ * Lists Policies under a System
3195
+ * @summary Request Policies assigned to a System
3196
+ * @param {any} systemId
3197
+ * @param {any} [xRHIDENTITY]
3198
+ * @param {any} [limit] Number of items to return per page
3199
+ * @param {any} [offset] Offset of first item of paginated response
3200
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
3201
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Policies are searchable using attributes `title` and `os_major_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
3202
+ * @param {*} [options] Override http request option.
3203
+ * @throws {RequiredError}
3204
+ */
3205
+ systemsPolicies: function (systemId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
3206
+ if (options === void 0) { options = {}; }
3207
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
3208
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3209
+ return tslib_1.__generator(this, function (_a) {
3210
+ // verify required parameter 'systemId' is not null or undefined
3211
+ (0, common_1.assertParamExists)('systemsPolicies', 'systemId', systemId);
3212
+ localVarPath = "/systems/{system_id}/policies"
3213
+ .replace("{".concat("system_id", "}"), encodeURIComponent(String(systemId)));
3214
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3215
+ if (configuration) {
3216
+ baseOptions = configuration.baseOptions;
3217
+ }
3218
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
3219
+ localVarHeaderParameter = {};
3220
+ localVarQueryParameter = {};
3221
+ if (limit !== undefined) {
3222
+ localVarQueryParameter['limit'] = limit;
3223
+ }
3224
+ if (offset !== undefined) {
3225
+ localVarQueryParameter['offset'] = offset;
3226
+ }
3227
+ if (sortBy !== undefined) {
3228
+ localVarQueryParameter['sort_by'] = sortBy;
3229
+ }
3230
+ if (filter !== undefined) {
3231
+ localVarQueryParameter['filter'] = filter;
3232
+ }
3233
+ if (xRHIDENTITY != null) {
3234
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
3235
+ ? xRHIDENTITY
3236
+ : JSON.stringify(xRHIDENTITY);
3237
+ }
3238
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3239
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3240
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3241
+ return [2 /*return*/, {
3242
+ url: (0, common_1.toPathString)(localVarUrlObj),
3243
+ options: localVarRequestOptions,
3244
+ }];
3245
+ });
3246
+ });
3247
+ },
3248
+ };
3249
+ };
3250
+ exports.SystemsPoliciesApiAxiosParamCreator = SystemsPoliciesApiAxiosParamCreator;
3251
+ /**
3252
+ * SystemsPoliciesApi - functional programming interface
3253
+ * @export
3254
+ */
3255
+ var SystemsPoliciesApiFp = function (configuration) {
3256
+ var localVarAxiosParamCreator = (0, exports.SystemsPoliciesApiAxiosParamCreator)(configuration);
3257
+ return {
3258
+ /**
3259
+ * Lists Policies under a System
3260
+ * @summary Request Policies assigned to a System
3261
+ * @param {any} systemId
3262
+ * @param {any} [xRHIDENTITY]
3263
+ * @param {any} [limit] Number of items to return per page
3264
+ * @param {any} [offset] Offset of first item of paginated response
3265
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
3266
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Policies are searchable using attributes `title` and `os_major_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
3267
+ * @param {*} [options] Override http request option.
3268
+ * @throws {RequiredError}
3269
+ */
3270
+ systemsPolicies: function (systemId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
3271
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
3272
+ var localVarAxiosArgs;
3273
+ return tslib_1.__generator(this, function (_a) {
3274
+ switch (_a.label) {
3275
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.systemsPolicies(systemId, xRHIDENTITY, limit, offset, sortBy, filter, options)];
3276
+ case 1:
3277
+ localVarAxiosArgs = _a.sent();
3278
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3279
+ }
3280
+ });
3281
+ });
3282
+ },
3283
+ };
3284
+ };
3285
+ exports.SystemsPoliciesApiFp = SystemsPoliciesApiFp;
3286
+ /**
3287
+ * SystemsPoliciesApi - factory interface
3288
+ * @export
3289
+ */
3290
+ var SystemsPoliciesApiFactory = function (configuration, basePath, axios) {
3291
+ var localVarFp = (0, exports.SystemsPoliciesApiFp)(configuration);
3292
+ return {
3293
+ /**
3294
+ * Lists Policies under a System
3295
+ * @summary Request Policies assigned to a System
3296
+ * @param {SystemsPoliciesApiSystemsPoliciesRequest} requestParameters Request parameters.
3297
+ * @param {*} [options] Override http request option.
3298
+ * @throws {RequiredError}
3299
+ */
3300
+ systemsPolicies: function (requestParameters, options) {
3301
+ return localVarFp.systemsPolicies(requestParameters.systemId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
3302
+ },
3303
+ };
3304
+ };
3305
+ exports.SystemsPoliciesApiFactory = SystemsPoliciesApiFactory;
3306
+ /**
3307
+ * SystemsPoliciesApi - object-oriented interface
3308
+ * @export
3309
+ * @class SystemsPoliciesApi
3310
+ * @extends {BaseAPI}
3311
+ */
3312
+ var SystemsPoliciesApi = /** @class */ (function (_super) {
3313
+ tslib_1.__extends(SystemsPoliciesApi, _super);
3314
+ function SystemsPoliciesApi() {
3315
+ return _super !== null && _super.apply(this, arguments) || this;
3316
+ }
3317
+ /**
3318
+ * Lists Policies under a System
3319
+ * @summary Request Policies assigned to a System
3320
+ * @param {SystemsPoliciesApiSystemsPoliciesRequest} requestParameters Request parameters.
3321
+ * @param {*} [options] Override http request option.
3322
+ * @throws {RequiredError}
3323
+ * @memberof SystemsPoliciesApi
3324
+ */
3325
+ SystemsPoliciesApi.prototype.systemsPolicies = function (requestParameters, options) {
3326
+ var _this = this;
3327
+ return (0, exports.SystemsPoliciesApiFp)(this.configuration).systemsPolicies(requestParameters.systemId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
3328
+ };
3329
+ return SystemsPoliciesApi;
3330
+ }(base_1.BaseAPI));
3331
+ exports.SystemsPoliciesApi = SystemsPoliciesApi;
3332
+ /**
3333
+ * TailoringApi - axios parameter creator
3334
+ * @export
3335
+ */
3336
+ var TailoringApiAxiosParamCreator = function (configuration) {
3337
+ var _this = this;
3338
+ return {
3339
+ /**
3340
+ * Returns a Tailoring
3341
+ * @summary Request a Tailoring
3342
+ * @param {any} policyId
3343
+ * @param {any} id
3344
+ * @param {any} [xRHIDENTITY]
3345
+ * @param {*} [options] Override http request option.
3346
+ * @throws {RequiredError}
3347
+ */
3348
+ tailoring: function (policyId, id, xRHIDENTITY, options) {
3349
+ if (options === void 0) { options = {}; }
3350
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
3351
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3352
+ return tslib_1.__generator(this, function (_a) {
3353
+ // verify required parameter 'policyId' is not null or undefined
3354
+ (0, common_1.assertParamExists)('tailoring', 'policyId', policyId);
3355
+ // verify required parameter 'id' is not null or undefined
3356
+ (0, common_1.assertParamExists)('tailoring', 'id', id);
3357
+ localVarPath = "/policies/{policy_id}/tailorings/{id}"
3358
+ .replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)))
3359
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
3360
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3361
+ if (configuration) {
3362
+ baseOptions = configuration.baseOptions;
3363
+ }
3364
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
3365
+ localVarHeaderParameter = {};
3366
+ localVarQueryParameter = {};
3367
+ if (xRHIDENTITY != null) {
3368
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
3369
+ ? xRHIDENTITY
3370
+ : JSON.stringify(xRHIDENTITY);
3371
+ }
3372
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3373
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3374
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3375
+ return [2 /*return*/, {
3376
+ url: (0, common_1.toPathString)(localVarUrlObj),
3377
+ options: localVarRequestOptions,
3378
+ }];
3379
+ });
3380
+ });
3381
+ },
3382
+ };
3383
+ };
3384
+ exports.TailoringApiAxiosParamCreator = TailoringApiAxiosParamCreator;
3385
+ /**
3386
+ * TailoringApi - functional programming interface
3387
+ * @export
3388
+ */
3389
+ var TailoringApiFp = function (configuration) {
3390
+ var localVarAxiosParamCreator = (0, exports.TailoringApiAxiosParamCreator)(configuration);
3391
+ return {
3392
+ /**
3393
+ * Returns a Tailoring
3394
+ * @summary Request a Tailoring
3395
+ * @param {any} policyId
3396
+ * @param {any} id
3397
+ * @param {any} [xRHIDENTITY]
3398
+ * @param {*} [options] Override http request option.
3399
+ * @throws {RequiredError}
3400
+ */
3401
+ tailoring: function (policyId, id, xRHIDENTITY, options) {
3402
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
3403
+ var localVarAxiosArgs;
3404
+ return tslib_1.__generator(this, function (_a) {
3405
+ switch (_a.label) {
3406
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.tailoring(policyId, id, xRHIDENTITY, options)];
3407
+ case 1:
3408
+ localVarAxiosArgs = _a.sent();
3409
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3410
+ }
3411
+ });
3412
+ });
3413
+ },
3414
+ };
3415
+ };
3416
+ exports.TailoringApiFp = TailoringApiFp;
3417
+ /**
3418
+ * TailoringApi - factory interface
3419
+ * @export
3420
+ */
3421
+ var TailoringApiFactory = function (configuration, basePath, axios) {
3422
+ var localVarFp = (0, exports.TailoringApiFp)(configuration);
3423
+ return {
3424
+ /**
3425
+ * Returns a Tailoring
3426
+ * @summary Request a Tailoring
3427
+ * @param {TailoringApiTailoringRequest} requestParameters Request parameters.
3428
+ * @param {*} [options] Override http request option.
3429
+ * @throws {RequiredError}
3430
+ */
3431
+ tailoring: function (requestParameters, options) {
3432
+ return localVarFp.tailoring(requestParameters.policyId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
3433
+ },
3434
+ };
3435
+ };
3436
+ exports.TailoringApiFactory = TailoringApiFactory;
3437
+ /**
3438
+ * TailoringApi - object-oriented interface
3439
+ * @export
3440
+ * @class TailoringApi
3441
+ * @extends {BaseAPI}
3442
+ */
3443
+ var TailoringApi = /** @class */ (function (_super) {
3444
+ tslib_1.__extends(TailoringApi, _super);
3445
+ function TailoringApi() {
3446
+ return _super !== null && _super.apply(this, arguments) || this;
3447
+ }
3448
+ /**
3449
+ * Returns a Tailoring
3450
+ * @summary Request a Tailoring
3451
+ * @param {TailoringApiTailoringRequest} requestParameters Request parameters.
3452
+ * @param {*} [options] Override http request option.
3453
+ * @throws {RequiredError}
3454
+ * @memberof TailoringApi
3455
+ */
3456
+ TailoringApi.prototype.tailoring = function (requestParameters, options) {
3457
+ var _this = this;
3458
+ return (0, exports.TailoringApiFp)(this.configuration).tailoring(requestParameters.policyId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
3459
+ };
3460
+ return TailoringApi;
3461
+ }(base_1.BaseAPI));
3462
+ exports.TailoringApi = TailoringApi;
3463
+ /**
3464
+ * TailoringFileApi - axios parameter creator
3465
+ * @export
3466
+ */
3467
+ var TailoringFileApiAxiosParamCreator = function (configuration) {
3468
+ var _this = this;
3469
+ return {
3470
+ /**
3471
+ * Returns a Tailoring File
3472
+ * @summary Request a Tailoring file
3473
+ * @param {any} policyId
3474
+ * @param {any} id
3475
+ * @param {any} [xRHIDENTITY]
3476
+ * @param {*} [options] Override http request option.
3477
+ * @throws {RequiredError}
3478
+ */
3479
+ tailoringFile: function (policyId, id, xRHIDENTITY, options) {
3480
+ if (options === void 0) { options = {}; }
3481
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
3482
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3483
+ return tslib_1.__generator(this, function (_a) {
3484
+ // verify required parameter 'policyId' is not null or undefined
3485
+ (0, common_1.assertParamExists)('tailoringFile', 'policyId', policyId);
3486
+ // verify required parameter 'id' is not null or undefined
3487
+ (0, common_1.assertParamExists)('tailoringFile', 'id', id);
3488
+ localVarPath = "/policies/{policy_id}/tailorings/{id}/tailoring_file.json"
3489
+ .replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)))
3490
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
3491
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3492
+ if (configuration) {
3493
+ baseOptions = configuration.baseOptions;
3494
+ }
3495
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
3496
+ localVarHeaderParameter = {};
3497
+ localVarQueryParameter = {};
3498
+ if (xRHIDENTITY != null) {
3499
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
3500
+ ? xRHIDENTITY
3501
+ : JSON.stringify(xRHIDENTITY);
3502
+ }
3503
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3504
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3505
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3506
+ return [2 /*return*/, {
3507
+ url: (0, common_1.toPathString)(localVarUrlObj),
3508
+ options: localVarRequestOptions,
3509
+ }];
3510
+ });
3511
+ });
3512
+ },
3513
+ };
3514
+ };
3515
+ exports.TailoringFileApiAxiosParamCreator = TailoringFileApiAxiosParamCreator;
3516
+ /**
3517
+ * TailoringFileApi - functional programming interface
3518
+ * @export
3519
+ */
3520
+ var TailoringFileApiFp = function (configuration) {
3521
+ var localVarAxiosParamCreator = (0, exports.TailoringFileApiAxiosParamCreator)(configuration);
3522
+ return {
3523
+ /**
3524
+ * Returns a Tailoring File
3525
+ * @summary Request a Tailoring file
3526
+ * @param {any} policyId
3527
+ * @param {any} id
3528
+ * @param {any} [xRHIDENTITY]
3529
+ * @param {*} [options] Override http request option.
3530
+ * @throws {RequiredError}
3531
+ */
3532
+ tailoringFile: function (policyId, id, xRHIDENTITY, options) {
3533
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
3534
+ var localVarAxiosArgs;
3535
+ return tslib_1.__generator(this, function (_a) {
3536
+ switch (_a.label) {
3537
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.tailoringFile(policyId, id, xRHIDENTITY, options)];
3538
+ case 1:
3539
+ localVarAxiosArgs = _a.sent();
3540
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3541
+ }
3542
+ });
3543
+ });
3544
+ },
3545
+ };
3546
+ };
3547
+ exports.TailoringFileApiFp = TailoringFileApiFp;
3548
+ /**
3549
+ * TailoringFileApi - factory interface
3550
+ * @export
3551
+ */
3552
+ var TailoringFileApiFactory = function (configuration, basePath, axios) {
3553
+ var localVarFp = (0, exports.TailoringFileApiFp)(configuration);
3554
+ return {
3555
+ /**
3556
+ * Returns a Tailoring File
3557
+ * @summary Request a Tailoring file
3558
+ * @param {TailoringFileApiTailoringFileRequest} requestParameters Request parameters.
3559
+ * @param {*} [options] Override http request option.
3560
+ * @throws {RequiredError}
3561
+ */
3562
+ tailoringFile: function (requestParameters, options) {
3563
+ return localVarFp.tailoringFile(requestParameters.policyId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
3564
+ },
3565
+ };
3566
+ };
3567
+ exports.TailoringFileApiFactory = TailoringFileApiFactory;
3568
+ /**
3569
+ * TailoringFileApi - object-oriented interface
3570
+ * @export
3571
+ * @class TailoringFileApi
3572
+ * @extends {BaseAPI}
3573
+ */
3574
+ var TailoringFileApi = /** @class */ (function (_super) {
3575
+ tslib_1.__extends(TailoringFileApi, _super);
3576
+ function TailoringFileApi() {
3577
+ return _super !== null && _super.apply(this, arguments) || this;
3578
+ }
3579
+ /**
3580
+ * Returns a Tailoring File
3581
+ * @summary Request a Tailoring file
3582
+ * @param {TailoringFileApiTailoringFileRequest} requestParameters Request parameters.
3583
+ * @param {*} [options] Override http request option.
3584
+ * @throws {RequiredError}
3585
+ * @memberof TailoringFileApi
3586
+ */
3587
+ TailoringFileApi.prototype.tailoringFile = function (requestParameters, options) {
3588
+ var _this = this;
3589
+ return (0, exports.TailoringFileApiFp)(this.configuration).tailoringFile(requestParameters.policyId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
3590
+ };
3591
+ return TailoringFileApi;
3592
+ }(base_1.BaseAPI));
3593
+ exports.TailoringFileApi = TailoringFileApi;
3594
+ /**
3595
+ * TailoringRulesApi - axios parameter creator
3596
+ * @export
3597
+ */
3598
+ var TailoringRulesApiAxiosParamCreator = function (configuration) {
3599
+ var _this = this;
3600
+ return {
3601
+ /**
3602
+ * Lists Rules assigned to a Tailoring
3603
+ * @summary Request Rules assigned to a Tailoring
3604
+ * @param {any} policyId
3605
+ * @param {any} tailoringId
3606
+ * @param {any} [xRHIDENTITY]
3607
+ * @param {any} [limit] Number of items to return per page
3608
+ * @param {any} [offset] Offset of first item of paginated response
3609
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
3610
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Rules are searchable using attributes `title` and `severity`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
3611
+ * @param {*} [options] Override http request option.
3612
+ * @throws {RequiredError}
3613
+ */
3614
+ tailoringRules: function (policyId, tailoringId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
3615
+ if (options === void 0) { options = {}; }
3616
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
3617
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3618
+ return tslib_1.__generator(this, function (_a) {
3619
+ // verify required parameter 'policyId' is not null or undefined
3620
+ (0, common_1.assertParamExists)('tailoringRules', 'policyId', policyId);
3621
+ // verify required parameter 'tailoringId' is not null or undefined
3622
+ (0, common_1.assertParamExists)('tailoringRules', 'tailoringId', tailoringId);
3623
+ localVarPath = "/policies/{policy_id}/tailorings/{tailoring_id}/rules"
3624
+ .replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)))
3625
+ .replace("{".concat("tailoring_id", "}"), encodeURIComponent(String(tailoringId)));
3626
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3627
+ if (configuration) {
3628
+ baseOptions = configuration.baseOptions;
3629
+ }
3630
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
3631
+ localVarHeaderParameter = {};
3632
+ localVarQueryParameter = {};
3633
+ if (limit !== undefined) {
3634
+ localVarQueryParameter['limit'] = limit;
3635
+ }
3636
+ if (offset !== undefined) {
3637
+ localVarQueryParameter['offset'] = offset;
3638
+ }
3639
+ if (sortBy !== undefined) {
3640
+ localVarQueryParameter['sort_by'] = sortBy;
3641
+ }
3642
+ if (filter !== undefined) {
3643
+ localVarQueryParameter['filter'] = filter;
3644
+ }
3645
+ if (xRHIDENTITY != null) {
3646
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
3647
+ ? xRHIDENTITY
3648
+ : JSON.stringify(xRHIDENTITY);
3649
+ }
3650
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3651
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3652
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3653
+ return [2 /*return*/, {
3654
+ url: (0, common_1.toPathString)(localVarUrlObj),
3655
+ options: localVarRequestOptions,
3656
+ }];
3657
+ });
3658
+ });
3659
+ },
3660
+ };
3661
+ };
3662
+ exports.TailoringRulesApiAxiosParamCreator = TailoringRulesApiAxiosParamCreator;
3663
+ /**
3664
+ * TailoringRulesApi - functional programming interface
3665
+ * @export
3666
+ */
3667
+ var TailoringRulesApiFp = function (configuration) {
3668
+ var localVarAxiosParamCreator = (0, exports.TailoringRulesApiAxiosParamCreator)(configuration);
3669
+ return {
3670
+ /**
3671
+ * Lists Rules assigned to a Tailoring
3672
+ * @summary Request Rules assigned to a Tailoring
3673
+ * @param {any} policyId
3674
+ * @param {any} tailoringId
3675
+ * @param {any} [xRHIDENTITY]
3676
+ * @param {any} [limit] Number of items to return per page
3677
+ * @param {any} [offset] Offset of first item of paginated response
3678
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
3679
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Rules are searchable using attributes `title` and `severity`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
3680
+ * @param {*} [options] Override http request option.
3681
+ * @throws {RequiredError}
3682
+ */
3683
+ tailoringRules: function (policyId, tailoringId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
3684
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
3685
+ var localVarAxiosArgs;
3686
+ return tslib_1.__generator(this, function (_a) {
3687
+ switch (_a.label) {
3688
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.tailoringRules(policyId, tailoringId, xRHIDENTITY, limit, offset, sortBy, filter, options)];
3689
+ case 1:
3690
+ localVarAxiosArgs = _a.sent();
3691
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3692
+ }
3693
+ });
3694
+ });
3695
+ },
3696
+ };
3697
+ };
3698
+ exports.TailoringRulesApiFp = TailoringRulesApiFp;
3699
+ /**
3700
+ * TailoringRulesApi - factory interface
3701
+ * @export
3702
+ */
3703
+ var TailoringRulesApiFactory = function (configuration, basePath, axios) {
3704
+ var localVarFp = (0, exports.TailoringRulesApiFp)(configuration);
3705
+ return {
3706
+ /**
3707
+ * Lists Rules assigned to a Tailoring
3708
+ * @summary Request Rules assigned to a Tailoring
3709
+ * @param {TailoringRulesApiTailoringRulesRequest} requestParameters Request parameters.
3710
+ * @param {*} [options] Override http request option.
3711
+ * @throws {RequiredError}
3712
+ */
3713
+ tailoringRules: function (requestParameters, options) {
3714
+ return localVarFp.tailoringRules(requestParameters.policyId, requestParameters.tailoringId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
3715
+ },
3716
+ };
3717
+ };
3718
+ exports.TailoringRulesApiFactory = TailoringRulesApiFactory;
3719
+ /**
3720
+ * TailoringRulesApi - object-oriented interface
3721
+ * @export
3722
+ * @class TailoringRulesApi
3723
+ * @extends {BaseAPI}
3724
+ */
3725
+ var TailoringRulesApi = /** @class */ (function (_super) {
3726
+ tslib_1.__extends(TailoringRulesApi, _super);
3727
+ function TailoringRulesApi() {
3728
+ return _super !== null && _super.apply(this, arguments) || this;
3729
+ }
3730
+ /**
3731
+ * Lists Rules assigned to a Tailoring
3732
+ * @summary Request Rules assigned to a Tailoring
3733
+ * @param {TailoringRulesApiTailoringRulesRequest} requestParameters Request parameters.
3734
+ * @param {*} [options] Override http request option.
3735
+ * @throws {RequiredError}
3736
+ * @memberof TailoringRulesApi
3737
+ */
3738
+ TailoringRulesApi.prototype.tailoringRules = function (requestParameters, options) {
3739
+ var _this = this;
3740
+ return (0, exports.TailoringRulesApiFp)(this.configuration).tailoringRules(requestParameters.policyId, requestParameters.tailoringId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
3741
+ };
3742
+ return TailoringRulesApi;
3743
+ }(base_1.BaseAPI));
3744
+ exports.TailoringRulesApi = TailoringRulesApi;
3745
+ /**
3746
+ * TailoringsApi - axios parameter creator
3747
+ * @export
3748
+ */
3749
+ var TailoringsApiAxiosParamCreator = function (configuration) {
3750
+ var _this = this;
3751
+ return {
3752
+ /**
3753
+ * Lists Tailorings
3754
+ * @summary Request Tailorings
3755
+ * @param {any} policyId
3756
+ * @param {any} [xRHIDENTITY]
3757
+ * @param {any} [limit] Number of items to return per page
3758
+ * @param {any} [offset] Offset of first item of paginated response
3759
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
3760
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Tailorings are searchable using attributes `os_minor_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
3761
+ * @param {*} [options] Override http request option.
3762
+ * @throws {RequiredError}
3763
+ */
3764
+ tailorings: function (policyId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
3765
+ if (options === void 0) { options = {}; }
3766
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
3767
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3768
+ return tslib_1.__generator(this, function (_a) {
3769
+ // verify required parameter 'policyId' is not null or undefined
3770
+ (0, common_1.assertParamExists)('tailorings', 'policyId', policyId);
3771
+ localVarPath = "/policies/{policy_id}/tailorings"
3772
+ .replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
3773
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3774
+ if (configuration) {
3775
+ baseOptions = configuration.baseOptions;
3776
+ }
3777
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
3778
+ localVarHeaderParameter = {};
3779
+ localVarQueryParameter = {};
3780
+ if (limit !== undefined) {
3781
+ localVarQueryParameter['limit'] = limit;
3782
+ }
3783
+ if (offset !== undefined) {
3784
+ localVarQueryParameter['offset'] = offset;
3785
+ }
3786
+ if (sortBy !== undefined) {
3787
+ localVarQueryParameter['sort_by'] = sortBy;
3788
+ }
3789
+ if (filter !== undefined) {
3790
+ localVarQueryParameter['filter'] = filter;
3791
+ }
3792
+ if (xRHIDENTITY != null) {
3793
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
3794
+ ? xRHIDENTITY
3795
+ : JSON.stringify(xRHIDENTITY);
3796
+ }
3797
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3798
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3799
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3800
+ return [2 /*return*/, {
3801
+ url: (0, common_1.toPathString)(localVarUrlObj),
3802
+ options: localVarRequestOptions,
3803
+ }];
3804
+ });
3805
+ });
3806
+ },
3807
+ };
3808
+ };
3809
+ exports.TailoringsApiAxiosParamCreator = TailoringsApiAxiosParamCreator;
3810
+ /**
3811
+ * TailoringsApi - functional programming interface
3812
+ * @export
3813
+ */
3814
+ var TailoringsApiFp = function (configuration) {
3815
+ var localVarAxiosParamCreator = (0, exports.TailoringsApiAxiosParamCreator)(configuration);
3816
+ return {
3817
+ /**
3818
+ * Lists Tailorings
3819
+ * @summary Request Tailorings
3820
+ * @param {any} policyId
3821
+ * @param {any} [xRHIDENTITY]
3822
+ * @param {any} [limit] Number of items to return per page
3823
+ * @param {any} [offset] Offset of first item of paginated response
3824
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
3825
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Tailorings are searchable using attributes `os_minor_version`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
3826
+ * @param {*} [options] Override http request option.
3827
+ * @throws {RequiredError}
3828
+ */
3829
+ tailorings: function (policyId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
3830
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
3831
+ var localVarAxiosArgs;
3832
+ return tslib_1.__generator(this, function (_a) {
3833
+ switch (_a.label) {
3834
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.tailorings(policyId, xRHIDENTITY, limit, offset, sortBy, filter, options)];
3835
+ case 1:
3836
+ localVarAxiosArgs = _a.sent();
3837
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3838
+ }
3839
+ });
3840
+ });
3841
+ },
3842
+ };
3843
+ };
3844
+ exports.TailoringsApiFp = TailoringsApiFp;
3845
+ /**
3846
+ * TailoringsApi - factory interface
3847
+ * @export
3848
+ */
3849
+ var TailoringsApiFactory = function (configuration, basePath, axios) {
3850
+ var localVarFp = (0, exports.TailoringsApiFp)(configuration);
3851
+ return {
3852
+ /**
3853
+ * Lists Tailorings
3854
+ * @summary Request Tailorings
3855
+ * @param {TailoringsApiTailoringsRequest} requestParameters Request parameters.
3856
+ * @param {*} [options] Override http request option.
3857
+ * @throws {RequiredError}
3858
+ */
3859
+ tailorings: function (requestParameters, options) {
3860
+ return localVarFp.tailorings(requestParameters.policyId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
3861
+ },
3862
+ };
3863
+ };
3864
+ exports.TailoringsApiFactory = TailoringsApiFactory;
3865
+ /**
3866
+ * TailoringsApi - object-oriented interface
3867
+ * @export
3868
+ * @class TailoringsApi
3869
+ * @extends {BaseAPI}
3870
+ */
3871
+ var TailoringsApi = /** @class */ (function (_super) {
3872
+ tslib_1.__extends(TailoringsApi, _super);
3873
+ function TailoringsApi() {
3874
+ return _super !== null && _super.apply(this, arguments) || this;
3875
+ }
3876
+ /**
3877
+ * Lists Tailorings
3878
+ * @summary Request Tailorings
3879
+ * @param {TailoringsApiTailoringsRequest} requestParameters Request parameters.
3880
+ * @param {*} [options] Override http request option.
3881
+ * @throws {RequiredError}
3882
+ * @memberof TailoringsApi
3883
+ */
3884
+ TailoringsApi.prototype.tailorings = function (requestParameters, options) {
3885
+ var _this = this;
3886
+ return (0, exports.TailoringsApiFp)(this.configuration).tailorings(requestParameters.policyId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
3887
+ };
3888
+ return TailoringsApi;
3889
+ }(base_1.BaseAPI));
3890
+ exports.TailoringsApi = TailoringsApi;
3891
+ /**
3892
+ * UnassignRuleApi - axios parameter creator
3893
+ * @export
3894
+ */
3895
+ var UnassignRuleApiAxiosParamCreator = function (configuration) {
3896
+ var _this = this;
3897
+ return {
3898
+ /**
3899
+ * Unassigns a Rule from a Tailoring
3900
+ * @summary Unassign a Rule from a Tailoring
3901
+ * @param {any} policyId
3902
+ * @param {any} tailoringId
3903
+ * @param {any} id
3904
+ * @param {any} [xRHIDENTITY]
3905
+ * @param {*} [options] Override http request option.
3906
+ * @throws {RequiredError}
3907
+ */
3908
+ unassignRule: function (policyId, tailoringId, id, xRHIDENTITY, options) {
3909
+ if (options === void 0) { options = {}; }
3910
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
3911
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3912
+ return tslib_1.__generator(this, function (_a) {
3913
+ // verify required parameter 'policyId' is not null or undefined
3914
+ (0, common_1.assertParamExists)('unassignRule', 'policyId', policyId);
3915
+ // verify required parameter 'tailoringId' is not null or undefined
3916
+ (0, common_1.assertParamExists)('unassignRule', 'tailoringId', tailoringId);
3917
+ // verify required parameter 'id' is not null or undefined
3918
+ (0, common_1.assertParamExists)('unassignRule', 'id', id);
3919
+ localVarPath = "/policies/{policy_id}/tailorings/{tailoring_id}/rules/{id}"
3920
+ .replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)))
3921
+ .replace("{".concat("tailoring_id", "}"), encodeURIComponent(String(tailoringId)))
3922
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
3923
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3924
+ if (configuration) {
3925
+ baseOptions = configuration.baseOptions;
3926
+ }
3927
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'DELETE' }, baseOptions), options);
3928
+ localVarHeaderParameter = {};
3929
+ localVarQueryParameter = {};
3930
+ if (xRHIDENTITY != null) {
3931
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
3932
+ ? xRHIDENTITY
3933
+ : JSON.stringify(xRHIDENTITY);
3934
+ }
3935
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3936
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3937
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3938
+ return [2 /*return*/, {
3939
+ url: (0, common_1.toPathString)(localVarUrlObj),
3940
+ options: localVarRequestOptions,
3941
+ }];
3942
+ });
3943
+ });
3944
+ },
3945
+ };
3946
+ };
3947
+ exports.UnassignRuleApiAxiosParamCreator = UnassignRuleApiAxiosParamCreator;
3948
+ /**
3949
+ * UnassignRuleApi - functional programming interface
3950
+ * @export
3951
+ */
3952
+ var UnassignRuleApiFp = function (configuration) {
3953
+ var localVarAxiosParamCreator = (0, exports.UnassignRuleApiAxiosParamCreator)(configuration);
3954
+ return {
3955
+ /**
3956
+ * Unassigns a Rule from a Tailoring
3957
+ * @summary Unassign a Rule from a Tailoring
3958
+ * @param {any} policyId
3959
+ * @param {any} tailoringId
3960
+ * @param {any} id
3961
+ * @param {any} [xRHIDENTITY]
3962
+ * @param {*} [options] Override http request option.
3963
+ * @throws {RequiredError}
3964
+ */
3965
+ unassignRule: function (policyId, tailoringId, id, xRHIDENTITY, options) {
3966
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
3967
+ var localVarAxiosArgs;
3968
+ return tslib_1.__generator(this, function (_a) {
3969
+ switch (_a.label) {
3970
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.unassignRule(policyId, tailoringId, id, xRHIDENTITY, options)];
3971
+ case 1:
3972
+ localVarAxiosArgs = _a.sent();
3973
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
3974
+ }
3975
+ });
3976
+ });
3977
+ },
3978
+ };
3979
+ };
3980
+ exports.UnassignRuleApiFp = UnassignRuleApiFp;
3981
+ /**
3982
+ * UnassignRuleApi - factory interface
3983
+ * @export
3984
+ */
3985
+ var UnassignRuleApiFactory = function (configuration, basePath, axios) {
3986
+ var localVarFp = (0, exports.UnassignRuleApiFp)(configuration);
3987
+ return {
3988
+ /**
3989
+ * Unassigns a Rule from a Tailoring
3990
+ * @summary Unassign a Rule from a Tailoring
3991
+ * @param {UnassignRuleApiUnassignRuleRequest} requestParameters Request parameters.
3992
+ * @param {*} [options] Override http request option.
3993
+ * @throws {RequiredError}
3994
+ */
3995
+ unassignRule: function (requestParameters, options) {
3996
+ return localVarFp.unassignRule(requestParameters.policyId, requestParameters.tailoringId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
3997
+ },
3998
+ };
3999
+ };
4000
+ exports.UnassignRuleApiFactory = UnassignRuleApiFactory;
4001
+ /**
4002
+ * UnassignRuleApi - object-oriented interface
4003
+ * @export
4004
+ * @class UnassignRuleApi
4005
+ * @extends {BaseAPI}
4006
+ */
4007
+ var UnassignRuleApi = /** @class */ (function (_super) {
4008
+ tslib_1.__extends(UnassignRuleApi, _super);
4009
+ function UnassignRuleApi() {
4010
+ return _super !== null && _super.apply(this, arguments) || this;
4011
+ }
4012
+ /**
4013
+ * Unassigns a Rule from a Tailoring
4014
+ * @summary Unassign a Rule from a Tailoring
4015
+ * @param {UnassignRuleApiUnassignRuleRequest} requestParameters Request parameters.
4016
+ * @param {*} [options] Override http request option.
4017
+ * @throws {RequiredError}
4018
+ * @memberof UnassignRuleApi
4019
+ */
4020
+ UnassignRuleApi.prototype.unassignRule = function (requestParameters, options) {
4021
+ var _this = this;
4022
+ return (0, exports.UnassignRuleApiFp)(this.configuration).unassignRule(requestParameters.policyId, requestParameters.tailoringId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
4023
+ };
4024
+ return UnassignRuleApi;
4025
+ }(base_1.BaseAPI));
4026
+ exports.UnassignRuleApi = UnassignRuleApi;
4027
+ /**
4028
+ * UnassignSystemApi - axios parameter creator
4029
+ * @export
4030
+ */
4031
+ var UnassignSystemApiAxiosParamCreator = function (configuration) {
4032
+ var _this = this;
4033
+ return {
4034
+ /**
4035
+ * Unassigns a System from a Policy
4036
+ * @summary Unassign a System from a Policy
4037
+ * @param {any} id
4038
+ * @param {any} policyId
4039
+ * @param {any} [xRHIDENTITY]
4040
+ * @param {*} [options] Override http request option.
4041
+ * @throws {RequiredError}
4042
+ */
4043
+ unassignSystem: function (id, policyId, xRHIDENTITY, options) {
4044
+ if (options === void 0) { options = {}; }
4045
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
4046
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4047
+ return tslib_1.__generator(this, function (_a) {
4048
+ // verify required parameter 'id' is not null or undefined
4049
+ (0, common_1.assertParamExists)('unassignSystem', 'id', id);
4050
+ // verify required parameter 'policyId' is not null or undefined
4051
+ (0, common_1.assertParamExists)('unassignSystem', 'policyId', policyId);
4052
+ localVarPath = "/policies/{policy_id}/systems/{id}"
4053
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
4054
+ .replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
4055
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4056
+ if (configuration) {
4057
+ baseOptions = configuration.baseOptions;
4058
+ }
4059
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'DELETE' }, baseOptions), options);
4060
+ localVarHeaderParameter = {};
4061
+ localVarQueryParameter = {};
4062
+ if (xRHIDENTITY != null) {
4063
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
4064
+ ? xRHIDENTITY
4065
+ : JSON.stringify(xRHIDENTITY);
4066
+ }
4067
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4068
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4069
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4070
+ return [2 /*return*/, {
4071
+ url: (0, common_1.toPathString)(localVarUrlObj),
4072
+ options: localVarRequestOptions,
4073
+ }];
4074
+ });
4075
+ });
4076
+ },
4077
+ };
4078
+ };
4079
+ exports.UnassignSystemApiAxiosParamCreator = UnassignSystemApiAxiosParamCreator;
4080
+ /**
4081
+ * UnassignSystemApi - functional programming interface
4082
+ * @export
4083
+ */
4084
+ var UnassignSystemApiFp = function (configuration) {
4085
+ var localVarAxiosParamCreator = (0, exports.UnassignSystemApiAxiosParamCreator)(configuration);
4086
+ return {
4087
+ /**
4088
+ * Unassigns a System from a Policy
4089
+ * @summary Unassign a System from a Policy
4090
+ * @param {any} id
4091
+ * @param {any} policyId
4092
+ * @param {any} [xRHIDENTITY]
4093
+ * @param {*} [options] Override http request option.
4094
+ * @throws {RequiredError}
4095
+ */
4096
+ unassignSystem: function (id, policyId, xRHIDENTITY, options) {
4097
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
4098
+ var localVarAxiosArgs;
4099
+ return tslib_1.__generator(this, function (_a) {
4100
+ switch (_a.label) {
4101
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.unassignSystem(id, policyId, xRHIDENTITY, options)];
4102
+ case 1:
4103
+ localVarAxiosArgs = _a.sent();
4104
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4105
+ }
4106
+ });
4107
+ });
4108
+ },
4109
+ };
4110
+ };
4111
+ exports.UnassignSystemApiFp = UnassignSystemApiFp;
4112
+ /**
4113
+ * UnassignSystemApi - factory interface
4114
+ * @export
4115
+ */
4116
+ var UnassignSystemApiFactory = function (configuration, basePath, axios) {
4117
+ var localVarFp = (0, exports.UnassignSystemApiFp)(configuration);
4118
+ return {
4119
+ /**
4120
+ * Unassigns a System from a Policy
4121
+ * @summary Unassign a System from a Policy
4122
+ * @param {UnassignSystemApiUnassignSystemRequest} requestParameters Request parameters.
4123
+ * @param {*} [options] Override http request option.
4124
+ * @throws {RequiredError}
4125
+ */
4126
+ unassignSystem: function (requestParameters, options) {
4127
+ return localVarFp.unassignSystem(requestParameters.id, requestParameters.policyId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
4128
+ },
4129
+ };
4130
+ };
4131
+ exports.UnassignSystemApiFactory = UnassignSystemApiFactory;
4132
+ /**
4133
+ * UnassignSystemApi - object-oriented interface
4134
+ * @export
4135
+ * @class UnassignSystemApi
4136
+ * @extends {BaseAPI}
4137
+ */
4138
+ var UnassignSystemApi = /** @class */ (function (_super) {
4139
+ tslib_1.__extends(UnassignSystemApi, _super);
4140
+ function UnassignSystemApi() {
4141
+ return _super !== null && _super.apply(this, arguments) || this;
4142
+ }
4143
+ /**
4144
+ * Unassigns a System from a Policy
4145
+ * @summary Unassign a System from a Policy
4146
+ * @param {UnassignSystemApiUnassignSystemRequest} requestParameters Request parameters.
4147
+ * @param {*} [options] Override http request option.
4148
+ * @throws {RequiredError}
4149
+ * @memberof UnassignSystemApi
4150
+ */
4151
+ UnassignSystemApi.prototype.unassignSystem = function (requestParameters, options) {
4152
+ var _this = this;
4153
+ return (0, exports.UnassignSystemApiFp)(this.configuration).unassignSystem(requestParameters.id, requestParameters.policyId, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
4154
+ };
4155
+ return UnassignSystemApi;
4156
+ }(base_1.BaseAPI));
4157
+ exports.UnassignSystemApi = UnassignSystemApi;
4158
+ /**
4159
+ * UpdatePolicyApi - axios parameter creator
4160
+ * @export
4161
+ */
4162
+ var UpdatePolicyApiAxiosParamCreator = function (configuration) {
4163
+ var _this = this;
4164
+ return {
4165
+ /**
4166
+ * Updates a Policy with the provided attributes
4167
+ * @summary Update a Policy
4168
+ * @param {any} id
4169
+ * @param {any} [xRHIDENTITY]
4170
+ * @param {PolicyUpdate} [policyUpdate]
4171
+ * @param {*} [options] Override http request option.
4172
+ * @throws {RequiredError}
4173
+ */
4174
+ updatePolicy: function (id, xRHIDENTITY, policyUpdate, options) {
4175
+ if (options === void 0) { options = {}; }
4176
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
4177
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4178
+ return tslib_1.__generator(this, function (_a) {
4179
+ // verify required parameter 'id' is not null or undefined
4180
+ (0, common_1.assertParamExists)('updatePolicy', 'id', id);
4181
+ localVarPath = "/policies/{id}"
4182
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
4183
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4184
+ if (configuration) {
4185
+ baseOptions = configuration.baseOptions;
4186
+ }
4187
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'PATCH' }, baseOptions), options);
4188
+ localVarHeaderParameter = {};
4189
+ localVarQueryParameter = {};
4190
+ if (xRHIDENTITY != null) {
4191
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
4192
+ ? xRHIDENTITY
4193
+ : JSON.stringify(xRHIDENTITY);
4194
+ }
4195
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
4196
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4197
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4198
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4199
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(policyUpdate, localVarRequestOptions, configuration);
4200
+ return [2 /*return*/, {
4201
+ url: (0, common_1.toPathString)(localVarUrlObj),
4202
+ options: localVarRequestOptions,
4203
+ }];
4204
+ });
4205
+ });
4206
+ },
4207
+ };
4208
+ };
4209
+ exports.UpdatePolicyApiAxiosParamCreator = UpdatePolicyApiAxiosParamCreator;
4210
+ /**
4211
+ * UpdatePolicyApi - functional programming interface
4212
+ * @export
4213
+ */
4214
+ var UpdatePolicyApiFp = function (configuration) {
4215
+ var localVarAxiosParamCreator = (0, exports.UpdatePolicyApiAxiosParamCreator)(configuration);
4216
+ return {
4217
+ /**
4218
+ * Updates a Policy with the provided attributes
4219
+ * @summary Update a Policy
4220
+ * @param {any} id
4221
+ * @param {any} [xRHIDENTITY]
4222
+ * @param {PolicyUpdate} [policyUpdate]
4223
+ * @param {*} [options] Override http request option.
4224
+ * @throws {RequiredError}
4225
+ */
4226
+ updatePolicy: function (id, xRHIDENTITY, policyUpdate, options) {
4227
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
4228
+ var localVarAxiosArgs;
4229
+ return tslib_1.__generator(this, function (_a) {
4230
+ switch (_a.label) {
4231
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePolicy(id, xRHIDENTITY, policyUpdate, options)];
4232
+ case 1:
4233
+ localVarAxiosArgs = _a.sent();
4234
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4235
+ }
4236
+ });
4237
+ });
4238
+ },
4239
+ };
4240
+ };
4241
+ exports.UpdatePolicyApiFp = UpdatePolicyApiFp;
4242
+ /**
4243
+ * UpdatePolicyApi - factory interface
4244
+ * @export
4245
+ */
4246
+ var UpdatePolicyApiFactory = function (configuration, basePath, axios) {
4247
+ var localVarFp = (0, exports.UpdatePolicyApiFp)(configuration);
4248
+ return {
4249
+ /**
4250
+ * Updates a Policy with the provided attributes
4251
+ * @summary Update a Policy
4252
+ * @param {UpdatePolicyApiUpdatePolicyRequest} requestParameters Request parameters.
4253
+ * @param {*} [options] Override http request option.
4254
+ * @throws {RequiredError}
4255
+ */
4256
+ updatePolicy: function (requestParameters, options) {
4257
+ return localVarFp.updatePolicy(requestParameters.id, requestParameters.xRHIDENTITY, requestParameters.policyUpdate, options).then(function (request) { return request(axios, basePath); });
4258
+ },
4259
+ };
4260
+ };
4261
+ exports.UpdatePolicyApiFactory = UpdatePolicyApiFactory;
4262
+ /**
4263
+ * UpdatePolicyApi - object-oriented interface
4264
+ * @export
4265
+ * @class UpdatePolicyApi
4266
+ * @extends {BaseAPI}
4267
+ */
4268
+ var UpdatePolicyApi = /** @class */ (function (_super) {
4269
+ tslib_1.__extends(UpdatePolicyApi, _super);
4270
+ function UpdatePolicyApi() {
4271
+ return _super !== null && _super.apply(this, arguments) || this;
4272
+ }
4273
+ /**
4274
+ * Updates a Policy with the provided attributes
4275
+ * @summary Update a Policy
4276
+ * @param {UpdatePolicyApiUpdatePolicyRequest} requestParameters Request parameters.
4277
+ * @param {*} [options] Override http request option.
4278
+ * @throws {RequiredError}
4279
+ * @memberof UpdatePolicyApi
4280
+ */
4281
+ UpdatePolicyApi.prototype.updatePolicy = function (requestParameters, options) {
4282
+ var _this = this;
4283
+ return (0, exports.UpdatePolicyApiFp)(this.configuration).updatePolicy(requestParameters.id, requestParameters.xRHIDENTITY, requestParameters.policyUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
4284
+ };
4285
+ return UpdatePolicyApi;
4286
+ }(base_1.BaseAPI));
4287
+ exports.UpdatePolicyApi = UpdatePolicyApi;
4288
+ /**
4289
+ * ValueDefinitionApi - axios parameter creator
4290
+ * @export
4291
+ */
4292
+ var ValueDefinitionApiAxiosParamCreator = function (configuration) {
4293
+ var _this = this;
4294
+ return {
4295
+ /**
4296
+ * Returns a Value Definition
4297
+ * @summary Request a Value Definition
4298
+ * @param {any} securityGuideId
4299
+ * @param {any} id
4300
+ * @param {any} [xRHIDENTITY]
4301
+ * @param {*} [options] Override http request option.
4302
+ * @throws {RequiredError}
4303
+ */
4304
+ valueDefinition: function (securityGuideId, id, xRHIDENTITY, options) {
4305
+ if (options === void 0) { options = {}; }
4306
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
4307
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4308
+ return tslib_1.__generator(this, function (_a) {
4309
+ // verify required parameter 'securityGuideId' is not null or undefined
4310
+ (0, common_1.assertParamExists)('valueDefinition', 'securityGuideId', securityGuideId);
4311
+ // verify required parameter 'id' is not null or undefined
4312
+ (0, common_1.assertParamExists)('valueDefinition', 'id', id);
4313
+ localVarPath = "/security_guides/{security_guide_id}/value_definitions/{id}"
4314
+ .replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)))
4315
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
4316
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4317
+ if (configuration) {
4318
+ baseOptions = configuration.baseOptions;
4319
+ }
4320
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
4321
+ localVarHeaderParameter = {};
4322
+ localVarQueryParameter = {};
4323
+ if (xRHIDENTITY != null) {
4324
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
4325
+ ? xRHIDENTITY
4326
+ : JSON.stringify(xRHIDENTITY);
4327
+ }
4328
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4329
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4330
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4331
+ return [2 /*return*/, {
4332
+ url: (0, common_1.toPathString)(localVarUrlObj),
4333
+ options: localVarRequestOptions,
4334
+ }];
4335
+ });
4336
+ });
4337
+ },
4338
+ };
4339
+ };
4340
+ exports.ValueDefinitionApiAxiosParamCreator = ValueDefinitionApiAxiosParamCreator;
4341
+ /**
4342
+ * ValueDefinitionApi - functional programming interface
4343
+ * @export
4344
+ */
4345
+ var ValueDefinitionApiFp = function (configuration) {
4346
+ var localVarAxiosParamCreator = (0, exports.ValueDefinitionApiAxiosParamCreator)(configuration);
4347
+ return {
4348
+ /**
4349
+ * Returns a Value Definition
4350
+ * @summary Request a Value Definition
4351
+ * @param {any} securityGuideId
4352
+ * @param {any} id
4353
+ * @param {any} [xRHIDENTITY]
4354
+ * @param {*} [options] Override http request option.
4355
+ * @throws {RequiredError}
4356
+ */
4357
+ valueDefinition: function (securityGuideId, id, xRHIDENTITY, options) {
4358
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
4359
+ var localVarAxiosArgs;
4360
+ return tslib_1.__generator(this, function (_a) {
4361
+ switch (_a.label) {
4362
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.valueDefinition(securityGuideId, id, xRHIDENTITY, options)];
4363
+ case 1:
4364
+ localVarAxiosArgs = _a.sent();
4365
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4366
+ }
4367
+ });
4368
+ });
4369
+ },
4370
+ };
4371
+ };
4372
+ exports.ValueDefinitionApiFp = ValueDefinitionApiFp;
4373
+ /**
4374
+ * ValueDefinitionApi - factory interface
4375
+ * @export
4376
+ */
4377
+ var ValueDefinitionApiFactory = function (configuration, basePath, axios) {
4378
+ var localVarFp = (0, exports.ValueDefinitionApiFp)(configuration);
4379
+ return {
4380
+ /**
4381
+ * Returns a Value Definition
4382
+ * @summary Request a Value Definition
4383
+ * @param {ValueDefinitionApiValueDefinitionRequest} requestParameters Request parameters.
4384
+ * @param {*} [options] Override http request option.
4385
+ * @throws {RequiredError}
4386
+ */
4387
+ valueDefinition: function (requestParameters, options) {
4388
+ return localVarFp.valueDefinition(requestParameters.securityGuideId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(axios, basePath); });
4389
+ },
4390
+ };
4391
+ };
4392
+ exports.ValueDefinitionApiFactory = ValueDefinitionApiFactory;
4393
+ /**
4394
+ * ValueDefinitionApi - object-oriented interface
4395
+ * @export
4396
+ * @class ValueDefinitionApi
4397
+ * @extends {BaseAPI}
4398
+ */
4399
+ var ValueDefinitionApi = /** @class */ (function (_super) {
4400
+ tslib_1.__extends(ValueDefinitionApi, _super);
4401
+ function ValueDefinitionApi() {
4402
+ return _super !== null && _super.apply(this, arguments) || this;
4403
+ }
4404
+ /**
4405
+ * Returns a Value Definition
4406
+ * @summary Request a Value Definition
4407
+ * @param {ValueDefinitionApiValueDefinitionRequest} requestParameters Request parameters.
4408
+ * @param {*} [options] Override http request option.
4409
+ * @throws {RequiredError}
4410
+ * @memberof ValueDefinitionApi
4411
+ */
4412
+ ValueDefinitionApi.prototype.valueDefinition = function (requestParameters, options) {
4413
+ var _this = this;
4414
+ return (0, exports.ValueDefinitionApiFp)(this.configuration).valueDefinition(requestParameters.securityGuideId, requestParameters.id, requestParameters.xRHIDENTITY, options).then(function (request) { return request(_this.axios, _this.basePath); });
4415
+ };
4416
+ return ValueDefinitionApi;
4417
+ }(base_1.BaseAPI));
4418
+ exports.ValueDefinitionApi = ValueDefinitionApi;
4419
+ /**
4420
+ * ValueDefinitionsApi - axios parameter creator
4421
+ * @export
4422
+ */
4423
+ var ValueDefinitionsApiAxiosParamCreator = function (configuration) {
4424
+ var _this = this;
4425
+ return {
4426
+ /**
4427
+ * Lists Value Definitions
4428
+ * @summary Request Value Definitions
4429
+ * @param {any} securityGuideId
4430
+ * @param {any} [xRHIDENTITY]
4431
+ * @param {any} [limit] Number of items to return per page
4432
+ * @param {any} [offset] Offset of first item of paginated response
4433
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
4434
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Value Definitions are searchable using attributes `title`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
4435
+ * @param {*} [options] Override http request option.
4436
+ * @throws {RequiredError}
4437
+ */
4438
+ valueDefinitions: function (securityGuideId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
4439
+ if (options === void 0) { options = {}; }
4440
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
4441
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4442
+ return tslib_1.__generator(this, function (_a) {
4443
+ // verify required parameter 'securityGuideId' is not null or undefined
4444
+ (0, common_1.assertParamExists)('valueDefinitions', 'securityGuideId', securityGuideId);
4445
+ localVarPath = "/security_guides/{security_guide_id}/value_definitions"
4446
+ .replace("{".concat("security_guide_id", "}"), encodeURIComponent(String(securityGuideId)));
4447
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4448
+ if (configuration) {
4449
+ baseOptions = configuration.baseOptions;
4450
+ }
4451
+ localVarRequestOptions = tslib_1.__assign(tslib_1.__assign({ method: 'GET' }, baseOptions), options);
4452
+ localVarHeaderParameter = {};
4453
+ localVarQueryParameter = {};
4454
+ if (limit !== undefined) {
4455
+ localVarQueryParameter['limit'] = limit;
4456
+ }
4457
+ if (offset !== undefined) {
4458
+ localVarQueryParameter['offset'] = offset;
4459
+ }
4460
+ if (sortBy !== undefined) {
4461
+ localVarQueryParameter['sort_by'] = sortBy;
4462
+ }
4463
+ if (filter !== undefined) {
4464
+ localVarQueryParameter['filter'] = filter;
4465
+ }
4466
+ if (xRHIDENTITY != null) {
4467
+ localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
4468
+ ? xRHIDENTITY
4469
+ : JSON.stringify(xRHIDENTITY);
4470
+ }
4471
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4472
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4473
+ localVarRequestOptions.headers = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4474
+ return [2 /*return*/, {
4475
+ url: (0, common_1.toPathString)(localVarUrlObj),
4476
+ options: localVarRequestOptions,
4477
+ }];
4478
+ });
4479
+ });
4480
+ },
4481
+ };
4482
+ };
4483
+ exports.ValueDefinitionsApiAxiosParamCreator = ValueDefinitionsApiAxiosParamCreator;
4484
+ /**
4485
+ * ValueDefinitionsApi - functional programming interface
4486
+ * @export
4487
+ */
4488
+ var ValueDefinitionsApiFp = function (configuration) {
4489
+ var localVarAxiosParamCreator = (0, exports.ValueDefinitionsApiAxiosParamCreator)(configuration);
4490
+ return {
4491
+ /**
4492
+ * Lists Value Definitions
4493
+ * @summary Request Value Definitions
4494
+ * @param {any} securityGuideId
4495
+ * @param {any} [xRHIDENTITY]
4496
+ * @param {any} [limit] Number of items to return per page
4497
+ * @param {any} [offset] Offset of first item of paginated response
4498
+ * @param {any} [sortBy] Attribute and direction to sort the items by. Represented by an array of fields with an optional direction (`<key>:asc` or `<key>:desc`).<br><br>If no direction is selected, `<key>:asc` is used by default.
4499
+ * @param {any} [filter] Query string to filter items by their attributes. Compliant with <a href=\"https://github.com/wvanbergen/scoped_search/wiki/Query-language\" target=\"_blank\" title=\"github.com/wvanbergen/scoped_search\">scoped_search query language</a>. However, only `=` or `!=` (resp. `<>`) operators are supported.<br><br>Value Definitions are searchable using attributes `title`<br><br>(e.g.: `(version=0.1.47 AND os_major_verision=8)`)
4500
+ * @param {*} [options] Override http request option.
4501
+ * @throws {RequiredError}
4502
+ */
4503
+ valueDefinitions: function (securityGuideId, xRHIDENTITY, limit, offset, sortBy, filter, options) {
4504
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
4505
+ var localVarAxiosArgs;
4506
+ return tslib_1.__generator(this, function (_a) {
4507
+ switch (_a.label) {
4508
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.valueDefinitions(securityGuideId, xRHIDENTITY, limit, offset, sortBy, filter, options)];
4509
+ case 1:
4510
+ localVarAxiosArgs = _a.sent();
4511
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4512
+ }
4513
+ });
4514
+ });
4515
+ },
4516
+ };
4517
+ };
4518
+ exports.ValueDefinitionsApiFp = ValueDefinitionsApiFp;
4519
+ /**
4520
+ * ValueDefinitionsApi - factory interface
4521
+ * @export
4522
+ */
4523
+ var ValueDefinitionsApiFactory = function (configuration, basePath, axios) {
4524
+ var localVarFp = (0, exports.ValueDefinitionsApiFp)(configuration);
4525
+ return {
4526
+ /**
4527
+ * Lists Value Definitions
4528
+ * @summary Request Value Definitions
4529
+ * @param {ValueDefinitionsApiValueDefinitionsRequest} requestParameters Request parameters.
4530
+ * @param {*} [options] Override http request option.
4531
+ * @throws {RequiredError}
4532
+ */
4533
+ valueDefinitions: function (requestParameters, options) {
4534
+ return localVarFp.valueDefinitions(requestParameters.securityGuideId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(axios, basePath); });
4535
+ },
4536
+ };
4537
+ };
4538
+ exports.ValueDefinitionsApiFactory = ValueDefinitionsApiFactory;
4539
+ /**
4540
+ * ValueDefinitionsApi - object-oriented interface
4541
+ * @export
4542
+ * @class ValueDefinitionsApi
4543
+ * @extends {BaseAPI}
4544
+ */
4545
+ var ValueDefinitionsApi = /** @class */ (function (_super) {
4546
+ tslib_1.__extends(ValueDefinitionsApi, _super);
4547
+ function ValueDefinitionsApi() {
4548
+ return _super !== null && _super.apply(this, arguments) || this;
4549
+ }
4550
+ /**
4551
+ * Lists Value Definitions
4552
+ * @summary Request Value Definitions
4553
+ * @param {ValueDefinitionsApiValueDefinitionsRequest} requestParameters Request parameters.
4554
+ * @param {*} [options] Override http request option.
4555
+ * @throws {RequiredError}
4556
+ * @memberof ValueDefinitionsApi
4557
+ */
4558
+ ValueDefinitionsApi.prototype.valueDefinitions = function (requestParameters, options) {
4559
+ var _this = this;
4560
+ return (0, exports.ValueDefinitionsApiFp)(this.configuration).valueDefinitions(requestParameters.securityGuideId, requestParameters.xRHIDENTITY, requestParameters.limit, requestParameters.offset, requestParameters.sortBy, requestParameters.filter, options).then(function (request) { return request(_this.axios, _this.basePath); });
4561
+ };
4562
+ return ValueDefinitionsApi;
4563
+ }(base_1.BaseAPI));
4564
+ exports.ValueDefinitionsApi = ValueDefinitionsApi;
4565
+ //# sourceMappingURL=api.js.map