@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 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Ntnx=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.Security=t())}("undefined"==typeof self?this:self,(()=>(()=>{var e={960:e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},340:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=a,a.default=a,a.stable=d,a.stableStringify=d;var n="[...]",r="[Circular]",o=[],i=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,t,n,r){var a;void 0===r&&(r=s()),l(e,"",0,[],void 0,0,r);try{a=0===i.length?JSON.stringify(e,t,n):JSON.stringify(e,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var u=o.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return a}function u(e,t,n,r){var s=Object.getOwnPropertyDescriptor(r,n);void 0!==s.get?s.configurable?(Object.defineProperty(r,n,{value:e}),o.push([r,n,t,s])):i.push([t,n,e]):(r[n]=e,o.push([r,n,t]))}function l(e,o,i,s,a,c,d){var f;if(c+=1,"object"===t(e)&&null!==e){for(f=0;f<s.length;f++)if(s[f]===e)return void u(r,e,o,a);if(void 0!==d.depthLimit&&c>d.depthLimit)return void u(n,e,o,a);if(void 0!==d.edgesLimit&&i+1>d.edgesLimit)return void u(n,e,o,a);if(s.push(e),Array.isArray(e))for(f=0;f<e.length;f++)l(e[f],f,f,s,e,c,d);else{var p=Object.keys(e);for(f=0;f<p.length;f++){var y=p[f];l(e[y],y,f,s,e,c,d)}}s.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function d(e,t,n,r){void 0===r&&(r=s());var a,u=f(e,"",0,[],void 0,0,r)||e;try{a=0===i.length?JSON.stringify(u,t,n):JSON.stringify(u,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var l=o.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return a}function f(e,i,s,a,l,d,p){var y;if(d+=1,"object"===t(e)&&null!==e){for(y=0;y<a.length;y++)if(a[y]===e)return void u(r,e,i,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==p.depthLimit&&d>p.depthLimit)return void u(n,e,i,l);if(void 0!==p.edgesLimit&&s+1>p.edgesLimit)return void u(n,e,i,l);if(a.push(e),Array.isArray(e))for(y=0;y<e.length;y++)f(e[y],y,y,a,e,d,p);else{var h={},v=Object.keys(e).sort(c);for(y=0;y<v.length;y++){var b=v[y];f(e[b],b,y,a,e,d,p),h[b]=e[b]}if(void 0===l)return h;o.push([l,i,e]),l[i]=h}a.pop()}}function p(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var r=0;r<i.length;r++){var o=i[r];if(o[1]===t&&o[0]===n){n=o[2],i.splice(r,1);break}}return e.call(this,t,n)}}},784:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o="win32"===process.platform,i=n(818);function s(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];o&&"."!==o&&(".."===o?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(o))}return n}function a(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var r=t;r>=0&&!e[r];r--);return 0===n&&r===t?e:n>r?[]:e.slice(n,r+1)}var u=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,c={};function d(e){var t=u.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",o=l.exec(r);return[n,o[1],o[2],o[3]]}function f(e){var t=u.exec(e),n=t[1]||"",r=!!n&&":"!==n[1];return{device:n,isUnc:r,isAbsolute:r||!!t[2],tail:t[3]}}function p(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}c.resolve=function(){for(var e="",t="",n=!1,r=arguments.length-1;r>=-1;r--){var o;if(r>=0?o=arguments[r]:e?(o=process.env["="+e])&&o.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(o=e+"\\"):o=process.cwd(),!i.isString(o))throw new TypeError("Arguments to path.resolve must be strings");if(o){var a=f(o),u=a.device,l=a.isUnc,c=a.isAbsolute,d=a.tail;if((!u||!e||u.toLowerCase()===e.toLowerCase())&&(e||(e=u),n||(t=d+"\\"+t,n=c),e&&n))break}}return l&&(e=p(e)),e+(n?"\\":"")+(t=s(t.split(/[\\\/]+/),!n).join("\\"))||"."},c.normalize=function(e){var t=f(e),n=t.device,r=t.isUnc,o=t.isAbsolute,i=t.tail,a=/[\\\/]$/.test(i);return(i=s(i.split(/[\\\/]+/),!o).join("\\"))||o||(i="."),i&&a&&(i+="\\"),r&&(n=p(n)),n+(o?"\\":"")+i},c.isAbsolute=function(e){return f(e).isAbsolute},c.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var r=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(r=r.replace(/^[\\\/]{2,}/,"\\")),c.normalize(r)},c.relative=function(e,t){e=c.resolve(e),t=c.resolve(t);for(var n=e.toLowerCase(),r=t.toLowerCase(),o=a(t.split("\\")),i=a(n.split("\\")),s=a(r.split("\\")),u=Math.min(i.length,s.length),l=u,d=0;d<u;d++)if(i[d]!==s[d]){l=d;break}if(0==l)return t;var f=[];for(d=l;d<i.length;d++)f.push("..");return(f=f.concat(o.slice(l))).join("\\")},c._makeLong=function(e){if(!i.isString(e))return e;if(!e)return"";var t=c.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},c.dirname=function(e){var t=d(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},c.basename=function(e,t){var n=d(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},c.extname=function(e){return d(e)[3]},c.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));var n=e.dir,o=e.base||"";return n?n[n.length-1]===c.sep?n+o:n+c.sep+o:o},c.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=d(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},c.sep="\\",c.delimiter=";";var y=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,h={};function v(e){return y.exec(e).slice(1)}h.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:process.cwd();if(!i.isString(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r[0])}return(t?"/":"")+(e=s(e.split("/"),!t).join("/"))||"."},h.normalize=function(e){var t=h.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=s(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},h.isAbsolute=function(e){return"/"===e.charAt(0)},h.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return h.normalize(e)},h.relative=function(e,t){e=h.resolve(e).substr(1),t=h.resolve(t).substr(1);for(var n=a(e.split("/")),r=a(t.split("/")),o=Math.min(n.length,r.length),i=o,s=0;s<o;s++)if(n[s]!==r[s]){i=s;break}var u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(r.slice(i))).join("/")},h._makeLong=function(e){return e},h.dirname=function(e){var t=v(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},h.basename=function(e,t){var n=v(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},h.extname=function(e){return v(e)[3]},h.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));return(e.dir?e.dir+h.sep:"")+(e.base||"")},h.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=v(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},h.sep="/",h.delimiter=":",e.exports=o?c:h,e.exports.posix=h,e.exports.win32=c},540:e=>{function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,r){if(r)return r(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){var o=t.status;if(o>=500)return!0;if((o>=400||o<200)&&-1===n.indexOf(o))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){var n;n=this._retries?this._retryDelays[this._retries-1]:0;var r=this;return setTimeout((function(){return r._retry()}),n)}var o=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),o(e,t)}function n(e,t,n,r){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);var o=t.length,i=e-o;if(0!==i){if(i<0)throw new Error("Cannot have more delays than retries");for(var s=t[o-1],a=0;a<i+1;a++)t.push(s)}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=r,this}e.exports=function(e){var r=e.Request;return r.prototype.oldRetry=r.prototype.retry,r.prototype.retry=n,r.prototype.callback=t,e}},619:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}})),n.prototype._setDefaults=function(e){this._defaults.forEach((function(n){var r;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(r=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}))},e.exports=n},585:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var i=n(960),s=n(340),a=n(695),u=n(388),l=n(19),c=n(619);function d(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var f=t=e.exports;t.Request=m,f.getXHR=function(){if(o.XMLHttpRequest&&(!o.location||"file:"!==o.location.protocol||!o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function y(e){if(!u(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&h(t,n,e[n]);return t.join("&")}function h(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){h(e,t,n)}));else if(u(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&h(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function v(e){for(var t,n,r={},o=e.split("&"),i=0,s=o.length;i<s;++i)-1===(n=(t=o[i]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function b(e){return/[/+]json($|[^-\w])/.test(e)}function g(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,o,i=e.split(/\r?\n/),s={},a=0,u=i.length;a<u;++a)-1!==(t=(n=i[a]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),o=p(n.slice(t+1)),s[r]=o);return s}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function m(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,r=null;try{r=new g(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}function w(e,t,n){var r=f("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}f.serializeObject=y,f.parseString=v,f.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},f.serialize={"application/x-www-form-urlencoded":y,"application/json":s},f.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},l(g.prototype),g.prototype._parseBody=function(e){var t=f.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=f.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},g.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},f.Response=g,i(m.prototype),a(m.prototype),m.prototype.type=function(e){return this.set("Content-Type",f.types[e]||e),this},m.prototype.accept=function(e){return this.set("Accept",f.types[e]||e),this},m.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,(function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")}))},m.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},m.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},m.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},m.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},m.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},m.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},m.prototype.ca=m.prototype.agent,m.prototype.buffer=m.prototype.ca,m.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},m.prototype.pipe=m.prototype.write,m.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},m.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||d,this._finalizeQueryString(),this._end()},m.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},m.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=f.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||f.serialize[o?o.split(";")[0]:""];!i&&b(o)&&(i=f.serialize["application/json"]),i&&(n=i(n))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&t.setRequestHeader(s,this.header[s]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){c.prototype[e.toLowerCase()]=function(t,n){var r=new f.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),c.prototype.del=c.prototype.delete,f.get=function(e,t,n){var r=f("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},f.head=function(e,t,n){var r=f("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},f.options=function(e,t,n){var r=f("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.del=w,f.delete=w,f.patch=function(e,t,n){var r=f("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.post=function(e,t,n){var r=f("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.put=function(e,t,n){var r=f("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},388:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},695:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(388);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(e){return this._parser=e,this},i.prototype.responseType=function(e){return this._responseType=e,this},i.prototype.serialize=function(e){return this._serializer=e,this},i.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},i.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var s=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];i.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&s.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},i.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=o(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},19:(e,t,n)=>{"use strict";var r=n(897);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},897:(e,t)=>{"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce((function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e}),{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},597:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},98:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return e&&"object"===t(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},818:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),u=r[n];n<i;u=r[++n])h(u)||!w(u)?s+=" "+u:s+=" "+a(u);return s},t.deprecate=function(e,r){if(g(n.g.process))return function(){return t.deprecate(e,r).apply(this,arguments)};if(!0===process.noDeprecation)return e;var o=!1;return function(){if(!o){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),o=!0}return e.apply(this,arguments)}};var i,s={};function a(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),c(r,e,r.depth)}function u(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function l(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&k(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=c(e,o,r)),o}var i=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):h(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),j(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(n);if(0===s.length){if(k(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(m(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(j(n))return d(n)}var l,w="",P=!1,$=["{","}"];return p(n)&&(P=!0,$=["[","]"]),k(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),m(n)&&(w=" "+RegExp.prototype.toString.call(n)),O(n)&&(w=" "+Date.prototype.toUTCString.call(n)),j(n)&&(w=" "+d(n)),0!==s.length||P&&0!=n.length?r<0?m(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=P?function(e,t,n,r,o){for(var i=[],s=0,a=t.length;s<a;++s)T(t,String(s))?i.push(f(e,t,n,r,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(f(e,t,n,r,o,!0))})),i}(e,n,r,a,s):s.map((function(t){return f(e,n,r,a,t,P)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,w,$)):$[0]+w+$[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,o,i){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),T(r,o)||(s="["+o+"]"),a||(e.seen.indexOf(u.value)<0?(a=h(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),g(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function p(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function h(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function g(e){return void 0===e}function m(e){return w(e)&&"[object RegExp]"===P(e)}function w(e){return"object"===r(e)&&null!==e}function O(e){return w(e)&&"[object Date]"===P(e)}function j(e){return w(e)&&("[object Error]"===P(e)||e instanceof Error)}function k(e){return"function"==typeof e}function P(e){return Object.prototype.toString.call(e)}function $(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(g(i)&&(i=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=process.pid;s[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=y,t.isNull=h,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=g,t.isRegExp=m,t.isObject=w,t.isDate=O,t.isError=j,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=n(98);var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[$((e=new Date).getHours()),$(e.getMinutes()),$(e.getSeconds())].join(":"),[e.getDate(),E[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(597),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},548:()=>{},799:()=>{},545:()=>{},965:()=>{}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";n.d(r,{default:()=>$p});var e=n(585),t=n.n(e);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}var u,l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"getFirstPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}},{key:"getPrevPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}},{key:"getNextPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}},{key:"getLastPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}},{key:"currentPage",value:function(){return null===this.page?0:this.page}},{key:"countPages",value:function(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}},{key:"isFirstPage",value:function(){return 0===this.currentPage()}},{key:"isLastPage",value:function(){return this.currentPage()===this.countPages()-1}},{key:"populatePaginationMetadata",value:function(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}},{key:"_getLink",value:function(e){null===this.apiClient&&(this.apiClient=lt.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}],r=[{key:"constructFromObject",value:function(t,n){if(t){if(n=n||new e,t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){var r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}(t.links);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(s.hasOwnProperty("rel")&&s.hasOwnProperty("href"))switch(s.rel){case"first":n.linkFirst=s.href;break;case"prev":n.linkPrev=s.href;break;case"next":n.linkNext=s.href;break;case"last":n.linkLast=s.href}}}catch(e){o.e(e)}finally{o.f()}}t.hasOwnProperty("totalAvailableResults")&&(n.resultsTotal=t.totalAvailableResults)}return n}}],n&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();l.prototype.linkFirst=null,l.prototype.linkPrev=null,l.prototype.linkNext=null,l.prototype.linkLast=null,l.prototype.apiClient=null,l.prototype.page=null,l.prototype.resultsPerPage=null,l.prototype.resultsTotal=null;var c=new Uint8Array(16);function d(){if(!u&&!(u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(c)}const f=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var p=[],y=0;y<256;++y)p.push((y+256).toString(16).substr(1));const h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(p[e[t+0]]+p[e[t+1]]+p[e[t+2]]+p[e[t+3]]+"-"+p[e[t+4]]+p[e[t+5]]+"-"+p[e[t+6]]+p[e[t+7]]+"-"+p[e[t+8]]+p[e[t+9]]+"-"+p[e[t+10]]+p[e[t+11]]+p[e[t+12]]+p[e[t+13]]+p[e[t+14]]+p[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&f.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},v=function(e,t,n){var r=(e=e||{}).random||(e.rng||d)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return h(r)};var b=n(540),g=n.n(b),m=n(545),w=n.n(m),O=n(799),j=n.n(O),k=n(784),P=n.n(k),$=n(548),E={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return E[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===E.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(E);const T=E;function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,F(r.key),r)}}function F(e){var t=function(e){if("object"!=S(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(t)?t:t+""}var A=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"validateMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMinimum",value:function(e,t){return!(null===t||e<t)}},{key:"validateExclusiveMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateExclusiveMinimum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMultipleOf",value:function(e,t){return!(null===t||e%t==0)}},{key:"validateMaxLength",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinLength",value:function(e,t){return!(null===t||e.length<t)}},{key:"validatePattern",value:function(e,t){return!(null===t||null===e.match(t))}},{key:"validateMaxItems",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinItems",value:function(e,t){return!(null===t||e.length<t)}},{key:"validateUniqueItems",value:function(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}],null&&I(e.prototype,null),t&&I(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,x(r.key),r)}}function x(e){var t=function(e){if("object"!=C(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=C(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==C(t)?t:t+""}var R=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.message=n},(t=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"toJson",value:function(){return{name:this.getName(),message:this.getMessage()}}}])&&D(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e,t,n){return(t=B(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,B(r.key),r)}}function B(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}var M=new WeakSet,J=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,M),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return U(U(U({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new R("name","undefined or null");if(!A.validateMaxLength(this.name,128))return new R("name","does not satisfy required maxLength constraint: 128");if(!A.validateMinLength(this.name,3))return new R("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=U({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&V(t.prototype,n),r&&V(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function H(e){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(e)}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function z(e,t,n){return(t=Y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Y(r.key),r)}}function Y(e){var t=function(e){if("object"!=H(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=H(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==H(t)?t:t+""}function Q(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")}J.prototype.name=void 0,J.prototype.value=!1,J.prototype.$reserved=void 0,J.prototype.$objectType=void 0,J.prototype.$unknownFields=void 0;var X=new WeakSet,Z=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,X),this.$objectType="common.v1.config.MapOfStringWrapper",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMap",value:function(){return this.map}},{key:"setMap",value:function(e){this.map=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return q(q({},!1===e?void 0!==this.getMap()&&null!==this.getMap()?{map:Q(X,this,ee).call(this,this.getMap(),!1)}:{}:void 0!==this.getMap()&&null!==this.getMap()?{map:Q(X,this,ee).call(this,this.getMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"map"!==t||void 0!==this.map&&null!==this.map?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("map","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("map")&&null!==t.map&&void 0!==t.map&&n.setMap(t.map),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=q({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&G(t.prototype,n),r&&G(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ee(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return W(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===H(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ie(e,t,n){return(t=ae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ae(r.key),r)}}function ae(e){var t=function(e){if("object"!=ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ne(t)?t:t+""}function ue(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")}Z.prototype.map=void 0,Z.prototype.$reserved=void 0,Z.prototype.$objectType=void 0,Z.prototype.$unknownFields=void 0;var le=new WeakSet,ce=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,le),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return oe(oe(oe({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),!1===e?void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ue(le,this,de).call(this,this.getValue(),!1)}:{}:void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):ue(le,this,de).call(this,this.getValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new R("name","undefined or null");if(!A.validateMaxLength(this.name,128))return new R("name","does not satisfy required maxLength constraint: 128");if(!A.validateMinLength(this.name,3))return new R("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&a.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)if(Array.isArray(t.value))if(0===t.value.length)a.setValue([]);else{for(i=[],s=(n=t.value)[0].hasOwnProperty("$objectType")?n[0].$objectType:ne(n[0]),o=0;o<n.length;o++)switch(s){case"string":case"integer":case"number":i.push(n[o]);break;case"common.v1.config.MapOfStringWrapper":r=Z.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+s+" in data"}a.setValue(i)}else switch(s=t.value.hasOwnProperty("$objectType")?t.value.$objectType:ne(t.value)){case"string":case"boolean":case"number":a.setValue(t.value);break;case"object":a.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+s+" in data"}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!u)for(var l in a.$unknownFields=oe({},t.$unknownFields),t)Object.keys(a).includes(l)||Object.keys(a).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(a.$unknownFields[l]=t[l])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&se(t.prototype,n),r&&se(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function de(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===ne(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}ce.prototype.name=void 0,ce.prototype.value=void 0,ce.prototype.$reserved=void 0,ce.prototype.$objectType=void 0,ce.prototype.$unknownFields=void 0;var fe={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(fe).find((function(t){return fe[t]===e}));return null==t?fe.$UNKNOWN:fe[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case fe.$UNKNOWN:case fe.$REDACTED:case fe.INFO:case fe.WARNING:case fe.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(fe);const pe=fe;function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function be(e,t,n){return(t=me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,me(r.key),r)}}function me(e){var t=function(e){if("object"!=ye(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ye(t)?t:t+""}var we=new WeakSet,Oe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,we),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ve(ve(ve(ve(ve({},void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("severity","undefined or null"):new R("locale","undefined or null"):new R("message","undefined or null"):new R("code","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(pe.constructFromObject(t.severity)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ve({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ge(t.prototype,n),r&&ge(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){$e(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $e(e,t,n){return(t=Te(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Te(r.key),r)}}function Te(e){var t=function(e){if("object"!=je(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=je(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==je(t)?t:t+""}Oe.prototype.code=void 0,Oe.prototype.message=void 0,Oe.prototype.locale="en_US",Oe.prototype.severity=void 0,Oe.prototype.$reserved=void 0,Oe.prototype.$objectType=void 0,Oe.prototype.$unknownFields=void 0;var Se=new WeakSet,Ie=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Se),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getHref",value:function(){return this.href}},{key:"setHref",value:function(e){this.href=e}},{key:"getRel",value:function(){return this.rel}},{key:"setRel",value:function(e){this.rel=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pe(Pe(Pe({},void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{}),void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("rel","undefined or null"):new R("href","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("href")&&null!==t.href&&void 0!==t.href&&n.setHref(t.href),t.hasOwnProperty("rel")&&null!==t.rel&&void 0!==t.rel&&n.setRel(t.rel),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Pe({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Ee(t.prototype,n),r&&Ee(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Fe(e){return Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fe(e)}function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){De(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function De(e,t,n){return(t=Re(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Re(r.key),r)}}function Re(e){var t=function(e){if("object"!=Fe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fe(t)?t:t+""}Ie.prototype.href=void 0,Ie.prototype.rel=void 0,Ie.prototype.$reserved=void 0,Ie.prototype.$objectType=void 0,Ie.prototype.$unknownFields=void 0;var Ne,_e=new WeakSet,Ue=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,_e),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getFlags",value:function(){return this.flags}},{key:"setFlags",value:function(e){this.flags=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"getTotalAvailableResults",value:function(){return this.totalAvailableResults}},{key:"setTotalAvailableResults",value:function(e){this.totalAvailableResults=e}},{key:"getMessages",value:function(){return this.messages}},{key:"setMessages",value:function(e){this.messages=e}},{key:"getExtraInfo",value:function(){return this.extraInfo}},{key:"setExtraInfo",value:function(e){this.extraInfo=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ce(Ce(Ce(Ce(Ce(Ce({},void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{}),void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("flags"===t){if(void 0===this.flags||null===this.flags)return new R("flags","undefined or null");if(!A.validateMaxItems(this.flags,20))return new R("flags","does not satisfy required maxItems constraint: 20")}if("links"===t){if(void 0===this.links||null===this.links)return new R("links","undefined or null");if(!A.validateMaxItems(this.links,20))return new R("links","does not satisfy required maxItems constraint: 20")}if("totalAvailableResults"===t&&(void 0===this.totalAvailableResults||null===this.totalAvailableResults))return new R("totalAvailableResults","undefined or null");if("messages"===t){if(void 0===this.messages||null===this.messages)return new R("messages","undefined or null");if(!A.validateMaxItems(this.messages,20))return new R("messages","does not satisfy required maxItems constraint: 20")}if("extraInfo"===t){if(void 0===this.extraInfo||null===this.extraInfo)return new R("extraInfo","undefined or null");if(!A.validateMaxItems(this.extraInfo,20))return new R("extraInfo","does not satisfy required maxItems constraint: 20")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(i=[],n=t.flags,o=0;o<n.length;o++)r=J.constructFromObject(n[o],void 0),i.push(r);s.setFlags(i)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(i=[],n=t.links,o=0;o<n.length;o++)r=Ie.constructFromObject(n[o],void 0),i.push(r);s.setLinks(i)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&s.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(i=[],n=t.messages,o=0;o<n.length;o++)r=Oe.constructFromObject(n[o],void 0),i.push(r);s.setMessages(i)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(i=[],n=t.extraInfo,o=0;o<n.length;o++)r=ce.constructFromObject(n[o],void 0),i.push(r);s.setExtraInfo(i)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=Ce({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&xe(t.prototype,n),r&&xe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Le(){Le=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=RegExp(e,r);return t.set(i,o||t.get(e)),Ve(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t}),Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ve(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=He(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,s)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Le.apply(this,arguments)}function Ve(e,t){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ve(e,t)}function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){Je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Je(e,t,n){return(t=ze(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function He(e){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},He(e)}function We(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ke(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ke(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function Ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ze(r.key),r)}}function ze(e){var t=function(e){if("object"!=He(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=He(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==He(t)?t:t+""}function Ge(e,t,n){Ye(e,t),t.set(e,n)}function Ye(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Qe(e,t){return e.get(Ze(e,t))}function Xe(e,t,n){return e.set(Ze(e,t),n),n}function Ze(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")}Ue.prototype.flags=void 0,Ue.prototype.links=void 0,Ue.prototype.totalAvailableResults=void 0,Ue.prototype.messages=void 0,Ue.prototype.extraInfo=void 0,Ue.prototype.$reserved=void 0,Ue.prototype.$objectType=void 0,Ue.prototype.$unknownFields=void 0,g()(t());var et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap,ot=new WeakMap,it=new WeakMap,st=new WeakMap,at=new WeakMap,ut=new WeakSet,lt=function(){function e(){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ye(this,n=ut),n.add(this),Ge(this,et,void 0),Ge(this,tt,void 0),Ge(this,nt,void 0),Ge(this,rt,void 0),Ge(this,ot,void 0),Ge(this,it,void 0),Ge(this,st,void 0),Ge(this,at,void 0),Xe(at,this,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",this.host="undefined"==typeof self?"localhost":self.location.hostname,this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={apiKeyAuthScheme:{type:"apiKey",in:"header",name:"X-ntnx-api-key"},basicAuthScheme:{type:"basic"}},this.defaultHeaders={},Xe(ot,this,3e4),Xe(it,this,3e4),Xe(st,this,108e5),this.readTimeout=Qe(it,this),this.connectTimeout=Qe(ot,this),this.cache=!0,Xe(tt,this,null),this.maxRedirects=1,this.maxRetryAttempts=5,this.retryInterval=3e3,"undefined"==typeof self&&(this.agent=new(t().agent)),this.requestAgent=null,this.debug=!1,Xe(nt,this,null),this.username=null,this.password=null,Xe(rt,this,!0),this.downloadDestination=null,this.loggerFile=null}return r=e,o=[{key:"verifySsl",get:function(){return Qe(rt,this)},set:function(e){this.requestAgent=e?null:new(w().Agent)({rejectUnauthorized:!1}),Xe(rt,this,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=j().createWriteStream(e,{flags:"a"})),Xe(nt,this,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&Xe(tt,this,null),this.defaultHeaders[e]=t}},{key:"paramToString",value:function(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}},{key:"buildUrl",value:function(e,t){var n=this;e.match(/^\//)||(e="/"+e),Xe(et,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==Qe(et,this)&&""!==this.host&&""!==this.port?r=Qe(et,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(r=self.origin);var o=r+e;return o.replace(/\{([\w-]+)\}/g,(function(e,r){var o;return o=t.hasOwnProperty(r)?n.paramToString(t[r]):e,encodeURIComponent(o)}))}},{key:"buildCollectionParam",value:function(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}},{key:"setApiKey",value:function(e){this.authentications.apiKeyAuthScheme.apiKey=null==e||"string"==typeof e||e instanceof String?e:void 0}},{key:"addEtagToReservedMap",value:function(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){var n=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0){var r,o=We(t.getData());try{for(o.s();!(r=o.n()).done;){var i=r.value;i.hasOwnProperty("$reserved")&&void 0!==i.get$Reserved()&&(i.get$Reserved().ETag=n)}}catch(e){o.e(e)}finally{o.f()}}else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=n)}return t}},{key:"callApi",value:function(e,r,o,i,s,a,u,l,c,d,f){var p=this,y=this.buildUrl(e,o),h=t()(r,y);if(h.oldCallback=h.callback,h.callback=function(e,t){if(t&&t.status){var n=t.status;if(n>=400&&401!==n&&408!==n&&429!==n&&503!==n&&504!==n&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1),429===n){var r=t.headers["retry-after"];if(r){var o=1e3*parseInt(r,10);this._retryDelays[this._retries]=o}}}this.oldCallback(e,t)},Ze(ut,this,yt).call(this,h,l),"GET"===r.toUpperCase()&&!1===this.cache&&(i._=(new Date).getTime()),h.query(Ze(ut,this,pt).call(this,i)),h.set(this.defaultHeaders).set(Ze(ut,this,pt).call(this,s)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==s["NTNX-Request-Id"]&&void 0!==s["NTNX-Request-Id"])){var b=v();h.set(Ze(ut,this,pt).call(this,{"NTNX-Request-Id":b}))}var g="undefined"!=typeof window&&void 0!==window.document;g||(this.downloadDestination=".",h.set(Ze(ut,this,pt).call(this,{"User-Agent":"Nutanix-security-js-client/4.0.1-beta.1"}))),this.requestAgent&&h.agent(this.requestAgent);var m={};m.response=Ze(ut,this,gt).call(this,this.connectTimeout,Qe(ot,this)),m.deadline=Ze(ut,this,gt).call(this,this.readTimeout,Qe(it,this)),h.timeout(m);var w=s.hasOwnProperty("Content-Type")?s["Content-Type"]:Ze(ut,this,dt).call(this,c);if(w?"multipart/form-data"!=w&&h.type(w):h.header["Content-Type"]||h.type("application/json"),Ze(ut,this,Ot).call(this,Qe(at,this).INFO,null,"Request URL :",r,y),Ze(ut,this,Ot).call(this,Qe(at,this).DEBUG,Ze(ut,this,Pt),"Request Headers :",void 0===h.header?"":h.header),"application/x-www-form-urlencoded"===w)h.send(Ze(ut,this,pt).call(this,a));else if("multipart/form-data"==w){var O=Ze(ut,this,pt).call(this,a);for(var k in O)O.hasOwnProperty(k)&&(Ze(ut,this,ft).call(this,O[k])?h.attach(k,O[k]):h.field(k,O[k]))}else{if("application/octet-stream"===w&&null!=u&&"function"==typeof u.pipe){if(Ze(ut,this,Ot).call(this,Qe(at,this).INFO,null,"Piping octet-stream request"),"function"==typeof u.pipe)u.pipe(h);else{var P;try{P=n(965)}catch(e){Ze(ut,this,Ot).call(this,Qe(at,this).ERROR,null,"Error fetching steam/web")}u instanceof P.ReadableStream?u.pipeTo(new P.WritableStream({write:function(e){h.write(e)},close:function(){Ze(ut,this,Ot).call(this,Qe(at,this).INFO,null,"READABLE STREAM CLOSED")},abort:function(e){Ze(ut,this,Ot).call(this,Qe(at,this).ERROR,null,"READABLE STREAM ABORTED")}})):h.send(u)}return new Promise((function(t,n){h.on("error",(function(e){Ze(ut,p,Ot).call(p,Qe(at,p).DEBUG,null,"Caught the following error :",e),n(e)})).on("response",(function(r){Ze(ut,p,$t).call(p,r,e,i,f,t,n)}))}))}u&&h.send(u)}"Blob"==typeof f?h.responseType("blob"):"String"===f&&h.responseType("string"),Ze(ut,this,wt).call(this,h),Ze(ut,this,Ot).call(this,Qe(at,this).DEBUG,null,"Request Body :",void 0===h._data?"":h._data);var $=s.hasOwnProperty("Accept")&&null!=s.Accept?s.Accept:d.join(", "),E=["application/octet-stream","application/pdf","application/zip"];return $&&h.accept($),new Promise((function(o,s){h.buffer(!1).redirects(0).retry(p.maxRetryAttempts,p.retryInterval,[]).on("error",(function(e){Ze(ut,p,Ot).call(p,Qe(at,p).DEBUG,null,"Caught the following error :",e)})).end((function(a,u){if(a)Ze(ut,p,Ot).call(p,Qe(at,p).DEBUG,null,"Caught error during the request!"),Ze(ut,p,Ot).call(p,Qe(at,p).ERROR,null,a),null!==a.response&&void 0!==a.response?a.data=Ze(ut,p,vt).call(p,a.response,f):a.data=Ze(ut,p,ht).call(p,a),s(a);else{Ze(ut,p,Ot).call(p,Qe(at,p).INFO,null,"Response Status :",u.status),Ze(ut,p,Ot).call(p,Qe(at,p).DEBUG,Ze(ut,p,Pt),"Response Headers :",u.headers);var l="";if(u.headers.hasOwnProperty("content-type")&&(l=u.headers["content-type"]),E.some((function(e){return l.includes(e)})))if(g){var c;try{c=n(965)}catch(e){Ze(ut,p,Ot).call(p,Qe(at,p).ERROR,null,"Error fetching steam/web")}if(p.downloadDestination instanceof c.WritableStream){var d=p.downloadDestination.getWriter();try{u.on("data",(function(e){d.write(e)}))}catch(e){Ze(ut,p,Ot).call(p,Qe(at,p).ERROR,null,"Issue while downloading file",e)}u.on("end",(function(){Ze(ut,p,Ot).call(p,Qe(at,p).INFO,null,"Finished streaming response"),d.close();var e=Ze(ut,p,vt).call(p,u,f);o({data:e,response:u})})).on("error",(function(e){Ze(ut,p,Ot).call(p,Qe(at,p).ERROR,null,"Caught the following error :",e),e.data=Ze(ut,p,ht).call(p,e),s(e)}))}else{var y="Incompatible downloadDestination for Browser Environment, must be WritableStream";Ze(ut,p,Ot).call(p,Qe(at,p).ERROR,null,y),s(y)}}else{var v=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt",b=j().createWriteStream(v);Ze(ut,p,Et).call(p,u,b,v,o,s,f)}else if(302==u.status){var m=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt",w=p;Ze(ut,p,Ot).call(p,Qe(at,p).INFO,null,"Redirecting to :",u.headers.location);var O=t()(r,u.headers.location);O.set(h.header),u.headers.hasOwnProperty("x-redirect-token")&&(Ze(ut,p,Ot).call(p,Qe(at,p).INFO,null,"Writing X-Redirect-Token into Cookie"),O.set("Cookie",u.headers["x-redirect-token"])),O.redirects(0),O.buffer(!1);var k=j().createWriteStream(m);O.pipe(k),O.on("response",(function(e){Ze(ut,w,Ot).call(w,Qe(at,w).INFO,null,"Received response after redirection :",e.status),Ze(ut,w,Et).call(w,e,k,m,o,s,f)}))}else Ze(ut,p,$t).call(p,u,e,i,f,o,s)}}))}))}}],i=[{key:"getEtag",value:function(e){var t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}},{key:"getValueForCaseInsensitiveKeyMatch",value:function(e,t){if(e&&t){var n=t.toLowerCase(),r=Object.keys(e).find((function(e){return e.toLowerCase()===n}));return r?e[r]:null}return null}},{key:"addEtagReferenceToHeader",value:function(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){var n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}},{key:"parseDate",value:function(e){return new Date(e)}},{key:"parseQueryParam",value:function(e,t,n,r){var o=null;if(void 0!==t&&t.hasOwnProperty(n)&&(o=t[n]),null===o&&("string"==typeof e||e instanceof String)){var i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=e.match(new RegExp("".concat(i,"=([0-9]+)")));s&&(o=s[1])}return null===o&&(o=r),o}},{key:"convertToType",value:function(t,n){if(null==t)return t;switch(n){case"Boolean":return Boolean(t);case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return String(t);case"Date":return e.parseDate(String(t));case"Blob":return t;default:if(n===Object)return t;if("function"==typeof n)return n.constructFromObject(t);if(Array.isArray(n)){var r=n[0];return t.map((function(t){return e.convertToType(t,r)}))}if("object"===He(n)){var o,i;for(var s in n)if(n.hasOwnProperty(s)){o=s,i=n[s];break}var a={};for(var s in t)if(t.hasOwnProperty(s)){var u=e.convertToType(s,o),l=e.convertToType(t[s],i);a[u]=l}return a}return t}}},{key:"constructFromObject",value:function(t,n,r){if(Array.isArray(t))for(var o=0;o<t.length;o++)t.hasOwnProperty(o)&&(n[o]=e.convertToType(t[o],r));else for(var i in t)t.hasOwnProperty(i)&&(n[i]=e.convertToType(t[i],r))}}],o&&qe(r.prototype,o),i&&qe(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}();function ct(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function dt(e){for(var t=0;t<e.length;t++)if(Ze(ut,this,ct).call(this,e[t]))return e[t];return e[0]}function ft(e){var t;try{t=n(799)}catch(e){}return!!(t&&t.ReadStream&&e instanceof t.ReadStream)||"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof $.Blob&&e instanceof $.Blob||"function"==typeof File&&e instanceof File}function pt(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];Ze(ut,this,ft).call(this,r)||Array.isArray(r)?t[n]=r:t[n]=this.paramToString(r)}return t}function yt(e,t){var n=this;t.forEach((function(t){var r=n.authentications[t];switch(r.type){case"basic":r.username||r.password?e.auth(r.username||"",r.password||""):(n.username||n.password)&&e.auth(n.username||"",n.password||""),Ze(ut,n,Ot).call(n,Qe(at,n).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(r.apiKey){var o={};r.apiKeyPrefix?o[r.name]=r.apiKeyPrefix+" "+r.apiKey:o[r.name]=r.apiKey,"header"===r.in?e.set(o):e.query(o)}Ze(ut,n,Ot).call(n,Qe(at,n).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),Ze(ut,n,Ot).call(n,Qe(at,n).DEBUG,null,"oauth2 applied to request");break;default:throw Ze(ut,n,Ot).call(n,Qe(at,n).ERROR,null,"Unknown authentication type:",r.type),new Error("Unknown authentication type: "+r.type)}}))}function ht(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function vt(e,t){if(null==e||null==t||204==e.status)return null;if(e.headers&&["text/event-stream","text/html","text/xml","text/csv","text/javascript","text/markdown","text/vcard"].includes(e.headers["content-type"])){(i=new t).data=new $.Blob([e.text],{type:e.headers["content-type"]});var n=new J;n.name="hasError",n.value=!1;var r=[n],o=new Ue;return o.flags=r,i.metadata=o,i}var i;return(null==(i=e.body)||"object"===He(i)&&void 0===i.length&&!Object.keys(i).length)&&(i=e.text),Ne.convertToType(i,t)}function bt(e,t,n){if(e instanceof l){var r=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),o=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,r,o)}}function gt(e,t){return e<=0?e=t:e>Qe(st,this)&&(e=Qe(st,this)),e}function mt(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",n=e.headers["set-cookie"];if(n.length>0){var r,o=We(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;(i=i.split(";")[0]).includes("=")&&(i.trim(),t=t.concat(i).concat(";"))}}catch(e){o.e(e)}finally{o.f()}""!==t&&(t=t.substr(0,t.length-1))}Xe(tt,this,t),Ze(ut,this,Ot).call(this,Qe(at,this).DEBUG,null,"Retained cookie :",t)}else Xe(tt,this,null)}function wt(e){null!=Qe(tt,this)&&e.set(Ze(ut,this,pt).call(this,{Cookie:Qe(tt,this)}))}function Ot(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if("object"===He(e)&&"key"in e&&"value"in e&&"symbol"===He(e.value)||(e=Qe(at,this).INFO),!Ze(ut,this,jt).call(this,e)){r=r.map((function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)}));var i=r.join(" ");i=Ze(ut,this,kt).call(this)+" "+e.key+" - "+i,void 0!==Qe(nt,this)&&null!==Qe(nt,this)&&"function"==typeof Qe(nt,this).log?Qe(nt,this).log(i):console.log(i)}}function jt(e){return!this.debug&&e===Qe(at,this).DEBUG}function kt(){var e=Date.now(),t=(new Date).getTimezoneOffset();return new Date(e-60*t*1e3).toISOString().slice(0,23)}function Pt(e){if("object"!==He(e))return e;var t="\n";return e&&Object.keys(e).forEach((function(n){t+=n+"=["+e[n]+"]\n"})),"\n"===t?e:t}function $t(e,t,n,r,o,i){try{var s=Ze(ut,this,vt).call(this,e,r);Ze(ut,this,Ot).call(this,Qe(at,this).INFO,null,"Response Status :",e.status),Ze(ut,this,Ot).call(this,Qe(at,this).DEBUG,Ze(ut,this,Pt),"Response Headers :",e.headers),Ze(ut,this,mt).call(this,e||{}),Ze(ut,this,Ot).call(this,Qe(at,this).DEBUG,null,"Response Body :",s),204==e.status&&null==s?o({data:s,response:e}):e.ok&&null!=s?(this.addEtagToReservedMap(e,s),Ze(ut,this,bt).call(this,s,t,n),o({data:s,response:e})):(Ze(ut,this,Ot).call(this,Qe(at,this).ERROR,null,s),i(Me(Me({},e.error),{},{data:s})))}catch(e){Ze(ut,this,Ot).call(this,Qe(at,this).DEBUG,null,"Caught error while processing response!"),Ze(ut,this,Ot).call(this,Qe(at,this).ERROR,null,e),e.data=Ze(ut,this,ht).call(this,e),i(e)}}function Et(e,t,n,r,o,i){var s=this;Ze(ut,this,Ot).call(this,Qe(at,this).INFO,null,"Streaming response to : ",n);try{e.on("data",(function(e){t.write(e)}))}catch(e){Ze(ut,this,Ot).call(this,Qe(at,this).ERROR,null,"Issue while downloading file",e)}var a=new i,u="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){var l=e.headers["content-disposition"].match(Le(/.*filename="(.*)".*/,{filename:1})),c=P().parse(l.groups.filename);u=this.downloadDestination+"/"+c.name+"_"+Date.now()+c.ext,a.data={path:P().parse(u),$objectType:"Path"};var d=new J;d.name="hasError",d.value=!1;var f=[d],p=new Ue;p.flags=f,a.metadata=p}e.on("end",(function(){Ze(ut,s,Ot).call(s,Qe(at,s).INFO,null,"Finished streaming response"),0!==u.length?(Ze(ut,s,Ot).call(s,Qe(at,s).INFO,null,"Content-Disposition header found [",u,"] is final filename"),t.close(),j().renameSync(n,u),r({data:a,response:e})):(Ze(ut,s,Ot).call(s,Qe(at,s).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),r({data:a,response:e}))})),e.on("error",(function(e){Ze(ut,s,Ot).call(s,Qe(at,s).ERROR,null,"Caught the following error :",e),error.data=Ze(ut,s,ht).call(s,error),o(e)}))}function Tt(e){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tt(e)}function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){Ft(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ft(e,t,n){return(t=Ct(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function At(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ct(r.key),r)}}function Ct(e){var t=function(e){if("object"!=Tt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Tt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tt(t)?t:t+""}Ne=lt,lt.instance=new lt;var Dt=new WeakSet,xt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Dt),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return It(It({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new R("extId","undefined or null");if(!A.validatePattern(this.extId,/^[a-zA-Z0-9\/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/))return new R("extId","does not satisfy required pattern: /^[a-zA-Z0-9/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=It({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&At(t.prototype,n),r&&At(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Rt(e){return Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(e)}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){Lt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lt(e,t,n){return(t=Bt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bt(r.key),r)}}function Bt(e){var t=function(e){if("object"!=Rt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rt(t)?t:t+""}function Mt(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")}xt.prototype.extId=void 0,xt.prototype.$reserved=void 0,xt.prototype.$objectType=void 0,xt.prototype.$unknownFields=void 0;var Jt=new WeakSet,Ht=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Jt),this.$objectType="security.v4.error.AppMessage",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getErrorGroup",value:function(){return this.errorGroup}},{key:"setErrorGroup",value:function(e){this.errorGroup=e}},{key:"getArgumentsMap",value:function(){return this.argumentsMap}},{key:"setArgumentsMap",value:function(e){this.argumentsMap=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ut(Ut(Ut(Ut(Ut(Ut(Ut({},void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{}),!1===e?void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Mt(Jt,this,Wt).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Mt(Jt,this,Wt).call(this,this.getArgumentsMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("argumentsMap","undefined or null"):new R("errorGroup","undefined or null"):new R("locale","undefined or null"):new R("code","undefined or null"):new R("severity","undefined or null"):new R("message","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(pe.constructFromObject(t.severity)),t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("errorGroup")&&null!==t.errorGroup&&void 0!==t.errorGroup&&n.setErrorGroup(t.errorGroup),t.hasOwnProperty("argumentsMap")&&null!==t.argumentsMap&&void 0!==t.argumentsMap&&n.setArgumentsMap(t.argumentsMap),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ut({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Vt(t.prototype,n),r&&Vt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Wt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Nt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nt(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Rt(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){Gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gt(e,t,n){return(t=Qt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qt(r.key),r)}}function Qt(e){var t=function(e){if("object"!=Kt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Kt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kt(t)?t:t+""}Ht.prototype.message=void 0,Ht.prototype.severity=void 0,Ht.prototype.code=void 0,Ht.prototype.locale="en_US",Ht.prototype.errorGroup=void 0,Ht.prototype.argumentsMap=void 0,Ht.prototype.$reserved=void 0,Ht.prototype.$objectType=void 0,Ht.prototype.$unknownFields=void 0;var Xt=new WeakSet,Zt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Xt),this.$objectType="security.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getLocation",value:function(){return this.location}},{key:"setLocation",value:function(e){this.location=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributePath",value:function(){return this.attributePath}},{key:"setAttributePath",value:function(e){this.attributePath=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return zt(zt(zt(zt({},void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("attributePath","undefined or null"):new R("message","undefined or null"):new R("location","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("location")&&null!==t.location&&void 0!==t.location&&n.setLocation(t.location),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("attributePath")&&null!==t.attributePath&&void 0!==t.attributePath&&n.setAttributePath(t.attributePath),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=zt({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Yt(t.prototype,n),r&&Yt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function en(e){return en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},en(e)}function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rn(e,t,n){return(t=sn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function on(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sn(r.key),r)}}function sn(e){var t=function(e){if("object"!=en(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=en(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==en(t)?t:t+""}function an(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")}Zt.prototype.location=void 0,Zt.prototype.message=void 0,Zt.prototype.attributePath=void 0,Zt.prototype.$reserved=void 0,Zt.prototype.$objectType=void 0,Zt.prototype.$unknownFields=void 0;var un=new WeakSet,ln=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,un),this.$objectType="security.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"getStatusCode",value:function(){return this.statusCode}},{key:"setStatusCode",value:function(e){this.statusCode=e}},{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"getValidationErrorMessages",value:function(){return this.validationErrorMessages}},{key:"setValidationErrorMessages",value:function(e){this.validationErrorMessages=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return nn(nn(nn(nn(nn(nn({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:an(un,this,cn).call(this,this.getTimestamp(),!1)}:{}),void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{}),void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{}),void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("validationErrorMessages","undefined or null"):new R("path","undefined or null"):new R("error","undefined or null"):new R("statusCode","undefined or null"):new R("timestamp","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&s.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&s.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&s.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&s.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(i=[],n=t.validationErrorMessages,o=0;o<n.length;o++)r=Zt.constructFromObject(n[o],void 0),i.push(r);s.setValidationErrorMessages(i)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=nn({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&on(t.prototype,n),r&&on(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function cn(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fn(e){return fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fn(e)}function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){hn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hn(e,t,n){return(t=bn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bn(r.key),r)}}function bn(e){var t=function(e){if("object"!=fn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fn(t)?t:t+""}function gn(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")}ln.prototype.timestamp=void 0,ln.prototype.statusCode=void 0,ln.prototype.error=void 0,ln.prototype.path=void 0,ln.prototype.validationErrorMessages=void 0,ln.prototype.$reserved=void 0,ln.prototype.$objectType=void 0,ln.prototype.$unknownFields=void 0;var mn=new WeakSet,wn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,mn),this.$objectType="security.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return yn(yn({},!1===e?void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):gn(mn,this,On).call(this,this.getError(),!1)}:{}:void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson():e})):gn(mn,this,On).call(this,this.getError())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("error","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)a.setError([]);else{for(i=[],s=(n=t.error)[0].hasOwnProperty("$objectType")?n[0].$objectType:fn(n[0]),o=0;o<n.length;o++){if("security.v4.error.AppMessage"!==s)throw"Unknown list of type "+s+" in data";r=Ht.constructFromObject(n[o],void 0),i.push(r)}a.setError(i)}else{if("security.v4.error.SchemaValidationError"!==(s=t.error.hasOwnProperty("$objectType")?t.error.$objectType:fn(t.error)))throw"Unknown datatype "+s+" in data";a.setError(ln.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!u)for(var l in a.$unknownFields=yn({},t.$unknownFields),t)Object.keys(a).includes(l)||Object.keys(a).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(a.$unknownFields[l]=t[l])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&vn(t.prototype,n),r&&vn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function On(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return dn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dn(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===fn(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function jn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kn(e){return kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kn(e)}function Pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pn(Object(n),!0).forEach((function(t){En(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function En(e,t,n){return(t=Sn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sn(r.key),r)}}function Sn(e){var t=function(e){if("object"!=kn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kn(t)?t:t+""}function In(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(In=function(){return!!e})()}function Fn(e){return Fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fn(e)}function An(e,t){return An=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},An(e,t)}function Cn(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")}wn.prototype.error=void 0,wn.prototype.$reserved=void 0,wn.prototype.$objectType=void 0,wn.prototype.$unknownFields=void 0;var Dn=new WeakSet,xn=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Fn(t),function(e,t){if(t&&("object"==kn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,In()?Reflect.construct(t,n||[],Fn(e).constructor):t.apply(e,n))}(this,t),Dn),e.$objectType="security.v4.management.AssociatePoliciesApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&An(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return $n($n($n({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Cn(Dn,this,Rn).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Cn(Dn,this,Rn).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:kn(e.data)){case"prism.v4.config.TaskReference":r.setData(xt.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(wn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=$n({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Tn(n.prototype,r),o&&Tn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Rn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return jn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jn(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===kn(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Nn(e){return Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nn(e)}function _n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_n(Object(n),!0).forEach((function(t){Ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ln(e,t,n){return(t=Bn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bn(r.key),r)}}function Bn(e){var t=function(e){if("object"!=Nn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nn(t)?t:t+""}xn.prototype.metadata=void 0,xn.prototype.data=void 0,xn.prototype.$reserved=void 0,xn.prototype.$objectType=void 0,xn.prototype.$unknownFields=void 0;var Mn=new WeakSet,Jn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Mn),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getTenantId",value:function(){return this.tenantId}},{key:"setTenantId",value:function(e){this.tenantId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?Un(Un({},void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new R("tenantId","undefined or null");if(!A.validatePattern(this.tenantId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("tenantId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("tenantId")&&null!==t.tenantId&&void 0!==t.tenantId&&n.setTenantId(t.tenantId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Un({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Vn(t.prototype,n),r&&Vn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Hn(e){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hn(e)}function Wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wn(Object(n),!0).forEach((function(t){qn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qn(e,t,n){return(t=Gn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gn(r.key),r)}}function Gn(e){var t=function(e){if("object"!=Hn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hn(t)?t:t+""}function Yn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yn=function(){return!!e})()}function Qn(e){return Qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qn(e)}function Xn(e,t){return Xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xn(e,t)}Jn.prototype.tenantId=void 0,Jn.prototype.$reserved=void 0,Jn.prototype.$objectType=void 0,Jn.prototype.$unknownFields=void 0;var Zn=new WeakSet,er=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Qn(t),function(e,t){if(t&&("object"==Hn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yn()?Reflect.construct(t,n||[],Qn(e).constructor):t.apply(e,n))}(this,t),Zn),e.$objectType="common.v1.response.ExternalizableAbstractModel",e.$reserved={$fv:"v1.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xn(e,t)}(t,e),n=t,r=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"toJson",value:function(e){return!1===e?Kn(Kn(Kn(Kn({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new R("extId","undefined or null");if(null==e){if(!A.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}else if(e===T.update&&!A.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("extId","does not satisfy pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("links"===t){if(void 0===this.links||null===this.links)return new R("links","undefined or null");if(!A.validateMaxItems(this.links,20))return new R("links","does not satisfy required maxItems constraint: 20")}return new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,Jn.constructFromObject(e,s,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&s.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(i=[],n=e.links,o=0;o<n.length;o++)r=Ie.constructFromObject(n[o],void 0),i.push(r);s.setLinks(i)}if(!a)for(var u in s.$unknownFields=Kn({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&zn(n.prototype,r),o&&zn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Jn);er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var tr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VALID:"VALID",REVOKED:"REVOKED",EXPIRED:"EXPIRED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(tr).find((function(t){return tr[t]===e}));return null==t?tr.$UNKNOWN:tr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case tr.$UNKNOWN:case tr.$REDACTED:case tr.VALID:case tr.REVOKED:case tr.EXPIRED:return;default:throw new Error("Invalid : must be BucketsAccessKeyStatusType.{ $UNKNOWN|$REDACTED|VALID|REVOKED|EXPIRED }")}}};Object.freeze(tr);const nr=tr;var rr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PREDEFINED:"PREDEFINED",USERDEFINED:"USERDEFINED",SERVICEDEFINED:"SERVICEDEFINED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(rr).find((function(t){return rr[t]===e}));return null==t?rr.$UNKNOWN:rr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case rr.$UNKNOWN:case rr.$REDACTED:case rr.PREDEFINED:case rr.USERDEFINED:case rr.SERVICEDEFINED:return;default:throw new Error("Invalid : must be CreationType.{ $UNKNOWN|$REDACTED|PREDEFINED|USERDEFINED|SERVICEDEFINED }")}}};Object.freeze(rr);const or=rr;function ir(e){return ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ir(e)}function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(n),!0).forEach((function(t){ur(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ur(e,t,n){return(t=cr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cr(r.key),r)}}function cr(e){var t=function(e){if("object"!=ir(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ir(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ir(t)?t:t+""}function dr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dr=function(){return!!e})()}function fr(e){return fr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fr(e)}function pr(e,t){return pr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pr(e,t)}function yr(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")}var hr=new WeakSet,vr=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(n=function(e,t,n){return t=fr(t),function(e,t){if(t&&("object"==ir(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dr()?Reflect.construct(t,n||[],fr(e).constructor):t.apply(e,n))}(this,t),hr),n.accessKeyName=e,n.$objectType="iam.v4.authn.BucketsAccessKey",n.$reserved={$fv:"v4.r0"},n.$unknownFields={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pr(e,t)}(t,e),n=t,r=[{key:"getAccessKeyName",value:function(){return this.accessKeyName}},{key:"setAccessKeyName",value:function(e){this.accessKeyName=e}},{key:"getSecretAccessKey",value:function(){return this.secretAccessKey}},{key:"setSecretAccessKey",value:function(e){this.secretAccessKey=e}},{key:"getUserId",value:function(){return this.userId}},{key:"setUserId",value:function(e){this.userId=e}},{key:"getCreatedTime",value:function(){return this.createdTime}},{key:"setCreatedTime",value:function(e){this.createdTime=e}},{key:"getLastUpdatedBy",value:function(){return this.lastUpdatedBy}},{key:"setLastUpdatedBy",value:function(e){this.lastUpdatedBy=e}},{key:"getAssignedTo",value:function(){return this.assignedTo}},{key:"setAssignedTo",value:function(e){this.assignedTo=e}},{key:"getCreationType",value:function(){return this.creationType}},{key:"setCreationType",value:function(e){this.creationType=e}},{key:"getExpiryTime",value:function(){return this.expiryTime}},{key:"setExpiryTime",value:function(e){this.expiryTime=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getCreatedBy",value:function(){return this.createdBy}},{key:"setCreatedBy",value:function(e){this.createdBy=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"toJson",value:function(e){return ar(!1===e?ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar({},void 0!==this.getAccessKeyName()&&null!==this.getAccessKeyName()?{accessKeyName:this.getAccessKeyName()}:{}),void 0!==this.getSecretAccessKey()&&null!==this.getSecretAccessKey()?{secretAccessKey:this.getSecretAccessKey()}:{}),void 0!==this.getUserId()&&null!==this.getUserId()?{userId:this.getUserId()}:{}),void 0!==this.getCreatedTime()&&null!==this.getCreatedTime()?{createdTime:yr(hr,this,br).call(this,this.getCreatedTime(),!1)}:{}),void 0!==this.getLastUpdatedBy()&&null!==this.getLastUpdatedBy()?{lastUpdatedBy:this.getLastUpdatedBy()}:{}),void 0!==this.getAssignedTo()&&null!==this.getAssignedTo()?{assignedTo:this.getAssignedTo()}:{}),void 0!==this.getCreationType()&&null!==this.getCreationType()?{creationType:this.getCreationType()}:{}),void 0!==this.getExpiryTime()&&null!==this.getExpiryTime()?{expiryTime:yr(hr,this,br).call(this,this.getExpiryTime(),!1)}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:yr(hr,this,br).call(this,this.getLastUpdatedTime(),!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):ar(ar(ar(ar(ar({},void 0!==this.getAccessKeyName()&&null!==this.getAccessKeyName()?{accessKeyName:this.getAccessKeyName()}:{}),void 0!==this.getAssignedTo()&&null!==this.getAssignedTo()?{assignedTo:this.getAssignedTo()}:{}),void 0!==this.getCreationType()&&null!==this.getCreationType()?{creationType:this.getCreationType()}:{}),void 0!==this.getExpiryTime()&&null!==this.getExpiryTime()?{expiryTime:yr(hr,this,br).call(this,this.getExpiryTime(),!1)}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=["accessKeyName"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("accessKeyName"===t){if(void 0===this.accessKeyName||null===this.accessKeyName)return new R("accessKeyName","undefined or null");if(!A.validateMaxLength(this.accessKeyName,255))return new R("accessKeyName","does not satisfy required maxLength constraint: 255");if(!A.validateMinLength(this.accessKeyName,1))return new R("accessKeyName","does not satisfy required minLength constraint: 1");if(!A.validatePattern(this.accessKeyName,/^[^<>;'()&+%\/\\\\\"`]*$/))return new R("accessKeyName","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("secretAccessKey"===t&&(void 0===this.secretAccessKey||null===this.secretAccessKey))return new R("secretAccessKey","undefined or null");if("userId"===t){if(void 0===this.userId||null===this.userId)return new R("userId","undefined or null");if(!A.validatePattern(this.userId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("userId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("createdTime"===t&&(void 0===this.createdTime||null===this.createdTime))return new R("createdTime","undefined or null");if("lastUpdatedBy"===t){if(void 0===this.lastUpdatedBy||null===this.lastUpdatedBy)return new R("lastUpdatedBy","undefined or null");if(!A.validatePattern(this.lastUpdatedBy,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("lastUpdatedBy","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("assignedTo"===t){if(void 0===this.assignedTo||null===this.assignedTo)return new R("assignedTo","undefined or null");if(!A.validateMaxLength(this.assignedTo,255))return new R("assignedTo","does not satisfy required maxLength constraint: 255");if(!A.validateMinLength(this.assignedTo,3))return new R("assignedTo","does not satisfy required minLength constraint: 3")}if("creationType"===t&&(void 0===this.creationType||null===this.creationType))return new R("creationType","undefined or null");if("expiryTime"===t&&(void 0===this.expiryTime||null===this.expiryTime))return new R("expiryTime","undefined or null");if("status"===t&&(void 0===this.status||null===this.status))return new R("status","undefined or null");if("createdBy"===t){if(void 0===this.createdBy||null===this.createdBy)return new R("createdBy","undefined or null");if(!A.validatePattern(this.createdBy,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("createdBy","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"lastUpdatedTime"!==t||void 0!==this.lastUpdatedTime&&null!==this.lastUpdatedTime?new R(t,"no such property exists"):new R("lastUpdatedTime","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,er.constructFromObject(e,n,!0),e.hasOwnProperty("accessKeyName")&&null!==e.accessKeyName&&void 0!==e.accessKeyName&&n.setAccessKeyName(e.accessKeyName),e.hasOwnProperty("secretAccessKey")&&null!==e.secretAccessKey&&void 0!==e.secretAccessKey&&n.setSecretAccessKey(e.secretAccessKey),e.hasOwnProperty("userId")&&null!==e.userId&&void 0!==e.userId&&n.setUserId(e.userId),e.hasOwnProperty("createdTime")&&null!==e.createdTime&&void 0!==e.createdTime&&n.setCreatedTime(e.createdTime),e.hasOwnProperty("lastUpdatedBy")&&null!==e.lastUpdatedBy&&void 0!==e.lastUpdatedBy&&n.setLastUpdatedBy(e.lastUpdatedBy),e.hasOwnProperty("assignedTo")&&null!==e.assignedTo&&void 0!==e.assignedTo&&n.setAssignedTo(e.assignedTo),e.hasOwnProperty("creationType")&&null!==e.creationType&&void 0!==e.creationType&&n.setCreationType(or.constructFromObject(e.creationType)),e.hasOwnProperty("expiryTime")&&null!==e.expiryTime&&void 0!==e.expiryTime&&n.setExpiryTime(e.expiryTime),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&n.setStatus(nr.constructFromObject(e.status)),e.hasOwnProperty("createdBy")&&null!==e.createdBy&&void 0!==e.createdBy&&n.setCreatedBy(e.createdBy),e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&n.setLastUpdatedTime(e.lastUpdatedTime),!r))for(var o in n.$unknownFields=ar({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&lr(n.prototype,r),o&&lr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function br(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}vr.prototype.accessKeyName=void 0,vr.prototype.secretAccessKey=void 0,vr.prototype.userId=void 0,vr.prototype.createdTime=void 0,vr.prototype.lastUpdatedBy=void 0,vr.prototype.assignedTo=void 0,vr.prototype.creationType=void 0,vr.prototype.expiryTime=void 0,vr.prototype.status=void 0,vr.prototype.createdBy=void 0,vr.prototype.lastUpdatedTime=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var gr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ACTIVE:"ACTIVE",INACTIVE:"INACTIVE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(gr).find((function(t){return gr[t]===e}));return null==t?gr.$UNKNOWN:gr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case gr.$UNKNOWN:case gr.$REDACTED:case gr.ACTIVE:case gr.INACTIVE:return;default:throw new Error("Invalid : must be UserStatusType.{ $UNKNOWN|$REDACTED|ACTIVE|INACTIVE }")}}};Object.freeze(gr);const mr=gr;var wr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",LOCAL:"LOCAL",SAML:"SAML",LDAP:"LDAP",EXTERNAL:"EXTERNAL",SERVICE_ACCOUNT:"SERVICE_ACCOUNT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(wr).find((function(t){return wr[t]===e}));return null==t?wr.$UNKNOWN:wr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case wr.$UNKNOWN:case wr.$REDACTED:case wr.LOCAL:case wr.SAML:case wr.LDAP:case wr.EXTERNAL:case wr.SERVICE_ACCOUNT:return;default:throw new Error("Invalid : must be UserType.{ $UNKNOWN|$REDACTED|LOCAL|SAML|LDAP|EXTERNAL|SERVICE_ACCOUNT }")}}};Object.freeze(wr);const Or=wr;function jr(e){return jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jr(e)}function kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(n),!0).forEach((function(t){$r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $r(e,t,n){return(t=Tr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tr(r.key),r)}}function Tr(e){var t=function(e){if("object"!=jr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jr(t)?t:t+""}function Sr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sr=function(){return!!e})()}function Ir(e){return Ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ir(e)}function Fr(e,t){return Fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fr(e,t)}function Ar(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")}var Cr=new WeakSet,Dr=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ir(t),function(e,t){if(t&&("object"==jr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sr()?Reflect.construct(t,n||[],Ir(e).constructor):t.apply(e,n))}(this,t),Cr),e.$objectType="iam.v4.authn.User",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fr(e,t)}(t,e),n=t,r=[{key:"getUsername",value:function(){return this.username}},{key:"setUsername",value:function(e){this.username=e}},{key:"getUserType",value:function(){return this.userType}},{key:"setUserType",value:function(e){this.userType=e}},{key:"getIdpId",value:function(){return this.idpId}},{key:"setIdpId",value:function(e){this.idpId=e}},{key:"getDisplayName",value:function(){return this.displayName}},{key:"setDisplayName",value:function(e){this.displayName=e}},{key:"getFirstName",value:function(){return this.firstName}},{key:"setFirstName",value:function(e){this.firstName=e}},{key:"getMiddleInitial",value:function(){return this.middleInitial}},{key:"setMiddleInitial",value:function(e){this.middleInitial=e}},{key:"getLastName",value:function(){return this.lastName}},{key:"setLastName",value:function(e){this.lastName=e}},{key:"getEmailId",value:function(){return this.emailId}},{key:"setEmailId",value:function(e){this.emailId=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getRegion",value:function(){return this.region}},{key:"setRegion",value:function(e){this.region=e}},{key:"getPassword",value:function(){return this.password}},{key:"setPassword",value:function(e){this.password=e}},{key:"getIsForceResetPasswordEnabled",value:function(){return this.isForceResetPasswordEnabled}},{key:"setIsForceResetPasswordEnabled",value:function(e){this.isForceResetPasswordEnabled=e}},{key:"getAdditionalAttributes",value:function(){return this.additionalAttributes}},{key:"setAdditionalAttributes",value:function(e){this.additionalAttributes=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getBucketsAccessKeys",value:function(){return this.bucketsAccessKeys}},{key:"setBucketsAccessKeys",value:function(e){this.bucketsAccessKeys=e}},{key:"getLastLoginTime",value:function(){return this.lastLoginTime}},{key:"setLastLoginTime",value:function(e){this.lastLoginTime=e}},{key:"getCreatedTime",value:function(){return this.createdTime}},{key:"setCreatedTime",value:function(e){this.createdTime=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"getCreatedBy",value:function(){return this.createdBy}},{key:"setCreatedBy",value:function(e){this.createdBy=e}},{key:"getLastUpdatedBy",value:function(){return this.lastUpdatedBy}},{key:"setLastUpdatedBy",value:function(e){this.lastUpdatedBy=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getCreationType",value:function(){return this.creationType}},{key:"setCreationType",value:function(e){this.creationType=e}},{key:"toJson",value:function(e){return Pr(!1===e?Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr({},void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getUserType()&&null!==this.getUserType()?{userType:this.getUserType()}:{}),void 0!==this.getIdpId()&&null!==this.getIdpId()?{idpId:this.getIdpId()}:{}),void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{}),void 0!==this.getFirstName()&&null!==this.getFirstName()?{firstName:this.getFirstName()}:{}),void 0!==this.getMiddleInitial()&&null!==this.getMiddleInitial()?{middleInitial:this.getMiddleInitial()}:{}),void 0!==this.getLastName()&&null!==this.getLastName()?{lastName:this.getLastName()}:{}),void 0!==this.getEmailId()&&null!==this.getEmailId()?{emailId:this.getEmailId()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getRegion()&&null!==this.getRegion()?{region:this.getRegion()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),void 0!==this.getIsForceResetPasswordEnabled()&&null!==this.getIsForceResetPasswordEnabled()?{isForceResetPasswordEnabled:this.getIsForceResetPasswordEnabled()}:{}),void 0!==this.getAdditionalAttributes()&&null!==this.getAdditionalAttributes()?{additionalAttributes:this.getAdditionalAttributes().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getBucketsAccessKeys()&&null!==this.getBucketsAccessKeys()?{bucketsAccessKeys:this.getBucketsAccessKeys().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLastLoginTime()&&null!==this.getLastLoginTime()?{lastLoginTime:Ar(Cr,this,xr).call(this,this.getLastLoginTime(),!1)}:{}),void 0!==this.getCreatedTime()&&null!==this.getCreatedTime()?{createdTime:Ar(Cr,this,xr).call(this,this.getCreatedTime(),!1)}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:Ar(Cr,this,xr).call(this,this.getLastUpdatedTime(),!1)}:{}),void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{}),void 0!==this.getLastUpdatedBy()&&null!==this.getLastUpdatedBy()?{lastUpdatedBy:this.getLastUpdatedBy()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getCreationType()&&null!==this.getCreationType()?{creationType:this.getCreationType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr(Pr({},void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getUserType()&&null!==this.getUserType()?{userType:this.getUserType()}:{}),void 0!==this.getIdpId()&&null!==this.getIdpId()?{idpId:this.getIdpId()}:{}),void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{}),void 0!==this.getFirstName()&&null!==this.getFirstName()?{firstName:this.getFirstName()}:{}),void 0!==this.getMiddleInitial()&&null!==this.getMiddleInitial()?{middleInitial:this.getMiddleInitial()}:{}),void 0!==this.getLastName()&&null!==this.getLastName()?{lastName:this.getLastName()}:{}),void 0!==this.getEmailId()&&null!==this.getEmailId()?{emailId:this.getEmailId()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getRegion()&&null!==this.getRegion()?{region:this.getRegion()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),void 0!==this.getIsForceResetPasswordEnabled()&&null!==this.getIsForceResetPasswordEnabled()?{isForceResetPasswordEnabled:this.getIsForceResetPasswordEnabled()}:{}),void 0!==this.getAdditionalAttributes()&&null!==this.getAdditionalAttributes()?{additionalAttributes:this.getAdditionalAttributes().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getCreationType()&&null!==this.getCreationType()?{creationType:this.getCreationType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("username"===t){if(void 0===this.username||null===this.username)return new R("username","undefined or null");if(!A.validateMaxLength(this.username,255))return new R("username","does not satisfy required maxLength constraint: 255");if(!A.validateMinLength(this.username,1))return new R("username","does not satisfy required minLength constraint: 1");if(!A.validatePattern(this.username,/^[^<>;'()&+%\/\\\\\"`]*$/))return new R("username","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("userType"===t&&(void 0===this.userType||null===this.userType))return new R("userType","undefined or null");if("idpId"===t){if(void 0===this.idpId||null===this.idpId)return new R("idpId","undefined or null");if(!A.validatePattern(this.idpId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("idpId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("displayName"===t){if(void 0===this.displayName||null===this.displayName)return new R("displayName","undefined or null");if(!A.validateMaxLength(this.displayName,255))return new R("displayName","does not satisfy required maxLength constraint: 255");if(!A.validateMinLength(this.displayName,1))return new R("displayName","does not satisfy required minLength constraint: 1");if(!A.validatePattern(this.displayName,/^[^<>;'()&+%\/\\\\\"`]*$/))return new R("displayName","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("firstName"===t){if(void 0===this.firstName||null===this.firstName)return new R("firstName","undefined or null");if(!A.validateMaxLength(this.firstName,255))return new R("firstName","does not satisfy required maxLength constraint: 255");if(!A.validateMinLength(this.firstName,1))return new R("firstName","does not satisfy required minLength constraint: 1");if(!A.validatePattern(this.firstName,/^[^<>;'()&+%\/\\\\\"`]*$/))return new R("firstName","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("middleInitial"===t){if(void 0===this.middleInitial||null===this.middleInitial)return new R("middleInitial","undefined or null");if(!A.validateMaxLength(this.middleInitial,255))return new R("middleInitial","does not satisfy required maxLength constraint: 255");if(!A.validateMinLength(this.middleInitial,1))return new R("middleInitial","does not satisfy required minLength constraint: 1");if(!A.validatePattern(this.middleInitial,/^[^<>;'()&+%\/\\\\\"`]*$/))return new R("middleInitial","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("lastName"===t){if(void 0===this.lastName||null===this.lastName)return new R("lastName","undefined or null");if(!A.validateMaxLength(this.lastName,255))return new R("lastName","does not satisfy required maxLength constraint: 255");if(!A.validateMinLength(this.lastName,1))return new R("lastName","does not satisfy required minLength constraint: 1");if(!A.validatePattern(this.lastName,/^[^<>;'()&+%\/\\\\\"`]*$/))return new R("lastName","does not satisfy required pattern: /^[^<>;'()&+%/\\\\\"`]*$/")}if("emailId"===t){if(void 0===this.emailId||null===this.emailId)return new R("emailId","undefined or null");if(!A.validateMaxLength(this.emailId,255))return new R("emailId","does not satisfy required maxLength constraint: 255");if(!A.validatePattern(this.emailId,/^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/))return new R("emailId","does not satisfy required pattern: /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/")}if("locale"===t&&(void 0===this.locale||null===this.locale))return new R("locale","undefined or null");if("region"===t&&(void 0===this.region||null===this.region))return new R("region","undefined or null");if("password"===t&&(void 0===this.password||null===this.password))return new R("password","undefined or null");if("isForceResetPasswordEnabled"===t&&(void 0===this.isForceResetPasswordEnabled||null===this.isForceResetPasswordEnabled))return new R("isForceResetPasswordEnabled","undefined or null");if("additionalAttributes"===t){if(void 0===this.additionalAttributes||null===this.additionalAttributes)return new R("additionalAttributes","undefined or null");if(!A.validateMaxItems(this.additionalAttributes,10))return new R("additionalAttributes","does not satisfy required maxItems constraint: 10")}if("status"===t&&(void 0===this.status||null===this.status))return new R("status","undefined or null");if("bucketsAccessKeys"===t){if(void 0===this.bucketsAccessKeys||null===this.bucketsAccessKeys)return new R("bucketsAccessKeys","undefined or null");if(!A.validateMaxItems(this.bucketsAccessKeys,5))return new R("bucketsAccessKeys","does not satisfy required maxItems constraint: 5")}if("lastLoginTime"===t&&(void 0===this.lastLoginTime||null===this.lastLoginTime))return new R("lastLoginTime","undefined or null");if("createdTime"===t&&(void 0===this.createdTime||null===this.createdTime))return new R("createdTime","undefined or null");if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new R("lastUpdatedTime","undefined or null");if("createdBy"===t){if(void 0===this.createdBy||null===this.createdBy)return new R("createdBy","undefined or null");if(!A.validatePattern(this.createdBy,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("createdBy","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("lastUpdatedBy"===t){if(void 0===this.lastUpdatedBy||null===this.lastUpdatedBy)return new R("lastUpdatedBy","undefined or null");if(!A.validatePattern(this.lastUpdatedBy,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("lastUpdatedBy","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"description"!==t||void 0!==this.description&&null!==this.description?"creationType"!==t||void 0!==this.creationType&&null!==this.creationType?new R(t,"no such property exists"):new R("creationType","undefined or null"):new R("description","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,er.constructFromObject(e,s,!0),e.hasOwnProperty("username")&&null!==e.username&&void 0!==e.username&&s.setUsername(e.username),e.hasOwnProperty("userType")&&null!==e.userType&&void 0!==e.userType&&s.setUserType(Or.constructFromObject(e.userType)),e.hasOwnProperty("idpId")&&null!==e.idpId&&void 0!==e.idpId&&s.setIdpId(e.idpId),e.hasOwnProperty("displayName")&&null!==e.displayName&&void 0!==e.displayName&&s.setDisplayName(e.displayName),e.hasOwnProperty("firstName")&&null!==e.firstName&&void 0!==e.firstName&&s.setFirstName(e.firstName),e.hasOwnProperty("middleInitial")&&null!==e.middleInitial&&void 0!==e.middleInitial&&s.setMiddleInitial(e.middleInitial),e.hasOwnProperty("lastName")&&null!==e.lastName&&void 0!==e.lastName&&s.setLastName(e.lastName),e.hasOwnProperty("emailId")&&null!==e.emailId&&void 0!==e.emailId&&s.setEmailId(e.emailId),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&s.setLocale(e.locale),e.hasOwnProperty("region")&&null!==e.region&&void 0!==e.region&&s.setRegion(e.region),e.hasOwnProperty("password")&&null!==e.password&&void 0!==e.password&&s.setPassword(e.password),e.hasOwnProperty("isForceResetPasswordEnabled")&&null!==e.isForceResetPasswordEnabled&&void 0!==e.isForceResetPasswordEnabled&&s.setIsForceResetPasswordEnabled(e.isForceResetPasswordEnabled),e.hasOwnProperty("additionalAttributes")&&null!==e.additionalAttributes&&void 0!==e.additionalAttributes){for(i=[],n=e.additionalAttributes,o=0;o<n.length;o++)r=ce.constructFromObject(n[o],void 0),i.push(r);s.setAdditionalAttributes(i)}if(e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&s.setStatus(mr.constructFromObject(e.status)),e.hasOwnProperty("bucketsAccessKeys")&&null!==e.bucketsAccessKeys&&void 0!==e.bucketsAccessKeys){for(i=[],n=e.bucketsAccessKeys,o=0;o<n.length;o++)r=vr.constructFromObject(n[o],void 0),i.push(r);s.setBucketsAccessKeys(i)}if(e.hasOwnProperty("lastLoginTime")&&null!==e.lastLoginTime&&void 0!==e.lastLoginTime&&s.setLastLoginTime(e.lastLoginTime),e.hasOwnProperty("createdTime")&&null!==e.createdTime&&void 0!==e.createdTime&&s.setCreatedTime(e.createdTime),e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&s.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("createdBy")&&null!==e.createdBy&&void 0!==e.createdBy&&s.setCreatedBy(e.createdBy),e.hasOwnProperty("lastUpdatedBy")&&null!==e.lastUpdatedBy&&void 0!==e.lastUpdatedBy&&s.setLastUpdatedBy(e.lastUpdatedBy),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&s.setDescription(e.description),e.hasOwnProperty("creationType")&&null!==e.creationType&&void 0!==e.creationType&&s.setCreationType(or.constructFromObject(e.creationType)),!a)for(var u in s.$unknownFields=Pr({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Er(n.prototype,r),o&&Er(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function xr(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Rr(e){return Rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rr(e)}function Nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nr(Object(n),!0).forEach((function(t){Ur(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ur(e,t,n){return(t=Vr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vr(r.key),r)}}function Vr(e){var t=function(e){if("object"!=Rr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rr(t)?t:t+""}Dr.prototype.username=void 0,Dr.prototype.userType=void 0,Dr.prototype.idpId=void 0,Dr.prototype.displayName=void 0,Dr.prototype.firstName=void 0,Dr.prototype.middleInitial=void 0,Dr.prototype.lastName=void 0,Dr.prototype.emailId=void 0,Dr.prototype.locale=void 0,Dr.prototype.region=void 0,Dr.prototype.password=void 0,Dr.prototype.isForceResetPasswordEnabled=void 0,Dr.prototype.additionalAttributes=void 0,Dr.prototype.status=void 0,Dr.prototype.bucketsAccessKeys=void 0,Dr.prototype.lastLoginTime=void 0,Dr.prototype.createdTime=void 0,Dr.prototype.lastUpdatedTime=void 0,Dr.prototype.createdBy=void 0,Dr.prototype.lastUpdatedBy=void 0,Dr.prototype.description=void 0,Dr.prototype.creationType=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Br=new WeakSet,Mr=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Br),this.name=t,this.expiryHours=n,this.approvers=r,this.$objectType="security.v4.management.ApproverGroup",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getExpiryHours",value:function(){return this.expiryHours}},{key:"setExpiryHours",value:function(e){this.expiryHours=e}},{key:"getApprovers",value:function(){return this.approvers}},{key:"setApprovers",value:function(e){this.approvers=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return _r(_r(_r(_r({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExpiryHours()&&null!==this.getExpiryHours()?{expiryHours:this.getExpiryHours()}:{}),void 0!==this.getApprovers()&&null!==this.getApprovers()?{approvers:this.getApprovers().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=["name","expiryHours","approvers"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new R("name","undefined or null");if(!A.validateMaxLength(this.name,199))return new R("name","does not satisfy required maxLength constraint: 199")}if("expiryHours"===t&&(void 0===this.expiryHours||null===this.expiryHours))return new R("expiryHours","undefined or null");if("approvers"===t){if(void 0===this.approvers||null===this.approvers)return new R("approvers","undefined or null");if(!A.validateMaxItems(this.approvers,10))return new R("approvers","does not satisfy required maxItems constraint: 10");if(!A.validateMinItems(this.approvers,3))return new R("approvers","does not satisfy required minItems constraint: 3")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&s.setName(t.name),t.hasOwnProperty("expiryHours")&&null!==t.expiryHours&&void 0!==t.expiryHours&&s.setExpiryHours(t.expiryHours),t.hasOwnProperty("approvers")&&null!==t.approvers&&void 0!==t.approvers){for(i=[],n=t.approvers,o=0;o<n.length;o++)r=Dr.constructFromObject(n[o],void 0),i.push(r);s.setApprovers(i)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=_r({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Lr(t.prototype,n),r&&Lr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Mr.prototype.name=void 0,Mr.prototype.expiryHours=void 0,Mr.prototype.approvers=void 0,Mr.prototype.$reserved=void 0,Mr.prototype.$objectType=void 0,Mr.prototype.$unknownFields=void 0;var Jr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PROTECTION_POLICY:"PROTECTION_POLICY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Jr).find((function(t){return Jr[t]===e}));return null==t?Jr.$UNKNOWN:Jr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Jr.$UNKNOWN:case Jr.$REDACTED:case Jr.PROTECTION_POLICY:return;default:throw new Error("Invalid : must be PolicyType.{ $UNKNOWN|$REDACTED|PROTECTION_POLICY }")}}};Object.freeze(Jr);const Hr=Jr;function Wr(e){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wr(e)}function Kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(n),!0).forEach((function(t){zr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zr(e,t,n){return(t=Yr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yr(r.key),r)}}function Yr(e){var t=function(e){if("object"!=Wr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wr(t)?t:t+""}var Qr=new WeakSet,Xr=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Qr),this.policyExtId=t,this.policyType=n,this.$objectType="security.v4.management.SecuredPolicy",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getPolicyExtId",value:function(){return this.policyExtId}},{key:"setPolicyExtId",value:function(e){this.policyExtId=e}},{key:"getPolicyType",value:function(){return this.policyType}},{key:"setPolicyType",value:function(e){this.policyType=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return qr(qr(qr({},void 0!==this.getPolicyExtId()&&null!==this.getPolicyExtId()?{policyExtId:this.getPolicyExtId()}:{}),void 0!==this.getPolicyType()&&null!==this.getPolicyType()?{policyType:this.getPolicyType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=["policyExtId","policyType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("policyExtId"===t){if(void 0===this.policyExtId||null===this.policyExtId)return new R("policyExtId","undefined or null");if(!A.validatePattern(this.policyExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("policyExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"policyType"!==t||void 0!==this.policyType&&null!==this.policyType?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("policyType","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("policyExtId")&&null!==t.policyExtId&&void 0!==t.policyExtId&&n.setPolicyExtId(t.policyExtId),t.hasOwnProperty("policyType")&&null!==t.policyType&&void 0!==t.policyType&&n.setPolicyType(Hr.constructFromObject(t.policyType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=qr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Gr(t.prototype,n),r&&Gr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Zr(e){return Zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zr(e)}function eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function to(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eo(Object(n),!0).forEach((function(t){no(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function no(e,t,n){return(t=oo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ro(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oo(r.key),r)}}function oo(e){var t=function(e){if("object"!=Zr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zr(t)?t:t+""}function io(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(io=function(){return!!e})()}function so(e){return so=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},so(e)}function ao(e,t){return ao=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ao(e,t)}function uo(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")}Xr.prototype.policyExtId=void 0,Xr.prototype.policyType=void 0,Xr.prototype.$reserved=void 0,Xr.prototype.$objectType=void 0,Xr.prototype.$unknownFields=void 0;var lo=new WeakSet,co=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(r=function(e,t,n){return t=so(t),function(e,t){if(t&&("object"==Zr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,io()?Reflect.construct(t,n||[],so(e).constructor):t.apply(e,n))}(this,t),lo),r.name=e,r.approverGroups=n,r.$objectType="security.v4.management.ApprovalPolicy",r.$reserved={$fv:"v4.r0.b1"},r.$unknownFields={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ao(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getApproverGroups",value:function(){return this.approverGroups}},{key:"setApproverGroups",value:function(e){this.approverGroups=e}},{key:"getSecuredPolicies",value:function(){return this.securedPolicies}},{key:"setSecuredPolicies",value:function(e){this.securedPolicies=e}},{key:"getLastUpdatedBy",value:function(){return this.lastUpdatedBy}},{key:"setLastUpdatedBy",value:function(e){this.lastUpdatedBy=e}},{key:"getLastUpdateTime",value:function(){return this.lastUpdateTime}},{key:"setLastUpdateTime",value:function(e){this.lastUpdateTime=e}},{key:"getIsUpdatePending",value:function(){return this.isUpdatePending}},{key:"setIsUpdatePending",value:function(e){this.isUpdatePending=e}},{key:"toJson",value:function(e){return to(!1===e?to(to(to(to(to(to(to(to(to(to({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getApproverGroups()&&null!==this.getApproverGroups()?{approverGroups:this.getApproverGroups().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSecuredPolicies()&&null!==this.getSecuredPolicies()?{securedPolicies:this.getSecuredPolicies().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLastUpdatedBy()&&null!==this.getLastUpdatedBy()?{lastUpdatedBy:this.getLastUpdatedBy()}:{}),void 0!==this.getLastUpdateTime()&&null!==this.getLastUpdateTime()?{lastUpdateTime:uo(lo,this,fo).call(this,this.getLastUpdateTime(),!1)}:{}),void 0!==this.getIsUpdatePending()&&null!==this.getIsUpdatePending()?{isUpdatePending:this.getIsUpdatePending()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):to(to(to({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getApproverGroups()&&null!==this.getApproverGroups()?{approverGroups:this.getApproverGroups().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=["name","approverGroups"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new R("name","undefined or null");if(!A.validateMaxLength(this.name,199))return new R("name","does not satisfy required maxLength constraint: 199");if(!A.validateMinLength(this.name,4))return new R("name","does not satisfy required minLength constraint: 4")}if("description"===t){if(void 0===this.description||null===this.description)return new R("description","undefined or null");if(!A.validateMaxLength(this.description,499))return new R("description","does not satisfy required maxLength constraint: 499")}if("approverGroups"===t){if(void 0===this.approverGroups||null===this.approverGroups)return new R("approverGroups","undefined or null");if(!A.validateMaxItems(this.approverGroups,10))return new R("approverGroups","does not satisfy required maxItems constraint: 10");if(!A.validateMinItems(this.approverGroups,1))return new R("approverGroups","does not satisfy required minItems constraint: 1")}if("securedPolicies"===t){if(void 0===this.securedPolicies||null===this.securedPolicies)return new R("securedPolicies","undefined or null");if(!A.validateMaxItems(this.securedPolicies,100))return new R("securedPolicies","does not satisfy required maxItems constraint: 100")}return"lastUpdatedBy"!==t||void 0!==this.lastUpdatedBy&&null!==this.lastUpdatedBy?"lastUpdateTime"!==t||void 0!==this.lastUpdateTime&&null!==this.lastUpdateTime?"isUpdatePending"!==t||void 0!==this.isUpdatePending&&null!==this.isUpdatePending?new R(t,"no such property exists"):new R("isUpdatePending","undefined or null"):new R("lastUpdateTime","undefined or null"):new R("lastUpdatedBy","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,er.constructFromObject(e,s,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&s.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&s.setDescription(e.description),e.hasOwnProperty("approverGroups")&&null!==e.approverGroups&&void 0!==e.approverGroups){for(i=[],n=e.approverGroups,o=0;o<n.length;o++)r=Mr.constructFromObject(n[o],void 0),i.push(r);s.setApproverGroups(i)}if(e.hasOwnProperty("securedPolicies")&&null!==e.securedPolicies&&void 0!==e.securedPolicies){for(i=[],n=e.securedPolicies,o=0;o<n.length;o++)r=Xr.constructFromObject(n[o],void 0),i.push(r);s.setSecuredPolicies(i)}if(e.hasOwnProperty("lastUpdatedBy")&&null!==e.lastUpdatedBy&&void 0!==e.lastUpdatedBy&&s.setLastUpdatedBy(e.lastUpdatedBy),e.hasOwnProperty("lastUpdateTime")&&null!==e.lastUpdateTime&&void 0!==e.lastUpdateTime&&s.setLastUpdateTime(e.lastUpdateTime),e.hasOwnProperty("isUpdatePending")&&null!==e.isUpdatePending&&void 0!==e.isUpdatePending&&s.setIsUpdatePending(e.isUpdatePending),!a)for(var u in s.$unknownFields=to({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&ro(n.prototype,r),o&&ro(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function fo(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function po(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yo(e){return yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yo(e)}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach((function(t){bo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(e,t,n){return(t=mo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function go(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mo(r.key),r)}}function mo(e){var t=function(e){if("object"!=yo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yo(t)?t:t+""}function wo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wo=function(){return!!e})()}function Oo(e){return Oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oo(e)}function jo(e,t){return jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jo(e,t)}function ko(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")}co.prototype.name=void 0,co.prototype.description=void 0,co.prototype.approverGroups=void 0,co.prototype.securedPolicies=void 0,co.prototype.lastUpdatedBy=void 0,co.prototype.lastUpdateTime=void 0,co.prototype.isUpdatePending=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Po=new WeakSet,$o=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Oo(t),function(e,t){if(t&&("object"==yo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,wo()?Reflect.construct(t,n||[],Oo(e).constructor):t.apply(e,n))}(this,t),Po),e.$objectType="security.v4.management.GetApprovalPolicyApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jo(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vo(vo(vo({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ko(Po,this,Eo).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):ko(Po,this,Eo).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:yo(e.data)){case"security.v4.management.ApprovalPolicy":r.setData(co.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(wn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=vo({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&go(n.prototype,r),o&&go(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Eo(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return po(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?po(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===yo(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function To(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function So(e){return So="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},So(e)}function Io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Io(Object(n),!0).forEach((function(t){Ao(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ao(e,t,n){return(t=Do(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Co(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Do(r.key),r)}}function Do(e){var t=function(e){if("object"!=So(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=So(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==So(t)?t:t+""}function xo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xo=function(){return!!e})()}function Ro(e){return Ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ro(e)}function No(e,t){return No=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},No(e,t)}function _o(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")}$o.prototype.metadata=void 0,$o.prototype.data=void 0,$o.prototype.$reserved=void 0,$o.prototype.$objectType=void 0,$o.prototype.$unknownFields=void 0;var Uo=new WeakSet,Lo=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ro(t),function(e,t){if(t&&("object"==So(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xo()?Reflect.construct(t,n||[],Ro(e).constructor):t.apply(e,n))}(this,t),Uo),e.$objectType="security.v4.management.ListApprovalPoliciesApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&No(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Fo(Fo(Fo({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):_o(Uo,this,Vo).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):_o(Uo,this,Vo).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(i=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:So(n[0]),o=0;o<n.length;o++){if("security.v4.management.ApprovalPolicy"!==s)throw"Unknown list of type "+s+" in data";r=co.constructFromObject(n[o],void 0),i.push(r)}a.setData(i)}else{if("security.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:So(e.data)))throw"Unknown datatype "+s+" in data";a.setData(wn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Fo({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Co(n.prototype,r),o&&Co(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Vo(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return To(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?To(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===So(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Bo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mo(e){return Mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mo(e)}function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(n),!0).forEach((function(t){Wo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wo(e,t,n){return(t=qo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ko(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qo(r.key),r)}}function qo(e){var t=function(e){if("object"!=Mo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mo(t)?t:t+""}function zo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zo=function(){return!!e})()}function Go(e){return Go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Go(e)}function Yo(e,t){return Yo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yo(e,t)}function Qo(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")}Lo.prototype.metadata=void 0,Lo.prototype.data=void 0,Lo.prototype.$reserved=void 0,Lo.prototype.$objectType=void 0,Lo.prototype.$unknownFields=void 0;var Xo=new WeakSet,Zo=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Go(t),function(e,t){if(t&&("object"==Mo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,zo()?Reflect.construct(t,n||[],Go(e).constructor):t.apply(e,n))}(this,t),Xo),e.$objectType="security.v4.management.CreateApprovalPolicyApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yo(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ho(Ho(Ho({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Qo(Xo,this,ei).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Qo(Xo,this,ei).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Mo(e.data)){case"prism.v4.config.TaskReference":r.setData(xt.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(wn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Ho({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ko(n.prototype,r),o&&Ko(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ei(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Bo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bo(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Mo(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ni(e){return ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ni(e)}function ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach((function(t){ii(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ii(e,t,n){return(t=ai(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function si(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ai(r.key),r)}}function ai(e){var t=function(e){if("object"!=ni(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ni(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ni(t)?t:t+""}function ui(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ui=function(){return!!e})()}function li(e){return li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},li(e)}function ci(e,t){return ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ci(e,t)}function di(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")}Zo.prototype.metadata=void 0,Zo.prototype.data=void 0,Zo.prototype.$reserved=void 0,Zo.prototype.$objectType=void 0,Zo.prototype.$unknownFields=void 0;var fi=new WeakSet,pi=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=li(t),function(e,t){if(t&&("object"==ni(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ui()?Reflect.construct(t,n||[],li(e).constructor):t.apply(e,n))}(this,t),fi),e.$objectType="security.v4.management.UpdateApprovalPolicyApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ci(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return oi(oi(oi({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):di(fi,this,yi).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):di(fi,this,yi).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ni(e.data)){case"prism.v4.config.TaskReference":r.setData(xt.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(wn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=oi({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&si(n.prototype,r),o&&si(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function yi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ti(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ti(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===ni(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function hi(e){return hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hi(e)}function vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vi(Object(n),!0).forEach((function(t){gi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gi(e,t,n){return(t=wi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wi(r.key),r)}}function wi(e){var t=function(e){if("object"!=hi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hi(t)?t:t+""}function Oi(e,t){return e.get(ji(e,t))}function ji(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")}pi.prototype.metadata=void 0,pi.prototype.data=void 0,pi.prototype.$reserved=void 0,pi.prototype.$objectType=void 0,pi.prototype.$unknownFields=void 0;var ki=new WeakMap,Pi=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,ki,void 0),this.apiClient=t||lt.instance,n=ki,r=new Set,n.set(ji(n,this),r),Oi(ki,this).add("authorization"),Oi(ki,this).add("cookie"),Oi(ki,this).add("host"),Oi(ki,this).add("user-agent")},t=[{key:"associatePolicies",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Array&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling associatePolicies");if(null==n)throw new Error("Invalid body when calling associatePolicies");var i={extId:e},s={};Object.keys(o).forEach((function(e){Oi(ki,r).has(e.toLowerCase())||(s[e]=o[e])}));var a=bi({},s);lt.addEtagReferenceToHeader(t,a);var u=xn;return this.apiClient.callApi("/api/security/v4.0.b1/management/approval-policies/{extId}/$action/associate-policies","POST",i,{},a,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"createApprovalPolicy",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof co&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createApprovalPolicy");var o={};Object.keys(r).forEach((function(e){Oi(ki,n).has(e.toLowerCase())||(o[e]=r[e])}));var i=bi({},o);lt.addEtagReferenceToHeader(e,i);var s=Zo;return this.apiClient.callApi("/api/security/v4.0.b1/management/approval-policies","POST",{},{},i,{},t,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],s)}},{key:"getApprovalPolicyByExtId",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'extId' when calling getApprovalPolicyByExtId");var o={extId:e},i=bi({},t.hasOwnProperty("$select")?{$select:t.$select}:{}),s={};Object.keys(r).forEach((function(e){Oi(ki,n).has(e.toLowerCase())||(s[e]=r[e])}));var a=bi({},s),u=$o;return this.apiClient.callApi("/api/security/v4.0.b1/management/approval-policies/{extId}","GET",o,i,a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],u)}},{key:"listApprovalPolicies",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=bi({},(e=e||{}).hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach((function(e){Oi(ki,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=bi({},o),s=Lo;return this.apiClient.callApi("/api/security/v4.0.b1/management/approval-policies","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"updateApprovalPolicyByExtId",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof co&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateApprovalPolicyByExtId");if(null==n)throw new Error("Invalid body when calling updateApprovalPolicyByExtId");var i={extId:e},s={};Object.keys(o).forEach((function(e){Oi(ki,r).has(e.toLowerCase())||(s[e]=o[e])}));var a=bi({},s);lt.addEtagReferenceToHeader(t,a);var u=pi;return this.apiClient.callApi("/api/security/v4.0.b1/management/approval-policies/{extId}","PUT",i,{},a,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&mi(e.prototype,t),n&&mi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),$i={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CRITICAL:"CRITICAL",HIGH:"HIGH",MEDIUM:"MEDIUM",LOW:"LOW",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys($i).find((function(t){return $i[t]===e}));return null==t?$i.$UNKNOWN:$i[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case $i.$UNKNOWN:case $i.$REDACTED:case $i.CRITICAL:case $i.HIGH:case $i.MEDIUM:case $i.LOW:return;default:throw new Error("Invalid : must be Severity.{ $UNKNOWN|$REDACTED|CRITICAL|HIGH|MEDIUM|LOW }")}}};Object.freeze($i);const Ei=$i;var Ti={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",APPLICABLE:"APPLICABLE",NOT_APPLICABLE:"NOT_APPLICABLE",NEEDS_REVIEW:"NEEDS_REVIEW",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ti).find((function(t){return Ti[t]===e}));return null==t?Ti.$UNKNOWN:Ti[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ti.$UNKNOWN:case Ti.$REDACTED:case Ti.APPLICABLE:case Ti.NOT_APPLICABLE:case Ti.NEEDS_REVIEW:return;default:throw new Error("Invalid : must be StigStatus.{ $UNKNOWN|$REDACTED|APPLICABLE|NOT_APPLICABLE|NEEDS_REVIEW }")}}};Object.freeze(Ti);const Si=Ti;function Ii(e){return Ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ii(e)}function Fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fi(Object(n),!0).forEach((function(t){Ci(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ci(e,t,n){return(t=xi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Di(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xi(r.key),r)}}function xi(e){var t=function(e){if("object"!=Ii(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ii(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ii(t)?t:t+""}function Ri(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ri=function(){return!!e})()}function Ni(e){return Ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ni(e)}function _i(e,t){return _i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_i(e,t)}var Ui=new WeakSet,Li=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ni(t),function(e,t){if(t&&("object"==Ii(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ri()?Reflect.construct(t,n||[],Ni(e).constructor):t.apply(e,n))}(this,t),Ui),e.$objectType="security.v4.report.Stig",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_i(e,t)}(t,e),n=t,r=[{key:"getTitle",value:function(){return this.title}},{key:"setTitle",value:function(e){this.title=e}},{key:"getRuleId",value:function(){return this.ruleId}},{key:"setRuleId",value:function(e){this.ruleId=e}},{key:"getStigVersion",value:function(){return this.stigVersion}},{key:"setStigVersion",value:function(e){this.stigVersion=e}},{key:"getIdentifiers",value:function(){return this.identifiers}},{key:"setIdentifiers",value:function(e){this.identifiers=e}},{key:"getAffectedClusters",value:function(){return this.affectedClusters}},{key:"setAffectedClusters",value:function(e){this.affectedClusters=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getComments",value:function(){return this.comments}},{key:"setComments",value:function(e){this.comments=e}},{key:"getFixText",value:function(){return this.fixText}},{key:"setFixText",value:function(e){this.fixText=e}},{key:"getBenchmarkId",value:function(){return this.benchmarkId}},{key:"setBenchmarkId",value:function(e){this.benchmarkId=e}},{key:"toJson",value:function(e){return Ai(!1===e?Ai(Ai(Ai(Ai(Ai(Ai(Ai(Ai(Ai(Ai(Ai(Ai(Ai({},void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getRuleId()&&null!==this.getRuleId()?{ruleId:this.getRuleId()}:{}),void 0!==this.getStigVersion()&&null!==this.getStigVersion()?{stigVersion:this.getStigVersion()}:{}),void 0!==this.getIdentifiers()&&null!==this.getIdentifiers()?{identifiers:this.getIdentifiers()}:{}),void 0!==this.getAffectedClusters()&&null!==this.getAffectedClusters()?{affectedClusters:this.getAffectedClusters()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getComments()&&null!==this.getComments()?{comments:this.getComments()}:{}),void 0!==this.getFixText()&&null!==this.getFixText()?{fixText:this.getFixText()}:{}),void 0!==this.getBenchmarkId()&&null!==this.getBenchmarkId()?{benchmarkId:this.getBenchmarkId()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Ai(Ai({},void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("title"===t){if(void 0===this.title||null===this.title)return new R("title","undefined or null");if(!A.validateMaxLength(this.title,199))return new R("title","does not satisfy required maxLength constraint: 199")}if("ruleId"===t){if(void 0===this.ruleId||null===this.ruleId)return new R("ruleId","undefined or null");if(!A.validatePattern(this.ruleId,/^SV-\\d{6}r\\d{6}_rule$/))return new R("ruleId","does not satisfy required pattern: /^SV-\\d{6}r\\d{6}_rule$/")}if("stigVersion"===t){if(void 0===this.stigVersion||null===this.stigVersion)return new R("stigVersion","undefined or null");if(!A.validatePattern(this.stigVersion,/^RHEL-\\d{2}-\\d{6}$/))return new R("stigVersion","does not satisfy required pattern: /^RHEL-\\d{2}-\\d{6}$/")}if("identifiers"===t&&(void 0===this.identifiers||null===this.identifiers))return new R("identifiers","undefined or null");if("affectedClusters"===t&&(void 0===this.affectedClusters||null===this.affectedClusters))return new R("affectedClusters","undefined or null");if("severity"===t&&(void 0===this.severity||null===this.severity))return new R("severity","undefined or null");if("status"===t&&(void 0===this.status||null===this.status))return new R("status","undefined or null");if("comments"===t){if(void 0===this.comments||null===this.comments)return new R("comments","undefined or null");if(!A.validateMaxLength(this.comments,499))return new R("comments","does not satisfy required maxLength constraint: 499")}if("fixText"===t){if(void 0===this.fixText||null===this.fixText)return new R("fixText","undefined or null");if(!A.validateMaxLength(this.fixText,499))return new R("fixText","does not satisfy required maxLength constraint: 499")}if("benchmarkId"===t){if(void 0===this.benchmarkId||null===this.benchmarkId)return new R("benchmarkId","undefined or null");if(!A.validatePattern(this.benchmarkId,/^RHEL_\\d+_V\\d+R\\d+$/))return new R("benchmarkId","does not satisfy required pattern: /^RHEL_\\d+_V\\d+R\\d+$/")}return new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(i=i||new t,er.constructFromObject(e,i,!0),e.hasOwnProperty("title")&&null!==e.title&&void 0!==e.title&&i.setTitle(e.title),e.hasOwnProperty("ruleId")&&null!==e.ruleId&&void 0!==e.ruleId&&i.setRuleId(e.ruleId),e.hasOwnProperty("stigVersion")&&null!==e.stigVersion&&void 0!==e.stigVersion&&i.setStigVersion(e.stigVersion),e.hasOwnProperty("identifiers")&&null!==e.identifiers&&void 0!==e.identifiers){for(o=[],n=e.identifiers,r=0;r<n.length;r++)o.push(n[r]);i.setIdentifiers(o)}if(e.hasOwnProperty("affectedClusters")&&null!==e.affectedClusters&&void 0!==e.affectedClusters){for(o=[],n=e.affectedClusters,r=0;r<n.length;r++)o.push(n[r]);i.setAffectedClusters(o)}if(e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&i.setSeverity(Ei.constructFromObject(e.severity)),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&i.setStatus(Si.constructFromObject(e.status)),e.hasOwnProperty("comments")&&null!==e.comments&&void 0!==e.comments&&i.setComments(e.comments),e.hasOwnProperty("fixText")&&null!==e.fixText&&void 0!==e.fixText&&i.setFixText(e.fixText),e.hasOwnProperty("benchmarkId")&&null!==e.benchmarkId&&void 0!==e.benchmarkId&&i.setBenchmarkId(e.benchmarkId),!s)for(var a in i.$unknownFields=Ai({},e.$unknownFields),e)Object.keys(i).includes(a)||Object.keys(i).includes(this.snakeToCamel(a))||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(i.$unknownFields[a]=e[a])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Di(n.prototype,r),o&&Di(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function Vi(e){return Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vi(e)}function Bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mi(e,t,n){return(t=Hi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ji(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hi(r.key),r)}}function Hi(e){var t=function(e){if("object"!=Vi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vi(t)?t:t+""}function Wi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wi=function(){return!!e})()}function Ki(e){return Ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ki(e)}function qi(e,t){return qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qi(e,t)}Li.prototype.title=void 0,Li.prototype.ruleId=void 0,Li.prototype.stigVersion=void 0,Li.prototype.identifiers=void 0,Li.prototype.affectedClusters=void 0,Li.prototype.severity=void 0,Li.prototype.status=void 0,Li.prototype.comments=void 0,Li.prototype.fixText=void 0,Li.prototype.benchmarkId=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var zi=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Ki(t),function(e,t){if(t&&("object"==Vi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Wi()?Reflect.construct(t,n||[],Ki(e).constructor):t.apply(e,n))}(this,t)).$objectType="security.v4.report.StigProjection",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qi(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Li.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bi(Object(n),!0).forEach((function(t){Mi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ji(n.prototype,r),o&&Ji(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Li);function Gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Yi(e){return Yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yi(e)}function Qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qi(Object(n),!0).forEach((function(t){Zi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zi(e,t,n){return(t=ts(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function es(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ts(r.key),r)}}function ts(e){var t=function(e){if("object"!=Yi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yi(t)?t:t+""}function ns(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ns=function(){return!!e})()}function rs(e){return rs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rs(e)}function os(e,t){return os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},os(e,t)}function is(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")}var ss=new WeakSet,as=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=rs(t),function(e,t){if(t&&("object"==Yi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ns()?Reflect.construct(t,n||[],rs(e).constructor):t.apply(e,n))}(this,t),ss),e.$objectType="security.v4.report.ListStigsApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&os(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Xi(Xi(Xi({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):is(ss,this,us).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):is(ss,this,us).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(i=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Yi(n[0]),o=0;o<n.length;o++)switch(s){case"security.v4.report.Stig":r=Li.constructFromObject(n[o],void 0),i.push(r);break;case"security.v4.report.StigProjection":r=zi.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+s+" in data"}a.setData(i)}else{if("security.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Yi(e.data)))throw"Unknown datatype "+s+" in data";a.setData(wn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Xi({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&es(n.prototype,r),o&&es(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function us(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Gi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gi(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Yi(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function ls(e){return ls="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ls(e)}function cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cs(Object(n),!0).forEach((function(t){fs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fs(e,t,n){return(t=ys(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ps(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ys(r.key),r)}}function ys(e){var t=function(e){if("object"!=ls(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ls(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ls(t)?t:t+""}function hs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hs=function(){return!!e})()}function vs(e){return vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vs(e)}function bs(e,t){return bs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bs(e,t)}as.prototype.metadata=void 0,as.prototype.data=void 0,as.prototype.$reserved=void 0,as.prototype.$objectType=void 0,as.prototype.$unknownFields=void 0;var gs=new WeakSet,ms=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=vs(t),function(e,t){if(t&&("object"==ls(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,hs()?Reflect.construct(t,n||[],vs(e).constructor):t.apply(e,n))}(this,t),gs),e.$objectType="security.v4.report.StigSummary",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bs(e,t)}(t,e),n=t,r=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getPassedCount",value:function(){return this.passedCount}},{key:"setPassedCount",value:function(e){this.passedCount=e}},{key:"getFailedCount",value:function(){return this.failedCount}},{key:"setFailedCount",value:function(e){this.failedCount=e}},{key:"getNotApplicableCount",value:function(){return this.notApplicableCount}},{key:"setNotApplicableCount",value:function(e){this.notApplicableCount=e}},{key:"toJson",value:function(e){return!1===e?ds(ds(ds(ds(ds(ds(ds(ds({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getPassedCount()&&null!==this.getPassedCount()?{passedCount:this.getPassedCount()}:{}),void 0!==this.getFailedCount()&&null!==this.getFailedCount()?{failedCount:this.getFailedCount()}:{}),void 0!==this.getNotApplicableCount()&&null!==this.getNotApplicableCount()?{notApplicableCount:this.getNotApplicableCount()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!A.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"passedCount"!==t||void 0!==this.passedCount&&null!==this.passedCount?"failedCount"!==t||void 0!==this.failedCount&&null!==this.failedCount?"notApplicableCount"!==t||void 0!==this.notApplicableCount&&null!==this.notApplicableCount?new R(t,"no such property exists"):new R("notApplicableCount","undefined or null"):new R("failedCount","undefined or null"):new R("passedCount","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,er.constructFromObject(e,n,!0),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&n.setClusterExtId(e.clusterExtId),e.hasOwnProperty("passedCount")&&null!==e.passedCount&&void 0!==e.passedCount&&n.setPassedCount(e.passedCount),e.hasOwnProperty("failedCount")&&null!==e.failedCount&&void 0!==e.failedCount&&n.setFailedCount(e.failedCount),e.hasOwnProperty("notApplicableCount")&&null!==e.notApplicableCount&&void 0!==e.notApplicableCount&&n.setNotApplicableCount(e.notApplicableCount),!r))for(var o in n.$unknownFields=ds({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&ps(n.prototype,r),o&&ps(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function ws(e){return ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ws(e)}function Os(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function js(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Os(Object(n),!0).forEach((function(t){ks(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Os(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ks(e,t,n){return(t=$s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ps(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$s(r.key),r)}}function $s(e){var t=function(e){if("object"!=ws(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ws(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ws(t)?t:t+""}ms.prototype.clusterExtId=void 0,ms.prototype.passedCount=void 0,ms.prototype.failedCount=void 0,ms.prototype.notApplicableCount=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Es=new WeakSet,Ts=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Es),this.$objectType="security.v4.common.Cluster",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getClusterName",value:function(){return this.clusterName}},{key:"setClusterName",value:function(e){this.clusterName=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return js(js(js({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"clusterExtId"!==t||void 0!==this.clusterExtId&&null!==this.clusterExtId?"clusterName"!==t||void 0!==this.clusterName&&null!==this.clusterName?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("clusterName","undefined or null"):new R("clusterExtId","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("clusterExtId")&&null!==t.clusterExtId&&void 0!==t.clusterExtId&&n.setClusterExtId(t.clusterExtId),t.hasOwnProperty("clusterName")&&null!==t.clusterName&&void 0!==t.clusterName&&n.setClusterName(t.clusterName),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=js({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Ps(t.prototype,n),r&&Ps(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ss(e){return Ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ss(e)}function Is(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fs(e,t,n){return(t=Cs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function As(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cs(r.key),r)}}function Cs(e){var t=function(e){if("object"!=Ss(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ss(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ss(t)?t:t+""}function Ds(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ds=function(){return!!e})()}function xs(e){return xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xs(e)}function Rs(e,t){return Rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rs(e,t)}Ts.prototype.clusterExtId=void 0,Ts.prototype.clusterName=void 0,Ts.prototype.$reserved=void 0,Ts.prototype.$objectType=void 0,Ts.prototype.$unknownFields=void 0;var Ns=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=xs(t),function(e,t){if(t&&("object"==Ss(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ds()?Reflect.construct(t,n||[],xs(e).constructor):t.apply(e,n))}(this,t)).$objectType="security.v4.common.ClusterProjection",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rs(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Ts.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Is(Object(n),!0).forEach((function(t){Fs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Is(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&As(n.prototype,r),o&&As(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ts);function _s(e){return _s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_s(e)}function Us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ls(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Us(Object(n),!0).forEach((function(t){Vs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vs(e,t,n){return(t=Ms(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ms(r.key),r)}}function Ms(e){var t=function(e){if("object"!=_s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_s(t)?t:t+""}function Js(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Js=function(){return!!e})()}function Hs(e){return Hs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hs(e)}function Ws(e,t){return Ws=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ws(e,t)}var Ks=new WeakSet,qs=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Hs(t),function(e,t){if(t&&("object"==_s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Js()?Reflect.construct(t,n||[],Hs(e).constructor):t.apply(e,n))}(this,t),Ks),e.$objectType="security.v4.report.StigSummaryProjection",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ws(e,t)}(t,e),n=t,r=[{key:"getClusterProjection",value:function(){return this.clusterProjection}},{key:"setClusterProjection",value:function(e){this.clusterProjection=e}},{key:"toJson",value:function(e){return Ls(!1===e?Ls(Ls(Ls(Ls(Ls(Ls(Ls(Ls({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getPassedCount()&&null!==this.getPassedCount()?{passedCount:this.getPassedCount()}:{}),void 0!==this.getFailedCount()&&null!==this.getFailedCount()?{failedCount:this.getFailedCount()}:{}),void 0!==this.getNotApplicableCount()&&null!==this.getNotApplicableCount()?{notApplicableCount:this.getNotApplicableCount()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Ls({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?new R(t,"no such property exists"):new R("clusterProjection","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,ms.constructFromObject(e,n,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&n.setClusterProjection(Ns.constructFromObject(e.clusterProjection)),!r))for(var o in n.$unknownFields=Ls({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Bs(n.prototype,r),o&&Bs(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ms);function zs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Gs(e){return Gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gs(e)}function Ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ys(Object(n),!0).forEach((function(t){Xs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xs(e,t,n){return(t=ea(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ea(r.key),r)}}function ea(e){var t=function(e){if("object"!=Gs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gs(t)?t:t+""}function ta(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ta=function(){return!!e})()}function na(e){return na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},na(e)}function ra(e,t){return ra=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ra(e,t)}function oa(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")}qs.prototype.clusterProjection=void 0,ms.prototype.clusterExtId=void 0,ms.prototype.passedCount=void 0,ms.prototype.failedCount=void 0,ms.prototype.notApplicableCount=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var ia=new WeakSet,sa=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=na(t),function(e,t){if(t&&("object"==Gs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ta()?Reflect.construct(t,n||[],na(e).constructor):t.apply(e,n))}(this,t),ia),e.$objectType="security.v4.report.ListStigSummariesApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ra(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Qs(Qs(Qs({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):oa(ia,this,aa).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):oa(ia,this,aa).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(i=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Gs(n[0]),o=0;o<n.length;o++)switch(s){case"security.v4.report.StigSummary":r=ms.constructFromObject(n[o],void 0),i.push(r);break;case"security.v4.report.StigSummaryProjection":r=qs.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+s+" in data"}a.setData(i)}else{if("security.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Gs(e.data)))throw"Unknown datatype "+s+" in data";a.setData(wn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Qs({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Zs(n.prototype,r),o&&Zs(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function aa(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return zs(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zs(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Gs(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function ua(e){return ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ua(e)}function la(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ca(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(Object(n),!0).forEach((function(t){da(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function da(e,t,n){return(t=pa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pa(r.key),r)}}function pa(e){var t=function(e){if("object"!=ua(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ua(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ua(t)?t:t+""}function ya(e,t){return e.get(ha(e,t))}function ha(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")}sa.prototype.metadata=void 0,sa.prototype.data=void 0,sa.prototype.$reserved=void 0,sa.prototype.$objectType=void 0,sa.prototype.$unknownFields=void 0;var va=new WeakMap,ba=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,va,void 0),this.apiClient=t||lt.instance,n=va,r=new Set,n.set(ha(n,this),r),ya(va,this).add("authorization"),ya(va,this).add("cookie"),ya(va,this).add("host"),ya(va,this).add("user-agent")},t=[{key:"listStigSummaries",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=ca(ca(ca(ca(ca(ca({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),e.hasOwnProperty("$expand")?{$expand:e.$expand}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach((function(e){ya(va,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=ca({},o),s=sa;return this.apiClient.callApi("/api/security/v4.0.b1/report/stig-summaries","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"listStigs",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=ca(ca(ca(ca(ca({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach((function(e){ya(va,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=ca({},o),s=as;return this.apiClient.callApi("/api/security/v4.0.b1/report/stigs","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&fa(e.prototype,t),n&&fa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),ga={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",DAY:"DAY",WEEK:"WEEK",MONTH:"MONTH",QUARTER:"QUARTER",YEAR:"YEAR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ga).find((function(t){return ga[t]===e}));return null==t?ga.$UNKNOWN:ga[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ga.$UNKNOWN:case ga.$REDACTED:case ga.DAY:case ga.WEEK:case ga.MONTH:case ga.QUARTER:case ga.YEAR:return;default:throw new Error("Invalid : must be Timescale.{ $UNKNOWN|$REDACTED|DAY|WEEK|MONTH|QUARTER|YEAR }")}}};Object.freeze(ga);const ma=ga;function wa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Oa(e){return Oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oa(e)}function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(n),!0).forEach((function(t){Pa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pa(e,t,n){return(t=Ea(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ea(r.key),r)}}function Ea(e){var t=function(e){if("object"!=Oa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Oa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oa(t)?t:t+""}function Ta(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ta=function(){return!!e})()}function Sa(e){return Sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sa(e)}function Ia(e,t){return Ia=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ia(e,t)}function Fa(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")}var Aa=new WeakSet,Ca=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Sa(t),function(e,t){if(t&&("object"==Oa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ta()?Reflect.construct(t,n||[],Sa(e).constructor):t.apply(e,n))}(this,t),Aa),e.$objectType="security.v4.config.AddPublicKeyApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ia(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ka(ka(ka({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Fa(Aa,this,Da).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Fa(Aa,this,Da).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Oa(e.data)){case"prism.v4.config.TaskReference":r.setData(xt.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(wn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=ka({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&$a(n.prototype,r),o&&$a(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Da(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return wa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wa(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Oa(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function xa(e){return xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xa(e)}function Ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(n),!0).forEach((function(t){_a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _a(e,t,n){return(t=La(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ua(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,La(r.key),r)}}function La(e){var t=function(e){if("object"!=xa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xa(t)?t:t+""}Ca.prototype.metadata=void 0,Ca.prototype.data=void 0,Ca.prototype.$reserved=void 0,Ca.prototype.$objectType=void 0,Ca.prototype.$unknownFields=void 0;var Va=new WeakSet,Ba=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Va),this.newPassword=t,this.$objectType="security.v4.config.ChangePasswordSpec",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getCurrentPassword",value:function(){return this.currentPassword}},{key:"setCurrentPassword",value:function(e){this.currentPassword=e}},{key:"getNewPassword",value:function(){return this.newPassword}},{key:"setNewPassword",value:function(e){this.newPassword=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Na(Na(Na({},void 0!==this.getCurrentPassword()&&null!==this.getCurrentPassword()?{currentPassword:this.getCurrentPassword()}:{}),void 0!==this.getNewPassword()&&null!==this.getNewPassword()?{newPassword:this.getNewPassword()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=["newPassword"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"currentPassword"!==t||void 0!==this.currentPassword&&null!==this.currentPassword?"newPassword"!==t||void 0!==this.newPassword&&null!==this.newPassword?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("newPassword","undefined or null"):new R("currentPassword","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("currentPassword")&&null!==t.currentPassword&&void 0!==t.currentPassword&&n.setCurrentPassword(t.currentPassword),t.hasOwnProperty("newPassword")&&null!==t.newPassword&&void 0!==t.newPassword&&n.setNewPassword(t.newPassword),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Na({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Ua(t.prototype,n),r&&Ua(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ma(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ja(e){return Ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ja(e)}function Ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ha(Object(n),!0).forEach((function(t){Ka(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ha(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ka(e,t,n){return(t=za(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,za(r.key),r)}}function za(e){var t=function(e){if("object"!=Ja(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ja(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ja(t)?t:t+""}function Ga(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ga=function(){return!!e})()}function Ya(e){return Ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ya(e)}function Qa(e,t){return Qa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qa(e,t)}function Xa(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")}Ba.prototype.currentPassword=void 0,Ba.prototype.newPassword=void 0,Ba.prototype.$reserved=void 0,Ba.prototype.$objectType=void 0,Ba.prototype.$unknownFields=void 0;var Za=new WeakSet,eu=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ya(t),function(e,t){if(t&&("object"==Ja(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ga()?Reflect.construct(t,n||[],Ya(e).constructor):t.apply(e,n))}(this,t),Za),e.$objectType="security.v4.config.ChangeSystemUserPasswordApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qa(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Wa(Wa(Wa({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Xa(Za,this,tu).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Xa(Za,this,tu).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ja(e.data)){case"prism.v4.config.TaskReference":r.setData(xt.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(wn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Wa({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&qa(n.prototype,r),o&&qa(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function tu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ma(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ma(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Ja(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function nu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ru(e){return ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ru(e)}function ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ou(Object(n),!0).forEach((function(t){su(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ou(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function su(e,t,n){return(t=uu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function au(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uu(r.key),r)}}function uu(e){var t=function(e){if("object"!=ru(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ru(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ru(t)?t:t+""}function lu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lu=function(){return!!e})()}function cu(e){return cu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cu(e)}function du(e,t){return du=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},du(e,t)}function fu(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")}eu.prototype.metadata=void 0,eu.prototype.data=void 0,eu.prototype.$reserved=void 0,eu.prototype.$objectType=void 0,eu.prototype.$unknownFields=void 0;var pu=new WeakSet,yu=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=cu(t),function(e,t){if(t&&("object"==ru(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,lu()?Reflect.construct(t,n||[],cu(e).constructor):t.apply(e,n))}(this,t),pu),e.$objectType="security.v4.config.DeletePublicKeyApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&du(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return iu(iu(iu({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):fu(pu,this,hu).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):fu(pu,this,hu).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ru(e.data)){case"prism.v4.config.TaskReference":r.setData(xt.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(wn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=iu({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&au(n.prototype,r),o&&au(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function hu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return nu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nu(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===ru(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}yu.prototype.metadata=void 0,yu.prototype.data=void 0,yu.prototype.$reserved=void 0,yu.prototype.$objectType=void 0,yu.prototype.$unknownFields=void 0;var vu={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",HOURLY:"HOURLY",DAILY:"DAILY",WEEKLY:"WEEKLY",MONTHLY:"MONTHLY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(vu).find((function(t){return vu[t]===e}));return null==t?vu.$UNKNOWN:vu[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case vu.$UNKNOWN:case vu.$REDACTED:case vu.HOURLY:case vu.DAILY:case vu.WEEKLY:case vu.MONTHLY:return;default:throw new Error("Invalid : must be Schedule.{ $UNKNOWN|$REDACTED|HOURLY|DAILY|WEEKLY|MONTHLY }")}}};Object.freeze(vu);const bu=vu;function gu(e){return gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gu(e)}function mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mu(Object(n),!0).forEach((function(t){Ou(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ou(e,t,n){return(t=ku(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ju(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ku(r.key),r)}}function ku(e){var t=function(e){if("object"!=gu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gu(t)?t:t+""}function Pu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Pu=function(){return!!e})()}function $u(e){return $u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$u(e)}function Eu(e,t){return Eu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Eu(e,t)}var Tu=new WeakSet,Su=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=$u(t),function(e,t){if(t&&("object"==gu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Pu()?Reflect.construct(t,n||[],$u(e).constructor):t.apply(e,n))}(this,t),Tu),e.$objectType="security.v4.config.HardeningStatus",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eu(e,t)}(t,e),n=t,r=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getIsHighStrengthPasswordEnabled",value:function(){return this.isHighStrengthPasswordEnabled}},{key:"setIsHighStrengthPasswordEnabled",value:function(e){this.isHighStrengthPasswordEnabled=e}},{key:"getIsAideEnabled",value:function(){return this.isAideEnabled}},{key:"setIsAideEnabled",value:function(e){this.isAideEnabled=e}},{key:"getIsSecureBootEnabled",value:function(){return this.isSecureBootEnabled}},{key:"setIsSecureBootEnabled",value:function(e){this.isSecureBootEnabled=e}},{key:"getIsClusterLockdownEnabled",value:function(){return this.isClusterLockdownEnabled}},{key:"setIsClusterLockdownEnabled",value:function(e){this.isClusterLockdownEnabled=e}},{key:"getIsLogForwardingEnabled",value:function(){return this.isLogForwardingEnabled}},{key:"setIsLogForwardingEnabled",value:function(e){this.isLogForwardingEnabled=e}},{key:"getScmaSchedule",value:function(){return this.scmaSchedule}},{key:"setScmaSchedule",value:function(e){this.scmaSchedule=e}},{key:"getAhvScmaSchedule",value:function(){return this.ahvScmaSchedule}},{key:"setAhvScmaSchedule",value:function(e){this.ahvScmaSchedule=e}},{key:"getIsAhvDefenseConsentBannerEnabled",value:function(){return this.isAhvDefenseConsentBannerEnabled}},{key:"setIsAhvDefenseConsentBannerEnabled",value:function(e){this.isAhvDefenseConsentBannerEnabled=e}},{key:"getIsCvmDefenseConsentBannerEnabled",value:function(){return this.isCvmDefenseConsentBannerEnabled}},{key:"setIsCvmDefenseConsentBannerEnabled",value:function(e){this.isCvmDefenseConsentBannerEnabled=e}},{key:"getIsNetworkSegmentationEnabled",value:function(){return this.isNetworkSegmentationEnabled}},{key:"setIsNetworkSegmentationEnabled",value:function(e){this.isNetworkSegmentationEnabled=e}},{key:"toJson",value:function(e){return wu(!1===e?wu(wu(wu(wu(wu(wu(wu(wu(wu(wu(wu(wu(wu(wu({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getIsHighStrengthPasswordEnabled()&&null!==this.getIsHighStrengthPasswordEnabled()?{isHighStrengthPasswordEnabled:this.getIsHighStrengthPasswordEnabled()}:{}),void 0!==this.getIsAideEnabled()&&null!==this.getIsAideEnabled()?{isAideEnabled:this.getIsAideEnabled()}:{}),void 0!==this.getIsSecureBootEnabled()&&null!==this.getIsSecureBootEnabled()?{isSecureBootEnabled:this.getIsSecureBootEnabled()}:{}),void 0!==this.getIsClusterLockdownEnabled()&&null!==this.getIsClusterLockdownEnabled()?{isClusterLockdownEnabled:this.getIsClusterLockdownEnabled()}:{}),void 0!==this.getIsLogForwardingEnabled()&&null!==this.getIsLogForwardingEnabled()?{isLogForwardingEnabled:this.getIsLogForwardingEnabled()}:{}),void 0!==this.getScmaSchedule()&&null!==this.getScmaSchedule()?{scmaSchedule:this.getScmaSchedule()}:{}),void 0!==this.getAhvScmaSchedule()&&null!==this.getAhvScmaSchedule()?{ahvScmaSchedule:this.getAhvScmaSchedule()}:{}),void 0!==this.getIsAhvDefenseConsentBannerEnabled()&&null!==this.getIsAhvDefenseConsentBannerEnabled()?{isAhvDefenseConsentBannerEnabled:this.getIsAhvDefenseConsentBannerEnabled()}:{}),void 0!==this.getIsCvmDefenseConsentBannerEnabled()&&null!==this.getIsCvmDefenseConsentBannerEnabled()?{isCvmDefenseConsentBannerEnabled:this.getIsCvmDefenseConsentBannerEnabled()}:{}),void 0!==this.getIsNetworkSegmentationEnabled()&&null!==this.getIsNetworkSegmentationEnabled()?{isNetworkSegmentationEnabled:this.getIsNetworkSegmentationEnabled()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):wu(wu(wu(wu(wu(wu({},void 0!==this.getIsHighStrengthPasswordEnabled()&&null!==this.getIsHighStrengthPasswordEnabled()?{isHighStrengthPasswordEnabled:this.getIsHighStrengthPasswordEnabled()}:{}),void 0!==this.getIsAideEnabled()&&null!==this.getIsAideEnabled()?{isAideEnabled:this.getIsAideEnabled()}:{}),void 0!==this.getScmaSchedule()&&null!==this.getScmaSchedule()?{scmaSchedule:this.getScmaSchedule()}:{}),void 0!==this.getAhvScmaSchedule()&&null!==this.getAhvScmaSchedule()?{ahvScmaSchedule:this.getAhvScmaSchedule()}:{}),void 0!==this.getIsAhvDefenseConsentBannerEnabled()&&null!==this.getIsAhvDefenseConsentBannerEnabled()?{isAhvDefenseConsentBannerEnabled:this.getIsAhvDefenseConsentBannerEnabled()}:{}),void 0!==this.getIsCvmDefenseConsentBannerEnabled()&&null!==this.getIsCvmDefenseConsentBannerEnabled()?{isCvmDefenseConsentBannerEnabled:this.getIsCvmDefenseConsentBannerEnabled()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!A.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"isHighStrengthPasswordEnabled"!==t||void 0!==this.isHighStrengthPasswordEnabled&&null!==this.isHighStrengthPasswordEnabled?"isAideEnabled"!==t||void 0!==this.isAideEnabled&&null!==this.isAideEnabled?"isSecureBootEnabled"!==t||void 0!==this.isSecureBootEnabled&&null!==this.isSecureBootEnabled?"isClusterLockdownEnabled"!==t||void 0!==this.isClusterLockdownEnabled&&null!==this.isClusterLockdownEnabled?"isLogForwardingEnabled"!==t||void 0!==this.isLogForwardingEnabled&&null!==this.isLogForwardingEnabled?"scmaSchedule"!==t||void 0!==this.scmaSchedule&&null!==this.scmaSchedule?"ahvScmaSchedule"!==t||void 0!==this.ahvScmaSchedule&&null!==this.ahvScmaSchedule?"isAhvDefenseConsentBannerEnabled"!==t||void 0!==this.isAhvDefenseConsentBannerEnabled&&null!==this.isAhvDefenseConsentBannerEnabled?"isCvmDefenseConsentBannerEnabled"!==t||void 0!==this.isCvmDefenseConsentBannerEnabled&&null!==this.isCvmDefenseConsentBannerEnabled?"isNetworkSegmentationEnabled"!==t||void 0!==this.isNetworkSegmentationEnabled&&null!==this.isNetworkSegmentationEnabled?new R(t,"no such property exists"):new R("isNetworkSegmentationEnabled","undefined or null"):new R("isCvmDefenseConsentBannerEnabled","undefined or null"):new R("isAhvDefenseConsentBannerEnabled","undefined or null"):new R("ahvScmaSchedule","undefined or null"):new R("scmaSchedule","undefined or null"):new R("isLogForwardingEnabled","undefined or null"):new R("isClusterLockdownEnabled","undefined or null"):new R("isSecureBootEnabled","undefined or null"):new R("isAideEnabled","undefined or null"):new R("isHighStrengthPasswordEnabled","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,er.constructFromObject(e,n,!0),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&n.setClusterExtId(e.clusterExtId),e.hasOwnProperty("isHighStrengthPasswordEnabled")&&null!==e.isHighStrengthPasswordEnabled&&void 0!==e.isHighStrengthPasswordEnabled&&n.setIsHighStrengthPasswordEnabled(e.isHighStrengthPasswordEnabled),e.hasOwnProperty("isAideEnabled")&&null!==e.isAideEnabled&&void 0!==e.isAideEnabled&&n.setIsAideEnabled(e.isAideEnabled),e.hasOwnProperty("isSecureBootEnabled")&&null!==e.isSecureBootEnabled&&void 0!==e.isSecureBootEnabled&&n.setIsSecureBootEnabled(e.isSecureBootEnabled),e.hasOwnProperty("isClusterLockdownEnabled")&&null!==e.isClusterLockdownEnabled&&void 0!==e.isClusterLockdownEnabled&&n.setIsClusterLockdownEnabled(e.isClusterLockdownEnabled),e.hasOwnProperty("isLogForwardingEnabled")&&null!==e.isLogForwardingEnabled&&void 0!==e.isLogForwardingEnabled&&n.setIsLogForwardingEnabled(e.isLogForwardingEnabled),e.hasOwnProperty("scmaSchedule")&&null!==e.scmaSchedule&&void 0!==e.scmaSchedule&&n.setScmaSchedule(bu.constructFromObject(e.scmaSchedule)),e.hasOwnProperty("ahvScmaSchedule")&&null!==e.ahvScmaSchedule&&void 0!==e.ahvScmaSchedule&&n.setAhvScmaSchedule(bu.constructFromObject(e.ahvScmaSchedule)),e.hasOwnProperty("isAhvDefenseConsentBannerEnabled")&&null!==e.isAhvDefenseConsentBannerEnabled&&void 0!==e.isAhvDefenseConsentBannerEnabled&&n.setIsAhvDefenseConsentBannerEnabled(e.isAhvDefenseConsentBannerEnabled),e.hasOwnProperty("isCvmDefenseConsentBannerEnabled")&&null!==e.isCvmDefenseConsentBannerEnabled&&void 0!==e.isCvmDefenseConsentBannerEnabled&&n.setIsCvmDefenseConsentBannerEnabled(e.isCvmDefenseConsentBannerEnabled),e.hasOwnProperty("isNetworkSegmentationEnabled")&&null!==e.isNetworkSegmentationEnabled&&void 0!==e.isNetworkSegmentationEnabled&&n.setIsNetworkSegmentationEnabled(e.isNetworkSegmentationEnabled),!r))for(var o in n.$unknownFields=wu({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&ju(n.prototype,r),o&&ju(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function Iu(e){return Iu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Iu(e)}function Fu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Au(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fu(Object(n),!0).forEach((function(t){Cu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cu(e,t,n){return(t=xu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Du(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xu(r.key),r)}}function xu(e){var t=function(e){if("object"!=Iu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Iu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Iu(t)?t:t+""}function Ru(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ru=function(){return!!e})()}function Nu(e){return Nu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nu(e)}function _u(e,t){return _u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_u(e,t)}Su.prototype.clusterExtId=void 0,Su.prototype.isHighStrengthPasswordEnabled=void 0,Su.prototype.isAideEnabled=void 0,Su.prototype.isSecureBootEnabled=void 0,Su.prototype.isClusterLockdownEnabled=void 0,Su.prototype.isLogForwardingEnabled=void 0,Su.prototype.scmaSchedule=void 0,Su.prototype.ahvScmaSchedule=void 0,Su.prototype.isAhvDefenseConsentBannerEnabled=void 0,Su.prototype.isCvmDefenseConsentBannerEnabled=void 0,Su.prototype.isNetworkSegmentationEnabled=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Uu=new WeakSet,Lu=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Nu(t),function(e,t){if(t&&("object"==Iu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ru()?Reflect.construct(t,n||[],Nu(e).constructor):t.apply(e,n))}(this,t),Uu),e.$objectType="security.v4.config.HardeningStatusProjection",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_u(e,t)}(t,e),n=t,r=[{key:"getClusterProjection",value:function(){return this.clusterProjection}},{key:"setClusterProjection",value:function(e){this.clusterProjection=e}},{key:"toJson",value:function(e){return Au(!1===e?Au(Au(Au(Au(Au(Au(Au(Au(Au(Au(Au(Au(Au(Au(Au({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getIsHighStrengthPasswordEnabled()&&null!==this.getIsHighStrengthPasswordEnabled()?{isHighStrengthPasswordEnabled:this.getIsHighStrengthPasswordEnabled()}:{}),void 0!==this.getIsAideEnabled()&&null!==this.getIsAideEnabled()?{isAideEnabled:this.getIsAideEnabled()}:{}),void 0!==this.getIsSecureBootEnabled()&&null!==this.getIsSecureBootEnabled()?{isSecureBootEnabled:this.getIsSecureBootEnabled()}:{}),void 0!==this.getIsClusterLockdownEnabled()&&null!==this.getIsClusterLockdownEnabled()?{isClusterLockdownEnabled:this.getIsClusterLockdownEnabled()}:{}),void 0!==this.getIsLogForwardingEnabled()&&null!==this.getIsLogForwardingEnabled()?{isLogForwardingEnabled:this.getIsLogForwardingEnabled()}:{}),void 0!==this.getScmaSchedule()&&null!==this.getScmaSchedule()?{scmaSchedule:this.getScmaSchedule()}:{}),void 0!==this.getAhvScmaSchedule()&&null!==this.getAhvScmaSchedule()?{ahvScmaSchedule:this.getAhvScmaSchedule()}:{}),void 0!==this.getIsAhvDefenseConsentBannerEnabled()&&null!==this.getIsAhvDefenseConsentBannerEnabled()?{isAhvDefenseConsentBannerEnabled:this.getIsAhvDefenseConsentBannerEnabled()}:{}),void 0!==this.getIsCvmDefenseConsentBannerEnabled()&&null!==this.getIsCvmDefenseConsentBannerEnabled()?{isCvmDefenseConsentBannerEnabled:this.getIsCvmDefenseConsentBannerEnabled()}:{}),void 0!==this.getIsNetworkSegmentationEnabled()&&null!==this.getIsNetworkSegmentationEnabled()?{isNetworkSegmentationEnabled:this.getIsNetworkSegmentationEnabled()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Au(Au(Au(Au(Au(Au(Au({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getIsHighStrengthPasswordEnabled()&&null!==this.getIsHighStrengthPasswordEnabled()?{isHighStrengthPasswordEnabled:this.getIsHighStrengthPasswordEnabled()}:{}),void 0!==this.getIsAideEnabled()&&null!==this.getIsAideEnabled()?{isAideEnabled:this.getIsAideEnabled()}:{}),void 0!==this.getScmaSchedule()&&null!==this.getScmaSchedule()?{scmaSchedule:this.getScmaSchedule()}:{}),void 0!==this.getAhvScmaSchedule()&&null!==this.getAhvScmaSchedule()?{ahvScmaSchedule:this.getAhvScmaSchedule()}:{}),void 0!==this.getIsAhvDefenseConsentBannerEnabled()&&null!==this.getIsAhvDefenseConsentBannerEnabled()?{isAhvDefenseConsentBannerEnabled:this.getIsAhvDefenseConsentBannerEnabled()}:{}),void 0!==this.getIsCvmDefenseConsentBannerEnabled()&&null!==this.getIsCvmDefenseConsentBannerEnabled()?{isCvmDefenseConsentBannerEnabled:this.getIsCvmDefenseConsentBannerEnabled()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?new R(t,"no such property exists"):new R("clusterProjection","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Su.constructFromObject(e,n,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&n.setClusterProjection(Ns.constructFromObject(e.clusterProjection)),!r))for(var o in n.$unknownFields=Au({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Du(n.prototype,r),o&&Du(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Su);function Vu(e){return Vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vu(e)}function Bu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bu(Object(n),!0).forEach((function(t){Ju(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ju(e,t,n){return(t=Wu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wu(r.key),r)}}function Wu(e){var t=function(e){if("object"!=Vu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vu(t)?t:t+""}function Ku(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ku=function(){return!!e})()}function qu(e){return qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qu(e)}function zu(e,t){return zu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zu(e,t)}Lu.prototype.clusterProjection=void 0,Su.prototype.clusterExtId=void 0,Su.prototype.isHighStrengthPasswordEnabled=void 0,Su.prototype.isAideEnabled=void 0,Su.prototype.isSecureBootEnabled=void 0,Su.prototype.isClusterLockdownEnabled=void 0,Su.prototype.isLogForwardingEnabled=void 0,Su.prototype.scmaSchedule=void 0,Su.prototype.ahvScmaSchedule=void 0,Su.prototype.isAhvDefenseConsentBannerEnabled=void 0,Su.prototype.isCvmDefenseConsentBannerEnabled=void 0,Su.prototype.isNetworkSegmentationEnabled=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Gu=new WeakSet,Yu=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=qu(t),function(e,t){if(t&&("object"==Vu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ku()?Reflect.construct(t,n||[],qu(e).constructor):t.apply(e,n))}(this,t),Gu),e.$objectType="security.v4.config.HardeningVisibilitySetting",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zu(e,t)}(t,e),n=t,r=[{key:"getIsHighStrengthPasswordVisible",value:function(){return this.isHighStrengthPasswordVisible}},{key:"setIsHighStrengthPasswordVisible",value:function(e){this.isHighStrengthPasswordVisible=e}},{key:"getIsAideVisible",value:function(){return this.isAideVisible}},{key:"setIsAideVisible",value:function(e){this.isAideVisible=e}},{key:"getIsScmaVisible",value:function(){return this.isScmaVisible}},{key:"setIsScmaVisible",value:function(e){this.isScmaVisible=e}},{key:"getIsSecureBootVisible",value:function(){return this.isSecureBootVisible}},{key:"setIsSecureBootVisible",value:function(e){this.isSecureBootVisible=e}},{key:"getIsNetworkSegmentationVisible",value:function(){return this.isNetworkSegmentationVisible}},{key:"setIsNetworkSegmentationVisible",value:function(e){this.isNetworkSegmentationVisible=e}},{key:"getIsClusterLockdownVisible",value:function(){return this.isClusterLockdownVisible}},{key:"setIsClusterLockdownVisible",value:function(e){this.isClusterLockdownVisible=e}},{key:"getIsLogForwardingVisible",value:function(){return this.isLogForwardingVisible}},{key:"setIsLogForwardingVisible",value:function(e){this.isLogForwardingVisible=e}},{key:"getIsDefenseConsentBannerVisible",value:function(){return this.isDefenseConsentBannerVisible}},{key:"setIsDefenseConsentBannerVisible",value:function(e){this.isDefenseConsentBannerVisible=e}},{key:"toJson",value:function(e){return Mu(!1===e?Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu({},void 0!==this.getIsHighStrengthPasswordVisible()&&null!==this.getIsHighStrengthPasswordVisible()?{isHighStrengthPasswordVisible:this.getIsHighStrengthPasswordVisible()}:{}),void 0!==this.getIsAideVisible()&&null!==this.getIsAideVisible()?{isAideVisible:this.getIsAideVisible()}:{}),void 0!==this.getIsScmaVisible()&&null!==this.getIsScmaVisible()?{isScmaVisible:this.getIsScmaVisible()}:{}),void 0!==this.getIsSecureBootVisible()&&null!==this.getIsSecureBootVisible()?{isSecureBootVisible:this.getIsSecureBootVisible()}:{}),void 0!==this.getIsNetworkSegmentationVisible()&&null!==this.getIsNetworkSegmentationVisible()?{isNetworkSegmentationVisible:this.getIsNetworkSegmentationVisible()}:{}),void 0!==this.getIsClusterLockdownVisible()&&null!==this.getIsClusterLockdownVisible()?{isClusterLockdownVisible:this.getIsClusterLockdownVisible()}:{}),void 0!==this.getIsLogForwardingVisible()&&null!==this.getIsLogForwardingVisible()?{isLogForwardingVisible:this.getIsLogForwardingVisible()}:{}),void 0!==this.getIsDefenseConsentBannerVisible()&&null!==this.getIsDefenseConsentBannerVisible()?{isDefenseConsentBannerVisible:this.getIsDefenseConsentBannerVisible()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu({},void 0!==this.getIsHighStrengthPasswordVisible()&&null!==this.getIsHighStrengthPasswordVisible()?{isHighStrengthPasswordVisible:this.getIsHighStrengthPasswordVisible()}:{}),void 0!==this.getIsAideVisible()&&null!==this.getIsAideVisible()?{isAideVisible:this.getIsAideVisible()}:{}),void 0!==this.getIsScmaVisible()&&null!==this.getIsScmaVisible()?{isScmaVisible:this.getIsScmaVisible()}:{}),void 0!==this.getIsSecureBootVisible()&&null!==this.getIsSecureBootVisible()?{isSecureBootVisible:this.getIsSecureBootVisible()}:{}),void 0!==this.getIsNetworkSegmentationVisible()&&null!==this.getIsNetworkSegmentationVisible()?{isNetworkSegmentationVisible:this.getIsNetworkSegmentationVisible()}:{}),void 0!==this.getIsClusterLockdownVisible()&&null!==this.getIsClusterLockdownVisible()?{isClusterLockdownVisible:this.getIsClusterLockdownVisible()}:{}),void 0!==this.getIsLogForwardingVisible()&&null!==this.getIsLogForwardingVisible()?{isLogForwardingVisible:this.getIsLogForwardingVisible()}:{}),void 0!==this.getIsDefenseConsentBannerVisible()&&null!==this.getIsDefenseConsentBannerVisible()?{isDefenseConsentBannerVisible:this.getIsDefenseConsentBannerVisible()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"isHighStrengthPasswordVisible"!==t||void 0!==this.isHighStrengthPasswordVisible&&null!==this.isHighStrengthPasswordVisible?"isAideVisible"!==t||void 0!==this.isAideVisible&&null!==this.isAideVisible?"isScmaVisible"!==t||void 0!==this.isScmaVisible&&null!==this.isScmaVisible?"isSecureBootVisible"!==t||void 0!==this.isSecureBootVisible&&null!==this.isSecureBootVisible?"isNetworkSegmentationVisible"!==t||void 0!==this.isNetworkSegmentationVisible&&null!==this.isNetworkSegmentationVisible?"isClusterLockdownVisible"!==t||void 0!==this.isClusterLockdownVisible&&null!==this.isClusterLockdownVisible?"isLogForwardingVisible"!==t||void 0!==this.isLogForwardingVisible&&null!==this.isLogForwardingVisible?"isDefenseConsentBannerVisible"!==t||void 0!==this.isDefenseConsentBannerVisible&&null!==this.isDefenseConsentBannerVisible?new R(t,"no such property exists"):new R("isDefenseConsentBannerVisible","undefined or null"):new R("isLogForwardingVisible","undefined or null"):new R("isClusterLockdownVisible","undefined or null"):new R("isNetworkSegmentationVisible","undefined or null"):new R("isSecureBootVisible","undefined or null"):new R("isScmaVisible","undefined or null"):new R("isAideVisible","undefined or null"):new R("isHighStrengthPasswordVisible","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,er.constructFromObject(e,n,!0),e.hasOwnProperty("isHighStrengthPasswordVisible")&&null!==e.isHighStrengthPasswordVisible&&void 0!==e.isHighStrengthPasswordVisible&&n.setIsHighStrengthPasswordVisible(e.isHighStrengthPasswordVisible),e.hasOwnProperty("isAideVisible")&&null!==e.isAideVisible&&void 0!==e.isAideVisible&&n.setIsAideVisible(e.isAideVisible),e.hasOwnProperty("isScmaVisible")&&null!==e.isScmaVisible&&void 0!==e.isScmaVisible&&n.setIsScmaVisible(e.isScmaVisible),e.hasOwnProperty("isSecureBootVisible")&&null!==e.isSecureBootVisible&&void 0!==e.isSecureBootVisible&&n.setIsSecureBootVisible(e.isSecureBootVisible),e.hasOwnProperty("isNetworkSegmentationVisible")&&null!==e.isNetworkSegmentationVisible&&void 0!==e.isNetworkSegmentationVisible&&n.setIsNetworkSegmentationVisible(e.isNetworkSegmentationVisible),e.hasOwnProperty("isClusterLockdownVisible")&&null!==e.isClusterLockdownVisible&&void 0!==e.isClusterLockdownVisible&&n.setIsClusterLockdownVisible(e.isClusterLockdownVisible),e.hasOwnProperty("isLogForwardingVisible")&&null!==e.isLogForwardingVisible&&void 0!==e.isLogForwardingVisible&&n.setIsLogForwardingVisible(e.isLogForwardingVisible),e.hasOwnProperty("isDefenseConsentBannerVisible")&&null!==e.isDefenseConsentBannerVisible&&void 0!==e.isDefenseConsentBannerVisible&&n.setIsDefenseConsentBannerVisible(e.isDefenseConsentBannerVisible),!r))for(var o in n.$unknownFields=Mu({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Hu(n.prototype,r),o&&Hu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);Yu.prototype.isHighStrengthPasswordVisible=void 0,Yu.prototype.isAideVisible=void 0,Yu.prototype.isScmaVisible=void 0,Yu.prototype.isSecureBootVisible=void 0,Yu.prototype.isNetworkSegmentationVisible=void 0,Yu.prototype.isClusterLockdownVisible=void 0,Yu.prototype.isLogForwardingVisible=void 0,Yu.prototype.isDefenseConsentBannerVisible=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Qu={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",DEFAULT:"DEFAULT",SECURE:"SECURE",NOPASSWD:"NOPASSWD",MULTIPLE_ISSUES:"MULTIPLE_ISSUES",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Qu).find((function(t){return Qu[t]===e}));return null==t?Qu.$UNKNOWN:Qu[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Qu.$UNKNOWN:case Qu.$REDACTED:case Qu.DEFAULT:case Qu.SECURE:case Qu.NOPASSWD:case Qu.MULTIPLE_ISSUES:return;default:throw new Error("Invalid : must be PasswordStatus.{ $UNKNOWN|$REDACTED|DEFAULT|SECURE|NOPASSWD|MULTIPLE_ISSUES }")}}};Object.freeze(Qu);const Xu=Qu;var Zu={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VERIFIED:"VERIFIED",NOT_VERIFIED:"NOT_VERIFIED",ACCOUNT_LOCKED:"ACCOUNT_LOCKED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Zu).find((function(t){return Zu[t]===e}));return null==t?Zu.$UNKNOWN:Zu[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Zu.$UNKNOWN:case Zu.$REDACTED:case Zu.VERIFIED:case Zu.NOT_VERIFIED:case Zu.ACCOUNT_LOCKED:return;default:throw new Error("Invalid : must be PasswordVerificationStatus.{ $UNKNOWN|$REDACTED|VERIFIED|NOT_VERIFIED|ACCOUNT_LOCKED }")}}};Object.freeze(Zu);const el=Zu;function tl(e){return tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tl(e)}function nl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nl(Object(n),!0).forEach((function(t){ol(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ol(e,t,n){return(t=sl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function il(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sl(r.key),r)}}function sl(e){var t=function(e){if("object"!=tl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tl(t)?t:t+""}function al(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(al=function(){return!!e})()}function ul(e){return ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ul(e)}function ll(e,t){return ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ll(e,t)}var cl=new WeakSet,dl=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(o=function(e,t,n){return t=ul(t),function(e,t){if(t&&("object"==tl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,al()?Reflect.construct(t,n||[],ul(e).constructor):t.apply(e,n))}(this,t),cl),o.name=e,o.key=n,o.clusterExtId=r,o.$objectType="security.v4.config.PublicKey",o.$reserved={$fv:"v4.r0.b1"},o.$unknownFields={},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ll(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getKey",value:function(){return this.key}},{key:"setKey",value:function(e){this.key=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"toJson",value:function(e){return rl(!1===e?rl(rl(rl(rl(rl(rl({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getKey()&&null!==this.getKey()?{key:this.getKey()}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):rl(rl(rl({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getKey()&&null!==this.getKey()?{key:this.getKey()}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=["name","key","clusterExtId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new R("name","undefined or null");if(!A.validateMaxLength(this.name,20))return new R("name","does not satisfy required maxLength constraint: 20");if(!A.validateMinLength(this.name,3))return new R("name","does not satisfy required minLength constraint: 3")}if("key"===t&&(void 0===this.key||null===this.key))return new R("key","undefined or null");if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!A.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,er.constructFromObject(e,n,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&n.setName(e.name),e.hasOwnProperty("key")&&null!==e.key&&void 0!==e.key&&n.setKey(e.key),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&n.setClusterExtId(e.clusterExtId),!r))for(var o in n.$unknownFields=rl({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&il(n.prototype,r),o&&il(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function fl(e){return fl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fl(e)}function pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pl(Object(n),!0).forEach((function(t){hl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hl(e,t,n){return(t=bl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bl(r.key),r)}}function bl(e){var t=function(e){if("object"!=fl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fl(t)?t:t+""}function gl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gl=function(){return!!e})()}function ml(e){return ml=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ml(e)}function wl(e,t){return wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wl(e,t)}dl.prototype.name=void 0,dl.prototype.key=void 0,dl.prototype.clusterExtId=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Ol=new WeakSet,jl=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(o=function(e,t,n){return t=ml(t),function(e,t){if(t&&("object"==fl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,gl()?Reflect.construct(t,n||[],ml(e).constructor):t.apply(e,n))}(this,t,[e,n,r]),Ol),o.$objectType="security.v4.config.PublicKeyProjection",o.$reserved={$fv:"v4.r0.b1"},o.$unknownFields={},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wl(e,t)}(t,e),n=t,r=[{key:"getClusterProjection",value:function(){return this.clusterProjection}},{key:"setClusterProjection",value:function(e){this.clusterProjection=e}},{key:"toJson",value:function(e){return yl(!1===e?yl(yl(yl(yl(yl(yl(yl({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getKey()&&null!==this.getKey()?{key:this.getKey()}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):yl(yl(yl(yl({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getKey()&&null!==this.getKey()?{key:this.getKey()}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=["name","key","clusterExtId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?new R(t,"no such property exists"):new R("clusterProjection","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,dl.constructFromObject(e,n,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&n.setClusterProjection(Ns.constructFromObject(e.clusterProjection)),!r))for(var o in n.$unknownFields=yl({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&vl(n.prototype,r),o&&vl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(dl);jl.prototype.clusterProjection=void 0,dl.prototype.name=void 0,dl.prototype.key=void 0,dl.prototype.clusterExtId=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var kl={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PC:"PC",AOS:"AOS",AHV:"AHV",IPMI:"IPMI",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(kl).find((function(t){return kl[t]===e}));return null==t?kl.$UNKNOWN:kl[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case kl.$UNKNOWN:case kl.$REDACTED:case kl.PC:case kl.AOS:case kl.AHV:case kl.IPMI:return;default:throw new Error("Invalid : must be SystemType.{ $UNKNOWN|$REDACTED|PC|AOS|AHV|IPMI }")}}};Object.freeze(kl);const Pl=kl;function $l(e){return $l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$l(e)}function El(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?El(Object(n),!0).forEach((function(t){Sl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):El(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sl(e,t,n){return(t=Fl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Il(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fl(r.key),r)}}function Fl(e){var t=function(e){if("object"!=$l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$l(t)?t:t+""}function Al(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Al=function(){return!!e})()}function Cl(e){return Cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cl(e)}function Dl(e,t){return Dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dl(e,t)}function xl(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")}var Rl=new WeakSet,Nl=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Cl(t),function(e,t){if(t&&("object"==$l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Al()?Reflect.construct(t,n||[],Cl(e).constructor):t.apply(e,n))}(this,t),Rl),e.$objectType="security.v4.config.SystemUserPassword",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dl(e,t)}(t,e),n=t,r=[{key:"getUsername",value:function(){return this.username}},{key:"setUsername",value:function(e){this.username=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getLastUpdateTime",value:function(){return this.lastUpdateTime}},{key:"setLastUpdateTime",value:function(e){this.lastUpdateTime=e}},{key:"getExpiryDate",value:function(){return this.expiryDate}},{key:"setExpiryDate",value:function(e){this.expiryDate=e}},{key:"getPasswordStatus",value:function(){return this.passwordStatus}},{key:"setPasswordStatus",value:function(e){this.passwordStatus=e}},{key:"getSystemType",value:function(){return this.systemType}},{key:"setSystemType",value:function(e){this.systemType=e}},{key:"getHasHspInUse",value:function(){return this.hasHspInUse}},{key:"setHasHspInUse",value:function(e){this.hasHspInUse=e}},{key:"toJson",value:function(e){return Tl(!1===e?Tl(Tl(Tl(Tl(Tl(Tl(Tl(Tl(Tl(Tl({},void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getLastUpdateTime()&&null!==this.getLastUpdateTime()?{lastUpdateTime:xl(Rl,this,_l).call(this,this.getLastUpdateTime(),!1)}:{}),void 0!==this.getExpiryDate()&&null!==this.getExpiryDate()?{expiryDate:xl(Rl,this,_l).call(this,this.getExpiryDate(),!1)}:{}),void 0!==this.getPasswordStatus()&&null!==this.getPasswordStatus()?{passwordStatus:this.getPasswordStatus()}:{}),void 0!==this.getSystemType()&&null!==this.getSystemType()?{systemType:this.getSystemType()}:{}),void 0!==this.getHasHspInUse()&&null!==this.getHasHspInUse()?{hasHspInUse:this.getHasHspInUse()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Tl(Tl(Tl(Tl(Tl({},void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getExpiryDate()&&null!==this.getExpiryDate()?{expiryDate:xl(Rl,this,_l).call(this,this.getExpiryDate(),!1)}:{}),void 0!==this.getPasswordStatus()&&null!==this.getPasswordStatus()?{passwordStatus:this.getPasswordStatus()}:{}),void 0!==this.getSystemType()&&null!==this.getSystemType()?{systemType:this.getSystemType()}:{}),void 0!==this.getHasHspInUse()&&null!==this.getHasHspInUse()?{hasHspInUse:this.getHasHspInUse()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("username"===t){if(void 0===this.username||null===this.username)return new R("username","undefined or null");if(!A.validateMaxLength(this.username,199))return new R("username","does not satisfy required maxLength constraint: 199")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!A.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"lastUpdateTime"!==t||void 0!==this.lastUpdateTime&&null!==this.lastUpdateTime?"expiryDate"!==t||void 0!==this.expiryDate&&null!==this.expiryDate?"passwordStatus"!==t||void 0!==this.passwordStatus&&null!==this.passwordStatus?"systemType"!==t||void 0!==this.systemType&&null!==this.systemType?"hasHspInUse"!==t||void 0!==this.hasHspInUse&&null!==this.hasHspInUse?new R(t,"no such property exists"):new R("hasHspInUse","undefined or null"):new R("systemType","undefined or null"):new R("passwordStatus","undefined or null"):new R("expiryDate","undefined or null"):new R("lastUpdateTime","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,er.constructFromObject(e,n,!0),e.hasOwnProperty("username")&&null!==e.username&&void 0!==e.username&&n.setUsername(e.username),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&n.setClusterExtId(e.clusterExtId),e.hasOwnProperty("lastUpdateTime")&&null!==e.lastUpdateTime&&void 0!==e.lastUpdateTime&&n.setLastUpdateTime(e.lastUpdateTime),e.hasOwnProperty("expiryDate")&&null!==e.expiryDate&&void 0!==e.expiryDate&&n.setExpiryDate(e.expiryDate),e.hasOwnProperty("passwordStatus")&&null!==e.passwordStatus&&void 0!==e.passwordStatus&&n.setPasswordStatus(Xu.constructFromObject(e.passwordStatus)),e.hasOwnProperty("systemType")&&null!==e.systemType&&void 0!==e.systemType&&n.setSystemType(Pl.constructFromObject(e.systemType)),e.hasOwnProperty("hasHspInUse")&&null!==e.hasHspInUse&&void 0!==e.hasHspInUse&&n.setHasHspInUse(e.hasHspInUse),!r))for(var o in n.$unknownFields=Tl({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Il(n.prototype,r),o&&Il(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function _l(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Ul(e){return Ul="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ul(e)}function Ll(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ll(Object(n),!0).forEach((function(t){Bl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ll(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bl(e,t,n){return(t=Jl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ml(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jl(r.key),r)}}function Jl(e){var t=function(e){if("object"!=Ul(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ul(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ul(t)?t:t+""}function Hl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hl=function(){return!!e})()}function Wl(e){return Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wl(e)}function Kl(e,t){return Kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kl(e,t)}function ql(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")}Nl.prototype.username=void 0,Nl.prototype.clusterExtId=void 0,Nl.prototype.lastUpdateTime=void 0,Nl.prototype.expiryDate=void 0,Nl.prototype.passwordStatus=void 0,Nl.prototype.systemType=void 0,Nl.prototype.hasHspInUse=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var zl=new WeakSet,Gl=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Wl(t),function(e,t){if(t&&("object"==Ul(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Hl()?Reflect.construct(t,n||[],Wl(e).constructor):t.apply(e,n))}(this,t),zl),e.$objectType="security.v4.config.SystemUserPasswordProjection",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kl(e,t)}(t,e),n=t,r=[{key:"getClusterProjection",value:function(){return this.clusterProjection}},{key:"setClusterProjection",value:function(e){this.clusterProjection=e}},{key:"toJson",value:function(e){return Vl(!1===e?Vl(Vl(Vl(Vl(Vl(Vl(Vl(Vl(Vl(Vl(Vl({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getLastUpdateTime()&&null!==this.getLastUpdateTime()?{lastUpdateTime:ql(zl,this,Yl).call(this,this.getLastUpdateTime(),!1)}:{}),void 0!==this.getExpiryDate()&&null!==this.getExpiryDate()?{expiryDate:ql(zl,this,Yl).call(this,this.getExpiryDate(),!1)}:{}),void 0!==this.getPasswordStatus()&&null!==this.getPasswordStatus()?{passwordStatus:this.getPasswordStatus()}:{}),void 0!==this.getSystemType()&&null!==this.getSystemType()?{systemType:this.getSystemType()}:{}),void 0!==this.getHasHspInUse()&&null!==this.getHasHspInUse()?{hasHspInUse:this.getHasHspInUse()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Vl(Vl(Vl(Vl(Vl(Vl({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getExpiryDate()&&null!==this.getExpiryDate()?{expiryDate:ql(zl,this,Yl).call(this,this.getExpiryDate(),!1)}:{}),void 0!==this.getPasswordStatus()&&null!==this.getPasswordStatus()?{passwordStatus:this.getPasswordStatus()}:{}),void 0!==this.getSystemType()&&null!==this.getSystemType()?{systemType:this.getSystemType()}:{}),void 0!==this.getHasHspInUse()&&null!==this.getHasHspInUse()?{hasHspInUse:this.getHasHspInUse()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?new R(t,"no such property exists"):new R("clusterProjection","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Nl.constructFromObject(e,n,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&n.setClusterProjection(Ns.constructFromObject(e.clusterProjection)),!r))for(var o in n.$unknownFields=Vl({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ml(n.prototype,r),o&&Ml(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Nl);function Yl(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Ql(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xl(e){return Xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xl(e)}function Zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zl(Object(n),!0).forEach((function(t){tc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tc(e,t,n){return(t=rc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rc(r.key),r)}}function rc(e){var t=function(e){if("object"!=Xl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xl(t)?t:t+""}function oc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oc=function(){return!!e})()}function ic(e){return ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ic(e)}function sc(e,t){return sc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sc(e,t)}function ac(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")}Gl.prototype.clusterProjection=void 0,Nl.prototype.username=void 0,Nl.prototype.clusterExtId=void 0,Nl.prototype.lastUpdateTime=void 0,Nl.prototype.expiryDate=void 0,Nl.prototype.passwordStatus=void 0,Nl.prototype.systemType=void 0,Nl.prototype.hasHspInUse=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var uc=new WeakSet,lc=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ic(t),function(e,t){if(t&&("object"==Xl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,oc()?Reflect.construct(t,n||[],ic(e).constructor):t.apply(e,n))}(this,t),uc),e.$objectType="security.v4.config.UpdateHardeningStatusesApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sc(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ec(ec(ec({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ac(uc,this,cc).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):ac(uc,this,cc).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Xl(e.data)){case"prism.v4.config.TaskReference":r.setData(xt.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(wn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=ec({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&nc(n.prototype,r),o&&nc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function cc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ql(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ql(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Xl(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function dc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fc(e){return fc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fc(e)}function pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pc(Object(n),!0).forEach((function(t){hc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hc(e,t,n){return(t=bc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bc(r.key),r)}}function bc(e){var t=function(e){if("object"!=fc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fc(t)?t:t+""}function gc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gc=function(){return!!e})()}function mc(e){return mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mc(e)}function wc(e,t){return wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wc(e,t)}function Oc(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")}lc.prototype.metadata=void 0,lc.prototype.data=void 0,lc.prototype.$reserved=void 0,lc.prototype.$objectType=void 0,lc.prototype.$unknownFields=void 0;var jc=new WeakSet,kc=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=mc(t),function(e,t){if(t&&("object"==fc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,gc()?Reflect.construct(t,n||[],mc(e).constructor):t.apply(e,n))}(this,t),jc),e.$objectType="security.v4.config.UpdateHardeningVisibilitySettingApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wc(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return yc(yc(yc({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Oc(jc,this,Pc).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Oc(jc,this,Pc).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(i=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:fc(n[0]),o=0;o<n.length;o++){if("security.v4.error.AppMessage"!==s)throw"Unknown list of type "+s+" in data";r=Ht.constructFromObject(n[o],void 0),i.push(r)}a.setData(i)}else{if("security.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:fc(e.data)))throw"Unknown datatype "+s+" in data";a.setData(wn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=yc({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&vc(n.prototype,r),o&&vc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Pc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return dc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dc(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===fc(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function $c(e){return $c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$c(e)}function Ec(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ec(Object(n),!0).forEach((function(t){Sc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sc(e,t,n){return(t=Fc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ic(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fc(r.key),r)}}function Fc(e){var t=function(e){if("object"!=$c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$c(t)?t:t+""}function Ac(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ac=function(){return!!e})()}function Cc(e){return Cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cc(e)}function Dc(e,t){return Dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dc(e,t)}kc.prototype.metadata=void 0,kc.prototype.data=void 0,kc.prototype.$reserved=void 0,kc.prototype.$objectType=void 0,kc.prototype.$unknownFields=void 0;var xc=new WeakSet,Rc=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Cc(t),function(e,t){if(t&&("object"==$c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ac()?Reflect.construct(t,n||[],Cc(e).constructor):t.apply(e,n))}(this,t),xc),e.$objectType="security.v4.config.VerifyPassword",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dc(e,t)}(t,e),n=t,r=[{key:"getVerificationStatus",value:function(){return this.verificationStatus}},{key:"setVerificationStatus",value:function(e){this.verificationStatus=e}},{key:"toJson",value:function(e){return Tc(!1===e?Tc(Tc(Tc(Tc({},void 0!==this.getVerificationStatus()&&null!==this.getVerificationStatus()?{verificationStatus:this.getVerificationStatus()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Tc({},void 0!==this.getVerificationStatus()&&null!==this.getVerificationStatus()?{verificationStatus:this.getVerificationStatus()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"verificationStatus"!==t||void 0!==this.verificationStatus&&null!==this.verificationStatus?new R(t,"no such property exists"):new R("verificationStatus","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,er.constructFromObject(e,n,!0),e.hasOwnProperty("verificationStatus")&&null!==e.verificationStatus&&void 0!==e.verificationStatus&&n.setVerificationStatus(el.constructFromObject(e.verificationStatus)),!r))for(var o in n.$unknownFields=Tc({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ic(n.prototype,r),o&&Ic(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function Nc(e){return Nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nc(e)}function _c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_c(Object(n),!0).forEach((function(t){Lc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lc(e,t,n){return(t=Bc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bc(r.key),r)}}function Bc(e){var t=function(e){if("object"!=Nc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nc(t)?t:t+""}Rc.prototype.verificationStatus=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Mc=new WeakSet,Jc=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Mc),this.currentPassword=t,this.$objectType="security.v4.config.VerifyPasswordSpec",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getCurrentPassword",value:function(){return this.currentPassword}},{key:"setCurrentPassword",value:function(e){this.currentPassword=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Uc(Uc({},void 0!==this.getCurrentPassword()&&null!==this.getCurrentPassword()?{currentPassword:this.getCurrentPassword()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=["currentPassword"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"currentPassword"!==t||void 0!==this.currentPassword&&null!==this.currentPassword?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("currentPassword","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("currentPassword")&&null!==t.currentPassword&&void 0!==t.currentPassword&&n.setCurrentPassword(t.currentPassword),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Uc({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Vc(t.prototype,n),r&&Vc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Hc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Wc(e){return Wc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wc(e)}function Kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kc(Object(n),!0).forEach((function(t){zc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zc(e,t,n){return(t=Yc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yc(r.key),r)}}function Yc(e){var t=function(e){if("object"!=Wc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wc(t)?t:t+""}function Qc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qc=function(){return!!e})()}function Xc(e){return Xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xc(e)}function Zc(e,t){return Zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zc(e,t)}function ed(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")}Jc.prototype.currentPassword=void 0,Jc.prototype.$reserved=void 0,Jc.prototype.$objectType=void 0,Jc.prototype.$unknownFields=void 0;var td=new WeakSet,nd=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Xc(t),function(e,t){if(t&&("object"==Wc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Qc()?Reflect.construct(t,n||[],Xc(e).constructor):t.apply(e,n))}(this,t),td),e.$objectType="security.v4.config.VerifySystemUserPasswordApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zc(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return qc(qc(qc({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ed(td,this,rd).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):ed(td,this,rd).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Wc(e.data)){case"security.v4.config.VerifyPassword":r.setData(Rc.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(wn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=qc({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Gc(n.prototype,r),o&&Gc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function rd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Hc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hc(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Wc(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}nd.prototype.metadata=void 0,nd.prototype.data=void 0,nd.prototype.$reserved=void 0,nd.prototype.$objectType=void 0,nd.prototype.$unknownFields=void 0;var od={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",DELETE:"DELETE",UPDATE:"UPDATE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(od).find((function(t){return od[t]===e}));return null==t?od.$UNKNOWN:od[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case od.$UNKNOWN:case od.$REDACTED:case od.DELETE:case od.UPDATE:return;default:throw new Error("Invalid : must be EventType.{ $UNKNOWN|$REDACTED|DELETE|UPDATE }")}}};Object.freeze(od);const id=od;var sd={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RECOVERY_POINT:"RECOVERY_POINT",APPROVAL_POLICY:"APPROVAL_POLICY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(sd).find((function(t){return sd[t]===e}));return null==t?sd.$UNKNOWN:sd[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case sd.$UNKNOWN:case sd.$REDACTED:case sd.RECOVERY_POINT:case sd.APPROVAL_POLICY:return;default:throw new Error("Invalid : must be SecuredEntityType.{ $UNKNOWN|$REDACTED|RECOVERY_POINT|APPROVAL_POLICY }")}}};Object.freeze(sd);const ad=sd;function ud(e){return ud="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ud(e)}function ld(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ld(Object(n),!0).forEach((function(t){dd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ld(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dd(e,t,n){return(t=pd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pd(r.key),r)}}function pd(e){var t=function(e){if("object"!=ud(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ud(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ud(t)?t:t+""}var yd=new WeakSet,hd=function(){function e(t,n,r,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,yd),this.securedEntityType=t,this.securedEntityName=n,this.securedEntityExtId=r,this.eventType=o,this.requesterExtId=i,this.$objectType="security.v4.management.SecurityValidationSpec",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getSecuredEntityType",value:function(){return this.securedEntityType}},{key:"setSecuredEntityType",value:function(e){this.securedEntityType=e}},{key:"getSecuredEntityName",value:function(){return this.securedEntityName}},{key:"setSecuredEntityName",value:function(e){this.securedEntityName=e}},{key:"getSecuredEntityExtId",value:function(){return this.securedEntityExtId}},{key:"setSecuredEntityExtId",value:function(e){this.securedEntityExtId=e}},{key:"getEventType",value:function(){return this.eventType}},{key:"setEventType",value:function(e){this.eventType=e}},{key:"getSecuredPolicyExtId",value:function(){return this.securedPolicyExtId}},{key:"setSecuredPolicyExtId",value:function(e){this.securedPolicyExtId=e}},{key:"getSecuredEntityLocation",value:function(){return this.securedEntityLocation}},{key:"setSecuredEntityLocation",value:function(e){this.securedEntityLocation=e}},{key:"getRequesterExtId",value:function(){return this.requesterExtId}},{key:"setRequesterExtId",value:function(e){this.requesterExtId=e}},{key:"getFullyQualifiedSecuredEntityName",value:function(){return this.fullyQualifiedSecuredEntityName}},{key:"setFullyQualifiedSecuredEntityName",value:function(e){this.fullyQualifiedSecuredEntityName=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return cd(cd(cd(cd(cd(cd(cd(cd(cd({},void 0!==this.getSecuredEntityType()&&null!==this.getSecuredEntityType()?{securedEntityType:this.getSecuredEntityType()}:{}),void 0!==this.getSecuredEntityName()&&null!==this.getSecuredEntityName()?{securedEntityName:this.getSecuredEntityName()}:{}),void 0!==this.getSecuredEntityExtId()&&null!==this.getSecuredEntityExtId()?{securedEntityExtId:this.getSecuredEntityExtId()}:{}),void 0!==this.getEventType()&&null!==this.getEventType()?{eventType:this.getEventType()}:{}),void 0!==this.getSecuredPolicyExtId()&&null!==this.getSecuredPolicyExtId()?{securedPolicyExtId:this.getSecuredPolicyExtId()}:{}),void 0!==this.getSecuredEntityLocation()&&null!==this.getSecuredEntityLocation()?{securedEntityLocation:this.getSecuredEntityLocation()}:{}),void 0!==this.getRequesterExtId()&&null!==this.getRequesterExtId()?{requesterExtId:this.getRequesterExtId()}:{}),void 0!==this.getFullyQualifiedSecuredEntityName()&&null!==this.getFullyQualifiedSecuredEntityName()?{fullyQualifiedSecuredEntityName:this.getFullyQualifiedSecuredEntityName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=["securedEntityType","securedEntityName","securedEntityExtId","eventType","requesterExtId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("securedEntityType"===t&&(void 0===this.securedEntityType||null===this.securedEntityType))return new R("securedEntityType","undefined or null");if("securedEntityName"===t){if(void 0===this.securedEntityName||null===this.securedEntityName)return new R("securedEntityName","undefined or null");if(!A.validateMaxLength(this.securedEntityName,199))return new R("securedEntityName","does not satisfy required maxLength constraint: 199");if(!A.validateMinLength(this.securedEntityName,4))return new R("securedEntityName","does not satisfy required minLength constraint: 4")}if("securedEntityExtId"===t){if(void 0===this.securedEntityExtId||null===this.securedEntityExtId)return new R("securedEntityExtId","undefined or null");if(!A.validatePattern(this.securedEntityExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("securedEntityExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("eventType"===t&&(void 0===this.eventType||null===this.eventType))return new R("eventType","undefined or null");if("securedPolicyExtId"===t){if(void 0===this.securedPolicyExtId||null===this.securedPolicyExtId)return new R("securedPolicyExtId","undefined or null");if(!A.validatePattern(this.securedPolicyExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("securedPolicyExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("securedEntityLocation"===t){if(void 0===this.securedEntityLocation||null===this.securedEntityLocation)return new R("securedEntityLocation","undefined or null");if(!A.validatePattern(this.securedEntityLocation,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("securedEntityLocation","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("requesterExtId"===t){if(void 0===this.requesterExtId||null===this.requesterExtId)return new R("requesterExtId","undefined or null");if(!A.validatePattern(this.requesterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("requesterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("fullyQualifiedSecuredEntityName"===t){if(void 0===this.fullyQualifiedSecuredEntityName||null===this.fullyQualifiedSecuredEntityName)return new R("fullyQualifiedSecuredEntityName","undefined or null");if(!A.validateMaxLength(this.fullyQualifiedSecuredEntityName,199))return new R("fullyQualifiedSecuredEntityName","does not satisfy required maxLength constraint: 199")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("securedEntityType")&&null!==t.securedEntityType&&void 0!==t.securedEntityType&&n.setSecuredEntityType(ad.constructFromObject(t.securedEntityType)),t.hasOwnProperty("securedEntityName")&&null!==t.securedEntityName&&void 0!==t.securedEntityName&&n.setSecuredEntityName(t.securedEntityName),t.hasOwnProperty("securedEntityExtId")&&null!==t.securedEntityExtId&&void 0!==t.securedEntityExtId&&n.setSecuredEntityExtId(t.securedEntityExtId),t.hasOwnProperty("eventType")&&null!==t.eventType&&void 0!==t.eventType&&n.setEventType(id.constructFromObject(t.eventType)),t.hasOwnProperty("securedPolicyExtId")&&null!==t.securedPolicyExtId&&void 0!==t.securedPolicyExtId&&n.setSecuredPolicyExtId(t.securedPolicyExtId),t.hasOwnProperty("securedEntityLocation")&&null!==t.securedEntityLocation&&void 0!==t.securedEntityLocation&&n.setSecuredEntityLocation(t.securedEntityLocation),t.hasOwnProperty("requesterExtId")&&null!==t.requesterExtId&&void 0!==t.requesterExtId&&n.setRequesterExtId(t.requesterExtId),t.hasOwnProperty("fullyQualifiedSecuredEntityName")&&null!==t.fullyQualifiedSecuredEntityName&&void 0!==t.fullyQualifiedSecuredEntityName&&n.setFullyQualifiedSecuredEntityName(t.fullyQualifiedSecuredEntityName),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=cd({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&fd(t.prototype,n),r&&fd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function vd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bd(e){return bd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bd(e)}function gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function md(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gd(Object(n),!0).forEach((function(t){wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wd(e,t,n){return(t=jd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Od(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jd(r.key),r)}}function jd(e){var t=function(e){if("object"!=bd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bd(t)?t:t+""}function kd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kd=function(){return!!e})()}function Pd(e){return Pd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pd(e)}function $d(e,t){return $d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$d(e,t)}function Ed(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")}hd.prototype.securedEntityType=void 0,hd.prototype.securedEntityName=void 0,hd.prototype.securedEntityExtId=void 0,hd.prototype.eventType=void 0,hd.prototype.securedPolicyExtId=void 0,hd.prototype.securedEntityLocation=void 0,hd.prototype.requesterExtId=void 0,hd.prototype.fullyQualifiedSecuredEntityName=void 0,hd.prototype.$reserved=void 0,hd.prototype.$objectType=void 0,hd.prototype.$unknownFields=void 0;var Td=new WeakSet,Sd=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Pd(t),function(e,t){if(t&&("object"==bd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,kd()?Reflect.construct(t,n||[],Pd(e).constructor):t.apply(e,n))}(this,t),Td),e.$objectType="security.v4.management.TriggerApprovalPolicyValidationApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$d(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return md(md(md({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Ed(Td,this,Id).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Ed(Td,this,Id).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:bd(e.data)){case"prism.v4.config.TaskReference":r.setData(xt.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(wn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=md({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Od(n.prototype,r),o&&Od(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Id(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return vd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vd(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===bd(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Fd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ad(e){return Ad="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ad(e)}function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cd(Object(n),!0).forEach((function(t){xd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xd(e,t,n){return(t=Nd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nd(r.key),r)}}function Nd(e){var t=function(e){if("object"!=Ad(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ad(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ad(t)?t:t+""}function _d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_d=function(){return!!e})()}function Ud(e){return Ud=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ud(e)}function Ld(e,t){return Ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ld(e,t)}function Vd(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")}Sd.prototype.metadata=void 0,Sd.prototype.data=void 0,Sd.prototype.$reserved=void 0,Sd.prototype.$objectType=void 0,Sd.prototype.$unknownFields=void 0;var Bd=new WeakSet,Md=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ud(t),function(e,t){if(t&&("object"==Ad(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_d()?Reflect.construct(t,n||[],Ud(e).constructor):t.apply(e,n))}(this,t),Bd),e.$objectType="security.v4.management.TriggerScanApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ld(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Dd(Dd(Dd({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Vd(Bd,this,Jd).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Vd(Bd,this,Jd).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("data","undefined or null"):new R("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ad(e.data)){case"prism.v4.config.TaskReference":r.setData(xt.constructFromObject(e.data,void 0));break;case"security.v4.error.ErrorResponse":r.setData(wn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Dd({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Rd(n.prototype,r),o&&Rd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Jd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Fd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fd(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],s=o[1];return[i,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Ad(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Hd(e){return Hd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hd(e)}function Wd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wd(Object(n),!0).forEach((function(t){qd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qd(e,t,n){return(t=Gd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gd(r.key),r)}}function Gd(e){var t=function(e){if("object"!=Hd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hd(t)?t:t+""}function Yd(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")}Md.prototype.metadata=void 0,Md.prototype.data=void 0,Md.prototype.$reserved=void 0,Md.prototype.$objectType=void 0,Md.prototype.$unknownFields=void 0;var Qd=new WeakSet,Xd=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Qd),this.$objectType="security.v4.report.TrendValue",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getTrend",value:function(){return this.trend}},{key:"setTrend",value:function(e){this.trend=e}},{key:"getTrendDate",value:function(){return this.trendDate}},{key:"setTrendDate",value:function(e){this.trendDate=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Kd(Kd(Kd({},void 0!==this.getTrend()&&null!==this.getTrend()?{trend:this.getTrend()}:{}),void 0!==this.getTrendDate()&&null!==this.getTrendDate()?{trendDate:Yd(Qd,this,Zd).call(this,this.getTrendDate(),!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"trend"!==t||void 0!==this.trend&&null!==this.trend?"trendDate"!==t||void 0!==this.trendDate&&null!==this.trendDate?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null"):new R("trendDate","undefined or null"):new R("trend","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("trend")&&null!==t.trend&&void 0!==t.trend&&n.setTrend(t.trend),t.hasOwnProperty("trendDate")&&null!==t.trendDate&&void 0!==t.trendDate&&n.setTrendDate(t.trendDate),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Kd({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&zd(t.prototype,n),r&&zd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Zd(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function ef(e){return ef="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ef(e)}function tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tf(Object(n),!0).forEach((function(t){rf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rf(e,t,n){return(t=sf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function of(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sf(r.key),r)}}function sf(e){var t=function(e){if("object"!=ef(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ef(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ef(t)?t:t+""}Xd.prototype.trend=void 0,Xd.prototype.trendDate=void 0,Xd.prototype.$reserved=void 0,Xd.prototype.$objectType=void 0,Xd.prototype.$unknownFields=void 0;var af=new WeakSet,uf=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,af),this.$objectType="security.v4.report.IssueSummary",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getCurrentIssueCount",value:function(){return this.currentIssueCount}},{key:"setCurrentIssueCount",value:function(e){this.currentIssueCount=e}},{key:"getTrend",value:function(){return this.trend}},{key:"setTrend",value:function(e){this.trend=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return nf(nf(nf({},void 0!==this.getCurrentIssueCount()&&null!==this.getCurrentIssueCount()?{currentIssueCount:this.getCurrentIssueCount()}:{}),void 0!==this.getTrend()&&null!==this.getTrend()?{trend:this.getTrend().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("currentIssueCount"===t&&(void 0===this.currentIssueCount||null===this.currentIssueCount))return new R("currentIssueCount","undefined or null");if("trend"===t){if(void 0===this.trend||null===this.trend)return new R("trend","undefined or null");if(!A.validateMaxItems(this.trend,31))return new R("trend","does not satisfy required maxItems constraint: 31")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new R(t,"no such property exists"):new R("$unknownFields","undefined or null"):new R("$objectType","undefined or null"):new R("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("currentIssueCount")&&null!==t.currentIssueCount&&void 0!==t.currentIssueCount&&s.setCurrentIssueCount(t.currentIssueCount),t.hasOwnProperty("trend")&&null!==t.trend&&void 0!==t.trend){for(i=[],n=t.trend,o=0;o<n.length;o++)r=Xd.constructFromObject(n[o],void 0),i.push(r);s.setTrend(i)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=nf({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&of(t.prototype,n),r&&of(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();uf.prototype.currentIssueCount=void 0,uf.prototype.trend=void 0,uf.prototype.$reserved=void 0,uf.prototype.$objectType=void 0,uf.prototype.$unknownFields=void 0;var lf={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PC:"PC",AOS:"AOS",AHV:"AHV",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(lf).find((function(t){return lf[t]===e}));return null==t?lf.$UNKNOWN:lf[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case lf.$UNKNOWN:case lf.$REDACTED:case lf.PC:case lf.AOS:case lf.AHV:return;default:throw new Error("Invalid : must be SoftwareType.{ $UNKNOWN|$REDACTED|PC|AOS|AHV }")}}};Object.freeze(lf);const cf=lf;function df(e){return df="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},df(e)}function ff(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ff(Object(n),!0).forEach((function(t){yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ff(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yf(e,t,n){return(t=vf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vf(r.key),r)}}function vf(e){var t=function(e){if("object"!=df(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=df(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==df(t)?t:t+""}function bf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bf=function(){return!!e})()}function gf(e){return gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gf(e)}function mf(e,t){return mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mf(e,t)}function wf(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")}var Of=new WeakSet,jf=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=gf(t),function(e,t){if(t&&("object"==df(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bf()?Reflect.construct(t,n||[],gf(e).constructor):t.apply(e,n))}(this,t),Of),e.$objectType="security.v4.report.Summary",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mf(e,t)}(t,e),n=t,r=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getSecurityHardeningSummary",value:function(){return this.securityHardeningSummary}},{key:"setSecurityHardeningSummary",value:function(e){this.securityHardeningSummary=e}},{key:"getStigSummary",value:function(){return this.stigSummary}},{key:"setStigSummary",value:function(e){this.stigSummary=e}},{key:"getVulnerabilitiesSummary",value:function(){return this.vulnerabilitiesSummary}},{key:"setVulnerabilitiesSummary",value:function(e){this.vulnerabilitiesSummary=e}},{key:"getPasswordSummary",value:function(){return this.passwordSummary}},{key:"setPasswordSummary",value:function(e){this.passwordSummary=e}},{key:"getTrendType",value:function(){return this.trendType}},{key:"setTrendType",value:function(e){this.trendType=e}},{key:"getLastRefreshTime",value:function(){return this.lastRefreshTime}},{key:"setLastRefreshTime",value:function(e){this.lastRefreshTime=e}},{key:"toJson",value:function(e){return pf(!1===e?pf(pf(pf(pf(pf(pf(pf(pf(pf(pf({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getSecurityHardeningSummary()&&null!==this.getSecurityHardeningSummary()?{securityHardeningSummary:this.getSecurityHardeningSummary().toJson(!1)}:{}),void 0!==this.getStigSummary()&&null!==this.getStigSummary()?{stigSummary:this.getStigSummary().toJson(!1)}:{}),void 0!==this.getVulnerabilitiesSummary()&&null!==this.getVulnerabilitiesSummary()?{vulnerabilitiesSummary:this.getVulnerabilitiesSummary().toJson(!1)}:{}),void 0!==this.getPasswordSummary()&&null!==this.getPasswordSummary()?{passwordSummary:this.getPasswordSummary().toJson(!1)}:{}),void 0!==this.getTrendType()&&null!==this.getTrendType()?{trendType:this.getTrendType()}:{}),void 0!==this.getLastRefreshTime()&&null!==this.getLastRefreshTime()?{lastRefreshTime:wf(Of,this,kf).call(this,this.getLastRefreshTime(),!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):pf(pf(pf(pf(pf(pf({},void 0!==this.getSecurityHardeningSummary()&&null!==this.getSecurityHardeningSummary()?{securityHardeningSummary:this.getSecurityHardeningSummary().toJson(!1)}:{}),void 0!==this.getStigSummary()&&null!==this.getStigSummary()?{stigSummary:this.getStigSummary().toJson(!1)}:{}),void 0!==this.getVulnerabilitiesSummary()&&null!==this.getVulnerabilitiesSummary()?{vulnerabilitiesSummary:this.getVulnerabilitiesSummary().toJson(!1)}:{}),void 0!==this.getPasswordSummary()&&null!==this.getPasswordSummary()?{passwordSummary:this.getPasswordSummary().toJson(!1)}:{}),void 0!==this.getTrendType()&&null!==this.getTrendType()?{trendType:this.getTrendType()}:{}),void 0!==this.getLastRefreshTime()&&null!==this.getLastRefreshTime()?{lastRefreshTime:wf(Of,this,kf).call(this,this.getLastRefreshTime(),!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!A.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"securityHardeningSummary"!==t||void 0!==this.securityHardeningSummary&&null!==this.securityHardeningSummary?"stigSummary"!==t||void 0!==this.stigSummary&&null!==this.stigSummary?"vulnerabilitiesSummary"!==t||void 0!==this.vulnerabilitiesSummary&&null!==this.vulnerabilitiesSummary?"passwordSummary"!==t||void 0!==this.passwordSummary&&null!==this.passwordSummary?"trendType"!==t||void 0!==this.trendType&&null!==this.trendType?"lastRefreshTime"!==t||void 0!==this.lastRefreshTime&&null!==this.lastRefreshTime?new R(t,"no such property exists"):new R("lastRefreshTime","undefined or null"):new R("trendType","undefined or null"):new R("passwordSummary","undefined or null"):new R("vulnerabilitiesSummary","undefined or null"):new R("stigSummary","undefined or null"):new R("securityHardeningSummary","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,er.constructFromObject(e,n,!0),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&n.setClusterExtId(e.clusterExtId),e.hasOwnProperty("securityHardeningSummary")&&null!==e.securityHardeningSummary&&void 0!==e.securityHardeningSummary&&n.setSecurityHardeningSummary(uf.constructFromObject(e.securityHardeningSummary)),e.hasOwnProperty("stigSummary")&&null!==e.stigSummary&&void 0!==e.stigSummary&&n.setStigSummary(uf.constructFromObject(e.stigSummary)),e.hasOwnProperty("vulnerabilitiesSummary")&&null!==e.vulnerabilitiesSummary&&void 0!==e.vulnerabilitiesSummary&&n.setVulnerabilitiesSummary(uf.constructFromObject(e.vulnerabilitiesSummary)),e.hasOwnProperty("passwordSummary")&&null!==e.passwordSummary&&void 0!==e.passwordSummary&&n.setPasswordSummary(uf.constructFromObject(e.passwordSummary)),e.hasOwnProperty("trendType")&&null!==e.trendType&&void 0!==e.trendType&&n.setTrendType(ma.constructFromObject(e.trendType)),e.hasOwnProperty("lastRefreshTime")&&null!==e.lastRefreshTime&&void 0!==e.lastRefreshTime&&n.setLastRefreshTime(e.lastRefreshTime),!r))for(var o in n.$unknownFields=pf({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&hf(n.prototype,r),o&&hf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function kf(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Pf(e){return Pf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pf(e)}function $f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ef(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$f(Object(n),!0).forEach((function(t){Tf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tf(e,t,n){return(t=If(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,If(r.key),r)}}function If(e){var t=function(e){if("object"!=Pf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pf(t)?t:t+""}function Ff(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ff=function(){return!!e})()}function Af(e){return Af=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Af(e)}function Cf(e,t){return Cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cf(e,t)}function Df(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")}jf.prototype.clusterExtId=void 0,jf.prototype.securityHardeningSummary=void 0,jf.prototype.stigSummary=void 0,jf.prototype.vulnerabilitiesSummary=void 0,jf.prototype.passwordSummary=void 0,jf.prototype.trendType=void 0,jf.prototype.lastRefreshTime=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var xf=new WeakSet,Rf=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Af(t),function(e,t){if(t&&("object"==Pf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ff()?Reflect.construct(t,n||[],Af(e).constructor):t.apply(e,n))}(this,t),xf),e.$objectType="security.v4.report.SummaryProjection",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cf(e,t)}(t,e),n=t,r=[{key:"getClusterProjection",value:function(){return this.clusterProjection}},{key:"setClusterProjection",value:function(e){this.clusterProjection=e}},{key:"toJson",value:function(e){return Ef(!1===e?Ef(Ef(Ef(Ef(Ef(Ef(Ef(Ef(Ef(Ef(Ef({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getSecurityHardeningSummary()&&null!==this.getSecurityHardeningSummary()?{securityHardeningSummary:this.getSecurityHardeningSummary().toJson(!1)}:{}),void 0!==this.getStigSummary()&&null!==this.getStigSummary()?{stigSummary:this.getStigSummary().toJson(!1)}:{}),void 0!==this.getVulnerabilitiesSummary()&&null!==this.getVulnerabilitiesSummary()?{vulnerabilitiesSummary:this.getVulnerabilitiesSummary().toJson(!1)}:{}),void 0!==this.getPasswordSummary()&&null!==this.getPasswordSummary()?{passwordSummary:this.getPasswordSummary().toJson(!1)}:{}),void 0!==this.getTrendType()&&null!==this.getTrendType()?{trendType:this.getTrendType()}:{}),void 0!==this.getLastRefreshTime()&&null!==this.getLastRefreshTime()?{lastRefreshTime:Df(xf,this,Nf).call(this,this.getLastRefreshTime(),!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Ef(Ef(Ef(Ef(Ef(Ef(Ef({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getSecurityHardeningSummary()&&null!==this.getSecurityHardeningSummary()?{securityHardeningSummary:this.getSecurityHardeningSummary().toJson(!1)}:{}),void 0!==this.getStigSummary()&&null!==this.getStigSummary()?{stigSummary:this.getStigSummary().toJson(!1)}:{}),void 0!==this.getVulnerabilitiesSummary()&&null!==this.getVulnerabilitiesSummary()?{vulnerabilitiesSummary:this.getVulnerabilitiesSummary().toJson(!1)}:{}),void 0!==this.getPasswordSummary()&&null!==this.getPasswordSummary()?{passwordSummary:this.getPasswordSummary().toJson(!1)}:{}),void 0!==this.getTrendType()&&null!==this.getTrendType()?{trendType:this.getTrendType()}:{}),void 0!==this.getLastRefreshTime()&&null!==this.getLastRefreshTime()?{lastRefreshTime:Df(xf,this,Nf).call(this,this.getLastRefreshTime(),!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?new R(t,"no such property exists"):new R("clusterProjection","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,jf.constructFromObject(e,n,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&n.setClusterProjection(Ns.constructFromObject(e.clusterProjection)),!r))for(var o in n.$unknownFields=Ef({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Sf(n.prototype,r),o&&Sf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(jf);function Nf(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function _f(e){return _f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_f(e)}function Uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uf(Object(n),!0).forEach((function(t){Vf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vf(e,t,n){return(t=Mf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mf(r.key),r)}}function Mf(e){var t=function(e){if("object"!=_f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_f(t)?t:t+""}function Jf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jf=function(){return!!e})()}function Hf(e){return Hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hf(e)}function Wf(e,t){return Wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wf(e,t)}function Kf(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")}Rf.prototype.clusterProjection=void 0,jf.prototype.clusterExtId=void 0,jf.prototype.securityHardeningSummary=void 0,jf.prototype.stigSummary=void 0,jf.prototype.vulnerabilitiesSummary=void 0,jf.prototype.passwordSummary=void 0,jf.prototype.trendType=void 0,jf.prototype.lastRefreshTime=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var qf=new WeakSet,zf=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Hf(t),function(e,t){if(t&&("object"==_f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Jf()?Reflect.construct(t,n||[],Hf(e).constructor):t.apply(e,n))}(this,t),qf),e.$objectType="security.v4.report.Vulnerability",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wf(e,t)}(t,e),n=t,r=[{key:"getCesaId",value:function(){return this.cesaId}},{key:"setCesaId",value:function(e){this.cesaId=e}},{key:"getCveIds",value:function(){return this.cveIds}},{key:"setCveIds",value:function(e){this.cveIds=e}},{key:"getIsCritical",value:function(){return this.isCritical}},{key:"setIsCritical",value:function(e){this.isCritical=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getFixVersions",value:function(){return this.fixVersions}},{key:"setFixVersions",value:function(e){this.fixVersions=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getNxvdVersion",value:function(){return this.nxvdVersion}},{key:"setNxvdVersion",value:function(e){this.nxvdVersion=e}},{key:"getNxvdCreatedTime",value:function(){return this.nxvdCreatedTime}},{key:"setNxvdCreatedTime",value:function(e){this.nxvdCreatedTime=e}},{key:"toJson",value:function(e){return Lf(!1===e?Lf(Lf(Lf(Lf(Lf(Lf(Lf(Lf(Lf(Lf(Lf({},void 0!==this.getCesaId()&&null!==this.getCesaId()?{cesaId:this.getCesaId()}:{}),void 0!==this.getCveIds()&&null!==this.getCveIds()?{cveIds:this.getCveIds()}:{}),void 0!==this.getIsCritical()&&null!==this.getIsCritical()?{isCritical:this.getIsCritical()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getFixVersions()&&null!==this.getFixVersions()?{fixVersions:this.getFixVersions()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getNxvdVersion()&&null!==this.getNxvdVersion()?{nxvdVersion:this.getNxvdVersion()}:{}),void 0!==this.getNxvdCreatedTime()&&null!==this.getNxvdCreatedTime()?{nxvdCreatedTime:Kf(qf,this,Gf).call(this,this.getNxvdCreatedTime(),!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Lf({},void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("cesaId"===t){if(void 0===this.cesaId||null===this.cesaId)return new R("cesaId","undefined or null");if(!A.validateMaxLength(this.cesaId,199))return new R("cesaId","does not satisfy required maxLength constraint: 199")}if("cveIds"===t){if(void 0===this.cveIds||null===this.cveIds)return new R("cveIds","undefined or null");if(!A.validateMaxItems(this.cveIds,1024))return new R("cveIds","does not satisfy required maxItems constraint: 1024")}if("isCritical"===t&&(void 0===this.isCritical||null===this.isCritical))return new R("isCritical","undefined or null");if("description"===t){if(void 0===this.description||null===this.description)return new R("description","undefined or null");if(!A.validateMaxLength(this.description,499))return new R("description","does not satisfy required maxLength constraint: 499")}if("fixVersions"===t){if(void 0===this.fixVersions||null===this.fixVersions)return new R("fixVersions","undefined or null");if(!A.validateMaxItems(this.fixVersions,50))return new R("fixVersions","does not satisfy required maxItems constraint: 50")}if("severity"===t&&(void 0===this.severity||null===this.severity))return new R("severity","undefined or null");if("nxvdVersion"===t){if(void 0===this.nxvdVersion||null===this.nxvdVersion)return new R("nxvdVersion","undefined or null");if(!A.validateMaxLength(this.nxvdVersion,199))return new R("nxvdVersion","does not satisfy required maxLength constraint: 199")}return"nxvdCreatedTime"!==t||void 0!==this.nxvdCreatedTime&&null!==this.nxvdCreatedTime?new R(t,"no such property exists"):new R("nxvdCreatedTime","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(i=i||new t,er.constructFromObject(e,i,!0),e.hasOwnProperty("cesaId")&&null!==e.cesaId&&void 0!==e.cesaId&&i.setCesaId(e.cesaId),e.hasOwnProperty("cveIds")&&null!==e.cveIds&&void 0!==e.cveIds){for(o=[],n=e.cveIds,r=0;r<n.length;r++)o.push(n[r]);i.setCveIds(o)}if(e.hasOwnProperty("isCritical")&&null!==e.isCritical&&void 0!==e.isCritical&&i.setIsCritical(e.isCritical),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&i.setDescription(e.description),e.hasOwnProperty("fixVersions")&&null!==e.fixVersions&&void 0!==e.fixVersions){for(o=[],n=e.fixVersions,r=0;r<n.length;r++)o.push(n[r]);i.setFixVersions(o)}if(e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&i.setSeverity(Ei.constructFromObject(e.severity)),e.hasOwnProperty("nxvdVersion")&&null!==e.nxvdVersion&&void 0!==e.nxvdVersion&&i.setNxvdVersion(e.nxvdVersion),e.hasOwnProperty("nxvdCreatedTime")&&null!==e.nxvdCreatedTime&&void 0!==e.nxvdCreatedTime&&i.setNxvdCreatedTime(e.nxvdCreatedTime),!s)for(var a in i.$unknownFields=Lf({},e.$unknownFields),e)Object.keys(i).includes(a)||Object.keys(i).includes(this.snakeToCamel(a))||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(i.$unknownFields[a]=e[a])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Bf(n.prototype,r),o&&Bf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function Gf(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Yf(e){return Yf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yf(e)}function Qf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xf(e,t,n){return(t=ep(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ep(r.key),r)}}function ep(e){var t=function(e){if("object"!=Yf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yf(t)?t:t+""}function tp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tp=function(){return!!e})()}function np(e){return np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},np(e)}function rp(e,t){return rp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rp(e,t)}zf.prototype.cesaId=void 0,zf.prototype.cveIds=void 0,zf.prototype.isCritical=void 0,zf.prototype.description=void 0,zf.prototype.fixVersions=void 0,zf.prototype.severity=void 0,zf.prototype.nxvdVersion=void 0,zf.prototype.nxvdCreatedTime=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var op=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=np(t),function(e,t){if(t&&("object"==Yf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,tp()?Reflect.construct(t,n||[],np(e).constructor):t.apply(e,n))}(this,t)).$objectType="security.v4.report.VulnerabilityProjection",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rp(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,zf.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qf(Object(n),!0).forEach((function(t){Xf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Zf(n.prototype,r),o&&Zf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(zf);function ip(e){return ip="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ip(e)}function sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sp(Object(n),!0).forEach((function(t){up(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function up(e,t,n){return(t=cp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cp(r.key),r)}}function cp(e){var t=function(e){if("object"!=ip(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ip(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ip(t)?t:t+""}function dp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dp=function(){return!!e})()}function fp(e){return fp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fp(e)}function pp(e,t){return pp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pp(e,t)}var yp=new WeakSet,hp=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=fp(t),function(e,t){if(t&&("object"==ip(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dp()?Reflect.construct(t,n||[],fp(e).constructor):t.apply(e,n))}(this,t),yp),e.$objectType="security.v4.report.VulnerabilitySummary",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pp(e,t)}(t,e),n=t,r=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getInstalledVersion",value:function(){return this.installedVersion}},{key:"setInstalledVersion",value:function(e){this.installedVersion=e}},{key:"getCveIds",value:function(){return this.cveIds}},{key:"setCveIds",value:function(e){this.cveIds=e}},{key:"getSoftwareType",value:function(){return this.softwareType}},{key:"setSoftwareType",value:function(e){this.softwareType=e}},{key:"toJson",value:function(e){return ap(!1===e?ap(ap(ap(ap(ap(ap(ap({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getInstalledVersion()&&null!==this.getInstalledVersion()?{installedVersion:this.getInstalledVersion()}:{}),void 0!==this.getCveIds()&&null!==this.getCveIds()?{cveIds:this.getCveIds()}:{}),void 0!==this.getSoftwareType()&&null!==this.getSoftwareType()?{softwareType:this.getSoftwareType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):ap({},void 0!==this.getSoftwareType()&&null!==this.getSoftwareType()?{softwareType:this.getSoftwareType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!A.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new R("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("installedVersion"===t){if(void 0===this.installedVersion||null===this.installedVersion)return new R("installedVersion","undefined or null");if(!A.validateMaxLength(this.installedVersion,199))return new R("installedVersion","does not satisfy required maxLength constraint: 199")}if("cveIds"===t){if(void 0===this.cveIds||null===this.cveIds)return new R("cveIds","undefined or null");if(!A.validateMaxItems(this.cveIds,1024))return new R("cveIds","does not satisfy required maxItems constraint: 1024")}return"softwareType"!==t||void 0!==this.softwareType&&null!==this.softwareType?new R(t,"no such property exists"):new R("softwareType","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(i=i||new t,er.constructFromObject(e,i,!0),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&i.setClusterExtId(e.clusterExtId),e.hasOwnProperty("installedVersion")&&null!==e.installedVersion&&void 0!==e.installedVersion&&i.setInstalledVersion(e.installedVersion),e.hasOwnProperty("cveIds")&&null!==e.cveIds&&void 0!==e.cveIds){for(o=[],n=e.cveIds,r=0;r<n.length;r++)o.push(n[r]);i.setCveIds(o)}if(e.hasOwnProperty("softwareType")&&null!==e.softwareType&&void 0!==e.softwareType&&i.setSoftwareType(cf.constructFromObject(e.softwareType)),!s)for(var a in i.$unknownFields=ap({},e.$unknownFields),e)Object.keys(i).includes(a)||Object.keys(i).includes(this.snakeToCamel(a))||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(i.$unknownFields[a]=e[a])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&lp(n.prototype,r),o&&lp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function vp(e){return vp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vp(e)}function bp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gp(e,t,n){return(t=wp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wp(r.key),r)}}function wp(e){var t=function(e){if("object"!=vp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vp(t)?t:t+""}function Op(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Op=function(){return!!e})()}function jp(e){return jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jp(e)}function kp(e,t){return kp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kp(e,t)}hp.prototype.clusterExtId=void 0,hp.prototype.installedVersion=void 0,hp.prototype.cveIds=void 0,hp.prototype.softwareType=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Pp=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=jp(t),function(e,t){if(t&&("object"==vp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Op()?Reflect.construct(t,n||[],jp(e).constructor):t.apply(e,n))}(this,t)).$objectType="security.v4.report.VulnerabilitySummaryProjection",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kp(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof T?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,hp.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bp(Object(n),!0).forEach((function(t){gp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&mp(n.prototype,r),o&&mp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(hp);const $p={ApiClient:lt,ApprovalPoliciesApi:Pi,STIGsApi:ba,Flag:J,KVPair:ce,MapOfStringWrapper:Z,Message:Oe,MessageSeverity:pe,TenantAwareModel:Jn,ApiLink:Ie,ApiResponseMetadata:Ue,ExternalizableAbstractModel:er,BucketsAccessKey:vr,BucketsAccessKeyStatusType:nr,CreationType:or,User:Dr,UserStatusType:mr,UserType:Or,TaskReference:xt,Cluster:Ts,ClusterProjection:Ns,Timescale:ma,AddPublicKeyApiResponse:Ca,ChangePasswordSpec:Ba,ChangeSystemUserPasswordApiResponse:eu,DeletePublicKeyApiResponse:yu,HardeningStatus:Su,HardeningStatusProjection:Lu,HardeningVisibilitySetting:Yu,PasswordStatus:Xu,PasswordVerificationStatus:el,PublicKey:dl,PublicKeyProjection:jl,Schedule:bu,SystemType:Pl,SystemUserPassword:Nl,SystemUserPasswordProjection:Gl,UpdateHardeningStatusesApiResponse:lc,UpdateHardeningVisibilitySettingApiResponse:kc,VerifyPassword:Rc,VerifyPasswordSpec:Jc,VerifySystemUserPasswordApiResponse:nd,AppMessage:Ht,ErrorResponse:wn,SchemaValidationError:ln,SchemaValidationErrorMessage:Zt,ApprovalPolicy:co,ApproverGroup:Mr,AssociatePoliciesApiResponse:xn,CreateApprovalPolicyApiResponse:Zo,EventType:id,GetApprovalPolicyApiResponse:$o,ListApprovalPoliciesApiResponse:Lo,PolicyType:Hr,SecuredEntityType:ad,SecuredPolicy:Xr,SecurityValidationSpec:hd,TriggerApprovalPolicyValidationApiResponse:Sd,TriggerScanApiResponse:Md,UpdateApprovalPolicyApiResponse:pi,IssueSummary:uf,ListStigSummariesApiResponse:sa,ListStigsApiResponse:as,Severity:Ei,SoftwareType:cf,Stig:Li,StigProjection:zi,StigStatus:Si,StigSummary:ms,StigSummaryProjection:qs,Summary:jf,SummaryProjection:Rf,TrendValue:Xd,Vulnerability:zf,VulnerabilityProjection:op,VulnerabilitySummary:hp,VulnerabilitySummaryProjection:Pp}})(),r.default})()));
|