@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,153 @@
|
|
|
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["default"] = void 0;
|
|
8
|
+
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
9
|
+
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
10
|
+
var _SoftwareType = _interopRequireDefault(require("./SoftwareType"));
|
|
11
|
+
var _VulnerabilitySummary2 = _interopRequireDefault(require("./VulnerabilitySummary"));
|
|
12
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
13
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
14
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
|
+
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; }
|
|
17
|
+
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; }
|
|
18
|
+
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; }
|
|
19
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
20
|
+
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); } }
|
|
21
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
22
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
23
|
+
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); }
|
|
24
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
25
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
26
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
27
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
28
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
29
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
30
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /*
|
|
31
|
+
* Nutanix Security APIs
|
|
32
|
+
*
|
|
33
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
34
|
+
*
|
|
35
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
36
|
+
*
|
|
37
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
38
|
+
*
|
|
39
|
+
* Do not edit the class manually.
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* The VulnerabilitySummaryProjection model module.
|
|
44
|
+
* @module Ntnx/VulnerabilitySummaryProjection
|
|
45
|
+
* @version 4.0.1-beta-1
|
|
46
|
+
* @class VulnerabilitySummaryProjection
|
|
47
|
+
* @extends VulnerabilitySummary
|
|
48
|
+
*/
|
|
49
|
+
var VulnerabilitySummaryProjection = exports["default"] = /*#__PURE__*/function (_VulnerabilitySummary) {
|
|
50
|
+
/**
|
|
51
|
+
* Constructs a new <code>VulnerabilitySummaryProjection</code>.
|
|
52
|
+
* @alias module:Ntnx/VulnerabilitySummaryProjection
|
|
53
|
+
* @extends module:Ntnx/VulnerabilitySummary
|
|
54
|
+
*/
|
|
55
|
+
function VulnerabilitySummaryProjection() {
|
|
56
|
+
var _this;
|
|
57
|
+
_classCallCheck(this, VulnerabilitySummaryProjection);
|
|
58
|
+
_this = _callSuper(this, VulnerabilitySummaryProjection);
|
|
59
|
+
_this.$objectType = "security.v4.report.VulnerabilitySummaryProjection";
|
|
60
|
+
/** @type {object<string, any>} */
|
|
61
|
+
_this.$reserved = {
|
|
62
|
+
'$fv': "v4.r0.b1"
|
|
63
|
+
};
|
|
64
|
+
/** @type {object<string, any>} */
|
|
65
|
+
_this.$unknownFields = {};
|
|
66
|
+
return _this;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Constructs a <code>VulnerabilitySummaryProjection</code> from a plain JavaScript object, optionally creating a new instance.
|
|
71
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
72
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
73
|
+
* @param {module:Ntnx/VulnerabilitySummaryProjection} obj Optional instance to populate.
|
|
74
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
75
|
+
* @return {module:Ntnx/VulnerabilitySummaryProjection} The populated <code>VulnerabilitySummaryProjection</code> instance.
|
|
76
|
+
*/
|
|
77
|
+
_inherits(VulnerabilitySummaryProjection, _VulnerabilitySummary);
|
|
78
|
+
return _createClass(VulnerabilitySummaryProjection, [{
|
|
79
|
+
key: "validate",
|
|
80
|
+
value: function validate(scope, properties) {
|
|
81
|
+
var _this2 = this;
|
|
82
|
+
var propList = [];
|
|
83
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
84
|
+
//cases validate() and validate(scope)
|
|
85
|
+
propList = [];
|
|
86
|
+
} else if (arguments.length === 1) {
|
|
87
|
+
//case validate(properties)
|
|
88
|
+
propList = arguments[0];
|
|
89
|
+
scope = null;
|
|
90
|
+
} else {
|
|
91
|
+
//case validate(scope, properties)
|
|
92
|
+
propList = arguments[1];
|
|
93
|
+
}
|
|
94
|
+
var res = [];
|
|
95
|
+
var err = null;
|
|
96
|
+
propList.forEach(function (property) {
|
|
97
|
+
err = _this2.validateProperty(property, scope);
|
|
98
|
+
if (err) {
|
|
99
|
+
res.push(err);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
return new Promise(function (resolve, reject) {
|
|
103
|
+
if (res.length !== 0) {
|
|
104
|
+
reject(err);
|
|
105
|
+
} else {
|
|
106
|
+
resolve();
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}, {
|
|
111
|
+
key: "validateProperty",
|
|
112
|
+
value: function validateProperty(scope, property) {
|
|
113
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
114
|
+
}
|
|
115
|
+
}], [{
|
|
116
|
+
key: "constructFromObject",
|
|
117
|
+
value: function constructFromObject(data) {
|
|
118
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
119
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
120
|
+
var items, item, i, itemArr, discriminator;
|
|
121
|
+
if (data) {
|
|
122
|
+
obj = obj || new VulnerabilitySummaryProjection();
|
|
123
|
+
_VulnerabilitySummary2["default"].constructFromObject(data, obj, true);
|
|
124
|
+
if (!callFromChild) {
|
|
125
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
126
|
+
for (var property in data) {
|
|
127
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
128
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
129
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
130
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
131
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
132
|
+
obj.$unknownFields[property] = data[property];
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return obj;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Converts a given snake_case string to camelCase.
|
|
142
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
143
|
+
* @returns {string} - The converted string in camelCase format.
|
|
144
|
+
*/
|
|
145
|
+
}, {
|
|
146
|
+
key: "snakeToCamel",
|
|
147
|
+
value: function snakeToCamel(snakeStr) {
|
|
148
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
149
|
+
return match[1].toUpperCase();
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
}]);
|
|
153
|
+
}(_VulnerabilitySummary2["default"]);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default class ValidationError {
|
|
2
|
+
constructor(name: any, message: any);
|
|
3
|
+
name: any;
|
|
4
|
+
message: any;
|
|
5
|
+
getName(): any;
|
|
6
|
+
setName(name: any): void;
|
|
7
|
+
getMessage(): any;
|
|
8
|
+
setMessage(message: any): void;
|
|
9
|
+
toJson(): {
|
|
10
|
+
name: any;
|
|
11
|
+
message: any;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
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); }
|
|
8
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
9
|
+
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); } }
|
|
10
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
12
|
+
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); }
|
|
13
|
+
/*
|
|
14
|
+
* Nutanix Security APIs
|
|
15
|
+
*
|
|
16
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
17
|
+
*
|
|
18
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
19
|
+
*
|
|
20
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
21
|
+
*
|
|
22
|
+
* Do not edit the class manually.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
var ValidationError = exports["default"] = /*#__PURE__*/function () {
|
|
26
|
+
function ValidationError(name, message) {
|
|
27
|
+
_classCallCheck(this, ValidationError);
|
|
28
|
+
this.name = name;
|
|
29
|
+
this.message = message;
|
|
30
|
+
}
|
|
31
|
+
return _createClass(ValidationError, [{
|
|
32
|
+
key: "getName",
|
|
33
|
+
value: function getName() {
|
|
34
|
+
return this.name;
|
|
35
|
+
}
|
|
36
|
+
}, {
|
|
37
|
+
key: "setName",
|
|
38
|
+
value: function setName(name) {
|
|
39
|
+
this.name = name;
|
|
40
|
+
}
|
|
41
|
+
}, {
|
|
42
|
+
key: "getMessage",
|
|
43
|
+
value: function getMessage() {
|
|
44
|
+
return this.message;
|
|
45
|
+
}
|
|
46
|
+
}, {
|
|
47
|
+
key: "setMessage",
|
|
48
|
+
value: function setMessage(message) {
|
|
49
|
+
this.message = message;
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
key: "toJson",
|
|
53
|
+
value: function toJson() {
|
|
54
|
+
return {
|
|
55
|
+
'name': this.getName(),
|
|
56
|
+
'message': this.getMessage()
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}]);
|
|
60
|
+
}();
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Enum class ValidationScopes.
|
|
9
|
+
* @enum {}
|
|
10
|
+
* @readonly
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
var ValidationScopes = {
|
|
14
|
+
/**
|
|
15
|
+
* value: {DEFAULT}
|
|
16
|
+
* @const
|
|
17
|
+
*/
|
|
18
|
+
DEFAULT: "DEFAULT"
|
|
19
|
+
};
|
|
20
|
+
ValidationScopes.constructFromObject = function (obj) {
|
|
21
|
+
if (typeof obj === 'string' || obj instanceof String) {
|
|
22
|
+
return ValidationScopes[obj];
|
|
23
|
+
} else {
|
|
24
|
+
throw new Error("Received object name is not an instance of String");
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
ValidationScopes.validate = function (obj) {
|
|
28
|
+
if (typeof obj !== 'undefined' && obj !== null) {
|
|
29
|
+
switch (obj) {
|
|
30
|
+
case ValidationScopes.DEFAULT:
|
|
31
|
+
return;
|
|
32
|
+
default:
|
|
33
|
+
throw new Error("Invalid : must be ValidationScopes.{ }");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
Object.freeze(ValidationScopes);
|
|
38
|
+
var _default = exports["default"] = ValidationScopes;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default class ValidationUtils {
|
|
2
|
+
static validateMaximum(value: any, maximum: any): boolean;
|
|
3
|
+
static validateMinimum(value: any, minimum: any): boolean;
|
|
4
|
+
static validateExclusiveMaximum(value: any, eMaximum: any): boolean;
|
|
5
|
+
static validateExclusiveMinimum(value: any, eMinimum: any): boolean;
|
|
6
|
+
static validateMultipleOf(value: any, multipleOf: any): boolean;
|
|
7
|
+
static validateMaxLength(value: any, maxLength: any): boolean;
|
|
8
|
+
static validateMinLength(value: any, minLength: any): boolean;
|
|
9
|
+
static validatePattern(value: any, pattern: any): boolean;
|
|
10
|
+
static validateMaxItems(value: any, maxItems: any): boolean;
|
|
11
|
+
static validateMinItems(value: any, minItems: any): boolean;
|
|
12
|
+
static validateUniqueItems(value: any, uniqueItems: any): boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
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); }
|
|
8
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
9
|
+
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); } }
|
|
10
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
12
|
+
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); }
|
|
13
|
+
/*
|
|
14
|
+
* Nutanix Security APIs
|
|
15
|
+
*
|
|
16
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
17
|
+
*
|
|
18
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
19
|
+
*
|
|
20
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
21
|
+
*
|
|
22
|
+
* Do not edit the class manually.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
var ValidationUtils = exports["default"] = /*#__PURE__*/function () {
|
|
26
|
+
function ValidationUtils() {
|
|
27
|
+
_classCallCheck(this, ValidationUtils);
|
|
28
|
+
}
|
|
29
|
+
return _createClass(ValidationUtils, null, [{
|
|
30
|
+
key: "validateMaximum",
|
|
31
|
+
value: function validateMaximum(value, maximum) {
|
|
32
|
+
return !(maximum === null || value > maximum);
|
|
33
|
+
}
|
|
34
|
+
}, {
|
|
35
|
+
key: "validateMinimum",
|
|
36
|
+
value: function validateMinimum(value, minimum) {
|
|
37
|
+
return !(minimum === null || value < minimum);
|
|
38
|
+
}
|
|
39
|
+
}, {
|
|
40
|
+
key: "validateExclusiveMaximum",
|
|
41
|
+
value: function validateExclusiveMaximum(value, eMaximum) {
|
|
42
|
+
return !(eMaximum === null || value > eMaximum);
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
key: "validateExclusiveMinimum",
|
|
46
|
+
value: function validateExclusiveMinimum(value, eMinimum) {
|
|
47
|
+
return !(eMinimum === null || value > eMinimum);
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
key: "validateMultipleOf",
|
|
51
|
+
value: function validateMultipleOf(value, multipleOf) {
|
|
52
|
+
return !(multipleOf === null || value % multipleOf === 0);
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
key: "validateMaxLength",
|
|
56
|
+
value: function validateMaxLength(value, maxLength) {
|
|
57
|
+
return !(maxLength === null || value.length > maxLength);
|
|
58
|
+
}
|
|
59
|
+
}, {
|
|
60
|
+
key: "validateMinLength",
|
|
61
|
+
value: function validateMinLength(value, minLength) {
|
|
62
|
+
return !(minLength === null || value.length < minLength);
|
|
63
|
+
}
|
|
64
|
+
}, {
|
|
65
|
+
key: "validatePattern",
|
|
66
|
+
value: function validatePattern(value, pattern) {
|
|
67
|
+
return !(pattern === null || value.match(pattern) === null);
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
key: "validateMaxItems",
|
|
71
|
+
value: function validateMaxItems(value, maxItems) {
|
|
72
|
+
return !(maxItems === null || value.length > maxItems);
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
key: "validateMinItems",
|
|
76
|
+
value: function validateMinItems(value, minItems) {
|
|
77
|
+
return !(minItems === null || value.length < minItems);
|
|
78
|
+
}
|
|
79
|
+
}, {
|
|
80
|
+
key: "validateUniqueItems",
|
|
81
|
+
value: function validateUniqueItems(value, uniqueItems) {
|
|
82
|
+
return !(uniqueItems === null || !uniqueItems || value.length !== new Set(value).size);
|
|
83
|
+
}
|
|
84
|
+
}]);
|
|
85
|
+
}();
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
3
|
+
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
4
|
+
* contents of this file should be regarded as internal but are documented for completeness.
|
|
5
|
+
* @module ApiClient
|
|
6
|
+
* @version 4.0.1-beta-1
|
|
7
|
+
*/
|
|
8
|
+
export class ApiClient {
|
|
9
|
+
/**
|
|
10
|
+
* Get ETag from an object if exists.
|
|
11
|
+
* The ETag is usually provided in the response of the GET API calls,
|
|
12
|
+
* which can further be used in other HTTP operations.
|
|
13
|
+
*
|
|
14
|
+
* @param object Object from which ETag needs to be retrieved
|
|
15
|
+
* @returns {(String|null)} returns ETag header in the object if it's an API response object, otherwise null
|
|
16
|
+
*/
|
|
17
|
+
static getEtag(object: any): (string | null);
|
|
18
|
+
static getValueForCaseInsensitiveKeyMatch(object: any, key: any): any;
|
|
19
|
+
static addEtagReferenceToHeader(bodyParam: any, headerParams: any): void;
|
|
20
|
+
static parseDate(str: any): Date;
|
|
21
|
+
static parseQueryParam(path: any, queryParams: any, param: any, defaultValue: any): any;
|
|
22
|
+
/**
|
|
23
|
+
* Converts a value to the specified type.
|
|
24
|
+
* @param {(String|Object)} data The data to convert, as a string or object.
|
|
25
|
+
* @param {(String|Array.<String>|Object.<String, Object>|Function)} type The type to return. Pass a string for simple types
|
|
26
|
+
* or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To
|
|
27
|
+
* return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:
|
|
28
|
+
* all properties on <code>data<code> will be converted to this type.
|
|
29
|
+
* @returns An instance of the specified type or null or undefined if data is null or undefined.
|
|
30
|
+
*/
|
|
31
|
+
static convertToType(data: (string | any), type: (string | Array<string> | any | Function)): any;
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new map or array model from REST data.
|
|
34
|
+
* @param data {Object|Array} The REST data.
|
|
35
|
+
* @param obj {Object|Array} The target object or array.
|
|
36
|
+
*/
|
|
37
|
+
static constructFromObject(data: any | any[], obj: any | any[], itemType: any): void;
|
|
38
|
+
/**
|
|
39
|
+
* URI scheme for connecting to the cluster (HTTP or HTTPS using SSL/TLS)
|
|
40
|
+
* @type {String}
|
|
41
|
+
* @default https
|
|
42
|
+
*/
|
|
43
|
+
scheme: string;
|
|
44
|
+
/**
|
|
45
|
+
* The hostname of the URL against which to resolve every API call's (relative) path.
|
|
46
|
+
* @type {String}
|
|
47
|
+
* @default localhost
|
|
48
|
+
*/
|
|
49
|
+
host: string;
|
|
50
|
+
/**
|
|
51
|
+
* The port of the base URL.
|
|
52
|
+
* @type {String}
|
|
53
|
+
* @default 9440
|
|
54
|
+
*/
|
|
55
|
+
port: string;
|
|
56
|
+
/**
|
|
57
|
+
* The authentication methods to be included for all API calls.
|
|
58
|
+
* @type {Array.<String>}
|
|
59
|
+
*/
|
|
60
|
+
authentications: Array<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The default HTTP headers to be included for all API calls.
|
|
63
|
+
* @type {Array.<String>}
|
|
64
|
+
* @default {}
|
|
65
|
+
*/
|
|
66
|
+
defaultHeaders: Array<string>;
|
|
67
|
+
/**
|
|
68
|
+
* The default HTTP read timeout in milliseconds for all API calls.
|
|
69
|
+
* @type {Number}
|
|
70
|
+
* @default 30000
|
|
71
|
+
*/
|
|
72
|
+
readTimeout: number;
|
|
73
|
+
/**
|
|
74
|
+
* The default HTTP connection timeout in milliseconds for all API calls.
|
|
75
|
+
* @type {Number}
|
|
76
|
+
* @default 30000
|
|
77
|
+
*/
|
|
78
|
+
connectTimeout: number;
|
|
79
|
+
/**
|
|
80
|
+
* If set to false an additional timestamp parameter is added to all API GET calls to
|
|
81
|
+
* prevent browser caching
|
|
82
|
+
* @type {Boolean}
|
|
83
|
+
* @default true
|
|
84
|
+
*/
|
|
85
|
+
cache: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* The maximum number of redirects to be followed for all API calls.
|
|
88
|
+
* @type {Number}
|
|
89
|
+
* @default 1
|
|
90
|
+
*/
|
|
91
|
+
maxRedirects: number;
|
|
92
|
+
/**
|
|
93
|
+
* The maximum number of retry attempts to be made by the client
|
|
94
|
+
* in case of server error.
|
|
95
|
+
* @type {Number}
|
|
96
|
+
* @default 5
|
|
97
|
+
*/
|
|
98
|
+
maxRetryAttempts: number;
|
|
99
|
+
/**
|
|
100
|
+
* The delay period (in milliseconds) between two consecutive retry attempts
|
|
101
|
+
* @type {Number}
|
|
102
|
+
* @default 3000
|
|
103
|
+
*/
|
|
104
|
+
retryInterval: number;
|
|
105
|
+
agent: any;
|
|
106
|
+
/**
|
|
107
|
+
* Allow user to override superagent agent
|
|
108
|
+
*/
|
|
109
|
+
requestAgent: any;
|
|
110
|
+
/**
|
|
111
|
+
* Allow SDK to print debug logs
|
|
112
|
+
*/
|
|
113
|
+
debug: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Username for basic auth
|
|
116
|
+
*/
|
|
117
|
+
username: any;
|
|
118
|
+
/**
|
|
119
|
+
* Password for basic auth
|
|
120
|
+
*/
|
|
121
|
+
password: any;
|
|
122
|
+
downloadDestination: string;
|
|
123
|
+
/**
|
|
124
|
+
* Configure log file to write activity logs
|
|
125
|
+
* @param logfile The destination file (write stream / string)
|
|
126
|
+
*/
|
|
127
|
+
set loggerFile(arg: any);
|
|
128
|
+
/**
|
|
129
|
+
* Enable/Disable SSL Verification
|
|
130
|
+
* @param verifySsl (boolean)
|
|
131
|
+
*/
|
|
132
|
+
set verifySsl(arg: boolean);
|
|
133
|
+
get verifySsl(): boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Adds key value pair to default headers map, (to be added to every API call request)
|
|
136
|
+
* @param {String} key The key
|
|
137
|
+
* @param {String} value The corresponding value
|
|
138
|
+
*/
|
|
139
|
+
addDefaultHeader(key: string, value: string): void;
|
|
140
|
+
paramToString(param: any): any;
|
|
141
|
+
buildUrl(path: any, pathParams: any): string;
|
|
142
|
+
buildCollectionParam(param: any, collectionFormat: any): any;
|
|
143
|
+
setApiKey(key: any): void;
|
|
144
|
+
addEtagToReservedMap(response: any, data: any): any;
|
|
145
|
+
/**
|
|
146
|
+
* Invokes the REST service using the supplied settings and parameters.
|
|
147
|
+
* @param {String} path The base URL to invoke.
|
|
148
|
+
* @param {String} httpMethod The HTTP method to use.
|
|
149
|
+
* @param {Object.<String, String>} pathParams A map of path parameters and their values.
|
|
150
|
+
* @param {Object.<String, Object>} queryParams A map of query parameters and their values.
|
|
151
|
+
* @param {Object.<String, Object>} headerParams A map of header parameters and their values.
|
|
152
|
+
* @param {Object.<String, Object>} formParams A map of form parameters and their values.
|
|
153
|
+
* @param {Object} bodyParam The value to pass as the request body.
|
|
154
|
+
* @param {Array.<String>} authNames An array of authentication type names.
|
|
155
|
+
* @param {Array.<String>} contentTypes An array of request MIME types.
|
|
156
|
+
* @param {Array.<String>} accepts An array of acceptable response MIME types.
|
|
157
|
+
* @param {(String|Array|Object|Function)} returnType The required type to return; can be a string for simple types or the
|
|
158
|
+
* constructor for a complex type.
|
|
159
|
+
* @returns {Promise} A {@link https://www.promisejs.org/|Promise} object.
|
|
160
|
+
*/
|
|
161
|
+
callApi(path: string, httpMethod: string, pathParams: any, queryParams: any, headerParams: any, formParams: any, bodyParam: any, authNames: Array<string>, contentTypes: Array<string>, accepts: Array<string>, returnType: (string | any[] | any | Function)): Promise<any>;
|
|
162
|
+
#private;
|
|
163
|
+
}
|
|
164
|
+
export namespace ApiClient {
|
|
165
|
+
const instance: ApiClient;
|
|
166
|
+
}
|