@nutanix-scratch/security-js-client 4.0.1-beta.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/LICENSE.txt +202 -0
- package/README.md +217 -0
- package/dist/Ntnx-Security-js-client-prod.js +1 -0
- package/dist/Ntnx-Security-js-client.js +1246 -0
- package/dist/es/ApiClient.d.ts +166 -0
- package/dist/es/ApiClient.js +1271 -0
- package/dist/es/Paginable.d.ts +95 -0
- package/dist/es/Paginable.js +287 -0
- package/dist/es/apis/approvalpolicies-endpoints.d.ts +90 -0
- package/dist/es/apis/approvalpolicies-endpoints.js +295 -0
- package/dist/es/apis/stigs-endpoints.d.ts +108 -0
- package/dist/es/apis/stigs-endpoints.js +202 -0
- package/dist/es/index.d.ts +158 -0
- package/dist/es/index.js +628 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +64 -0
- package/dist/es/models/common/v1/config/Flag.js +319 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +71 -0
- package/dist/es/models/common/v1/config/KVPair.js +378 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/es/models/common/v1/config/Message.d.ts +87 -0
- package/dist/es/models/common/v1/config/Message.js +386 -0
- package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/es/models/common/v1/config/MessageSeverity.js +91 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +52 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.js +275 -0
- package/dist/es/models/common/v1/response/ApiLink.d.ts +64 -0
- package/dist/es/models/common/v1/response/ApiLink.js +312 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +133 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +482 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +48 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +310 -0
- package/dist/es/models/iam/v4/authn/BucketsAccessKey.d.ts +166 -0
- package/dist/es/models/iam/v4/authn/BucketsAccessKey.js +667 -0
- package/dist/es/models/iam/v4/authn/BucketsAccessKeyStatusType.d.ts +19 -0
- package/dist/es/models/iam/v4/authn/BucketsAccessKeyStatusType.js +91 -0
- package/dist/es/models/iam/v4/authn/CreationType.d.ts +19 -0
- package/dist/es/models/iam/v4/authn/CreationType.js +91 -0
- package/dist/es/models/iam/v4/authn/User.d.ts +318 -0
- package/dist/es/models/iam/v4/authn/User.js +1140 -0
- package/dist/es/models/iam/v4/authn/UserStatusType.d.ts +19 -0
- package/dist/es/models/iam/v4/authn/UserStatusType.js +85 -0
- package/dist/es/models/iam/v4/authn/UserType.d.ts +19 -0
- package/dist/es/models/iam/v4/authn/UserType.js +103 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +52 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +287 -0
- package/dist/es/models/security/v4/common/Cluster.d.ts +64 -0
- package/dist/es/models/security/v4/common/Cluster.js +311 -0
- package/dist/es/models/security/v4/common/ClusterProjection.d.ts +10 -0
- package/dist/es/models/security/v4/common/ClusterProjection.js +150 -0
- package/dist/es/models/security/v4/common/Timescale.d.ts +19 -0
- package/dist/es/models/security/v4/common/Timescale.js +103 -0
- package/dist/es/models/security/v4/config/AddPublicKeyApiResponse.d.ts +102 -0
- package/dist/es/models/security/v4/config/AddPublicKeyApiResponse.js +343 -0
- package/dist/es/models/security/v4/config/ChangePasswordSpec.d.ts +74 -0
- package/dist/es/models/security/v4/config/ChangePasswordSpec.js +317 -0
- package/dist/es/models/security/v4/config/ChangeSystemUserPasswordApiResponse.d.ts +102 -0
- package/dist/es/models/security/v4/config/ChangeSystemUserPasswordApiResponse.js +343 -0
- package/dist/es/models/security/v4/config/DeletePublicKeyApiResponse.d.ts +99 -0
- package/dist/es/models/security/v4/config/DeletePublicKeyApiResponse.js +343 -0
- package/dist/es/models/security/v4/config/HardeningStatus.d.ts +154 -0
- package/dist/es/models/security/v4/config/HardeningStatus.js +641 -0
- package/dist/es/models/security/v4/config/HardeningStatusProjection.d.ts +53 -0
- package/dist/es/models/security/v4/config/HardeningStatusProjection.js +358 -0
- package/dist/es/models/security/v4/config/HardeningVisibilitySetting.d.ts +121 -0
- package/dist/es/models/security/v4/config/HardeningVisibilitySetting.js +539 -0
- package/dist/es/models/security/v4/config/PasswordStatus.d.ts +19 -0
- package/dist/es/models/security/v4/config/PasswordStatus.js +97 -0
- package/dist/es/models/security/v4/config/PasswordVerificationStatus.d.ts +19 -0
- package/dist/es/models/security/v4/config/PasswordVerificationStatus.js +91 -0
- package/dist/es/models/security/v4/config/PublicKey.d.ts +80 -0
- package/dist/es/models/security/v4/config/PublicKey.js +373 -0
- package/dist/es/models/security/v4/config/PublicKeyProjection.d.ts +51 -0
- package/dist/es/models/security/v4/config/PublicKeyProjection.js +309 -0
- package/dist/es/models/security/v4/config/Schedule.d.ts +19 -0
- package/dist/es/models/security/v4/config/Schedule.js +97 -0
- package/dist/es/models/security/v4/config/SystemType.d.ts +19 -0
- package/dist/es/models/security/v4/config/SystemType.js +97 -0
- package/dist/es/models/security/v4/config/SystemUserPassword.d.ts +110 -0
- package/dist/es/models/security/v4/config/SystemUserPassword.js +500 -0
- package/dist/es/models/security/v4/config/SystemUserPasswordProjection.d.ts +49 -0
- package/dist/es/models/security/v4/config/SystemUserPasswordProjection.js +330 -0
- package/dist/es/models/security/v4/config/UpdateHardeningStatusesApiResponse.d.ts +99 -0
- package/dist/es/models/security/v4/config/UpdateHardeningStatusesApiResponse.js +343 -0
- package/dist/es/models/security/v4/config/UpdateHardeningVisibilitySettingApiResponse.d.ts +99 -0
- package/dist/es/models/security/v4/config/UpdateHardeningVisibilitySettingApiResponse.js +365 -0
- package/dist/es/models/security/v4/config/VerifyPassword.d.ts +36 -0
- package/dist/es/models/security/v4/config/VerifyPassword.js +272 -0
- package/dist/es/models/security/v4/config/VerifyPasswordSpec.d.ts +62 -0
- package/dist/es/models/security/v4/config/VerifyPasswordSpec.js +279 -0
- package/dist/es/models/security/v4/config/VerifySystemUserPasswordApiResponse.d.ts +99 -0
- package/dist/es/models/security/v4/config/VerifySystemUserPasswordApiResponse.js +343 -0
- package/dist/es/models/security/v4/error/AppMessage.d.ts +117 -0
- package/dist/es/models/security/v4/error/AppMessage.js +464 -0
- package/dist/es/models/security/v4/error/ErrorResponse.d.ts +52 -0
- package/dist/es/models/security/v4/error/ErrorResponse.js +330 -0
- package/dist/es/models/security/v4/error/SchemaValidationError.d.ts +108 -0
- package/dist/es/models/security/v4/error/SchemaValidationError.js +440 -0
- package/dist/es/models/security/v4/error/SchemaValidationErrorMessage.d.ts +76 -0
- package/dist/es/models/security/v4/error/SchemaValidationErrorMessage.js +350 -0
- package/dist/es/models/security/v4/management/ApprovalPolicy.d.ts +204 -0
- package/dist/es/models/security/v4/management/ApprovalPolicy.js +543 -0
- package/dist/es/models/security/v4/management/ApproverGroup.d.ts +160 -0
- package/dist/es/models/security/v4/management/ApproverGroup.js +385 -0
- package/dist/es/models/security/v4/management/AssociatePoliciesApiResponse.d.ts +99 -0
- package/dist/es/models/security/v4/management/AssociatePoliciesApiResponse.js +343 -0
- package/dist/es/models/security/v4/management/CreateApprovalPolicyApiResponse.d.ts +99 -0
- package/dist/es/models/security/v4/management/CreateApprovalPolicyApiResponse.js +343 -0
- package/dist/es/models/security/v4/management/EventType.d.ts +19 -0
- package/dist/es/models/security/v4/management/EventType.js +85 -0
- package/dist/es/models/security/v4/management/GetApprovalPolicyApiResponse.d.ts +99 -0
- package/dist/es/models/security/v4/management/GetApprovalPolicyApiResponse.js +343 -0
- package/dist/es/models/security/v4/management/ListApprovalPoliciesApiResponse.d.ts +99 -0
- package/dist/es/models/security/v4/management/ListApprovalPoliciesApiResponse.js +365 -0
- package/dist/es/models/security/v4/management/PolicyType.d.ts +19 -0
- package/dist/es/models/security/v4/management/PolicyType.js +79 -0
- package/dist/es/models/security/v4/management/SecuredEntityType.d.ts +19 -0
- package/dist/es/models/security/v4/management/SecuredEntityType.js +85 -0
- package/dist/es/models/security/v4/management/SecuredPolicy.d.ts +77 -0
- package/dist/es/models/security/v4/management/SecuredPolicy.js +323 -0
- package/dist/es/models/security/v4/management/SecurityValidationSpec.d.ts +160 -0
- package/dist/es/models/security/v4/management/SecurityValidationSpec.js +582 -0
- package/dist/es/models/security/v4/management/TriggerApprovalPolicyValidationApiResponse.d.ts +99 -0
- package/dist/es/models/security/v4/management/TriggerApprovalPolicyValidationApiResponse.js +343 -0
- package/dist/es/models/security/v4/management/TriggerScanApiResponse.d.ts +99 -0
- package/dist/es/models/security/v4/management/TriggerScanApiResponse.js +343 -0
- package/dist/es/models/security/v4/management/UpdateApprovalPolicyApiResponse.d.ts +99 -0
- package/dist/es/models/security/v4/management/UpdateApprovalPolicyApiResponse.js +343 -0
- package/dist/es/models/security/v4/report/IssueSummary.d.ts +71 -0
- package/dist/es/models/security/v4/report/IssueSummary.js +326 -0
- package/dist/es/models/security/v4/report/ListStigSummariesApiResponse.d.ts +100 -0
- package/dist/es/models/security/v4/report/ListStigSummariesApiResponse.js +370 -0
- package/dist/es/models/security/v4/report/ListStigsApiResponse.d.ts +100 -0
- package/dist/es/models/security/v4/report/ListStigsApiResponse.js +370 -0
- package/dist/es/models/security/v4/report/Severity.d.ts +19 -0
- package/dist/es/models/security/v4/report/Severity.js +97 -0
- package/dist/es/models/security/v4/report/SoftwareType.d.ts +19 -0
- package/dist/es/models/security/v4/report/SoftwareType.js +91 -0
- package/dist/es/models/security/v4/report/Stig.d.ts +143 -0
- package/dist/es/models/security/v4/report/Stig.js +623 -0
- package/dist/es/models/security/v4/report/StigProjection.d.ts +10 -0
- package/dist/es/models/security/v4/report/StigProjection.js +154 -0
- package/dist/es/models/security/v4/report/StigStatus.d.ts +19 -0
- package/dist/es/models/security/v4/report/StigStatus.js +91 -0
- package/dist/es/models/security/v4/report/StigSummary.d.ts +73 -0
- package/dist/es/models/security/v4/report/StigSummary.js +382 -0
- package/dist/es/models/security/v4/report/StigSummaryProjection.d.ts +46 -0
- package/dist/es/models/security/v4/report/StigSummaryProjection.js +298 -0
- package/dist/es/models/security/v4/report/Summary.d.ts +149 -0
- package/dist/es/models/security/v4/report/Summary.js +490 -0
- package/dist/es/models/security/v4/report/SummaryProjection.d.ts +97 -0
- package/dist/es/models/security/v4/report/SummaryProjection.js +329 -0
- package/dist/es/models/security/v4/report/TrendValue.d.ts +64 -0
- package/dist/es/models/security/v4/report/TrendValue.js +313 -0
- package/dist/es/models/security/v4/report/Vulnerability.d.ts +116 -0
- package/dist/es/models/security/v4/report/Vulnerability.js +543 -0
- package/dist/es/models/security/v4/report/VulnerabilityProjection.d.ts +10 -0
- package/dist/es/models/security/v4/report/VulnerabilityProjection.js +153 -0
- package/dist/es/models/security/v4/report/VulnerabilitySummary.d.ts +72 -0
- package/dist/es/models/security/v4/report/VulnerabilitySummary.js +393 -0
- package/dist/es/models/security/v4/report/VulnerabilitySummaryProjection.d.ts +10 -0
- package/dist/es/models/security/v4/report/VulnerabilitySummaryProjection.js +153 -0
- package/dist/es/models/validation/ValidationError.d.ts +13 -0
- package/dist/es/models/validation/ValidationError.js +60 -0
- package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/es/models/validation/ValidationScopes.js +38 -0
- package/dist/es/utils/ValidationUtils.d.ts +13 -0
- package/dist/es/utils/ValidationUtils.js +85 -0
- package/dist/lib/ApiClient.d.ts +166 -0
- package/dist/lib/ApiClient.js +1271 -0
- package/dist/lib/Paginable.d.ts +95 -0
- package/dist/lib/Paginable.js +287 -0
- package/dist/lib/apis/approvalpolicies-endpoints.d.ts +90 -0
- package/dist/lib/apis/approvalpolicies-endpoints.js +295 -0
- package/dist/lib/apis/stigs-endpoints.d.ts +108 -0
- package/dist/lib/apis/stigs-endpoints.js +202 -0
- package/dist/lib/index.d.ts +158 -0
- package/dist/lib/index.js +628 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +64 -0
- package/dist/lib/models/common/v1/config/Flag.js +319 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +71 -0
- package/dist/lib/models/common/v1/config/KVPair.js +378 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +87 -0
- package/dist/lib/models/common/v1/config/Message.js +386 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.js +91 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +52 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +275 -0
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +64 -0
- package/dist/lib/models/common/v1/response/ApiLink.js +312 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +133 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +482 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +48 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +310 -0
- package/dist/lib/models/iam/v4/authn/BucketsAccessKey.d.ts +166 -0
- package/dist/lib/models/iam/v4/authn/BucketsAccessKey.js +667 -0
- package/dist/lib/models/iam/v4/authn/BucketsAccessKeyStatusType.d.ts +19 -0
- package/dist/lib/models/iam/v4/authn/BucketsAccessKeyStatusType.js +91 -0
- package/dist/lib/models/iam/v4/authn/CreationType.d.ts +19 -0
- package/dist/lib/models/iam/v4/authn/CreationType.js +91 -0
- package/dist/lib/models/iam/v4/authn/User.d.ts +318 -0
- package/dist/lib/models/iam/v4/authn/User.js +1140 -0
- package/dist/lib/models/iam/v4/authn/UserStatusType.d.ts +19 -0
- package/dist/lib/models/iam/v4/authn/UserStatusType.js +85 -0
- package/dist/lib/models/iam/v4/authn/UserType.d.ts +19 -0
- package/dist/lib/models/iam/v4/authn/UserType.js +103 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +52 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +287 -0
- package/dist/lib/models/security/v4/common/Cluster.d.ts +64 -0
- package/dist/lib/models/security/v4/common/Cluster.js +311 -0
- package/dist/lib/models/security/v4/common/ClusterProjection.d.ts +10 -0
- package/dist/lib/models/security/v4/common/ClusterProjection.js +150 -0
- package/dist/lib/models/security/v4/common/Timescale.d.ts +19 -0
- package/dist/lib/models/security/v4/common/Timescale.js +103 -0
- package/dist/lib/models/security/v4/config/AddPublicKeyApiResponse.d.ts +102 -0
- package/dist/lib/models/security/v4/config/AddPublicKeyApiResponse.js +343 -0
- package/dist/lib/models/security/v4/config/ChangePasswordSpec.d.ts +74 -0
- package/dist/lib/models/security/v4/config/ChangePasswordSpec.js +317 -0
- package/dist/lib/models/security/v4/config/ChangeSystemUserPasswordApiResponse.d.ts +102 -0
- package/dist/lib/models/security/v4/config/ChangeSystemUserPasswordApiResponse.js +343 -0
- package/dist/lib/models/security/v4/config/DeletePublicKeyApiResponse.d.ts +99 -0
- package/dist/lib/models/security/v4/config/DeletePublicKeyApiResponse.js +343 -0
- package/dist/lib/models/security/v4/config/HardeningStatus.d.ts +154 -0
- package/dist/lib/models/security/v4/config/HardeningStatus.js +641 -0
- package/dist/lib/models/security/v4/config/HardeningStatusProjection.d.ts +53 -0
- package/dist/lib/models/security/v4/config/HardeningStatusProjection.js +358 -0
- package/dist/lib/models/security/v4/config/HardeningVisibilitySetting.d.ts +121 -0
- package/dist/lib/models/security/v4/config/HardeningVisibilitySetting.js +539 -0
- package/dist/lib/models/security/v4/config/PasswordStatus.d.ts +19 -0
- package/dist/lib/models/security/v4/config/PasswordStatus.js +97 -0
- package/dist/lib/models/security/v4/config/PasswordVerificationStatus.d.ts +19 -0
- package/dist/lib/models/security/v4/config/PasswordVerificationStatus.js +91 -0
- package/dist/lib/models/security/v4/config/PublicKey.d.ts +80 -0
- package/dist/lib/models/security/v4/config/PublicKey.js +373 -0
- package/dist/lib/models/security/v4/config/PublicKeyProjection.d.ts +51 -0
- package/dist/lib/models/security/v4/config/PublicKeyProjection.js +309 -0
- package/dist/lib/models/security/v4/config/Schedule.d.ts +19 -0
- package/dist/lib/models/security/v4/config/Schedule.js +97 -0
- package/dist/lib/models/security/v4/config/SystemType.d.ts +19 -0
- package/dist/lib/models/security/v4/config/SystemType.js +97 -0
- package/dist/lib/models/security/v4/config/SystemUserPassword.d.ts +110 -0
- package/dist/lib/models/security/v4/config/SystemUserPassword.js +500 -0
- package/dist/lib/models/security/v4/config/SystemUserPasswordProjection.d.ts +49 -0
- package/dist/lib/models/security/v4/config/SystemUserPasswordProjection.js +330 -0
- package/dist/lib/models/security/v4/config/UpdateHardeningStatusesApiResponse.d.ts +99 -0
- package/dist/lib/models/security/v4/config/UpdateHardeningStatusesApiResponse.js +343 -0
- package/dist/lib/models/security/v4/config/UpdateHardeningVisibilitySettingApiResponse.d.ts +99 -0
- package/dist/lib/models/security/v4/config/UpdateHardeningVisibilitySettingApiResponse.js +365 -0
- package/dist/lib/models/security/v4/config/VerifyPassword.d.ts +36 -0
- package/dist/lib/models/security/v4/config/VerifyPassword.js +272 -0
- package/dist/lib/models/security/v4/config/VerifyPasswordSpec.d.ts +62 -0
- package/dist/lib/models/security/v4/config/VerifyPasswordSpec.js +279 -0
- package/dist/lib/models/security/v4/config/VerifySystemUserPasswordApiResponse.d.ts +99 -0
- package/dist/lib/models/security/v4/config/VerifySystemUserPasswordApiResponse.js +343 -0
- package/dist/lib/models/security/v4/error/AppMessage.d.ts +117 -0
- package/dist/lib/models/security/v4/error/AppMessage.js +464 -0
- package/dist/lib/models/security/v4/error/ErrorResponse.d.ts +52 -0
- package/dist/lib/models/security/v4/error/ErrorResponse.js +330 -0
- package/dist/lib/models/security/v4/error/SchemaValidationError.d.ts +108 -0
- package/dist/lib/models/security/v4/error/SchemaValidationError.js +440 -0
- package/dist/lib/models/security/v4/error/SchemaValidationErrorMessage.d.ts +76 -0
- package/dist/lib/models/security/v4/error/SchemaValidationErrorMessage.js +350 -0
- package/dist/lib/models/security/v4/management/ApprovalPolicy.d.ts +204 -0
- package/dist/lib/models/security/v4/management/ApprovalPolicy.js +543 -0
- package/dist/lib/models/security/v4/management/ApproverGroup.d.ts +160 -0
- package/dist/lib/models/security/v4/management/ApproverGroup.js +385 -0
- package/dist/lib/models/security/v4/management/AssociatePoliciesApiResponse.d.ts +99 -0
- package/dist/lib/models/security/v4/management/AssociatePoliciesApiResponse.js +343 -0
- package/dist/lib/models/security/v4/management/CreateApprovalPolicyApiResponse.d.ts +99 -0
- package/dist/lib/models/security/v4/management/CreateApprovalPolicyApiResponse.js +343 -0
- package/dist/lib/models/security/v4/management/EventType.d.ts +19 -0
- package/dist/lib/models/security/v4/management/EventType.js +85 -0
- package/dist/lib/models/security/v4/management/GetApprovalPolicyApiResponse.d.ts +99 -0
- package/dist/lib/models/security/v4/management/GetApprovalPolicyApiResponse.js +343 -0
- package/dist/lib/models/security/v4/management/ListApprovalPoliciesApiResponse.d.ts +99 -0
- package/dist/lib/models/security/v4/management/ListApprovalPoliciesApiResponse.js +365 -0
- package/dist/lib/models/security/v4/management/PolicyType.d.ts +19 -0
- package/dist/lib/models/security/v4/management/PolicyType.js +79 -0
- package/dist/lib/models/security/v4/management/SecuredEntityType.d.ts +19 -0
- package/dist/lib/models/security/v4/management/SecuredEntityType.js +85 -0
- package/dist/lib/models/security/v4/management/SecuredPolicy.d.ts +77 -0
- package/dist/lib/models/security/v4/management/SecuredPolicy.js +323 -0
- package/dist/lib/models/security/v4/management/SecurityValidationSpec.d.ts +160 -0
- package/dist/lib/models/security/v4/management/SecurityValidationSpec.js +582 -0
- package/dist/lib/models/security/v4/management/TriggerApprovalPolicyValidationApiResponse.d.ts +99 -0
- package/dist/lib/models/security/v4/management/TriggerApprovalPolicyValidationApiResponse.js +343 -0
- package/dist/lib/models/security/v4/management/TriggerScanApiResponse.d.ts +99 -0
- package/dist/lib/models/security/v4/management/TriggerScanApiResponse.js +343 -0
- package/dist/lib/models/security/v4/management/UpdateApprovalPolicyApiResponse.d.ts +99 -0
- package/dist/lib/models/security/v4/management/UpdateApprovalPolicyApiResponse.js +343 -0
- package/dist/lib/models/security/v4/report/IssueSummary.d.ts +71 -0
- package/dist/lib/models/security/v4/report/IssueSummary.js +326 -0
- package/dist/lib/models/security/v4/report/ListStigSummariesApiResponse.d.ts +100 -0
- package/dist/lib/models/security/v4/report/ListStigSummariesApiResponse.js +370 -0
- package/dist/lib/models/security/v4/report/ListStigsApiResponse.d.ts +100 -0
- package/dist/lib/models/security/v4/report/ListStigsApiResponse.js +370 -0
- package/dist/lib/models/security/v4/report/Severity.d.ts +19 -0
- package/dist/lib/models/security/v4/report/Severity.js +97 -0
- package/dist/lib/models/security/v4/report/SoftwareType.d.ts +19 -0
- package/dist/lib/models/security/v4/report/SoftwareType.js +91 -0
- package/dist/lib/models/security/v4/report/Stig.d.ts +143 -0
- package/dist/lib/models/security/v4/report/Stig.js +623 -0
- package/dist/lib/models/security/v4/report/StigProjection.d.ts +10 -0
- package/dist/lib/models/security/v4/report/StigProjection.js +154 -0
- package/dist/lib/models/security/v4/report/StigStatus.d.ts +19 -0
- package/dist/lib/models/security/v4/report/StigStatus.js +91 -0
- package/dist/lib/models/security/v4/report/StigSummary.d.ts +73 -0
- package/dist/lib/models/security/v4/report/StigSummary.js +382 -0
- package/dist/lib/models/security/v4/report/StigSummaryProjection.d.ts +46 -0
- package/dist/lib/models/security/v4/report/StigSummaryProjection.js +298 -0
- package/dist/lib/models/security/v4/report/Summary.d.ts +149 -0
- package/dist/lib/models/security/v4/report/Summary.js +490 -0
- package/dist/lib/models/security/v4/report/SummaryProjection.d.ts +97 -0
- package/dist/lib/models/security/v4/report/SummaryProjection.js +329 -0
- package/dist/lib/models/security/v4/report/TrendValue.d.ts +64 -0
- package/dist/lib/models/security/v4/report/TrendValue.js +313 -0
- package/dist/lib/models/security/v4/report/Vulnerability.d.ts +116 -0
- package/dist/lib/models/security/v4/report/Vulnerability.js +543 -0
- package/dist/lib/models/security/v4/report/VulnerabilityProjection.d.ts +10 -0
- package/dist/lib/models/security/v4/report/VulnerabilityProjection.js +153 -0
- package/dist/lib/models/security/v4/report/VulnerabilitySummary.d.ts +72 -0
- package/dist/lib/models/security/v4/report/VulnerabilitySummary.js +393 -0
- package/dist/lib/models/security/v4/report/VulnerabilitySummaryProjection.d.ts +10 -0
- package/dist/lib/models/security/v4/report/VulnerabilitySummaryProjection.js +153 -0
- package/dist/lib/models/validation/ValidationError.d.ts +13 -0
- package/dist/lib/models/validation/ValidationError.js +60 -0
- package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/lib/models/validation/ValidationScopes.js +38 -0
- package/dist/lib/utils/ValidationUtils.d.ts +13 -0
- package/dist/lib/utils/ValidationUtils.js +85 -0
- package/package.json +53 -0
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.ApprovalPoliciesApi = void 0;
|
|
8
|
+
var _ApiClient = require("../ApiClient");
|
|
9
|
+
var _AssociatePoliciesApiResponse = _interopRequireDefault(require("../models/security/v4/management/AssociatePoliciesApiResponse"));
|
|
10
|
+
var _GetApprovalPolicyApiResponse = _interopRequireDefault(require("../models/security/v4/management/GetApprovalPolicyApiResponse"));
|
|
11
|
+
var _ListApprovalPoliciesApiResponse = _interopRequireDefault(require("../models/security/v4/management/ListApprovalPoliciesApiResponse"));
|
|
12
|
+
var _SecuredPolicy = _interopRequireDefault(require("../models/security/v4/management/SecuredPolicy"));
|
|
13
|
+
var _ApprovalPolicy = _interopRequireDefault(require("../models/security/v4/management/ApprovalPolicy"));
|
|
14
|
+
var _CreateApprovalPolicyApiResponse = _interopRequireDefault(require("../models/security/v4/management/CreateApprovalPolicyApiResponse"));
|
|
15
|
+
var _UpdateApprovalPolicyApiResponse = _interopRequireDefault(require("../models/security/v4/management/UpdateApprovalPolicyApiResponse"));
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
20
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
21
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
22
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
23
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
24
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
25
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
26
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
27
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
28
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
29
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
|
|
30
|
+
* Nutanix Security APIs
|
|
31
|
+
*
|
|
32
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
33
|
+
*
|
|
34
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
35
|
+
*
|
|
36
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
37
|
+
*
|
|
38
|
+
* Do not edit the class manually.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* ApprovalPolicies service.
|
|
43
|
+
* @version 4.0.1-beta-1
|
|
44
|
+
* @class ApprovalPoliciesApi
|
|
45
|
+
*/
|
|
46
|
+
var _headersToSkip = /*#__PURE__*/new WeakMap();
|
|
47
|
+
var ApprovalPoliciesApi = exports.ApprovalPoliciesApi = /*#__PURE__*/function () {
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a new ApprovalPoliciesApi.
|
|
50
|
+
* @alias module:api/ApprovalPoliciesApi
|
|
51
|
+
* @class
|
|
52
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
53
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
54
|
+
*/
|
|
55
|
+
function ApprovalPoliciesApi(apiClient) {
|
|
56
|
+
_classCallCheck(this, ApprovalPoliciesApi);
|
|
57
|
+
_classPrivateFieldInitSpec(this, _headersToSkip, void 0);
|
|
58
|
+
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
59
|
+
_classPrivateFieldSet(_headersToSkip, this, new Set());
|
|
60
|
+
_classPrivateFieldGet(_headersToSkip, this).add('authorization');
|
|
61
|
+
_classPrivateFieldGet(_headersToSkip, this).add('cookie');
|
|
62
|
+
_classPrivateFieldGet(_headersToSkip, this).add('host');
|
|
63
|
+
_classPrivateFieldGet(_headersToSkip, this).add('user-agent');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Update list of secured policies
|
|
68
|
+
* Update the list of secured policies linked to an approval policy with particular external identifier.
|
|
69
|
+
* @param { Partial<Array> } body specification
|
|
70
|
+
* @param { String } extId Approval policy external identifier.
|
|
71
|
+
* @param {Object} args Additional Arguments
|
|
72
|
+
* @return {Promise<AssociatePoliciesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AssociatePoliciesApiResponse } and HTTP response
|
|
73
|
+
*/
|
|
74
|
+
return _createClass(ApprovalPoliciesApi, [{
|
|
75
|
+
key: "associatePolicies",
|
|
76
|
+
value: function associatePolicies(extId, body) {
|
|
77
|
+
var _this = this;
|
|
78
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
79
|
+
var postBody = null;
|
|
80
|
+
if (body instanceof Array && typeof body.toJson === 'function') {
|
|
81
|
+
postBody = body.toJson();
|
|
82
|
+
} else {
|
|
83
|
+
postBody = body;
|
|
84
|
+
}
|
|
85
|
+
// verify the required parameter 'extId' is set
|
|
86
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
87
|
+
throw new Error("Missing the required parameter 'extId' when calling associatePolicies");
|
|
88
|
+
}
|
|
89
|
+
// verify the required parameter 'body' is set
|
|
90
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
91
|
+
throw new Error("Invalid body when calling associatePolicies");
|
|
92
|
+
}
|
|
93
|
+
var pathParams = {
|
|
94
|
+
'extId': extId
|
|
95
|
+
};
|
|
96
|
+
var queryParams = {};
|
|
97
|
+
var headersToInclude = {};
|
|
98
|
+
Object.keys(argMap).forEach(function (header) {
|
|
99
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
|
|
100
|
+
headersToInclude[header] = argMap[header];
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
104
|
+
var formParams = {};
|
|
105
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
106
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
107
|
+
var contentTypes = ['application/json'];
|
|
108
|
+
var accepts = ['application/json'];
|
|
109
|
+
var returnType = _AssociatePoliciesApiResponse["default"];
|
|
110
|
+
return this.apiClient.callApi('/api/security/v4.0.b1/management/approval-policies/{extId}/$action/associate-policies', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Create an approval policy
|
|
115
|
+
* Create an approval policy for secure snapshots.
|
|
116
|
+
* @param { Required<Pick<ApprovalPolicy, 'name' | 'approverGroups'>> & Partial<ApprovalPolicy> } body specification
|
|
117
|
+
* @param {Object} args Additional Arguments
|
|
118
|
+
* @return {Promise<CreateApprovalPolicyApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateApprovalPolicyApiResponse } and HTTP response
|
|
119
|
+
*/
|
|
120
|
+
}, {
|
|
121
|
+
key: "createApprovalPolicy",
|
|
122
|
+
value: function createApprovalPolicy(body) {
|
|
123
|
+
var _this2 = this;
|
|
124
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
125
|
+
var postBody = null;
|
|
126
|
+
if (body instanceof _ApprovalPolicy["default"] && typeof body.toJson === 'function') {
|
|
127
|
+
postBody = body.toJson();
|
|
128
|
+
} else {
|
|
129
|
+
postBody = body;
|
|
130
|
+
}
|
|
131
|
+
// verify the required parameter 'body' is set
|
|
132
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
133
|
+
throw new Error("Invalid body when calling createApprovalPolicy");
|
|
134
|
+
}
|
|
135
|
+
var pathParams = {};
|
|
136
|
+
var queryParams = {};
|
|
137
|
+
var headersToInclude = {};
|
|
138
|
+
Object.keys(argMap).forEach(function (header) {
|
|
139
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
|
|
140
|
+
headersToInclude[header] = argMap[header];
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
144
|
+
var formParams = {};
|
|
145
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
146
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
147
|
+
var contentTypes = ['application/json'];
|
|
148
|
+
var accepts = ['application/json'];
|
|
149
|
+
var returnType = _CreateApprovalPolicyApiResponse["default"];
|
|
150
|
+
return this.apiClient.callApi('/api/security/v4.0.b1/management/approval-policies', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Get an approval policy details
|
|
155
|
+
* Fetches the details of a specific approval policy by its external identifier.
|
|
156
|
+
* @param { String } extId Approval policy external identifier.
|
|
157
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
158
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
159
|
+
- approverGroups
|
|
160
|
+
- description
|
|
161
|
+
- isUpdatePending
|
|
162
|
+
- name
|
|
163
|
+
- securedPolicies
|
|
164
|
+
* @param {Object} args Additional Arguments
|
|
165
|
+
* @return {Promise<GetApprovalPolicyApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetApprovalPolicyApiResponse } and HTTP response
|
|
166
|
+
*/
|
|
167
|
+
}, {
|
|
168
|
+
key: "getApprovalPolicyByExtId",
|
|
169
|
+
value: function getApprovalPolicyByExtId(extId, opts) {
|
|
170
|
+
var _this3 = this;
|
|
171
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
172
|
+
opts = opts || {};
|
|
173
|
+
var postBody = null;
|
|
174
|
+
// verify the required parameter 'extId' is set
|
|
175
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
176
|
+
throw new Error("Missing the required parameter 'extId' when calling getApprovalPolicyByExtId");
|
|
177
|
+
}
|
|
178
|
+
var pathParams = {
|
|
179
|
+
'extId': extId
|
|
180
|
+
};
|
|
181
|
+
var queryParams = _objectSpread({}, opts.hasOwnProperty('$select') ? {
|
|
182
|
+
'$select': opts['$select']
|
|
183
|
+
} : {});
|
|
184
|
+
var headersToInclude = {};
|
|
185
|
+
Object.keys(argMap).forEach(function (header) {
|
|
186
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this3).has(header.toLowerCase())) {
|
|
187
|
+
headersToInclude[header] = argMap[header];
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
191
|
+
var formParams = {};
|
|
192
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
193
|
+
var contentTypes = [];
|
|
194
|
+
var accepts = ['application/json'];
|
|
195
|
+
var returnType = _GetApprovalPolicyApiResponse["default"];
|
|
196
|
+
return this.apiClient.callApi('/api/security/v4.0.b1/management/approval-policies/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* List approval policies
|
|
201
|
+
* Fetches a list of approval policies for secure snapshots.
|
|
202
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
203
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
204
|
+
- approverGroups
|
|
205
|
+
- description
|
|
206
|
+
- isUpdatePending
|
|
207
|
+
- name
|
|
208
|
+
- securedPolicies
|
|
209
|
+
* @param {Object} args Additional Arguments
|
|
210
|
+
* @return {Promise<ListApprovalPoliciesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListApprovalPoliciesApiResponse } and HTTP response
|
|
211
|
+
*/
|
|
212
|
+
}, {
|
|
213
|
+
key: "listApprovalPolicies",
|
|
214
|
+
value: function listApprovalPolicies(opts) {
|
|
215
|
+
var _this4 = this;
|
|
216
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
217
|
+
opts = opts || {};
|
|
218
|
+
var postBody = null;
|
|
219
|
+
var pathParams = {};
|
|
220
|
+
var queryParams = _objectSpread({}, opts.hasOwnProperty('$select') ? {
|
|
221
|
+
'$select': opts['$select']
|
|
222
|
+
} : {});
|
|
223
|
+
var headersToInclude = {};
|
|
224
|
+
Object.keys(argMap).forEach(function (header) {
|
|
225
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this4).has(header.toLowerCase())) {
|
|
226
|
+
headersToInclude[header] = argMap[header];
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
230
|
+
var formParams = {};
|
|
231
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
232
|
+
var contentTypes = [];
|
|
233
|
+
var accepts = ['application/json'];
|
|
234
|
+
var returnType = _ListApprovalPoliciesApiResponse["default"];
|
|
235
|
+
return this.apiClient.callApi('/api/security/v4.0.b1/management/approval-policies', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Update the details of a specific approval policy
|
|
240
|
+
* Updates the details of a specific approval policy by its external identifier.
|
|
241
|
+
* @param { Required<Pick<ApprovalPolicy, 'name' | 'approverGroups'>> & Partial<ApprovalPolicy> } body specification
|
|
242
|
+
* @param { String } extId Approval policy external identifier.
|
|
243
|
+
* @param {Object} args Additional Arguments
|
|
244
|
+
* @return {Promise<UpdateApprovalPolicyApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateApprovalPolicyApiResponse } and HTTP response
|
|
245
|
+
*/
|
|
246
|
+
}, {
|
|
247
|
+
key: "updateApprovalPolicyByExtId",
|
|
248
|
+
value: function updateApprovalPolicyByExtId(extId, body) {
|
|
249
|
+
var _this5 = this;
|
|
250
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
251
|
+
var postBody = null;
|
|
252
|
+
if (body instanceof _ApprovalPolicy["default"] && typeof body.toJson === 'function') {
|
|
253
|
+
postBody = body.toJson();
|
|
254
|
+
} else {
|
|
255
|
+
postBody = body;
|
|
256
|
+
}
|
|
257
|
+
// verify the required parameter 'extId' is set
|
|
258
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
259
|
+
throw new Error("Missing the required parameter 'extId' when calling updateApprovalPolicyByExtId");
|
|
260
|
+
}
|
|
261
|
+
// verify the required parameter 'body' is set
|
|
262
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
263
|
+
throw new Error("Invalid body when calling updateApprovalPolicyByExtId");
|
|
264
|
+
}
|
|
265
|
+
var pathParams = {
|
|
266
|
+
'extId': extId
|
|
267
|
+
};
|
|
268
|
+
var queryParams = {};
|
|
269
|
+
var headersToInclude = {};
|
|
270
|
+
Object.keys(argMap).forEach(function (header) {
|
|
271
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {
|
|
272
|
+
headersToInclude[header] = argMap[header];
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
276
|
+
var formParams = {};
|
|
277
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
278
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
279
|
+
var contentTypes = ['application/json'];
|
|
280
|
+
var accepts = ['application/json'];
|
|
281
|
+
var returnType = _UpdateApprovalPolicyApiResponse["default"];
|
|
282
|
+
return this.apiClient.callApi('/api/security/v4.0.b1/management/approval-policies/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
283
|
+
}
|
|
284
|
+
}], [{
|
|
285
|
+
key: "ApiClient",
|
|
286
|
+
get:
|
|
287
|
+
/**
|
|
288
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
289
|
+
* their own fetch methods into the SDK
|
|
290
|
+
*/
|
|
291
|
+
function get() {
|
|
292
|
+
return _ApiClient.ApiClient;
|
|
293
|
+
}
|
|
294
|
+
}]);
|
|
295
|
+
}();
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* STIGs service.
|
|
3
|
+
* @version 4.0.1-beta-1
|
|
4
|
+
* @class STIGsApi
|
|
5
|
+
*/
|
|
6
|
+
export class STIGsApi {
|
|
7
|
+
/**
|
|
8
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
9
|
+
* their own fetch methods into the SDK
|
|
10
|
+
*/
|
|
11
|
+
static get ApiClient(): typeof ApiClient;
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new STIGsApi.
|
|
14
|
+
* @alias module:api/STIGsApi
|
|
15
|
+
* @class
|
|
16
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
17
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
18
|
+
*/
|
|
19
|
+
constructor(apiClient?: any);
|
|
20
|
+
apiClient: any;
|
|
21
|
+
/**
|
|
22
|
+
* Fetch the aggregate report of STIG scan
|
|
23
|
+
* Fetch the current number of issues found by STIG for each cluster.
|
|
24
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
25
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
26
|
+
|
|
27
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
28
|
+
|
|
29
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
30
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
31
|
+
* The filter can be applied to the following fields:<br>
|
|
32
|
+
* - clusterExtId
|
|
33
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
34
|
+
* The orderby can be applied to the following fields:<br>
|
|
35
|
+
* - clusterExtId<br>
|
|
36
|
+
* - failedCount<br>
|
|
37
|
+
* - notApplicableCount<br>
|
|
38
|
+
* - passedCount
|
|
39
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.
|
|
40
|
+
- cluster
|
|
41
|
+
|
|
42
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
43
|
+
- clusterExtId
|
|
44
|
+
- extId
|
|
45
|
+
- failedCount
|
|
46
|
+
- links
|
|
47
|
+
- notApplicableCount
|
|
48
|
+
- passedCount
|
|
49
|
+
- tenantId
|
|
50
|
+
|
|
51
|
+
* @param {Object} args Additional Arguments
|
|
52
|
+
* @return {Promise<ListStigSummariesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListStigSummariesApiResponse } and HTTP response
|
|
53
|
+
*/
|
|
54
|
+
listStigSummaries(opts: {
|
|
55
|
+
$page: number;
|
|
56
|
+
$limit: number;
|
|
57
|
+
$filter: string;
|
|
58
|
+
$orderby: string;
|
|
59
|
+
$expand: string;
|
|
60
|
+
$select: string;
|
|
61
|
+
}, ...args: any): Promise<ListStigSummariesApiResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* Get the STIG controls details
|
|
64
|
+
* Fetch the STIG controls details for STIG rules on each cluster.
|
|
65
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
66
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
67
|
+
|
|
68
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
69
|
+
|
|
70
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
71
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
72
|
+
* The filter can be applied to the following fields:<br>
|
|
73
|
+
* - severity<br>
|
|
74
|
+
* - status
|
|
75
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
76
|
+
* The orderby can be applied to the following fields:<br>
|
|
77
|
+
* - severity<br>
|
|
78
|
+
* - stigVersion
|
|
79
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
80
|
+
- affectedClusters
|
|
81
|
+
- benchmarkId
|
|
82
|
+
- comments
|
|
83
|
+
- extId
|
|
84
|
+
- fixText
|
|
85
|
+
- identifiers
|
|
86
|
+
- links
|
|
87
|
+
- ruleId
|
|
88
|
+
- severity
|
|
89
|
+
- status
|
|
90
|
+
- stigVersion
|
|
91
|
+
- tenantId
|
|
92
|
+
- title
|
|
93
|
+
|
|
94
|
+
* @param {Object} args Additional Arguments
|
|
95
|
+
* @return {Promise<ListStigsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListStigsApiResponse } and HTTP response
|
|
96
|
+
*/
|
|
97
|
+
listStigs(opts: {
|
|
98
|
+
$page: number;
|
|
99
|
+
$limit: number;
|
|
100
|
+
$filter: string;
|
|
101
|
+
$orderby: string;
|
|
102
|
+
$select: string;
|
|
103
|
+
}, ...args: any): Promise<ListStigsApiResponse>;
|
|
104
|
+
#private;
|
|
105
|
+
}
|
|
106
|
+
import ListStigSummariesApiResponse from "../models/security/v4/report/ListStigSummariesApiResponse";
|
|
107
|
+
import ListStigsApiResponse from "../models/security/v4/report/ListStigsApiResponse";
|
|
108
|
+
import { ApiClient } from "../ApiClient";
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.STIGsApi = void 0;
|
|
8
|
+
var _ApiClient = require("../ApiClient");
|
|
9
|
+
var _ListStigsApiResponse = _interopRequireDefault(require("../models/security/v4/report/ListStigsApiResponse"));
|
|
10
|
+
var _ListStigSummariesApiResponse = _interopRequireDefault(require("../models/security/v4/report/ListStigSummariesApiResponse"));
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
21
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
22
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
23
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
24
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
|
|
25
|
+
* Nutanix Security APIs
|
|
26
|
+
*
|
|
27
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
28
|
+
*
|
|
29
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
30
|
+
*
|
|
31
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
32
|
+
*
|
|
33
|
+
* Do not edit the class manually.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* STIGs service.
|
|
38
|
+
* @version 4.0.1-beta-1
|
|
39
|
+
* @class STIGsApi
|
|
40
|
+
*/
|
|
41
|
+
var _headersToSkip = /*#__PURE__*/new WeakMap();
|
|
42
|
+
var STIGsApi = exports.STIGsApi = /*#__PURE__*/function () {
|
|
43
|
+
/**
|
|
44
|
+
* Constructs a new STIGsApi.
|
|
45
|
+
* @alias module:api/STIGsApi
|
|
46
|
+
* @class
|
|
47
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
48
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
49
|
+
*/
|
|
50
|
+
function STIGsApi(apiClient) {
|
|
51
|
+
_classCallCheck(this, STIGsApi);
|
|
52
|
+
_classPrivateFieldInitSpec(this, _headersToSkip, void 0);
|
|
53
|
+
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
54
|
+
_classPrivateFieldSet(_headersToSkip, this, new Set());
|
|
55
|
+
_classPrivateFieldGet(_headersToSkip, this).add('authorization');
|
|
56
|
+
_classPrivateFieldGet(_headersToSkip, this).add('cookie');
|
|
57
|
+
_classPrivateFieldGet(_headersToSkip, this).add('host');
|
|
58
|
+
_classPrivateFieldGet(_headersToSkip, this).add('user-agent');
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Fetch the aggregate report of STIG scan
|
|
63
|
+
* Fetch the current number of issues found by STIG for each cluster.
|
|
64
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
65
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
66
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
67
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
68
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
69
|
+
* The filter can be applied to the following fields:<br>
|
|
70
|
+
* - clusterExtId
|
|
71
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
72
|
+
* The orderby can be applied to the following fields:<br>
|
|
73
|
+
* - clusterExtId<br>
|
|
74
|
+
* - failedCount<br>
|
|
75
|
+
* - notApplicableCount<br>
|
|
76
|
+
* - passedCount
|
|
77
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.
|
|
78
|
+
- cluster
|
|
79
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
80
|
+
- clusterExtId
|
|
81
|
+
- extId
|
|
82
|
+
- failedCount
|
|
83
|
+
- links
|
|
84
|
+
- notApplicableCount
|
|
85
|
+
- passedCount
|
|
86
|
+
- tenantId
|
|
87
|
+
* @param {Object} args Additional Arguments
|
|
88
|
+
* @return {Promise<ListStigSummariesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListStigSummariesApiResponse } and HTTP response
|
|
89
|
+
*/
|
|
90
|
+
return _createClass(STIGsApi, [{
|
|
91
|
+
key: "listStigSummaries",
|
|
92
|
+
value: function listStigSummaries(opts) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
95
|
+
opts = opts || {};
|
|
96
|
+
var postBody = null;
|
|
97
|
+
var pathParams = {};
|
|
98
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
99
|
+
'$page': opts['$page']
|
|
100
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
101
|
+
'$limit': opts['$limit']
|
|
102
|
+
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
103
|
+
'$filter': opts['$filter']
|
|
104
|
+
} : {}), opts.hasOwnProperty('$orderby') ? {
|
|
105
|
+
'$orderby': opts['$orderby']
|
|
106
|
+
} : {}), opts.hasOwnProperty('$expand') ? {
|
|
107
|
+
'$expand': opts['$expand']
|
|
108
|
+
} : {}), opts.hasOwnProperty('$select') ? {
|
|
109
|
+
'$select': opts['$select']
|
|
110
|
+
} : {});
|
|
111
|
+
var headersToInclude = {};
|
|
112
|
+
Object.keys(argMap).forEach(function (header) {
|
|
113
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
|
|
114
|
+
headersToInclude[header] = argMap[header];
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
118
|
+
var formParams = {};
|
|
119
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
120
|
+
var contentTypes = [];
|
|
121
|
+
var accepts = ['application/json'];
|
|
122
|
+
var returnType = _ListStigSummariesApiResponse["default"];
|
|
123
|
+
return this.apiClient.callApi('/api/security/v4.0.b1/report/stig-summaries', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Get the STIG controls details
|
|
128
|
+
* Fetch the STIG controls details for STIG rules on each cluster.
|
|
129
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
130
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
131
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
132
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
133
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
134
|
+
* The filter can be applied to the following fields:<br>
|
|
135
|
+
* - severity<br>
|
|
136
|
+
* - status
|
|
137
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
138
|
+
* The orderby can be applied to the following fields:<br>
|
|
139
|
+
* - severity<br>
|
|
140
|
+
* - stigVersion
|
|
141
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
142
|
+
- affectedClusters
|
|
143
|
+
- benchmarkId
|
|
144
|
+
- comments
|
|
145
|
+
- extId
|
|
146
|
+
- fixText
|
|
147
|
+
- identifiers
|
|
148
|
+
- links
|
|
149
|
+
- ruleId
|
|
150
|
+
- severity
|
|
151
|
+
- status
|
|
152
|
+
- stigVersion
|
|
153
|
+
- tenantId
|
|
154
|
+
- title
|
|
155
|
+
* @param {Object} args Additional Arguments
|
|
156
|
+
* @return {Promise<ListStigsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListStigsApiResponse } and HTTP response
|
|
157
|
+
*/
|
|
158
|
+
}, {
|
|
159
|
+
key: "listStigs",
|
|
160
|
+
value: function listStigs(opts) {
|
|
161
|
+
var _this2 = this;
|
|
162
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
163
|
+
opts = opts || {};
|
|
164
|
+
var postBody = null;
|
|
165
|
+
var pathParams = {};
|
|
166
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
167
|
+
'$page': opts['$page']
|
|
168
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
169
|
+
'$limit': opts['$limit']
|
|
170
|
+
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
171
|
+
'$filter': opts['$filter']
|
|
172
|
+
} : {}), opts.hasOwnProperty('$orderby') ? {
|
|
173
|
+
'$orderby': opts['$orderby']
|
|
174
|
+
} : {}), opts.hasOwnProperty('$select') ? {
|
|
175
|
+
'$select': opts['$select']
|
|
176
|
+
} : {});
|
|
177
|
+
var headersToInclude = {};
|
|
178
|
+
Object.keys(argMap).forEach(function (header) {
|
|
179
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
|
|
180
|
+
headersToInclude[header] = argMap[header];
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
184
|
+
var formParams = {};
|
|
185
|
+
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
186
|
+
var contentTypes = [];
|
|
187
|
+
var accepts = ['application/json'];
|
|
188
|
+
var returnType = _ListStigsApiResponse["default"];
|
|
189
|
+
return this.apiClient.callApi('/api/security/v4.0.b1/report/stigs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
190
|
+
}
|
|
191
|
+
}], [{
|
|
192
|
+
key: "ApiClient",
|
|
193
|
+
get:
|
|
194
|
+
/**
|
|
195
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
196
|
+
* their own fetch methods into the SDK
|
|
197
|
+
*/
|
|
198
|
+
function get() {
|
|
199
|
+
return _ApiClient.ApiClient;
|
|
200
|
+
}
|
|
201
|
+
}]);
|
|
202
|
+
}();
|