@redhat-cloud-services/compliance-client 2.0.2 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/api.d.ts → api.d.ts} +1 -1
- package/esm/AssignRule/index.d.ts +39 -0
- package/esm/AssignRule/index.js +50 -0
- package/esm/AssignRule/index.js.map +1 -0
- package/esm/AssignRules/index.d.ts +41 -0
- package/esm/AssignRules/index.js +52 -0
- package/esm/AssignRules/index.js.map +1 -0
- package/esm/AssignSystem/index.d.ts +34 -0
- package/esm/AssignSystem/index.js +49 -0
- package/esm/AssignSystem/index.js.map +1 -0
- package/esm/AssignSystems/index.d.ts +35 -0
- package/esm/AssignSystems/index.js +51 -0
- package/esm/AssignSystems/index.js.map +1 -0
- package/esm/CreatePolicy/index.d.ts +28 -0
- package/esm/CreatePolicy/index.js +49 -0
- package/esm/CreatePolicy/index.js.map +1 -0
- package/esm/CreateTailoring/index.d.ts +34 -0
- package/esm/CreateTailoring/index.js +50 -0
- package/esm/CreateTailoring/index.js.map +1 -0
- package/esm/DeletePolicy/index.d.ts +28 -0
- package/esm/DeletePolicy/index.js +48 -0
- package/esm/DeletePolicy/index.js.map +1 -0
- package/esm/DeleteReport/index.d.ts +27 -0
- package/esm/DeleteReport/index.js +48 -0
- package/esm/DeleteReport/index.js.map +1 -0
- package/esm/Policies/index.d.ts +52 -0
- package/esm/Policies/index.js +62 -0
- package/esm/Policies/index.js.map +1 -0
- package/esm/Policy/index.d.ts +28 -0
- package/esm/Policy/index.js +48 -0
- package/esm/Policy/index.js.map +1 -0
- package/esm/PolicySystems/index.d.ts +64 -0
- package/esm/PolicySystems/index.js +66 -0
- package/esm/PolicySystems/index.js.map +1 -0
- package/esm/PolicySystemsOS/index.d.ts +34 -0
- package/esm/PolicySystemsOS/index.js +52 -0
- package/esm/PolicySystemsOS/index.js.map +1 -0
- package/esm/Profile/index.d.ts +34 -0
- package/esm/Profile/index.js +49 -0
- package/esm/Profile/index.js.map +1 -0
- package/esm/ProfileRule/index.d.ts +40 -0
- package/esm/ProfileRule/index.js +50 -0
- package/esm/ProfileRule/index.js.map +1 -0
- package/esm/ProfileRules/index.d.ts +64 -0
- package/esm/ProfileRules/index.js +64 -0
- package/esm/ProfileRules/index.js.map +1 -0
- package/esm/ProfileTree/index.d.ts +33 -0
- package/esm/ProfileTree/index.js +49 -0
- package/esm/ProfileTree/index.js.map +1 -0
- package/esm/Profiles/index.d.ts +58 -0
- package/esm/Profiles/index.js +63 -0
- package/esm/Profiles/index.js.map +1 -0
- package/esm/Report/index.d.ts +28 -0
- package/esm/Report/index.js +48 -0
- package/esm/Report/index.js.map +1 -0
- package/esm/ReportRuleResults/index.d.ts +64 -0
- package/esm/ReportRuleResults/index.js +64 -0
- package/esm/ReportRuleResults/index.js.map +1 -0
- package/esm/ReportStats/index.d.ts +29 -0
- package/esm/ReportStats/index.js +49 -0
- package/esm/ReportStats/index.js.map +1 -0
- package/esm/ReportSystem/index.d.ts +34 -0
- package/esm/ReportSystem/index.js +49 -0
- package/esm/ReportSystem/index.js.map +1 -0
- package/esm/ReportSystems/index.d.ts +64 -0
- package/esm/ReportSystems/index.js +66 -0
- package/esm/ReportSystems/index.js.map +1 -0
- package/esm/ReportSystemsOS/index.d.ts +34 -0
- package/esm/ReportSystemsOS/index.js +52 -0
- package/esm/ReportSystemsOS/index.js.map +1 -0
- package/esm/ReportTestResult/index.d.ts +34 -0
- package/esm/ReportTestResult/index.js +49 -0
- package/esm/ReportTestResult/index.js.map +1 -0
- package/esm/ReportTestResults/index.d.ts +64 -0
- package/esm/ReportTestResults/index.js +66 -0
- package/esm/ReportTestResults/index.js.map +1 -0
- package/esm/ReportTestResultsOS/index.d.ts +34 -0
- package/esm/ReportTestResultsOS/index.js +52 -0
- package/esm/ReportTestResultsOS/index.js.map +1 -0
- package/esm/ReportTestResultsSG/index.d.ts +28 -0
- package/esm/ReportTestResultsSG/index.js +49 -0
- package/esm/ReportTestResultsSG/index.js.map +1 -0
- package/esm/Reports/index.d.ts +52 -0
- package/esm/Reports/index.js +62 -0
- package/esm/Reports/index.js.map +1 -0
- package/esm/ReportsOS/index.d.ts +28 -0
- package/esm/ReportsOS/index.js +51 -0
- package/esm/ReportsOS/index.js.map +1 -0
- package/esm/Rule/index.d.ts +34 -0
- package/esm/Rule/index.js +49 -0
- package/esm/Rule/index.js.map +1 -0
- package/esm/RuleGroup/index.d.ts +34 -0
- package/esm/RuleGroup/index.js +49 -0
- package/esm/RuleGroup/index.js.map +1 -0
- package/esm/RuleGroups/index.d.ts +58 -0
- package/esm/RuleGroups/index.js +63 -0
- package/esm/RuleGroups/index.js.map +1 -0
- package/esm/Rules/index.d.ts +58 -0
- package/esm/Rules/index.js +63 -0
- package/esm/Rules/index.js.map +1 -0
- package/esm/SecurityGuide/index.d.ts +28 -0
- package/esm/SecurityGuide/index.js +48 -0
- package/esm/SecurityGuide/index.js.map +1 -0
- package/esm/SecurityGuideRuleTree/index.d.ts +27 -0
- package/esm/SecurityGuideRuleTree/index.js +48 -0
- package/esm/SecurityGuideRuleTree/index.js.map +1 -0
- package/esm/SecurityGuides/index.d.ts +52 -0
- package/esm/SecurityGuides/index.js +62 -0
- package/esm/SecurityGuides/index.js.map +1 -0
- package/esm/SecurityGuidesOS/index.d.ts +28 -0
- package/esm/SecurityGuidesOS/index.js +51 -0
- package/esm/SecurityGuidesOS/index.js.map +1 -0
- package/esm/SupportedProfiles/index.d.ts +52 -0
- package/esm/SupportedProfiles/index.js +62 -0
- package/esm/SupportedProfiles/index.js.map +1 -0
- package/esm/System/index.d.ts +28 -0
- package/esm/System/index.js +48 -0
- package/esm/System/index.js.map +1 -0
- package/esm/SystemReports/index.d.ts +58 -0
- package/esm/SystemReports/index.js +63 -0
- package/esm/SystemReports/index.js.map +1 -0
- package/esm/Systems/index.d.ts +58 -0
- package/esm/Systems/index.js +65 -0
- package/esm/Systems/index.js.map +1 -0
- package/esm/SystemsOS/index.d.ts +28 -0
- package/esm/SystemsOS/index.js +51 -0
- package/esm/SystemsOS/index.js.map +1 -0
- package/esm/SystemsPolicies/index.d.ts +58 -0
- package/esm/SystemsPolicies/index.js +63 -0
- package/esm/SystemsPolicies/index.js.map +1 -0
- package/esm/Tailoring/index.d.ts +34 -0
- package/esm/Tailoring/index.js +49 -0
- package/esm/Tailoring/index.js.map +1 -0
- package/esm/TailoringFile/index.d.ts +34 -0
- package/esm/TailoringFile/index.js +49 -0
- package/esm/TailoringFile/index.js.map +1 -0
- package/esm/TailoringRuleTree/index.d.ts +33 -0
- package/esm/TailoringRuleTree/index.js +49 -0
- package/esm/TailoringRuleTree/index.js.map +1 -0
- package/esm/TailoringRules/index.d.ts +64 -0
- package/esm/TailoringRules/index.js +64 -0
- package/esm/TailoringRules/index.js.map +1 -0
- package/esm/Tailorings/index.d.ts +58 -0
- package/esm/Tailorings/index.js +63 -0
- package/esm/Tailorings/index.js.map +1 -0
- package/esm/UnassignRule/index.d.ts +39 -0
- package/esm/UnassignRule/index.js +50 -0
- package/esm/UnassignRule/index.js.map +1 -0
- package/esm/UnassignSystem/index.d.ts +34 -0
- package/esm/UnassignSystem/index.js +49 -0
- package/esm/UnassignSystem/index.js.map +1 -0
- package/esm/UpdatePolicy/index.d.ts +34 -0
- package/esm/UpdatePolicy/index.js +50 -0
- package/esm/UpdatePolicy/index.js.map +1 -0
- package/esm/UpdateTailoring/index.d.ts +40 -0
- package/esm/UpdateTailoring/index.js +51 -0
- package/esm/UpdateTailoring/index.js.map +1 -0
- package/esm/ValueDefinition/index.d.ts +34 -0
- package/esm/ValueDefinition/index.js +49 -0
- package/esm/ValueDefinition/index.js.map +1 -0
- package/esm/ValueDefinitions/index.d.ts +58 -0
- package/esm/ValueDefinitions/index.js +63 -0
- package/esm/ValueDefinitions/index.js.map +1 -0
- package/esm/api.d.ts +115 -0
- package/esm/api.js +63 -0
- package/esm/api.js.map +1 -0
- package/esm/index.js +55 -0
- package/esm/index.js.map +1 -0
- package/esm/types/index.js +48 -0
- package/esm/types/index.js.map +1 -0
- package/index.d.ts +54 -0
- package/package.json +1 -1
- package/types/index.d.ts +1595 -0
- package/CHANGELOG.md +0 -98
- package/LICENSE +0 -201
- package/README.md +0 -76
- package/doc/.nojekyll +0 -1
- package/doc/README.md +0 -69
- package/doc/interfaces/AssignRulesRequest.md +0 -27
- package/doc/interfaces/CreatePolicy201Response.md +0 -27
- package/doc/interfaces/CreatePolicy201ResponseData.md +0 -27
- package/doc/interfaces/Errors.md +0 -27
- package/doc/interfaces/Links.md +0 -80
- package/doc/interfaces/Metadata.md +0 -97
- package/doc/interfaces/Policies200Response.md +0 -57
- package/doc/interfaces/Policy.md +0 -195
- package/doc/interfaces/PolicyUpdate.md +0 -63
- package/doc/interfaces/Profile.md +0 -110
- package/doc/interfaces/Profile200Response.md +0 -27
- package/doc/interfaces/Profile200ResponseData.md +0 -27
- package/doc/interfaces/Profiles200Response.md +0 -57
- package/doc/interfaces/Report.md +0 -229
- package/doc/interfaces/Report200Response.md +0 -27
- package/doc/interfaces/Report200ResponseData.md +0 -27
- package/doc/interfaces/ReportTestResults200Response.md +0 -57
- package/doc/interfaces/Reports200Response.md +0 -57
- package/doc/interfaces/Rule.md +0 -161
- package/doc/interfaces/Rule200Response.md +0 -27
- package/doc/interfaces/Rule200ResponseData.md +0 -27
- package/doc/interfaces/RuleGroup.md +0 -127
- package/doc/interfaces/RuleGroup200Response.md +0 -27
- package/doc/interfaces/RuleGroup200ResponseData.md +0 -27
- package/doc/interfaces/RuleGroups200Response.md +0 -57
- package/doc/interfaces/Rules200Response.md +0 -57
- package/doc/interfaces/SecurityGuide.md +0 -127
- package/doc/interfaces/SecurityGuide200Response.md +0 -27
- package/doc/interfaces/SecurityGuide200ResponseData.md +0 -27
- package/doc/interfaces/SecurityGuides200Response.md +0 -57
- package/doc/interfaces/SupportedProfile.md +0 -144
- package/doc/interfaces/SupportedProfiles200Response.md +0 -57
- package/doc/interfaces/System.md +0 -215
- package/doc/interfaces/System200Response.md +0 -27
- package/doc/interfaces/System200ResponseData.md +0 -27
- package/doc/interfaces/Systems200Response.md +0 -57
- package/doc/interfaces/Tailoring.md +0 -127
- package/doc/interfaces/Tailoring200Response.md +0 -27
- package/doc/interfaces/Tailoring200ResponseData.md +0 -27
- package/doc/interfaces/TailoringFile.md +0 -33
- package/doc/interfaces/Tailorings200Response.md +0 -57
- package/doc/interfaces/TestResult.md +0 -208
- package/doc/interfaces/ValueDefinition.md +0 -127
- package/doc/interfaces/ValueDefinition200Response.md +0 -27
- package/doc/interfaces/ValueDefinition200ResponseData.md +0 -27
- package/doc/interfaces/ValueDefinitions200Response.md +0 -57
- package/doc/modules.md +0 -1608
- /package/{dist/AssignRule → AssignRule}/index.d.ts +0 -0
- /package/{dist/AssignRule → AssignRule}/index.js +0 -0
- /package/{dist/AssignRule → AssignRule}/index.js.map +0 -0
- /package/{dist/AssignRules → AssignRules}/index.d.ts +0 -0
- /package/{dist/AssignRules → AssignRules}/index.js +0 -0
- /package/{dist/AssignRules → AssignRules}/index.js.map +0 -0
- /package/{dist/AssignSystem → AssignSystem}/index.d.ts +0 -0
- /package/{dist/AssignSystem → AssignSystem}/index.js +0 -0
- /package/{dist/AssignSystem → AssignSystem}/index.js.map +0 -0
- /package/{dist/AssignSystems → AssignSystems}/index.d.ts +0 -0
- /package/{dist/AssignSystems → AssignSystems}/index.js +0 -0
- /package/{dist/AssignSystems → AssignSystems}/index.js.map +0 -0
- /package/{dist/CreatePolicy → CreatePolicy}/index.d.ts +0 -0
- /package/{dist/CreatePolicy → CreatePolicy}/index.js +0 -0
- /package/{dist/CreatePolicy → CreatePolicy}/index.js.map +0 -0
- /package/{dist/CreateTailoring → CreateTailoring}/index.d.ts +0 -0
- /package/{dist/CreateTailoring → CreateTailoring}/index.js +0 -0
- /package/{dist/CreateTailoring → CreateTailoring}/index.js.map +0 -0
- /package/{dist/DeletePolicy → DeletePolicy}/index.d.ts +0 -0
- /package/{dist/DeletePolicy → DeletePolicy}/index.js +0 -0
- /package/{dist/DeletePolicy → DeletePolicy}/index.js.map +0 -0
- /package/{dist/DeleteReport → DeleteReport}/index.d.ts +0 -0
- /package/{dist/DeleteReport → DeleteReport}/index.js +0 -0
- /package/{dist/DeleteReport → DeleteReport}/index.js.map +0 -0
- /package/{dist/Policies → Policies}/index.d.ts +0 -0
- /package/{dist/Policies → Policies}/index.js +0 -0
- /package/{dist/Policies → Policies}/index.js.map +0 -0
- /package/{dist/Policy → Policy}/index.d.ts +0 -0
- /package/{dist/Policy → Policy}/index.js +0 -0
- /package/{dist/Policy → Policy}/index.js.map +0 -0
- /package/{dist/PolicySystems → PolicySystems}/index.d.ts +0 -0
- /package/{dist/PolicySystems → PolicySystems}/index.js +0 -0
- /package/{dist/PolicySystems → PolicySystems}/index.js.map +0 -0
- /package/{dist/PolicySystemsOS → PolicySystemsOS}/index.d.ts +0 -0
- /package/{dist/PolicySystemsOS → PolicySystemsOS}/index.js +0 -0
- /package/{dist/PolicySystemsOS → PolicySystemsOS}/index.js.map +0 -0
- /package/{dist/Profile → Profile}/index.d.ts +0 -0
- /package/{dist/Profile → Profile}/index.js +0 -0
- /package/{dist/Profile → Profile}/index.js.map +0 -0
- /package/{dist/ProfileRule → ProfileRule}/index.d.ts +0 -0
- /package/{dist/ProfileRule → ProfileRule}/index.js +0 -0
- /package/{dist/ProfileRule → ProfileRule}/index.js.map +0 -0
- /package/{dist/ProfileRules → ProfileRules}/index.d.ts +0 -0
- /package/{dist/ProfileRules → ProfileRules}/index.js +0 -0
- /package/{dist/ProfileRules → ProfileRules}/index.js.map +0 -0
- /package/{dist/ProfileTree → ProfileTree}/index.d.ts +0 -0
- /package/{dist/ProfileTree → ProfileTree}/index.js +0 -0
- /package/{dist/ProfileTree → ProfileTree}/index.js.map +0 -0
- /package/{dist/Profiles → Profiles}/index.d.ts +0 -0
- /package/{dist/Profiles → Profiles}/index.js +0 -0
- /package/{dist/Profiles → Profiles}/index.js.map +0 -0
- /package/{dist/Report → Report}/index.d.ts +0 -0
- /package/{dist/Report → Report}/index.js +0 -0
- /package/{dist/Report → Report}/index.js.map +0 -0
- /package/{dist/ReportRuleResults → ReportRuleResults}/index.d.ts +0 -0
- /package/{dist/ReportRuleResults → ReportRuleResults}/index.js +0 -0
- /package/{dist/ReportRuleResults → ReportRuleResults}/index.js.map +0 -0
- /package/{dist/ReportStats → ReportStats}/index.d.ts +0 -0
- /package/{dist/ReportStats → ReportStats}/index.js +0 -0
- /package/{dist/ReportStats → ReportStats}/index.js.map +0 -0
- /package/{dist/ReportSystem → ReportSystem}/index.d.ts +0 -0
- /package/{dist/ReportSystem → ReportSystem}/index.js +0 -0
- /package/{dist/ReportSystem → ReportSystem}/index.js.map +0 -0
- /package/{dist/ReportSystems → ReportSystems}/index.d.ts +0 -0
- /package/{dist/ReportSystems → ReportSystems}/index.js +0 -0
- /package/{dist/ReportSystems → ReportSystems}/index.js.map +0 -0
- /package/{dist/ReportSystemsOS → ReportSystemsOS}/index.d.ts +0 -0
- /package/{dist/ReportSystemsOS → ReportSystemsOS}/index.js +0 -0
- /package/{dist/ReportSystemsOS → ReportSystemsOS}/index.js.map +0 -0
- /package/{dist/ReportTestResult → ReportTestResult}/index.d.ts +0 -0
- /package/{dist/ReportTestResult → ReportTestResult}/index.js +0 -0
- /package/{dist/ReportTestResult → ReportTestResult}/index.js.map +0 -0
- /package/{dist/ReportTestResults → ReportTestResults}/index.d.ts +0 -0
- /package/{dist/ReportTestResults → ReportTestResults}/index.js +0 -0
- /package/{dist/ReportTestResults → ReportTestResults}/index.js.map +0 -0
- /package/{dist/ReportTestResultsOS → ReportTestResultsOS}/index.d.ts +0 -0
- /package/{dist/ReportTestResultsOS → ReportTestResultsOS}/index.js +0 -0
- /package/{dist/ReportTestResultsOS → ReportTestResultsOS}/index.js.map +0 -0
- /package/{dist/ReportTestResultsSG → ReportTestResultsSG}/index.d.ts +0 -0
- /package/{dist/ReportTestResultsSG → ReportTestResultsSG}/index.js +0 -0
- /package/{dist/ReportTestResultsSG → ReportTestResultsSG}/index.js.map +0 -0
- /package/{dist/Reports → Reports}/index.d.ts +0 -0
- /package/{dist/Reports → Reports}/index.js +0 -0
- /package/{dist/Reports → Reports}/index.js.map +0 -0
- /package/{dist/ReportsOS → ReportsOS}/index.d.ts +0 -0
- /package/{dist/ReportsOS → ReportsOS}/index.js +0 -0
- /package/{dist/ReportsOS → ReportsOS}/index.js.map +0 -0
- /package/{dist/Rule → Rule}/index.d.ts +0 -0
- /package/{dist/Rule → Rule}/index.js +0 -0
- /package/{dist/Rule → Rule}/index.js.map +0 -0
- /package/{dist/RuleGroup → RuleGroup}/index.d.ts +0 -0
- /package/{dist/RuleGroup → RuleGroup}/index.js +0 -0
- /package/{dist/RuleGroup → RuleGroup}/index.js.map +0 -0
- /package/{dist/RuleGroups → RuleGroups}/index.d.ts +0 -0
- /package/{dist/RuleGroups → RuleGroups}/index.js +0 -0
- /package/{dist/RuleGroups → RuleGroups}/index.js.map +0 -0
- /package/{dist/Rules → Rules}/index.d.ts +0 -0
- /package/{dist/Rules → Rules}/index.js +0 -0
- /package/{dist/Rules → Rules}/index.js.map +0 -0
- /package/{dist/SecurityGuide → SecurityGuide}/index.d.ts +0 -0
- /package/{dist/SecurityGuide → SecurityGuide}/index.js +0 -0
- /package/{dist/SecurityGuide → SecurityGuide}/index.js.map +0 -0
- /package/{dist/SecurityGuideRuleTree → SecurityGuideRuleTree}/index.d.ts +0 -0
- /package/{dist/SecurityGuideRuleTree → SecurityGuideRuleTree}/index.js +0 -0
- /package/{dist/SecurityGuideRuleTree → SecurityGuideRuleTree}/index.js.map +0 -0
- /package/{dist/SecurityGuides → SecurityGuides}/index.d.ts +0 -0
- /package/{dist/SecurityGuides → SecurityGuides}/index.js +0 -0
- /package/{dist/SecurityGuides → SecurityGuides}/index.js.map +0 -0
- /package/{dist/SecurityGuidesOS → SecurityGuidesOS}/index.d.ts +0 -0
- /package/{dist/SecurityGuidesOS → SecurityGuidesOS}/index.js +0 -0
- /package/{dist/SecurityGuidesOS → SecurityGuidesOS}/index.js.map +0 -0
- /package/{dist/SupportedProfiles → SupportedProfiles}/index.d.ts +0 -0
- /package/{dist/SupportedProfiles → SupportedProfiles}/index.js +0 -0
- /package/{dist/SupportedProfiles → SupportedProfiles}/index.js.map +0 -0
- /package/{dist/System → System}/index.d.ts +0 -0
- /package/{dist/System → System}/index.js +0 -0
- /package/{dist/System → System}/index.js.map +0 -0
- /package/{dist/SystemReports → SystemReports}/index.d.ts +0 -0
- /package/{dist/SystemReports → SystemReports}/index.js +0 -0
- /package/{dist/SystemReports → SystemReports}/index.js.map +0 -0
- /package/{dist/Systems → Systems}/index.d.ts +0 -0
- /package/{dist/Systems → Systems}/index.js +0 -0
- /package/{dist/Systems → Systems}/index.js.map +0 -0
- /package/{dist/SystemsOS → SystemsOS}/index.d.ts +0 -0
- /package/{dist/SystemsOS → SystemsOS}/index.js +0 -0
- /package/{dist/SystemsOS → SystemsOS}/index.js.map +0 -0
- /package/{dist/SystemsPolicies → SystemsPolicies}/index.d.ts +0 -0
- /package/{dist/SystemsPolicies → SystemsPolicies}/index.js +0 -0
- /package/{dist/SystemsPolicies → SystemsPolicies}/index.js.map +0 -0
- /package/{dist/Tailoring → Tailoring}/index.d.ts +0 -0
- /package/{dist/Tailoring → Tailoring}/index.js +0 -0
- /package/{dist/Tailoring → Tailoring}/index.js.map +0 -0
- /package/{dist/TailoringFile → TailoringFile}/index.d.ts +0 -0
- /package/{dist/TailoringFile → TailoringFile}/index.js +0 -0
- /package/{dist/TailoringFile → TailoringFile}/index.js.map +0 -0
- /package/{dist/TailoringRuleTree → TailoringRuleTree}/index.d.ts +0 -0
- /package/{dist/TailoringRuleTree → TailoringRuleTree}/index.js +0 -0
- /package/{dist/TailoringRuleTree → TailoringRuleTree}/index.js.map +0 -0
- /package/{dist/TailoringRules → TailoringRules}/index.d.ts +0 -0
- /package/{dist/TailoringRules → TailoringRules}/index.js +0 -0
- /package/{dist/TailoringRules → TailoringRules}/index.js.map +0 -0
- /package/{dist/Tailorings → Tailorings}/index.d.ts +0 -0
- /package/{dist/Tailorings → Tailorings}/index.js +0 -0
- /package/{dist/Tailorings → Tailorings}/index.js.map +0 -0
- /package/{dist/UnassignRule → UnassignRule}/index.d.ts +0 -0
- /package/{dist/UnassignRule → UnassignRule}/index.js +0 -0
- /package/{dist/UnassignRule → UnassignRule}/index.js.map +0 -0
- /package/{dist/UnassignSystem → UnassignSystem}/index.d.ts +0 -0
- /package/{dist/UnassignSystem → UnassignSystem}/index.js +0 -0
- /package/{dist/UnassignSystem → UnassignSystem}/index.js.map +0 -0
- /package/{dist/UpdatePolicy → UpdatePolicy}/index.d.ts +0 -0
- /package/{dist/UpdatePolicy → UpdatePolicy}/index.js +0 -0
- /package/{dist/UpdatePolicy → UpdatePolicy}/index.js.map +0 -0
- /package/{dist/UpdateTailoring → UpdateTailoring}/index.d.ts +0 -0
- /package/{dist/UpdateTailoring → UpdateTailoring}/index.js +0 -0
- /package/{dist/UpdateTailoring → UpdateTailoring}/index.js.map +0 -0
- /package/{dist/ValueDefinition → ValueDefinition}/index.d.ts +0 -0
- /package/{dist/ValueDefinition → ValueDefinition}/index.js +0 -0
- /package/{dist/ValueDefinition → ValueDefinition}/index.js.map +0 -0
- /package/{dist/ValueDefinitions → ValueDefinitions}/index.d.ts +0 -0
- /package/{dist/ValueDefinitions → ValueDefinitions}/index.js +0 -0
- /package/{dist/ValueDefinitions → ValueDefinitions}/index.js.map +0 -0
- /package/{dist/api.js → api.js} +0 -0
- /package/{dist/api.js.map → api.js.map} +0 -0
- /package/{dist → esm}/index.d.ts +0 -0
- /package/{dist → esm}/types/index.d.ts +0 -0
- /package/{dist/index.js → index.js} +0 -0
- /package/{dist/index.js.map → index.js.map} +0 -0
- /package/{dist/types → types}/index.js +0 -0
- /package/{dist/types → types}/index.js.map +0 -0
|
@@ -56,7 +56,7 @@ type endpointReturnTypes = {
|
|
|
56
56
|
valueDefinition: ValueDefinitionReturnType;
|
|
57
57
|
valueDefinitions: ValueDefinitionsReturnType;
|
|
58
58
|
};
|
|
59
|
-
export declare const ComplianceClient: (BASE_PATH: string, instance?: ApiConfig) => import("
|
|
59
|
+
export declare const ComplianceClient: (BASE_PATH: string, instance?: ApiConfig) => import("@redhat-cloud-services/javascript-clients-shared/dist/base").BaseAPI & import("@redhat-cloud-services/javascript-clients-shared/dist/utils").APIFactoryResponse<{
|
|
60
60
|
assignRule: (...config: [import("./AssignRule").AssignRuleParams] | [any, any, any, any, import("axios").AxiosRequestConfig<any>]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
61
61
|
assignRules: (...config: [import("./AssignRules").AssignRulesParams] | [any, any, any, import("./types").AssignRulesRequest, import("axios").AxiosRequestConfig<any>]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
62
62
|
assignSystem: (...config: [import("./AssignSystem").AssignSystemParams] | [any, any, any, import("axios").AxiosRequestConfig<any>]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
export type AssignRuleParams = {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @type { any }
|
|
7
|
+
* @memberof AssignRuleApi
|
|
8
|
+
*/
|
|
9
|
+
policyId: any;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @type { any }
|
|
13
|
+
* @memberof AssignRuleApi
|
|
14
|
+
*/
|
|
15
|
+
tailoringId: any;
|
|
16
|
+
/**
|
|
17
|
+
* UUID or a ref_id with \'.\' characters replaced with \'-\'
|
|
18
|
+
* @type { any }
|
|
19
|
+
* @memberof AssignRuleApi
|
|
20
|
+
*/
|
|
21
|
+
ruleId: any;
|
|
22
|
+
/**
|
|
23
|
+
* For internal use only
|
|
24
|
+
* @type { any }
|
|
25
|
+
* @memberof AssignRuleApi
|
|
26
|
+
*/
|
|
27
|
+
xRHIDENTITY?: any;
|
|
28
|
+
options?: AxiosRequestConfig;
|
|
29
|
+
};
|
|
30
|
+
export type AssignRuleReturnType = AxiosPromise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Assigns a Rule to a Tailoring
|
|
33
|
+
* @summary Assign a Rule to a Tailoring
|
|
34
|
+
* @param {AssignRuleParams} config with all available params.
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
export declare const assignRuleParamCreator: (...config: ([AssignRuleParams] | [any, any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
39
|
+
export default assignRuleParamCreator;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
|
+
// @ts-ignore
|
|
3
|
+
import { DUMMY_BASE_URL, setSearchParams } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
4
|
+
var isAssignRuleObjectParams = function (params) {
|
|
5
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'policyId') && Object.prototype.hasOwnProperty.call(params, 'tailoringId') && Object.prototype.hasOwnProperty.call(params, 'ruleId') && true;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Assigns a Rule to a Tailoring
|
|
9
|
+
* @summary Assign a Rule to a Tailoring
|
|
10
|
+
* @param {AssignRuleParams} config with all available params.
|
|
11
|
+
* @param {*} [options] Override http request option.
|
|
12
|
+
* @throws {RequiredError}
|
|
13
|
+
*/
|
|
14
|
+
export var assignRuleParamCreator = function () {
|
|
15
|
+
var config = [];
|
|
16
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17
|
+
config[_i] = arguments[_i];
|
|
18
|
+
}
|
|
19
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
20
|
+
var params, policyId, tailoringId, ruleId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
21
|
+
return __generator(this, function (_b) {
|
|
22
|
+
params = isAssignRuleObjectParams(config) ? config[0] : ['policyId', 'tailoringId', 'ruleId', 'xRHIDENTITY', 'options'].reduce(function (acc, curr, index) {
|
|
23
|
+
var _a;
|
|
24
|
+
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
25
|
+
}, {});
|
|
26
|
+
policyId = params.policyId, tailoringId = params.tailoringId, ruleId = params.ruleId, xRHIDENTITY = params.xRHIDENTITY, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
27
|
+
localVarPath = "/policies/{policy_id}/tailorings/{tailoring_id}/rules/{rule_id}"
|
|
28
|
+
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)))
|
|
29
|
+
.replace("{".concat("tailoring_id", "}"), encodeURIComponent(String(tailoringId)))
|
|
30
|
+
.replace("{".concat("rule_id", "}"), encodeURIComponent(String(ruleId)));
|
|
31
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32
|
+
localVarRequestOptions = __assign({ method: 'PATCH' }, options);
|
|
33
|
+
localVarHeaderParameter = {};
|
|
34
|
+
localVarQueryParameter = {};
|
|
35
|
+
if (xRHIDENTITY != null) {
|
|
36
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
37
|
+
? xRHIDENTITY
|
|
38
|
+
: JSON.stringify(xRHIDENTITY);
|
|
39
|
+
}
|
|
40
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
42
|
+
return [2 /*return*/, {
|
|
43
|
+
urlObj: localVarUrlObj,
|
|
44
|
+
options: localVarRequestOptions,
|
|
45
|
+
}];
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
export default assignRuleParamCreator;
|
|
50
|
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,YAAY,GAAG,iEAAiE;iBACjF,OAAO,CAAC,WAAI,WAAW,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;iBACjE,OAAO,CAAC,WAAI,cAAc,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;iBACvE,OAAO,CAAC,WAAI,SAAS,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAE7D,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;YACvD,sBAAsB,cAAK,MAAM,EAAE,OAAiB,IAAK,OAAO,CAAC,CAAC;YAClE,uBAAuB,GAAG,EAAS,CAAC;YACpC,sBAAsB,GAAG,EAAS,CAAC;YAEzC,IAAI,WAAW,IAAI,IAAI,EAAE;gBACrB,uBAAuB,CAAC,eAAe,CAAC,GAAG,OAAO,WAAW,KAAK,QAAQ;oBACtE,CAAC,CAAC,WAAW;oBACb,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;aACrC;YAID,eAAe,CAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yBAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;iBAClC,EAAC;;;CACL,CAAA;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
import type { AssignRulesRequest, Rules200Response } from '../types';
|
|
4
|
+
export type AssignRulesParams = {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type { any }
|
|
8
|
+
* @memberof AssignRulesApi
|
|
9
|
+
*/
|
|
10
|
+
policyId: any;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @type { any }
|
|
14
|
+
* @memberof AssignRulesApi
|
|
15
|
+
*/
|
|
16
|
+
tailoringId: any;
|
|
17
|
+
/**
|
|
18
|
+
* For internal use only
|
|
19
|
+
* @type { any }
|
|
20
|
+
* @memberof AssignRulesApi
|
|
21
|
+
*/
|
|
22
|
+
xRHIDENTITY?: any;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type { AssignRulesRequest }
|
|
26
|
+
* @memberof AssignRulesApi
|
|
27
|
+
*/
|
|
28
|
+
assignRulesRequest?: AssignRulesRequest;
|
|
29
|
+
options?: AxiosRequestConfig;
|
|
30
|
+
};
|
|
31
|
+
export type AssignRulesReturnType = AxiosPromise<Rules200Response>;
|
|
32
|
+
/**
|
|
33
|
+
* This feature is exclusively used by the frontend
|
|
34
|
+
* @summary Bulk assign Rules to a Tailoring
|
|
35
|
+
* @param {AssignRulesParams} config with all available params.
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @deprecated
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
export declare const assignRulesParamCreator: (...config: ([AssignRulesParams] | [any, any, any, AssignRulesRequest, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
41
|
+
export default assignRulesParamCreator;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
|
+
// @ts-ignore
|
|
3
|
+
import { DUMMY_BASE_URL, setSearchParams } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
4
|
+
var isAssignRulesObjectParams = function (params) {
|
|
5
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'policyId') && Object.prototype.hasOwnProperty.call(params, 'tailoringId') && true && true;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* This feature is exclusively used by the frontend
|
|
9
|
+
* @summary Bulk assign Rules to a Tailoring
|
|
10
|
+
* @param {AssignRulesParams} config with all available params.
|
|
11
|
+
* @param {*} [options] Override http request option.
|
|
12
|
+
* @deprecated
|
|
13
|
+
* @throws {RequiredError}
|
|
14
|
+
*/
|
|
15
|
+
export var assignRulesParamCreator = function () {
|
|
16
|
+
var config = [];
|
|
17
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
18
|
+
config[_i] = arguments[_i];
|
|
19
|
+
}
|
|
20
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
21
|
+
var params, policyId, tailoringId, xRHIDENTITY, assignRulesRequest, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
22
|
+
return __generator(this, function (_b) {
|
|
23
|
+
params = isAssignRulesObjectParams(config) ? config[0] : ['policyId', 'tailoringId', 'xRHIDENTITY', 'assignRulesRequest', 'options'].reduce(function (acc, curr, index) {
|
|
24
|
+
var _a;
|
|
25
|
+
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
26
|
+
}, {});
|
|
27
|
+
policyId = params.policyId, tailoringId = params.tailoringId, xRHIDENTITY = params.xRHIDENTITY, assignRulesRequest = params.assignRulesRequest, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
28
|
+
localVarPath = "/policies/{policy_id}/tailorings/{tailoring_id}/rules"
|
|
29
|
+
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)))
|
|
30
|
+
.replace("{".concat("tailoring_id", "}"), encodeURIComponent(String(tailoringId)));
|
|
31
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32
|
+
localVarRequestOptions = __assign({ method: 'POST' }, options);
|
|
33
|
+
localVarHeaderParameter = {};
|
|
34
|
+
localVarQueryParameter = {};
|
|
35
|
+
if (xRHIDENTITY != null) {
|
|
36
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
37
|
+
? xRHIDENTITY
|
|
38
|
+
: JSON.stringify(xRHIDENTITY);
|
|
39
|
+
}
|
|
40
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
41
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
42
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
43
|
+
return [2 /*return*/, {
|
|
44
|
+
urlObj: localVarUrlObj,
|
|
45
|
+
options: localVarRequestOptions,
|
|
46
|
+
serializeData: assignRulesRequest,
|
|
47
|
+
}];
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
export default assignRulesParamCreator;
|
|
52
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../AssignRules/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AAwCjU,IAAM,yBAAyB,GAAG,UAAC,MAAuC;IACxE,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,IAAI,IAAI,IAAI,IAAI,CAAA;AACvK,CAAC,CAAA;AACD;;;;;;;EAOE;AACF,MAAM,CAAC,IAAM,uBAAuB,GAAG;IAAO,gBAA0F;SAA1F,UAA0F,EAA1F,qBAA0F,EAA1F,IAA0F;QAA1F,2BAA0F;;;;;YAC9H,MAAM,GAAG,yBAAyB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,SAAS,CAAC,CAAC,MAAM,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AE,kBAAkB;iBACpC,EAAC;;;CACL,CAAA;AAED,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
import type { System200Response } from '../types';
|
|
4
|
+
export type AssignSystemParams = {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type { any }
|
|
8
|
+
* @memberof AssignSystemApi
|
|
9
|
+
*/
|
|
10
|
+
systemId: any;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @type { any }
|
|
14
|
+
* @memberof AssignSystemApi
|
|
15
|
+
*/
|
|
16
|
+
policyId: any;
|
|
17
|
+
/**
|
|
18
|
+
* For internal use only
|
|
19
|
+
* @type { any }
|
|
20
|
+
* @memberof AssignSystemApi
|
|
21
|
+
*/
|
|
22
|
+
xRHIDENTITY?: any;
|
|
23
|
+
options?: AxiosRequestConfig;
|
|
24
|
+
};
|
|
25
|
+
export type AssignSystemReturnType = AxiosPromise<System200Response>;
|
|
26
|
+
/**
|
|
27
|
+
* Assigns a System to a Policy
|
|
28
|
+
* @summary Assign a System to a Policy
|
|
29
|
+
* @param {AssignSystemParams} config with all available params.
|
|
30
|
+
* @param {*} [options] Override http request option.
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
*/
|
|
33
|
+
export declare const assignSystemParamCreator: (...config: ([AssignSystemParams] | [any, any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
34
|
+
export default assignSystemParamCreator;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
|
+
// @ts-ignore
|
|
3
|
+
import { DUMMY_BASE_URL, setSearchParams } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
4
|
+
var isAssignSystemObjectParams = function (params) {
|
|
5
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'systemId') && Object.prototype.hasOwnProperty.call(params, 'policyId') && true;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Assigns a System to a Policy
|
|
9
|
+
* @summary Assign a System to a Policy
|
|
10
|
+
* @param {AssignSystemParams} config with all available params.
|
|
11
|
+
* @param {*} [options] Override http request option.
|
|
12
|
+
* @throws {RequiredError}
|
|
13
|
+
*/
|
|
14
|
+
export var assignSystemParamCreator = function () {
|
|
15
|
+
var config = [];
|
|
16
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17
|
+
config[_i] = arguments[_i];
|
|
18
|
+
}
|
|
19
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
20
|
+
var params, systemId, policyId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
21
|
+
return __generator(this, function (_b) {
|
|
22
|
+
params = isAssignSystemObjectParams(config) ? config[0] : ['systemId', 'policyId', 'xRHIDENTITY', 'options'].reduce(function (acc, curr, index) {
|
|
23
|
+
var _a;
|
|
24
|
+
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
25
|
+
}, {});
|
|
26
|
+
systemId = params.systemId, policyId = params.policyId, xRHIDENTITY = params.xRHIDENTITY, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
27
|
+
localVarPath = "/policies/{policy_id}/systems/{system_id}"
|
|
28
|
+
.replace("{".concat("system_id", "}"), encodeURIComponent(String(systemId)))
|
|
29
|
+
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
|
|
30
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31
|
+
localVarRequestOptions = __assign({ method: 'PATCH' }, options);
|
|
32
|
+
localVarHeaderParameter = {};
|
|
33
|
+
localVarQueryParameter = {};
|
|
34
|
+
if (xRHIDENTITY != null) {
|
|
35
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
36
|
+
? xRHIDENTITY
|
|
37
|
+
: JSON.stringify(xRHIDENTITY);
|
|
38
|
+
}
|
|
39
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
41
|
+
return [2 /*return*/, {
|
|
42
|
+
urlObj: localVarUrlObj,
|
|
43
|
+
options: localVarRequestOptions,
|
|
44
|
+
}];
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
export default assignSystemParamCreator;
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../AssignSystem/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AAkCjU,IAAM,0BAA0B,GAAG,UAAC,MAAwC;IAC1E,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,IAAI,CAAA;AAC5J,CAAC,CAAA;AACD;;;;;;EAME;AACF,MAAM,CAAC,IAAM,wBAAwB,GAAG;IAAO,gBAAuE;SAAvE,UAAuE,EAAvE,qBAAuE,EAAvE,IAAuE;QAAvE,2BAAuE;;;;;YAC5G,MAAM,GAAG,0BAA0B,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAAK,OAAA,uBAAM,GA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ascript-clients-shared/dist/common';
|
|
3
|
+
import type { AssignRulesRequest, Systems200Response } from '../types';
|
|
4
|
+
export type AssignSystemsParams = {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type { any }
|
|
8
|
+
* @memberof AssignSystemsApi
|
|
9
|
+
*/
|
|
10
|
+
policyId: any;
|
|
11
|
+
/**
|
|
12
|
+
* For internal use only
|
|
13
|
+
* @type { any }
|
|
14
|
+
* @memberof AssignSystemsApi
|
|
15
|
+
*/
|
|
16
|
+
xRHIDENTITY?: any;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @type { AssignRulesRequest }
|
|
20
|
+
* @memberof AssignSystemsApi
|
|
21
|
+
*/
|
|
22
|
+
assignRulesRequest?: AssignRulesRequest;
|
|
23
|
+
options?: AxiosRequestConfig;
|
|
24
|
+
};
|
|
25
|
+
export type AssignSystemsReturnType = AxiosPromise<Systems200Response>;
|
|
26
|
+
/**
|
|
27
|
+
* This feature is exclusively used by the frontend
|
|
28
|
+
* @summary Bulk assign Systems to a Policy
|
|
29
|
+
* @param {AssignSystemsParams} config with all available params.
|
|
30
|
+
* @param {*} [options] Override http request option.
|
|
31
|
+
* @deprecated
|
|
32
|
+
* @throws {RequiredError}
|
|
33
|
+
*/
|
|
34
|
+
export declare const assignSystemsParamCreator: (...config: ([AssignSystemsParams] | [any, any, AssignRulesRequest, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
35
|
+
export default assignSystemsParamCreator;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
|
+
// @ts-ignore
|
|
3
|
+
import { DUMMY_BASE_URL, setSearchParams } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
4
|
+
var isAssignSystemsObjectParams = function (params) {
|
|
5
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'policyId') && true && true;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* This feature is exclusively used by the frontend
|
|
9
|
+
* @summary Bulk assign Systems to a Policy
|
|
10
|
+
* @param {AssignSystemsParams} config with all available params.
|
|
11
|
+
* @param {*} [options] Override http request option.
|
|
12
|
+
* @deprecated
|
|
13
|
+
* @throws {RequiredError}
|
|
14
|
+
*/
|
|
15
|
+
export var assignSystemsParamCreator = function () {
|
|
16
|
+
var config = [];
|
|
17
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
18
|
+
config[_i] = arguments[_i];
|
|
19
|
+
}
|
|
20
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
21
|
+
var params, policyId, xRHIDENTITY, assignRulesRequest, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
22
|
+
return __generator(this, function (_b) {
|
|
23
|
+
params = isAssignSystemsObjectParams(config) ? config[0] : ['policyId', 'xRHIDENTITY', 'assignRulesRequest', 'options'].reduce(function (acc, curr, index) {
|
|
24
|
+
var _a;
|
|
25
|
+
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
26
|
+
}, {});
|
|
27
|
+
policyId = params.policyId, xRHIDENTITY = params.xRHIDENTITY, assignRulesRequest = params.assignRulesRequest, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
28
|
+
localVarPath = "/policies/{policy_id}/systems"
|
|
29
|
+
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
|
|
30
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31
|
+
localVarRequestOptions = __assign({ method: 'POST' }, options);
|
|
32
|
+
localVarHeaderParameter = {};
|
|
33
|
+
localVarQueryParameter = {};
|
|
34
|
+
if (xRHIDENTITY != null) {
|
|
35
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
36
|
+
? xRHIDENTITY
|
|
37
|
+
: JSON.stringify(xRHIDENTITY);
|
|
38
|
+
}
|
|
39
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
40
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
42
|
+
return [2 /*return*/, {
|
|
43
|
+
urlObj: localVarUrlObj,
|
|
44
|
+
options: localVarRequestOptions,
|
|
45
|
+
serializeData: assignRulesRequest,
|
|
46
|
+
}];
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
export default assignSystemsParamCreator;
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../AssignSystems/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AAkCjU,IAAM,2BAA2B,GAAG,UAAC,MAAyC;IAC5E,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,IAAI,IAAI,IAAI,CAAA;AACxG,CAAC,CAAA;AACD;;;;;;;EAOE;AACF,MAAM,CAAC,IAAM,yBAAyB,GAAG;IAAO,gBAAuF;SAAvF,UAAuF,EAAvF,qBAAuF,EAAvF,IAAuF;QAAvF,2BAAuF;;;;;YAC7H,MAAM,GAAG,2BAA2B,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,aAAa,EAAE,oBAAoB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI,EAAE,KAAK;;gBAAK,OAAA,uBAAM,GAAG,gBAAG,IAAI,IAAG,MAAM,CAAC,KAAK,CAAC,OAAG;YAAnC,CAAmC,EAAE,EAAE,CAAwB,CAAC;YACnN,QAAQ,GAAoD,MAAM,SAA1D,EAAE,WAAW,GAAuC,MAAM,YAA7C,EAAE,kBAAkB,GAAmB,MAAM,mBAAzB,EAAE,KAAiB,MAAM,QAAX,EAAZ,OAAO,mBAAG,EAAE,KAAA,CAAY;YACrE,YAAY,GAAG,+BAA+B;iBAC/C,OAAO,CAAC,WAAI,WAAW,MAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAEjE,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;YACvD,sBAAsB,cAAK,MAAM,EAAE,MAAgB,IAAK,OAAO,CAAC,CAAC;YACjE,uBAAuB,GAAG,EAAS,CAAC;YACpC,sBAAsB,GAAG,EAAS,CAAC;YAEzC,IAAI,WAAW,IAAI,IAAI,EAAE;gBACrB,uBAAuB,CAAC,eAAe,CAAC,GAAG,OAAO,WAAW,KAAK,QAAQ;oBACtE,CAAC,CAAC,WAAW;oBACb,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;aACrC;YAID,uBAAuB,CAAC,cAAc,CAAC,GAAG,0BAA0B,CAAC;YAErE,eAAe,CAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yBAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;oBAC/B,aAAa,EAAE,kBAAkB;iBACpC,EAAC;;;CACL,CAAA;AAED,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
import type { CreatePolicy201Response, Policy } from '../types';
|
|
4
|
+
export type CreatePolicyParams = {
|
|
5
|
+
/**
|
|
6
|
+
* For internal use only
|
|
7
|
+
* @type { any }
|
|
8
|
+
* @memberof CreatePolicyApi
|
|
9
|
+
*/
|
|
10
|
+
xRHIDENTITY?: any;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @type { Policy }
|
|
14
|
+
* @memberof CreatePolicyApi
|
|
15
|
+
*/
|
|
16
|
+
policy?: Policy;
|
|
17
|
+
options?: AxiosRequestConfig;
|
|
18
|
+
};
|
|
19
|
+
export type CreatePolicyReturnType = AxiosPromise<CreatePolicy201Response>;
|
|
20
|
+
/**
|
|
21
|
+
* Create a Policy with the provided attributes
|
|
22
|
+
* @summary Create a Policy
|
|
23
|
+
* @param {CreatePolicyParams} config with all available params.
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
*/
|
|
27
|
+
export declare const createPolicyParamCreator: (...config: ([CreatePolicyParams] | [any, Policy, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
28
|
+
export default createPolicyParamCreator;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
|
+
// @ts-ignore
|
|
3
|
+
import { DUMMY_BASE_URL, setSearchParams } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
4
|
+
var isCreatePolicyObjectParams = function (params) {
|
|
5
|
+
return params.length === 1 && true && true;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Create a Policy with the provided attributes
|
|
9
|
+
* @summary Create a Policy
|
|
10
|
+
* @param {CreatePolicyParams} config with all available params.
|
|
11
|
+
* @param {*} [options] Override http request option.
|
|
12
|
+
* @throws {RequiredError}
|
|
13
|
+
*/
|
|
14
|
+
export var createPolicyParamCreator = function () {
|
|
15
|
+
var config = [];
|
|
16
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17
|
+
config[_i] = arguments[_i];
|
|
18
|
+
}
|
|
19
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
20
|
+
var params, xRHIDENTITY, policy, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
21
|
+
return __generator(this, function (_b) {
|
|
22
|
+
params = isCreatePolicyObjectParams(config) ? config[0] : ['xRHIDENTITY', 'policy', 'options'].reduce(function (acc, curr, index) {
|
|
23
|
+
var _a;
|
|
24
|
+
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
25
|
+
}, {});
|
|
26
|
+
xRHIDENTITY = params.xRHIDENTITY, policy = params.policy, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
27
|
+
localVarPath = "/policies";
|
|
28
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29
|
+
localVarRequestOptions = __assign({ method: 'POST' }, options);
|
|
30
|
+
localVarHeaderParameter = {};
|
|
31
|
+
localVarQueryParameter = {};
|
|
32
|
+
if (xRHIDENTITY != null) {
|
|
33
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
34
|
+
? xRHIDENTITY
|
|
35
|
+
: JSON.stringify(xRHIDENTITY);
|
|
36
|
+
}
|
|
37
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
38
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
40
|
+
return [2 /*return*/, {
|
|
41
|
+
urlObj: localVarUrlObj,
|
|
42
|
+
options: localVarRequestOptions,
|
|
43
|
+
serializeData: policy,
|
|
44
|
+
}];
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
export default createPolicyParamCreator;
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../CreatePolicy/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO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,CAAC;YAErE,eAAe,CAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;YACxD,sBAAsB,CAAC,OAAO,yBAAO,uBAAuB,GAAK,OAAO,CAAC,OAAO,CAAC,CAAC;YAElF,sBAAO;oBACH,MAAM,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;oBAC/B,aAAa,EAAE,MAAM;iBACxB,EAAC;;;CACL,CAAA;AAED,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
import type { CreateTailoring201Response, TailoringCreate } from '../types';
|
|
4
|
+
export type CreateTailoringParams = {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type { any }
|
|
8
|
+
* @memberof CreateTailoringApi
|
|
9
|
+
*/
|
|
10
|
+
policyId: any;
|
|
11
|
+
/**
|
|
12
|
+
* For internal use only
|
|
13
|
+
* @type { any }
|
|
14
|
+
* @memberof CreateTailoringApi
|
|
15
|
+
*/
|
|
16
|
+
xRHIDENTITY?: any;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @type { TailoringCreate }
|
|
20
|
+
* @memberof CreateTailoringApi
|
|
21
|
+
*/
|
|
22
|
+
tailoringCreate?: TailoringCreate;
|
|
23
|
+
options?: AxiosRequestConfig;
|
|
24
|
+
};
|
|
25
|
+
export type CreateTailoringReturnType = AxiosPromise<CreateTailoring201Response>;
|
|
26
|
+
/**
|
|
27
|
+
* Create a Tailoring with the provided attributes (for ImageBuilder only)
|
|
28
|
+
* @summary Create a Tailoring
|
|
29
|
+
* @param {CreateTailoringParams} config with all available params.
|
|
30
|
+
* @param {*} [options] Override http request option.
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
*/
|
|
33
|
+
export declare const createTailoringParamCreator: (...config: ([CreateTailoringParams] | [any, any, TailoringCreate, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
34
|
+
export default createTailoringParamCreator;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
|
+
// @ts-ignore
|
|
3
|
+
import { DUMMY_BASE_URL, setSearchParams } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
4
|
+
var isCreateTailoringObjectParams = function (params) {
|
|
5
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'policyId') && true && true;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Create a Tailoring with the provided attributes (for ImageBuilder only)
|
|
9
|
+
* @summary Create a Tailoring
|
|
10
|
+
* @param {CreateTailoringParams} config with all available params.
|
|
11
|
+
* @param {*} [options] Override http request option.
|
|
12
|
+
* @throws {RequiredError}
|
|
13
|
+
*/
|
|
14
|
+
export var createTailoringParamCreator = function () {
|
|
15
|
+
var config = [];
|
|
16
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17
|
+
config[_i] = arguments[_i];
|
|
18
|
+
}
|
|
19
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
20
|
+
var params, policyId, xRHIDENTITY, tailoringCreate, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
21
|
+
return __generator(this, function (_b) {
|
|
22
|
+
params = isCreateTailoringObjectParams(config) ? config[0] : ['policyId', 'xRHIDENTITY', 'tailoringCreate', 'options'].reduce(function (acc, curr, index) {
|
|
23
|
+
var _a;
|
|
24
|
+
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
25
|
+
}, {});
|
|
26
|
+
policyId = params.policyId, xRHIDENTITY = params.xRHIDENTITY, tailoringCreate = params.tailoringCreate, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
27
|
+
localVarPath = "/policies/{policy_id}/tailorings"
|
|
28
|
+
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
|
|
29
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30
|
+
localVarRequestOptions = __assign({ method: 'POST' }, options);
|
|
31
|
+
localVarHeaderParameter = {};
|
|
32
|
+
localVarQueryParameter = {};
|
|
33
|
+
if (xRHIDENTITY != null) {
|
|
34
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
35
|
+
? xRHIDENTITY
|
|
36
|
+
: JSON.stringify(xRHIDENTITY);
|
|
37
|
+
}
|
|
38
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
39
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
41
|
+
return [2 /*return*/, {
|
|
42
|
+
urlObj: localVarUrlObj,
|
|
43
|
+
options: localVarRequestOptions,
|
|
44
|
+
serializeData: tailoringCreate,
|
|
45
|
+
}];
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
export default createTailoringParamCreator;
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../CreateTailoring/index.ts"],"names":[],"mappings":";AAEA,aAAa;AACb,OAAO,EAAmD,cAAc,EAAuG,eAAe,EAA8D,MAAM,8DAA8D,CAAC;AAkCjU,IAAM,6BAA6B,GAAG,UAAC,MAA2C;IAChF,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,IAAI,IAAI,IAAI,CAAA;AACxG,CAAC,CAAA;AACD;;;;;;EAME;AACF,MAAM,CAAC,IAAM,2BAA2B,GAAG;IAAO,gBAAsF;SAAtF,UAAsF,EAAtF,qBAAsF,EAAtF,IAAsF;QAAtF,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,EAAE,cAAc;oBACtB,OAAO,EAAE,sBAAsB;oBAC/B,aAAa,EAAE,eAAe;iBACjC,EAAC;;;CACL,CAAA;AAED,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { RequestArgs } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
3
|
+
import type { CreatePolicy201Response } from '../types';
|
|
4
|
+
export type DeletePolicyParams = {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @type { any }
|
|
8
|
+
* @memberof DeletePolicyApi
|
|
9
|
+
*/
|
|
10
|
+
policyId: any;
|
|
11
|
+
/**
|
|
12
|
+
* For internal use only
|
|
13
|
+
* @type { any }
|
|
14
|
+
* @memberof DeletePolicyApi
|
|
15
|
+
*/
|
|
16
|
+
xRHIDENTITY?: any;
|
|
17
|
+
options?: AxiosRequestConfig;
|
|
18
|
+
};
|
|
19
|
+
export type DeletePolicyReturnType = AxiosPromise<CreatePolicy201Response>;
|
|
20
|
+
/**
|
|
21
|
+
* Deletes a Policy
|
|
22
|
+
* @summary Delete a Policy
|
|
23
|
+
* @param {DeletePolicyParams} config with all available params.
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
*/
|
|
27
|
+
export declare const deletePolicyParamCreator: (...config: ([DeletePolicyParams] | [any, any, AxiosRequestConfig])) => Promise<RequestArgs>;
|
|
28
|
+
export default deletePolicyParamCreator;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
|
+
// @ts-ignore
|
|
3
|
+
import { DUMMY_BASE_URL, setSearchParams } from '@redhat-cloud-services/javascript-clients-shared/dist/common';
|
|
4
|
+
var isDeletePolicyObjectParams = function (params) {
|
|
5
|
+
return params.length === 1 && Object.prototype.hasOwnProperty.call(params, 'policyId') && true;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Deletes a Policy
|
|
9
|
+
* @summary Delete a Policy
|
|
10
|
+
* @param {DeletePolicyParams} config with all available params.
|
|
11
|
+
* @param {*} [options] Override http request option.
|
|
12
|
+
* @throws {RequiredError}
|
|
13
|
+
*/
|
|
14
|
+
export var deletePolicyParamCreator = function () {
|
|
15
|
+
var config = [];
|
|
16
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17
|
+
config[_i] = arguments[_i];
|
|
18
|
+
}
|
|
19
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
20
|
+
var params, policyId, xRHIDENTITY, _a, options, localVarPath, localVarUrlObj, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter;
|
|
21
|
+
return __generator(this, function (_b) {
|
|
22
|
+
params = isDeletePolicyObjectParams(config) ? config[0] : ['policyId', 'xRHIDENTITY', 'options'].reduce(function (acc, curr, index) {
|
|
23
|
+
var _a;
|
|
24
|
+
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = config[index], _a)));
|
|
25
|
+
}, {});
|
|
26
|
+
policyId = params.policyId, xRHIDENTITY = params.xRHIDENTITY, _a = params.options, options = _a === void 0 ? {} : _a;
|
|
27
|
+
localVarPath = "/policies/{policy_id}"
|
|
28
|
+
.replace("{".concat("policy_id", "}"), encodeURIComponent(String(policyId)));
|
|
29
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30
|
+
localVarRequestOptions = __assign({ method: 'DELETE' }, options);
|
|
31
|
+
localVarHeaderParameter = {};
|
|
32
|
+
localVarQueryParameter = {};
|
|
33
|
+
if (xRHIDENTITY != null) {
|
|
34
|
+
localVarHeaderParameter['X-RH-IDENTITY'] = typeof xRHIDENTITY === 'string'
|
|
35
|
+
? xRHIDENTITY
|
|
36
|
+
: JSON.stringify(xRHIDENTITY);
|
|
37
|
+
}
|
|
38
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
39
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
40
|
+
return [2 /*return*/, {
|
|
41
|
+
urlObj: localVarUrlObj,
|
|
42
|
+
options: localVarRequestOptions,
|
|
43
|
+
}];
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
export default deletePolicyParamCreator;
|
|
48
|
+
//# sourceMappingURL=index.js.map
|