@nutanix-scratch/lifecycle-js-client 4.0.1 → 4.1.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/README.md +19 -18
- package/dist/Ntnx-Lifecycle-js-client-prod.js +1 -1
- package/dist/Ntnx-Lifecycle-js-client.js +985 -138
- package/dist/es/ApiClient.d.ts +7 -1
- package/dist/es/ApiClient.js +16 -25
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +3 -3
- package/dist/es/apis/bundles-endpoints.d.ts +3 -12
- package/dist/es/apis/bundles-endpoints.js +10 -18
- package/dist/es/apis/config-endpoints.d.ts +4 -4
- package/dist/es/apis/config-endpoints.js +6 -6
- package/dist/es/apis/entities-endpoints.d.ts +3 -20
- package/dist/es/apis/entities-endpoints.js +9 -25
- package/dist/es/apis/images-endpoints.d.ts +3 -16
- package/dist/es/apis/images-endpoints.js +7 -19
- package/dist/es/apis/inventory-endpoints.d.ts +9 -2
- package/dist/es/apis/inventory-endpoints.js +21 -9
- package/dist/es/apis/lcmsummaries-endpoints.d.ts +3 -22
- package/dist/es/apis/lcmsummaries-endpoints.js +8 -26
- package/dist/es/apis/notifications-endpoints.d.ts +1 -1
- package/dist/es/apis/notifications-endpoints.js +5 -5
- package/dist/es/apis/prechecks-endpoints.d.ts +4 -1
- package/dist/es/apis/prechecks-endpoints.js +9 -6
- package/dist/es/apis/recommendations-endpoints.d.ts +1 -1
- package/dist/es/apis/recommendations-endpoints.js +5 -5
- package/dist/es/apis/status-endpoints.d.ts +1 -1
- package/dist/es/apis/status-endpoints.js +4 -4
- package/dist/es/apis/upgrades-endpoints.d.ts +4 -1
- package/dist/es/apis/upgrades-endpoints.js +9 -6
- package/dist/es/index.d.ts +159 -5
- package/dist/es/index.js +632 -16
- package/dist/es/models/clustermgmt/v4/config/NonMigratableVmInfo.d.ts +105 -0
- package/dist/es/models/clustermgmt/v4/config/NonMigratableVmInfo.js +392 -0
- package/dist/es/models/common/v1/config/BasicAuth.d.ts +78 -0
- package/dist/es/models/common/v1/config/BasicAuth.js +328 -0
- package/dist/es/models/common/v1/config/FQDN.d.ts +52 -0
- package/dist/es/models/common/v1/config/FQDN.js +277 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +1 -1
- package/dist/es/models/common/v1/config/Flag.js +3 -3
- package/dist/es/models/common/v1/config/IPAddress.d.ts +77 -0
- package/dist/es/models/common/v1/config/IPAddress.js +323 -0
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +94 -0
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +364 -0
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +76 -0
- package/dist/es/models/common/v1/config/IPv4Address.js +329 -0
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +76 -0
- package/dist/es/models/common/v1/config/IPv6Address.js +329 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +1 -1
- package/dist/es/models/common/v1/config/KVPair.js +3 -3
- package/dist/es/models/common/v1/config/KVStringPair.d.ts +64 -0
- package/dist/es/models/common/v1/config/KVStringPair.js +318 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +1 -1
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +3 -3
- package/dist/es/models/common/v1/config/Message.d.ts +1 -1
- package/dist/es/models/common/v1/config/Message.js +3 -3
- package/dist/es/models/common/v1/config/MessageSeverity.js +2 -2
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +4 -4
- package/dist/es/models/common/v1/config/TenantAwareModel.js +7 -7
- package/dist/es/models/common/v1/response/ApiLink.d.ts +1 -1
- package/dist/es/models/common/v1/response/ApiLink.js +3 -3
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +1 -1
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +3 -3
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -1
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +4 -4
- package/dist/es/models/lifecycle/v4/common/AvailableVersionStatus.js +2 -2
- package/dist/es/models/lifecycle/v4/common/CheckSumType.js +2 -2
- package/dist/es/models/lifecycle/v4/common/Credential.d.ts +64 -0
- package/dist/es/models/lifecycle/v4/common/Credential.js +300 -0
- package/dist/es/models/lifecycle/v4/common/CredentialReference.d.ts +62 -0
- package/dist/es/models/lifecycle/v4/common/CredentialReference.js +284 -0
- package/dist/es/models/lifecycle/v4/common/DeploySpec.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/common/DeploySpec.js +4 -4
- package/dist/es/models/lifecycle/v4/common/EntityBaseModel.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/common/EntityBaseModel.js +5 -5
- package/dist/es/models/lifecycle/v4/common/EntityDeploySpec.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/common/EntityDeploySpec.js +4 -4
- package/dist/es/models/lifecycle/v4/common/EntityType.js +2 -2
- package/dist/es/models/lifecycle/v4/common/EntityUpdateSpec.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/common/EntityUpdateSpec.js +4 -4
- package/dist/es/models/lifecycle/v4/common/HypervisorType.js +2 -2
- package/dist/es/models/lifecycle/v4/common/InProgressOpDetails.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/common/InProgressOpDetails.js +4 -4
- package/dist/es/models/lifecycle/v4/common/LcmMd5Sum.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/common/LcmMd5Sum.js +4 -4
- package/dist/es/models/lifecycle/v4/common/LcmSha256Sum.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/common/LcmSha256Sum.js +4 -4
- package/dist/es/models/lifecycle/v4/common/LocationInfo.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/common/LocationInfo.js +4 -4
- package/dist/es/models/lifecycle/v4/common/LocationType.js +2 -2
- package/dist/es/models/lifecycle/v4/common/ManagementServer.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/common/ManagementServer.js +4 -4
- package/dist/es/models/lifecycle/v4/common/NotificationType.js +2 -2
- package/dist/es/models/lifecycle/v4/common/OperationCredential.d.ts +63 -0
- package/dist/es/models/lifecycle/v4/common/OperationCredential.js +313 -0
- package/dist/es/models/lifecycle/v4/common/OperationType.js +2 -2
- package/dist/es/models/lifecycle/v4/common/PrechecksSpec.d.ts +17 -5
- package/dist/es/models/lifecycle/v4/common/PrechecksSpec.js +55 -6
- package/dist/es/models/lifecycle/v4/common/PreloadSpec.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/common/PreloadSpec.js +4 -4
- package/dist/es/models/lifecycle/v4/common/SystemAutoMgmtFlag.js +10 -4
- package/dist/es/models/lifecycle/v4/common/UpgradeSpec.d.ts +7 -1
- package/dist/es/models/lifecycle/v4/common/UpgradeSpec.js +20 -7
- package/dist/es/models/lifecycle/v4/common/VendorManagementCredential.d.ts +64 -0
- package/dist/es/models/lifecycle/v4/common/VendorManagementCredential.js +302 -0
- package/dist/es/models/lifecycle/v4/common/VendorManagementName.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/VendorManagementName.js +91 -0
- package/dist/es/models/lifecycle/v4/error/AppMessage.d.ts +4 -4
- package/dist/es/models/lifecycle/v4/error/AppMessage.js +8 -8
- package/dist/es/models/lifecycle/v4/error/ErrorResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/error/ErrorResponse.js +4 -5
- package/dist/es/models/lifecycle/v4/error/SchemaValidationError.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/error/SchemaValidationError.js +4 -4
- package/dist/es/models/lifecycle/v4/error/SchemaValidationErrorMessage.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/error/SchemaValidationErrorMessage.js +4 -4
- package/dist/es/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/operations/InventoryApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/operations/InventoryApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/operations/InventorySpec.d.ts +58 -0
- package/dist/es/models/lifecycle/v4/operations/InventorySpec.js +288 -0
- package/dist/es/models/lifecycle/v4/operations/PrechecksApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/operations/PrechecksApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/operations/PreloadArtifactsApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/operations/PreloadArtifactsApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/operations/UpgradeApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/operations/UpgradeApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/AvailableVersion.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/AvailableVersion.js +4 -4
- package/dist/es/models/lifecycle/v4/resources/Bundle.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/Bundle.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/BundleType.js +2 -2
- package/dist/es/models/lifecycle/v4/resources/BundleVendor.js +2 -2
- package/dist/es/models/lifecycle/v4/resources/Capability.js +10 -4
- package/dist/es/models/lifecycle/v4/resources/Config.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/Config.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/ConnectivityType.js +2 -2
- package/dist/es/models/lifecycle/v4/resources/CreateBundleApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/CreateBundleApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/DeleteBundleByIdApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/DeleteBundleByIdApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/DependentEntity.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/DependentEntity.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/DeployableVersion.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/DeployableVersion.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/Entity.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/Entity.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/FrameworkVersionInfo.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/FrameworkVersionInfo.js +4 -4
- package/dist/es/models/lifecycle/v4/resources/GetBundleByIdApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/GetBundleByIdApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/GetConfigApiResponse.d.ts +2 -3
- package/dist/es/models/lifecycle/v4/resources/GetConfigApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/GetEntityByIdApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/GetLcmSummaryByIdApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/GetLcmSummaryByIdApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/GetStatusApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/GetStatusApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/Image.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/Image.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/ImageFile.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/ImageFile.js +4 -4
- package/dist/es/models/lifecycle/v4/resources/InProgressOpInfo.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/InProgressOpInfo.js +4 -4
- package/dist/es/models/lifecycle/v4/resources/LcmSummary.d.ts +13 -1
- package/dist/es/models/lifecycle/v4/resources/LcmSummary.js +46 -7
- package/dist/es/models/lifecycle/v4/resources/ListBundlesApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/ListBundlesApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/ListEntitiesApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/ListEntitiesApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/ListImagesApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/ListImagesApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/ListLcmSummariesApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/ListLcmSummariesApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/Notification.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/Notification.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/NotificationDetail.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/NotificationDetail.js +4 -4
- package/dist/es/models/lifecycle/v4/resources/NotificationItem.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/NotificationItem.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/NotificationsSpec.d.ts +19 -1
- package/dist/es/models/lifecycle/v4/resources/NotificationsSpec.js +58 -6
- package/dist/es/models/lifecycle/v4/resources/RecommendationResult.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/RecommendationResult.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/RecommendationSpec.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/RecommendationSpec.js +4 -4
- package/dist/es/models/lifecycle/v4/resources/SeverityLevel.js +2 -2
- package/dist/es/models/lifecycle/v4/resources/StatusInfo.d.ts +17 -2
- package/dist/es/models/lifecycle/v4/resources/StatusInfo.js +46 -7
- package/dist/es/models/lifecycle/v4/resources/TargetEntity.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/TargetEntity.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/UpdateConfigApiResponse.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/UpdateConfigApiResponse.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntity.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntity.js +5 -5
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntityResult.d.ts +1 -1
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js +4 -4
- package/dist/es/models/lifecycle/v4/svcmgr/AhvClientConfig.d.ts +71 -0
- package/dist/es/models/lifecycle/v4/svcmgr/AhvClientConfig.js +394 -0
- package/dist/es/models/lifecycle/v4/svcmgr/AhvNetworkResourceConfig.d.ts +40 -0
- package/dist/es/models/lifecycle/v4/svcmgr/AhvNetworkResourceConfig.js +269 -0
- package/dist/es/models/lifecycle/v4/svcmgr/AhvResourceConfig.d.ts +86 -0
- package/dist/es/models/lifecycle/v4/svcmgr/AhvResourceConfig.js +315 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Application.d.ts +176 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Application.js +656 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ApplicationProjection.d.ts +10 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ApplicationProjection.js +151 -0
- package/dist/es/models/lifecycle/v4/svcmgr/BaseClientConfig.d.ts +88 -0
- package/dist/es/models/lifecycle/v4/svcmgr/BaseClientConfig.js +390 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ClientConfig.d.ts +105 -0
- package/dist/es/models/lifecycle/v4/{operations/DeployArtifactsApiResponse.js → svcmgr/ClientConfig.js} +153 -93
- package/dist/es/models/lifecycle/v4/svcmgr/Cluster.d.ts +524 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Cluster.js +1234 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ClusterDeploymentType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ClusterDeploymentType.js +85 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ClusterManagementIps.d.ts +85 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ClusterManagementIps.js +348 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ClusterNetworkConfig.d.ts +183 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ClusterNetworkConfig.js +529 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ClusterResourceConfig.d.ts +104 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ClusterResourceConfig.js +427 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ClusterStorageClass.d.ts +142 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ClusterStorageClass.js +502 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ClusterType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ClusterType.js +85 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ClusterUpgradeInfo.d.ts +94 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ClusterUpgradeInfo.js +373 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ComponentDetails.d.ts +100 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ComponentDetails.js +431 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Config.d.ts +77 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Config.js +326 -0
- package/dist/es/models/lifecycle/v4/svcmgr/CustomValue.d.ts +67 -0
- package/dist/es/models/lifecycle/v4/svcmgr/CustomValue.js +316 -0
- package/dist/es/models/lifecycle/v4/svcmgr/CustomValueItem.d.ts +60 -0
- package/dist/es/models/lifecycle/v4/svcmgr/CustomValueItem.js +345 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Deployment.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Deployment.js +85 -0
- package/dist/es/models/lifecycle/v4/svcmgr/EntityReference.d.ts +64 -0
- package/dist/es/models/lifecycle/v4/svcmgr/EntityReference.js +308 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Environment.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Environment.js +85 -0
- package/dist/es/models/lifecycle/v4/svcmgr/EsxClientConfig.d.ts +85 -0
- package/dist/es/models/lifecycle/v4/svcmgr/EsxClientConfig.js +441 -0
- package/dist/es/models/lifecycle/v4/svcmgr/EsxNetworkResourceConfig.d.ts +54 -0
- package/dist/es/models/lifecycle/v4/svcmgr/EsxNetworkResourceConfig.js +269 -0
- package/dist/es/models/lifecycle/v4/svcmgr/EsxResourceConfig.d.ts +100 -0
- package/dist/es/models/lifecycle/v4/svcmgr/EsxResourceConfig.js +315 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Health.d.ts +78 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Health.js +317 -0
- package/dist/es/models/lifecycle/v4/svcmgr/HealthComponent.d.ts +83 -0
- package/dist/es/models/lifecycle/v4/svcmgr/HealthComponent.js +346 -0
- package/dist/es/models/lifecycle/v4/svcmgr/History.d.ts +161 -0
- package/dist/es/models/lifecycle/v4/svcmgr/History.js +653 -0
- package/dist/es/models/lifecycle/v4/svcmgr/HistoryProjection.d.ts +10 -0
- package/dist/es/models/lifecycle/v4/svcmgr/HistoryProjection.js +150 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Info.d.ts +102 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Info.js +456 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Install.d.ts +108 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Install.js +402 -0
- package/dist/es/models/lifecycle/v4/svcmgr/IpRange.d.ts +87 -0
- package/dist/es/models/lifecycle/v4/svcmgr/IpRange.js +317 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoadBalancer.d.ts +84 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoadBalancer.js +308 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoadBalancerAccessInterface.d.ts +109 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoadBalancerAccessInterface.js +412 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoadBalancerConfig.d.ts +126 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoadBalancerConfig.js +322 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoadBalancerConfigObject.d.ts +206 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoadBalancerConfigObject.js +594 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoadBalancerConfigType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoadBalancerConfigType.js +85 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoadBalancerNetworkConfig.d.ts +99 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoadBalancerNetworkConfig.js +381 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoadBalancerResourceConfig.d.ts +62 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoadBalancerResourceConfig.js +362 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoadBalancerType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoadBalancerType.js +85 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoggingVolumeConfig.d.ts +94 -0
- package/dist/es/models/lifecycle/v4/svcmgr/LoggingVolumeConfig.js +371 -0
- package/dist/es/models/lifecycle/v4/svcmgr/NicType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/svcmgr/NicType.js +85 -0
- package/dist/es/models/lifecycle/v4/svcmgr/NutanixStorageClass.d.ts +95 -0
- package/dist/es/models/lifecycle/v4/svcmgr/NutanixStorageClass.js +392 -0
- package/dist/es/models/lifecycle/v4/svcmgr/OwnerReference.d.ts +64 -0
- package/dist/es/models/lifecycle/v4/svcmgr/OwnerReference.js +311 -0
- package/dist/es/models/lifecycle/v4/svcmgr/PostAppResponse.d.ts +60 -0
- package/dist/es/models/lifecycle/v4/svcmgr/PostAppResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/svcmgr/PostServiceResponse.d.ts +60 -0
- package/dist/es/models/lifecycle/v4/svcmgr/PostServiceResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/svcmgr/RegistryBundle.d.ts +71 -0
- package/dist/es/models/lifecycle/v4/svcmgr/RegistryBundle.js +316 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Service.d.ts +151 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Service.js +610 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ServiceProjection.d.ts +10 -0
- package/dist/es/models/lifecycle/v4/svcmgr/ServiceProjection.js +150 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Status.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/svcmgr/Status.js +79 -0
- package/dist/es/models/lifecycle/v4/svcmgr/TaskReferenceInternal.d.ts +30 -0
- package/dist/es/models/lifecycle/v4/svcmgr/TaskReferenceInternal.js +264 -0
- package/dist/es/models/lifecycle/v4/svcmgr/TaskStatus.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/svcmgr/TaskStatus.js +115 -0
- package/dist/es/models/lifecycle/v4/svcmgr/TaskStep.d.ts +52 -0
- package/dist/es/models/lifecycle/v4/svcmgr/TaskStep.js +272 -0
- package/dist/es/models/lifecycle/v4/svcmgr/TaskV2.d.ts +384 -0
- package/dist/es/models/lifecycle/v4/svcmgr/TaskV2.js +1182 -0
- package/dist/es/models/lifecycle/v4/svcmgr/TaskV2Projection.d.ts +10 -0
- package/dist/es/models/lifecycle/v4/svcmgr/TaskV2Projection.js +157 -0
- package/dist/es/models/lifecycle/v4/svcmgr/VcenterLocation.d.ts +93 -0
- package/dist/es/models/lifecycle/v4/svcmgr/VcenterLocation.js +392 -0
- package/dist/es/models/lifecycle/v4/svcmgr/VmNetworkResourceConfig.d.ts +74 -0
- package/dist/es/models/lifecycle/v4/svcmgr/VmNetworkResourceConfig.js +323 -0
- package/dist/es/models/lifecycle/v4/svcmgr/VmResourceConfig.d.ts +77 -0
- package/dist/es/models/lifecycle/v4/svcmgr/VmResourceConfig.js +354 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +4 -4
- package/dist/es/models/prism/v4/config/TaskReference.js +8 -9
- package/dist/es/models/security/v4/config/BasicAuthCredential.d.ts +66 -0
- package/dist/es/models/security/v4/config/BasicAuthCredential.js +276 -0
- package/dist/es/models/security/v4/config/IntersightConnectionType.d.ts +19 -0
- package/dist/es/models/security/v4/config/IntersightConnectionType.js +85 -0
- package/dist/es/models/security/v4/config/IntersightCredential.d.ts +76 -0
- package/dist/es/models/security/v4/config/IntersightCredential.js +346 -0
- package/dist/es/models/security/v4/config/KeyBasedAuth.d.ts +78 -0
- package/dist/es/models/security/v4/config/KeyBasedAuth.js +334 -0
- package/dist/es/models/security/v4/config/KeyBasedAuthCredential.d.ts +66 -0
- package/dist/es/models/security/v4/config/KeyBasedAuthCredential.js +276 -0
- package/dist/es/models/security/v4/config/VcenterCredential.d.ts +85 -0
- package/dist/es/models/security/v4/config/VcenterCredential.js +300 -0
- package/dist/es/models/validation/ValidationError.js +2 -2
- package/dist/es/utils/ValidationUtils.js +2 -2
- package/dist/lib/ApiClient.d.ts +7 -1
- package/dist/lib/ApiClient.js +16 -25
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +3 -3
- package/dist/lib/apis/bundles-endpoints.d.ts +3 -12
- package/dist/lib/apis/bundles-endpoints.js +10 -18
- package/dist/lib/apis/config-endpoints.d.ts +4 -4
- package/dist/lib/apis/config-endpoints.js +6 -6
- package/dist/lib/apis/entities-endpoints.d.ts +3 -20
- package/dist/lib/apis/entities-endpoints.js +9 -25
- package/dist/lib/apis/images-endpoints.d.ts +3 -16
- package/dist/lib/apis/images-endpoints.js +7 -19
- package/dist/lib/apis/inventory-endpoints.d.ts +9 -2
- package/dist/lib/apis/inventory-endpoints.js +21 -9
- package/dist/lib/apis/lcmsummaries-endpoints.d.ts +3 -22
- package/dist/lib/apis/lcmsummaries-endpoints.js +8 -26
- package/dist/lib/apis/notifications-endpoints.d.ts +1 -1
- package/dist/lib/apis/notifications-endpoints.js +5 -5
- package/dist/lib/apis/prechecks-endpoints.d.ts +4 -1
- package/dist/lib/apis/prechecks-endpoints.js +9 -6
- package/dist/lib/apis/recommendations-endpoints.d.ts +1 -1
- package/dist/lib/apis/recommendations-endpoints.js +5 -5
- package/dist/lib/apis/status-endpoints.d.ts +1 -1
- package/dist/lib/apis/status-endpoints.js +4 -4
- package/dist/lib/apis/upgrades-endpoints.d.ts +4 -1
- package/dist/lib/apis/upgrades-endpoints.js +9 -6
- package/dist/lib/index.d.ts +159 -5
- package/dist/lib/index.js +632 -16
- package/dist/lib/models/clustermgmt/v4/config/NonMigratableVmInfo.d.ts +105 -0
- package/dist/lib/models/clustermgmt/v4/config/NonMigratableVmInfo.js +392 -0
- package/dist/lib/models/common/v1/config/BasicAuth.d.ts +78 -0
- package/dist/lib/models/common/v1/config/BasicAuth.js +328 -0
- package/dist/lib/models/common/v1/config/FQDN.d.ts +52 -0
- package/dist/lib/models/common/v1/config/FQDN.js +277 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +1 -1
- package/dist/lib/models/common/v1/config/Flag.js +3 -3
- package/dist/lib/models/common/v1/config/IPAddress.d.ts +77 -0
- package/dist/lib/models/common/v1/config/IPAddress.js +323 -0
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +94 -0
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +364 -0
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +76 -0
- package/dist/lib/models/common/v1/config/IPv4Address.js +329 -0
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +76 -0
- package/dist/lib/models/common/v1/config/IPv6Address.js +329 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +1 -1
- package/dist/lib/models/common/v1/config/KVPair.js +3 -3
- package/dist/lib/models/common/v1/config/KVStringPair.d.ts +64 -0
- package/dist/lib/models/common/v1/config/KVStringPair.js +318 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +1 -1
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +3 -3
- package/dist/lib/models/common/v1/config/Message.d.ts +1 -1
- package/dist/lib/models/common/v1/config/Message.js +3 -3
- package/dist/lib/models/common/v1/config/MessageSeverity.js +2 -2
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +4 -4
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +7 -7
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +1 -1
- package/dist/lib/models/common/v1/response/ApiLink.js +3 -3
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +1 -1
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +3 -3
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -1
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +4 -4
- package/dist/lib/models/lifecycle/v4/common/AvailableVersionStatus.js +2 -2
- package/dist/lib/models/lifecycle/v4/common/CheckSumType.js +2 -2
- package/dist/lib/models/lifecycle/v4/common/Credential.d.ts +64 -0
- package/dist/lib/models/lifecycle/v4/common/Credential.js +300 -0
- package/dist/lib/models/lifecycle/v4/common/CredentialReference.d.ts +62 -0
- package/dist/lib/models/lifecycle/v4/common/CredentialReference.js +284 -0
- package/dist/lib/models/lifecycle/v4/common/DeploySpec.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/common/DeploySpec.js +4 -4
- package/dist/lib/models/lifecycle/v4/common/EntityBaseModel.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/common/EntityBaseModel.js +5 -5
- package/dist/lib/models/lifecycle/v4/common/EntityDeploySpec.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/common/EntityDeploySpec.js +4 -4
- package/dist/lib/models/lifecycle/v4/common/EntityType.js +2 -2
- package/dist/lib/models/lifecycle/v4/common/EntityUpdateSpec.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/common/EntityUpdateSpec.js +4 -4
- package/dist/lib/models/lifecycle/v4/common/HypervisorType.js +2 -2
- package/dist/lib/models/lifecycle/v4/common/InProgressOpDetails.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/common/InProgressOpDetails.js +4 -4
- package/dist/lib/models/lifecycle/v4/common/LcmMd5Sum.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/common/LcmMd5Sum.js +4 -4
- package/dist/lib/models/lifecycle/v4/common/LcmSha256Sum.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/common/LcmSha256Sum.js +4 -4
- package/dist/lib/models/lifecycle/v4/common/LocationInfo.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/common/LocationInfo.js +4 -4
- package/dist/lib/models/lifecycle/v4/common/LocationType.js +2 -2
- package/dist/lib/models/lifecycle/v4/common/ManagementServer.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/common/ManagementServer.js +4 -4
- package/dist/lib/models/lifecycle/v4/common/NotificationType.js +2 -2
- package/dist/lib/models/lifecycle/v4/common/OperationCredential.d.ts +63 -0
- package/dist/lib/models/lifecycle/v4/common/OperationCredential.js +313 -0
- package/dist/lib/models/lifecycle/v4/common/OperationType.js +2 -2
- package/dist/lib/models/lifecycle/v4/common/PrechecksSpec.d.ts +17 -5
- package/dist/lib/models/lifecycle/v4/common/PrechecksSpec.js +55 -6
- package/dist/lib/models/lifecycle/v4/common/PreloadSpec.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/common/PreloadSpec.js +4 -4
- package/dist/lib/models/lifecycle/v4/common/SystemAutoMgmtFlag.js +10 -4
- package/dist/lib/models/lifecycle/v4/common/UpgradeSpec.d.ts +7 -1
- package/dist/lib/models/lifecycle/v4/common/UpgradeSpec.js +20 -7
- package/dist/lib/models/lifecycle/v4/common/VendorManagementCredential.d.ts +64 -0
- package/dist/lib/models/lifecycle/v4/common/VendorManagementCredential.js +302 -0
- package/dist/lib/models/lifecycle/v4/common/VendorManagementName.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/VendorManagementName.js +91 -0
- package/dist/lib/models/lifecycle/v4/error/AppMessage.d.ts +4 -4
- package/dist/lib/models/lifecycle/v4/error/AppMessage.js +8 -8
- package/dist/lib/models/lifecycle/v4/error/ErrorResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/error/ErrorResponse.js +4 -5
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationError.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationError.js +4 -4
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationErrorMessage.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationErrorMessage.js +4 -4
- package/dist/lib/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/operations/InventoryApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/operations/InventoryApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/operations/InventorySpec.d.ts +58 -0
- package/dist/lib/models/lifecycle/v4/operations/InventorySpec.js +288 -0
- package/dist/lib/models/lifecycle/v4/operations/PrechecksApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/operations/PrechecksApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/operations/PreloadArtifactsApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/operations/PreloadArtifactsApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/operations/UpgradeApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/operations/UpgradeApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/AvailableVersion.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/AvailableVersion.js +4 -4
- package/dist/lib/models/lifecycle/v4/resources/Bundle.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/Bundle.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/BundleType.js +2 -2
- package/dist/lib/models/lifecycle/v4/resources/BundleVendor.js +2 -2
- package/dist/lib/models/lifecycle/v4/resources/Capability.js +10 -4
- package/dist/lib/models/lifecycle/v4/resources/Config.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/Config.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/ConnectivityType.js +2 -2
- package/dist/lib/models/lifecycle/v4/resources/CreateBundleApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/CreateBundleApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/DeleteBundleByIdApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/DeleteBundleByIdApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/DependentEntity.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/DependentEntity.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/DeployableVersion.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/DeployableVersion.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/Entity.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/Entity.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/FrameworkVersionInfo.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/FrameworkVersionInfo.js +4 -4
- package/dist/lib/models/lifecycle/v4/resources/GetBundleByIdApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/GetBundleByIdApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/GetConfigApiResponse.d.ts +2 -3
- package/dist/lib/models/lifecycle/v4/resources/GetConfigApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/GetEntityByIdApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/GetLcmSummaryByIdApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/GetLcmSummaryByIdApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/GetStatusApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/GetStatusApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/Image.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/Image.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/ImageFile.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/ImageFile.js +4 -4
- package/dist/lib/models/lifecycle/v4/resources/InProgressOpInfo.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/InProgressOpInfo.js +4 -4
- package/dist/lib/models/lifecycle/v4/resources/LcmSummary.d.ts +13 -1
- package/dist/lib/models/lifecycle/v4/resources/LcmSummary.js +46 -7
- package/dist/lib/models/lifecycle/v4/resources/ListBundlesApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/ListBundlesApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/ListEntitiesApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/ListEntitiesApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/ListImagesApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/ListImagesApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/ListLcmSummariesApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/ListLcmSummariesApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/Notification.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/Notification.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/NotificationDetail.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/NotificationDetail.js +4 -4
- package/dist/lib/models/lifecycle/v4/resources/NotificationItem.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/NotificationItem.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/NotificationsSpec.d.ts +19 -1
- package/dist/lib/models/lifecycle/v4/resources/NotificationsSpec.js +58 -6
- package/dist/lib/models/lifecycle/v4/resources/RecommendationResult.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/RecommendationResult.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/RecommendationSpec.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/RecommendationSpec.js +4 -4
- package/dist/lib/models/lifecycle/v4/resources/SeverityLevel.js +2 -2
- package/dist/lib/models/lifecycle/v4/resources/StatusInfo.d.ts +17 -2
- package/dist/lib/models/lifecycle/v4/resources/StatusInfo.js +46 -7
- package/dist/lib/models/lifecycle/v4/resources/TargetEntity.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/TargetEntity.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/UpdateConfigApiResponse.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/UpdateConfigApiResponse.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntity.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntity.js +5 -5
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntityResult.d.ts +1 -1
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js +4 -4
- package/dist/lib/models/lifecycle/v4/svcmgr/AhvClientConfig.d.ts +71 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/AhvClientConfig.js +394 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/AhvNetworkResourceConfig.d.ts +40 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/AhvNetworkResourceConfig.js +269 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/AhvResourceConfig.d.ts +86 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/AhvResourceConfig.js +315 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Application.d.ts +176 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Application.js +656 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ApplicationProjection.d.ts +10 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ApplicationProjection.js +151 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/BaseClientConfig.d.ts +88 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/BaseClientConfig.js +390 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ClientConfig.d.ts +105 -0
- package/dist/lib/models/lifecycle/v4/{operations/DeployArtifactsApiResponse.js → svcmgr/ClientConfig.js} +153 -93
- package/dist/lib/models/lifecycle/v4/svcmgr/Cluster.d.ts +524 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Cluster.js +1234 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ClusterDeploymentType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ClusterDeploymentType.js +85 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ClusterManagementIps.d.ts +85 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ClusterManagementIps.js +348 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ClusterNetworkConfig.d.ts +183 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ClusterNetworkConfig.js +529 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ClusterResourceConfig.d.ts +104 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ClusterResourceConfig.js +427 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ClusterStorageClass.d.ts +142 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ClusterStorageClass.js +502 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ClusterType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ClusterType.js +85 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ClusterUpgradeInfo.d.ts +94 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ClusterUpgradeInfo.js +373 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ComponentDetails.d.ts +100 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ComponentDetails.js +431 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Config.d.ts +77 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Config.js +326 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/CustomValue.d.ts +67 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/CustomValue.js +316 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/CustomValueItem.d.ts +60 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/CustomValueItem.js +345 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Deployment.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Deployment.js +85 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/EntityReference.d.ts +64 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/EntityReference.js +308 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Environment.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Environment.js +85 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/EsxClientConfig.d.ts +85 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/EsxClientConfig.js +441 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/EsxNetworkResourceConfig.d.ts +54 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/EsxNetworkResourceConfig.js +269 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/EsxResourceConfig.d.ts +100 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/EsxResourceConfig.js +315 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Health.d.ts +78 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Health.js +317 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/HealthComponent.d.ts +83 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/HealthComponent.js +346 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/History.d.ts +161 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/History.js +653 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/HistoryProjection.d.ts +10 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/HistoryProjection.js +150 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Info.d.ts +102 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Info.js +456 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Install.d.ts +108 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Install.js +402 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/IpRange.d.ts +87 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/IpRange.js +317 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoadBalancer.d.ts +84 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoadBalancer.js +308 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoadBalancerAccessInterface.d.ts +109 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoadBalancerAccessInterface.js +412 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoadBalancerConfig.d.ts +126 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoadBalancerConfig.js +322 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoadBalancerConfigObject.d.ts +206 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoadBalancerConfigObject.js +594 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoadBalancerConfigType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoadBalancerConfigType.js +85 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoadBalancerNetworkConfig.d.ts +99 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoadBalancerNetworkConfig.js +381 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoadBalancerResourceConfig.d.ts +62 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoadBalancerResourceConfig.js +362 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoadBalancerType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoadBalancerType.js +85 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoggingVolumeConfig.d.ts +94 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/LoggingVolumeConfig.js +371 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/NicType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/NicType.js +85 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/NutanixStorageClass.d.ts +95 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/NutanixStorageClass.js +392 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/OwnerReference.d.ts +64 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/OwnerReference.js +311 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/PostAppResponse.d.ts +60 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/PostAppResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/PostServiceResponse.d.ts +60 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/PostServiceResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/RegistryBundle.d.ts +71 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/RegistryBundle.js +316 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Service.d.ts +151 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Service.js +610 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ServiceProjection.d.ts +10 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/ServiceProjection.js +150 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Status.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/Status.js +79 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/TaskReferenceInternal.d.ts +30 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/TaskReferenceInternal.js +264 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/TaskStatus.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/TaskStatus.js +115 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/TaskStep.d.ts +52 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/TaskStep.js +272 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/TaskV2.d.ts +384 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/TaskV2.js +1182 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/TaskV2Projection.d.ts +10 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/TaskV2Projection.js +157 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/VcenterLocation.d.ts +93 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/VcenterLocation.js +392 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/VmNetworkResourceConfig.d.ts +74 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/VmNetworkResourceConfig.js +323 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/VmResourceConfig.d.ts +77 -0
- package/dist/lib/models/lifecycle/v4/svcmgr/VmResourceConfig.js +354 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +4 -4
- package/dist/lib/models/prism/v4/config/TaskReference.js +8 -9
- package/dist/lib/models/security/v4/config/BasicAuthCredential.d.ts +66 -0
- package/dist/lib/models/security/v4/config/BasicAuthCredential.js +276 -0
- package/dist/lib/models/security/v4/config/IntersightConnectionType.d.ts +19 -0
- package/dist/lib/models/security/v4/config/IntersightConnectionType.js +85 -0
- package/dist/lib/models/security/v4/config/IntersightCredential.d.ts +76 -0
- package/dist/lib/models/security/v4/config/IntersightCredential.js +346 -0
- package/dist/lib/models/security/v4/config/KeyBasedAuth.d.ts +78 -0
- package/dist/lib/models/security/v4/config/KeyBasedAuth.js +334 -0
- package/dist/lib/models/security/v4/config/KeyBasedAuthCredential.d.ts +66 -0
- package/dist/lib/models/security/v4/config/KeyBasedAuthCredential.js +276 -0
- package/dist/lib/models/security/v4/config/VcenterCredential.d.ts +85 -0
- package/dist/lib/models/security/v4/config/VcenterCredential.js +300 -0
- package/dist/lib/models/validation/ValidationError.js +2 -2
- package/dist/lib/utils/ValidationUtils.js +2 -2
- package/package.json +2 -2
- package/dist/es/models/lifecycle/v4/operations/DeployArtifactsApiResponse.d.ts +0 -99
- package/dist/lib/models/lifecycle/v4/operations/DeployArtifactsApiResponse.d.ts +0 -99
|
@@ -1 +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.Lifecycle=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=s,s.default=s,s.stable=f,s.stableStringify=f;var n="[...]",r="[Circular]",o=[],i=[];function a(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,n,r){var s;void 0===r&&(r=a()),l(e,"",0,[],void 0,0,r);try{s=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 s}function u(e,t,n,r){var a=Object.getOwnPropertyDescriptor(r,n);void 0!==a.get?a.configurable?(Object.defineProperty(r,n,{value:e}),o.push([r,n,t,a])):i.push([t,n,e]):(r[n]=e,o.push([r,n,t]))}function l(e,o,i,a,s,c,f){var d;if(c+=1,"object"===t(e)&&null!==e){for(d=0;d<a.length;d++)if(a[d]===e)return void u(r,e,o,s);if(void 0!==f.depthLimit&&c>f.depthLimit)return void u(n,e,o,s);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void u(n,e,o,s);if(a.push(e),Array.isArray(e))for(d=0;d<e.length;d++)l(e[d],d,d,a,e,c,f);else{var p=Object.keys(e);for(d=0;d<p.length;d++){var y=p[d];l(e[y],y,d,a,e,c,f)}}a.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function f(e,t,n,r){void 0===r&&(r=a());var s,u=d(e,"",0,[],void 0,0,r)||e;try{s=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 s}function d(e,i,a,s,l,f,p){var y;if(f+=1,"object"===t(e)&&null!==e){for(y=0;y<s.length;y++)if(s[y]===e)return void u(r,e,i,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==p.depthLimit&&f>p.depthLimit)return void u(n,e,i,l);if(void 0!==p.edgesLimit&&a+1>p.edgesLimit)return void u(n,e,i,l);if(s.push(e),Array.isArray(e))for(y=0;y<e.length;y++)d(e[y],y,y,s,e,f,p);else{var h={},v=Object.keys(e).sort(c);for(y=0;y<v.length;y++){var b=v[y];d(e[b],b,y,s,e,f,p),h[b]=e[b]}if(void 0===l)return h;o.push([l,i,e]),l[i]=h}s.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 a(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 s(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 f(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 d(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 s=d(o),u=s.device,l=s.isUnc,c=s.isAbsolute,f=s.tail;if((!u||!e||u.toLowerCase()===e.toLowerCase())&&(e||(e=u),n||(t=f+"\\"+t,n=c),e&&n))break}}return l&&(e=p(e)),e+(n?"\\":"")+(t=a(t.split(/[\\\/]+/),!n).join("\\"))||"."},c.normalize=function(e){var t=d(e),n=t.device,r=t.isUnc,o=t.isAbsolute,i=t.tail,s=/[\\\/]$/.test(i);return(i=a(i.split(/[\\\/]+/),!o).join("\\"))||o||(i="."),i&&s&&(i+="\\"),r&&(n=p(n)),n+(o?"\\":"")+i},c.isAbsolute=function(e){return d(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=s(t.split("\\")),i=s(n.split("\\")),a=s(r.split("\\")),u=Math.min(i.length,a.length),l=u,f=0;f<u;f++)if(i[f]!==a[f]){l=f;break}if(0==l)return t;var d=[];for(f=l;f<i.length;f++)d.push("..");return(d=d.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=f(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=f(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},c.extname=function(e){return f(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=f(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=a(e.split("/"),!t).join("/"))||"."},h.normalize=function(e){var t=h.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=a(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=s(e.split("/")),r=s(t.split("/")),o=Math.min(n.length,r.length),i=o,a=0;a<o;a++)if(n[a]!==r[a]){i=a;break}var u=[];for(a=i;a<n.length;a++)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 a=t[o-1],s=0;s<i+1;s++)t.push(a)}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),a=n(340),s=n(695),u=n(388),l=n(19),c=n(619);function f(){}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 d=t=e.exports;t.Request=m,d.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,a=o.length;i<a;++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/),a={},s=0,u=i.length;s<u;++s)-1!==(t=(n=i[s]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),o=p(n.slice(t+1)),a[r]=o);return a}(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=d("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}d.serializeObject=y,d.parseString=v,d.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"},d.serialize={"application/x-www-form-urlencoded":y,"application/json":a},d.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},l(g.prototype),g.prototype._parseBody=function(e){var t=d.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=d.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},d.Response=g,i(m.prototype),s(m.prototype),m.prototype.type=function(e){return this.set("Content-Type",d.types[e]||e),this},m.prototype.accept=function(e){return this.set("Accept",d.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||f,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=d.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||d.serialize[o?o.split(";")[0]:""];!i&&b(o)&&(i=d.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},d.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){c.prototype[e.toLowerCase()]=function(t,n){var r=new d.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),c.prototype.del=c.prototype.delete,d.get=function(e,t,n){var r=d("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.head=function(e,t,n){var r=d("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.options=function(e,t,n){var r=d("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.del=w,d.delete=w,d.patch=function(e,t,n){var r=d("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.post=function(e,t,n){var r=d("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.put=function(e,t,n){var r=d("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 a=["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&&a.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(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=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)?a+=" "+u:a+=" "+s(u);return a},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,a={};function s(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=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.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 a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),j(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.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 f(n)}var l,w="",$=!1,P=["{","}"];return p(n)&&($=!0,P=["[","]"]),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=" "+f(n)),0!==a.length||$&&0!=n.length?r<0?m(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=$?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)E(t,String(a))?i.push(d(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(d(e,t,n,r,o,!0))})),i}(e,n,r,s,a):a.map((function(t){return d(e,n,r,s,t,$)})),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,P)):P[0]+w+P[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),E(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(u.value)<0?(s=h(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),g(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}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]"===$(e)}function w(e){return"object"===r(e)&&null!==e}function O(e){return w(e)&&"[object Date]"===$(e)}function j(e){return w(e)&&("[object Error]"===$(e)||e instanceof Error)}function k(e){return"function"==typeof e}function $(e){return Object.prototype.toString.call(e)}function P(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(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=process.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=s,s.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]},s.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 T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[P((e=new Date).getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":"),[e.getDate(),T[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:()=>Av});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 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,s(r.key),r)}}function s(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 a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t.links);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.hasOwnProperty("rel")&&a.hasOwnProperty("href"))switch(a.rel){case"first":n.linkFirst=a.href;break;case"prev":n.linkPrev=a.href;break;case"next":n.linkNext=a.href;break;case"last":n.linkLast=a.href}}}catch(e){o.e(e)}finally{o.f()}}t.hasOwnProperty("totalAvailableResults")&&(n.resultsTotal=t.totalAvailableResults)}return n}}],n&&a(t.prototype,n),r&&a(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 f(){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 d=/^(?:[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&&d.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},v=function(e,t,n){var r=(e=e||{}).random||(e.rng||f)();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),$=n.n(k),P=n(548),T={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return T[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===T.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(T);const E=T;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 F(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,D(r.key),r)}}function D(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 I=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&&F(e.prototype,null),t&&F(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function A(e){return A="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},A(e)}function C(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"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(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()}}}])&&C(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function U(e){return U="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},U(e)}function M(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return(t=J(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(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,J(r.key),r)}}function J(e){var t=function(e){if("object"!=U(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=U(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==U(t)?t:t+""}var L=new WeakSet,W=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,L),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 _(_(_({},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 E?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(!I.validateMaxLength(this.name,128))return new R("name","does not satisfy required maxLength constraint: 128");if(!I.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=_({},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&&N(t.prototype,n),r&&N(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function B(e){return B="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},B(e)}function H(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 z(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?z(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return(t=X(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,X(r.key),r)}}function X(e){var t=function(e){if("object"!=B(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==B(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")}W.prototype.name=void 0,W.prototype.value=!1,W.prototype.$reserved=void 0,W.prototype.$objectType=void 0,W.prototype.$unknownFields=void 0;var Y=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,Y),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(Y,this,ee).call(this,this.getMap(),!1)}:{}:void 0!==this.getMap()&&null!==this.getMap()?{map:Q(Y,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 E?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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return H(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)?H(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===B(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=se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(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,se(r.key),r)}}function se(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,fe).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,fe).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 E?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(!I.validateMaxLength(this.name,128))return new R("name","does not satisfy required maxLength constraint: 128");if(!I.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,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=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("value")&&null!==t.value&&void 0!==t.value)if(Array.isArray(t.value))if(0===t.value.length)s.setValue([]);else{for(i=[],a=(n=t.value)[0].hasOwnProperty("$objectType")?n[0].$objectType:ne(n[0]),o=0;o<n.length;o++)switch(a){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 "+a+" in data"}s.setValue(i)}else switch(a=t.value.hasOwnProperty("$objectType")?t.value.$objectType:ne(t.value)){case"string":case"boolean":case"number":s.setValue(t.value);break;case"object":s.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+a+" in data"}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!u)for(var l in s.$unknownFields=oe({},t.$unknownFields),t)Object.keys(s).includes(l)||Object.keys(s).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(s.$unknownFields[l]=t[l])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ae(t.prototype,n),r&&ae(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function fe(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"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 de={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(de).find((function(t){return de[t]===e}));return null==t?de.$UNKNOWN:de[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case de.$UNKNOWN:case de.$REDACTED:case de.INFO:case de.WARNING:case de.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(de);const pe=de;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 E?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 $e(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){Pe(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 Pe(e,t,n){return(t=Ee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(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,Ee(r.key),r)}}function Ee(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,Fe=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 $e($e($e({},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 E?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=$e({},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&&Te(t.prototype,n),r&&Te(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function De(e){return De="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},De(e)}function Ie(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 Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){Ce(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ce(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"!=De(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=De(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==De(t)?t:t+""}Fe.prototype.href=void 0,Fe.prototype.rel=void 0,Fe.prototype.$reserved=void 0,Fe.prototype.$objectType=void 0,Fe.prototype.$unknownFields=void 0;var Ue,Me=new WeakSet,_e=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,Me),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 Ae(Ae(Ae(Ae(Ae(Ae({},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 E?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(!I.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(!I.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(!I.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(!I.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,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(i=[],n=t.flags,o=0;o<n.length;o++)r=W.constructFromObject(n[o],void 0),i.push(r);a.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=Fe.constructFromObject(n[o],void 0),i.push(r);a.setLinks(i)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&a.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);a.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);a.setExtraInfo(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=Ae({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{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 Ve(){Ve=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)),Ne(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&&Ne(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 a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=Be(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Ve.apply(this,arguments)}function Ne(e,t){return Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ne(e,t)}function Je(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 Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){We(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function We(e,t,n){return(t=Ke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Be(e){return Be="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},Be(e)}function He(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 ze(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)?ze(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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function ze(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,Ke(r.key),r)}}function Ke(e){var t=function(e){if("object"!=Be(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Be(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Be(t)?t:t+""}function Ge(e,t,n){Xe(e,t),t.set(e,n)}function Xe(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 Ye(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")}_e.prototype.flags=void 0,_e.prototype.links=void 0,_e.prototype.totalAvailableResults=void 0,_e.prototype.messages=void 0,_e.prototype.extraInfo=void 0,_e.prototype.$reserved=void 0,_e.prototype.$objectType=void 0,_e.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,at=new WeakMap,st=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),Xe(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,at,void 0),Ge(this,st,void 0),Ye(st,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={},Ye(ot,this,3e4),Ye(it,this,3e4),Ye(at,this,108e5),this.readTimeout=Qe(it,this),this.connectTimeout=Qe(ot,this),this.cache=!0,Ye(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,Ye(nt,this,null),this.username=null,this.password=null,Ye(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}),Ye(rt,this,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=j().createWriteStream(e,{flags:"a"})),Ye(nt,this,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&Ye(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),Ye(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=He(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,a,s,u,l,c,f,d){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,a)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==a["NTNX-Request-Id"]&&void 0!==a["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-lifecycle-js-client/4.0.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=a.hasOwnProperty("Content-Type")?a["Content-Type"]:Ze(ut,this,ft).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(st,this).INFO,null,"Request URL :",r,y),Ze(ut,this,Ot).call(this,Qe(st,this).DEBUG,Ze(ut,this,$t),"Request Headers :",void 0===h.header?"":h.header),"application/x-www-form-urlencoded"===w)h.send(Ze(ut,this,pt).call(this,s));else if("multipart/form-data"==w){var O=Ze(ut,this,pt).call(this,s);for(var k in O)O.hasOwnProperty(k)&&(Ze(ut,this,dt).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(st,this).INFO,null,"Piping octet-stream request"),"function"==typeof u.pipe)u.pipe(h);else{var $;try{$=n(965)}catch(e){Ze(ut,this,Ot).call(this,Qe(st,this).ERROR,null,"Error fetching steam/web")}u instanceof $.ReadableStream?u.pipeTo(new $.WritableStream({write:function(e){h.write(e)},close:function(){Ze(ut,this,Ot).call(this,Qe(st,this).INFO,null,"READABLE STREAM CLOSED")},abort:function(e){Ze(ut,this,Ot).call(this,Qe(st,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(st,p).DEBUG,null,"Caught the following error :",e),n(e)})).on("response",(function(r){Ze(ut,p,Pt).call(p,r,e,i,d,t,n)}))}))}u&&h.send(u)}"Blob"==typeof d?h.responseType("blob"):"String"===d&&h.responseType("string"),Ze(ut,this,wt).call(this,h),Ze(ut,this,Ot).call(this,Qe(st,this).DEBUG,null,"Request Body :",void 0===h._data?"":h._data);var P=a.hasOwnProperty("Accept")&&null!=a.Accept?a.Accept:f.join(", "),T=["application/octet-stream","application/pdf","application/zip"];return P&&h.accept(P),new Promise((function(o,a){h.buffer(!1).redirects(0).retry(p.maxRetryAttempts,p.retryInterval,[]).on("error",(function(e){Ze(ut,p,Ot).call(p,Qe(st,p).DEBUG,null,"Caught the following error :",e)})).end((function(s,u){if(s)Ze(ut,p,Ot).call(p,Qe(st,p).DEBUG,null,"Caught error during the request!"),Ze(ut,p,Ot).call(p,Qe(st,p).ERROR,null,s),null!==s.response&&void 0!==s.response?s.data=Ze(ut,p,vt).call(p,s.response,d):s.data=Ze(ut,p,ht).call(p,s),a(s);else{Ze(ut,p,Ot).call(p,Qe(st,p).INFO,null,"Response Status :",u.status),Ze(ut,p,Ot).call(p,Qe(st,p).DEBUG,Ze(ut,p,$t),"Response Headers :",u.headers);var l="";if(u.headers.hasOwnProperty("content-type")&&(l=u.headers["content-type"]),T.some((function(e){return l.includes(e)})))if(g){var c;try{c=n(965)}catch(e){Ze(ut,p,Ot).call(p,Qe(st,p).ERROR,null,"Error fetching steam/web")}if(p.downloadDestination instanceof c.WritableStream){var f=p.downloadDestination.getWriter();try{u.on("data",(function(e){f.write(e)}))}catch(e){Ze(ut,p,Ot).call(p,Qe(st,p).ERROR,null,"Issue while downloading file",e)}u.on("end",(function(){Ze(ut,p,Ot).call(p,Qe(st,p).INFO,null,"Finished streaming response"),f.close();var e=Ze(ut,p,vt).call(p,u,d);o({data:e,response:u})})).on("error",(function(e){Ze(ut,p,Ot).call(p,Qe(st,p).ERROR,null,"Caught the following error :",e),e.data=Ze(ut,p,ht).call(p,e),a(e)}))}else{var y="Incompatible downloadDestination for Browser Environment, must be WritableStream";Ze(ut,p,Ot).call(p,Qe(st,p).ERROR,null,y),a(y)}}else{var v=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt",b=j().createWriteStream(v);Ze(ut,p,Tt).call(p,u,b,v,o,a,d)}else if(302==u.status){var m=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt",w=p;Ze(ut,p,Ot).call(p,Qe(st,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(st,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(st,w).INFO,null,"Received response after redirection :",e.status),Ze(ut,w,Tt).call(w,e,k,m,o,a,d)}))}else Ze(ut,p,Pt).call(p,u,e,i,d,o,a)}}))}))}}],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,"\\$&"),a=e.match(new RegExp("".concat(i,"=([0-9]+)")));a&&(o=a[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"===Be(n)){var o,i;for(var a in n)if(n.hasOwnProperty(a)){o=a,i=n[a];break}var s={};for(var a in t)if(t.hasOwnProperty(a)){var u=e.convertToType(a,o),l=e.convertToType(t[a],i);s[u]=l}return s}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 ft(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 dt(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 P.Blob&&e instanceof P.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,dt).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(st,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(st,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(st,n).DEBUG,null,"oauth2 applied to request");break;default:throw Ze(ut,n,Ot).call(n,Qe(st,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 P.Blob([e.text],{type:e.headers["content-type"]});var n=new W;n.name="hasError",n.value=!1;var r=[n],o=new _e;return o.flags=r,i.metadata=o,i}var i;return(null==(i=e.body)||"object"===Be(i)&&void 0===i.length&&!Object.keys(i).length)&&(i=e.text),Ue.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(at,this)&&(e=Qe(at,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=He(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))}Ye(tt,this,t),Ze(ut,this,Ot).call(this,Qe(st,this).DEBUG,null,"Retained cookie :",t)}else Ye(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"===Be(e)&&"key"in e&&"value"in e&&"symbol"===Be(e.value)||(e=Qe(st,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(st,this).DEBUG}function kt(){var e=Date.now(),t=(new Date).getTimezoneOffset();return new Date(e-60*t*1e3).toISOString().slice(0,23)}function $t(e){if("object"!==Be(e))return e;var t="\n";return e&&Object.keys(e).forEach((function(n){t+=n+"=["+e[n]+"]\n"})),"\n"===t?e:t}function Pt(e,t,n,r,o,i){try{var a=Ze(ut,this,vt).call(this,e,r);Ze(ut,this,Ot).call(this,Qe(st,this).INFO,null,"Response Status :",e.status),Ze(ut,this,Ot).call(this,Qe(st,this).DEBUG,Ze(ut,this,$t),"Response Headers :",e.headers),Ze(ut,this,mt).call(this,e||{}),Ze(ut,this,Ot).call(this,Qe(st,this).DEBUG,null,"Response Body :",a),204==e.status&&null==a?o({data:a,response:e}):e.ok&&null!=a?(this.addEtagToReservedMap(e,a),Ze(ut,this,bt).call(this,a,t,n),o({data:a,response:e})):(Ze(ut,this,Ot).call(this,Qe(st,this).ERROR,null,a),i(Le(Le({},e.error),{},{data:a})))}catch(e){Ze(ut,this,Ot).call(this,Qe(st,this).DEBUG,null,"Caught error while processing response!"),Ze(ut,this,Ot).call(this,Qe(st,this).ERROR,null,e),e.data=Ze(ut,this,ht).call(this,e),i(e)}}function Tt(e,t,n,r,o,i){var a=this;Ze(ut,this,Ot).call(this,Qe(st,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(st,this).ERROR,null,"Issue while downloading file",e)}var s=new i,u="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){var l=e.headers["content-disposition"].match(Ve(/.*filename="(.*)".*/,{filename:1})),c=$().parse(l.groups.filename);u=this.downloadDestination+"/"+c.name+"_"+Date.now()+c.ext,s.data={path:$().parse(u),$objectType:"Path"};var f=new W;f.name="hasError",f.value=!1;var d=[f],p=new _e;p.flags=d,s.metadata=p}e.on("end",(function(){Ze(ut,a,Ot).call(a,Qe(st,a).INFO,null,"Finished streaming response"),0!==u.length?(Ze(ut,a,Ot).call(a,Qe(st,a).INFO,null,"Content-Disposition header found [",u,"] is final filename"),t.close(),j().renameSync(n,u),r({data:s,response:e})):(Ze(ut,a,Ot).call(a,Qe(st,a).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),r({data:s,response:e}))})),e.on("error",(function(e){Ze(ut,a,Ot).call(a,Qe(st,a).ERROR,null,"Caught the following error :",e),error.data=Ze(ut,a,ht).call(a,error),o(e)}))}function Et(e){return Et="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},Et(e)}function St(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 Ft(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 Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(n),!0).forEach((function(t){It(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function It(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"!=Et(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Et(t)?t:t+""}function xt(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=lt,lt.instance=new lt;var Rt=new WeakSet,Ut=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,Rt),this.$objectType="lifecycle.v4.error.AppMessage",this.$reserved={$fv:"v4.r0"},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 Dt(Dt(Dt(Dt(Dt(Dt(Dt({},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:xt(Rt,this,Mt).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:xt(Rt,this,Mt).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 E?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=Dt({},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 Mt(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return St(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)?St(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Et(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 _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)}function Vt(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 Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach((function(t){Jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jt(e,t,n){return(t=Wt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lt(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,Wt(r.key),r)}}function Wt(e){var t=function(e){if("object"!=_t(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_t(t)?t:t+""}Ut.prototype.message=void 0,Ut.prototype.severity=void 0,Ut.prototype.code=void 0,Ut.prototype.locale="en_US",Ut.prototype.errorGroup=void 0,Ut.prototype.argumentsMap=void 0,Ut.prototype.$reserved=void 0,Ut.prototype.$objectType=void 0,Ut.prototype.$unknownFields=void 0;var Bt=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,Bt),this.$objectType="lifecycle.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r0"},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 Nt(Nt(Nt(Nt({},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 E?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=Nt({},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&&Lt(t.prototype,n),r&&Lt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function zt(e){return zt="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},zt(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 Kt(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 Xt(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"!=zt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zt(t)?t:t+""}function Yt(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")}Ht.prototype.location=void 0,Ht.prototype.message=void 0,Ht.prototype.attributePath=void 0,Ht.prototype.$reserved=void 0,Ht.prototype.$objectType=void 0,Ht.prototype.$unknownFields=void 0;var Zt=new WeakSet,en=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,Zt),this.$objectType="lifecycle.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r0"},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 Kt(Kt(Kt(Kt(Kt(Kt({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Yt(Zt,this,tn).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 E?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,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&a.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&a.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&a.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&a.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=Ht.constructFromObject(n[o],void 0),i.push(r);a.setValidationErrorMessages(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=Kt({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Xt(t.prototype,n),r&&Xt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function tn(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function nn(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 rn(e){return rn="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},rn(e)}function on(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 an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?on(Object(n),!0).forEach((function(t){sn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sn(e,t,n){return(t=ln(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function un(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,ln(r.key),r)}}function ln(e){var t=function(e){if("object"!=rn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rn(t)?t: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")}en.prototype.timestamp=void 0,en.prototype.statusCode=void 0,en.prototype.error=void 0,en.prototype.path=void 0,en.prototype.validationErrorMessages=void 0,en.prototype.$reserved=void 0,en.prototype.$objectType=void 0,en.prototype.$unknownFields=void 0;var fn=new WeakSet,dn=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,fn),this.$objectType="lifecycle.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r0"},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 an(an({},!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})):cn(fn,this,pn).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})):cn(fn,this,pn).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 E?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,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)s.setError([]);else{for(i=[],a=(n=t.error)[0].hasOwnProperty("$objectType")?n[0].$objectType:rn(n[0]),o=0;o<n.length;o++){if("lifecycle.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";r=Ut.constructFromObject(n[o],void 0),i.push(r)}s.setError(i)}else{if("lifecycle.v4.error.SchemaValidationError"!==(a=t.error.hasOwnProperty("$objectType")?t.error.$objectType:rn(t.error)))throw"Unknown datatype "+a+" in data";s.setError(en.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!u)for(var l in s.$unknownFields=an({},t.$unknownFields),t)Object.keys(s).includes(l)||Object.keys(s).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(s.$unknownFields[l]=t[l])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&un(t.prototype,n),r&&un(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function pn(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return nn(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)?nn(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===rn(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 yn(e){return yn="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},yn(e)}function hn(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 vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(n),!0).forEach((function(t){bn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bn(e,t,n){return(t=mn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gn(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,mn(r.key),r)}}function mn(e){var t=function(e){if("object"!=yn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yn(t)?t:t+""}dn.prototype.error=void 0,dn.prototype.$reserved=void 0,dn.prototype.$objectType=void 0,dn.prototype.$unknownFields=void 0;var wn=new WeakSet,On=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,wn),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 vn(vn({},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 E?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(!I.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=vn({},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&&gn(t.prototype,n),r&&gn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 $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 Pn(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){Tn(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 Tn(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 En(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 Fn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fn=function(){return!!e})()}function Dn(e){return Dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dn(e)}function In(e,t){return In=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},In(e,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")}On.prototype.extId=void 0,On.prototype.$reserved=void 0,On.prototype.$objectType=void 0,On.prototype.$unknownFields=void 0;var Cn=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=Dn(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,Fn()?Reflect.construct(t,n||[],Dn(e).constructor):t.apply(e,n))}(this,t),Cn),e.$objectType="lifecycle.v4.resources.DeleteBundleByIdApiResponse",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&&In(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 Pn(Pn(Pn({},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})):An(Cn,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})):An(Cn,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 E?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(_e.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(On.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=Pn({},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&&En(n.prototype,r),o&&En(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"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 Un(e){return Un="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},Un(e)}function Mn(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?Mn(Object(n),!0).forEach((function(t){Vn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vn(e,t,n){return(t=Jn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nn(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,Jn(r.key),r)}}function Jn(e){var t=function(e){if("object"!=Un(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Un(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Un(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 Ln=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,Ln),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?_n(_n({},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 E?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(!I.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=_n({},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&&Nn(t.prototype,n),r&&Nn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Bn(e){return Bn="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},Bn(e)}function Hn(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 zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){qn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(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 Kn(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"!=Bn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bn(t)?t:t+""}function Xn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xn=function(){return!!e})()}function Qn(e){return Qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qn(e)}function Yn(e,t){return Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yn(e,t)}Wn.prototype.tenantId=void 0,Wn.prototype.$reserved=void 0,Wn.prototype.$objectType=void 0,Wn.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"==Bn(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,Xn()?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&&Yn(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?zn(zn(zn(zn({},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 E?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(!I.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===E.update&&!I.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(!I.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,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Wn.constructFromObject(e,a,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&a.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=Fe.constructFromObject(n[o],void 0),i.push(r);a.setLinks(i)}if(!s)for(var u in a.$unknownFields=zn({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Kn(n.prototype,r),o&&Kn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Wn);function tr(e){return tr="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},tr(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 rr(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){or(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 or(e,t,n){return(t=ar(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ir(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,ar(r.key),r)}}function ar(e){var t=function(e){if("object"!=tr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tr(t)?t:t+""}er.prototype.extId=void 0,er.prototype.links=void 0,Wn.prototype.tenantId=void 0;var sr=new WeakSet,ur=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,sr),this.hexDigest=t,this.$objectType="lifecycle.v4.common.LcmMd5Sum",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getHexDigest",value:function(){return this.hexDigest}},{key:"setHexDigest",value:function(e){this.hexDigest=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 rr(rr({},void 0!==this.getHexDigest()&&null!==this.getHexDigest()?{hexDigest:this.getHexDigest()}:{}),{},{$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 E?r=["hexDigest"]: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("hexDigest"===t){if(void 0===this.hexDigest||null===this.hexDigest)return new R("hexDigest","undefined or null");if(!I.validatePattern(this.hexDigest,/^[a-f0-9]{32}$/))return new R("hexDigest","does not satisfy required pattern: /^[a-f0-9]{32}$/")}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("hexDigest")&&null!==t.hexDigest&&void 0!==t.hexDigest&&n.setHexDigest(t.hexDigest),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=rr({},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&&ir(t.prototype,n),r&&ir(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function lr(e){return lr="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},lr(e)}function cr(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 fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach((function(t){dr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dr(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 pr(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"!=lr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lr(t)?t:t+""}ur.prototype.hexDigest=void 0,ur.prototype.$reserved=void 0,ur.prototype.$objectType=void 0,ur.prototype.$unknownFields=void 0;var hr=new WeakSet,vr=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,hr),this.hexDigest=t,this.$objectType="lifecycle.v4.common.LcmSha256Sum",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getHexDigest",value:function(){return this.hexDigest}},{key:"setHexDigest",value:function(e){this.hexDigest=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 fr(fr({},void 0!==this.getHexDigest()&&null!==this.getHexDigest()?{hexDigest:this.getHexDigest()}:{}),{},{$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 E?r=["hexDigest"]: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("hexDigest"===t){if(void 0===this.hexDigest||null===this.hexDigest)return new R("hexDigest","undefined or null");if(!I.validatePattern(this.hexDigest,/^([a-fA-F0-9]{64})$/))return new R("hexDigest","does not satisfy required pattern: /^([a-fA-F0-9]{64})$/")}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("hexDigest")&&null!==t.hexDigest&&void 0!==t.hexDigest&&n.setHexDigest(t.hexDigest),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=fr({},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&&pr(t.prototype,n),r&&pr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();vr.prototype.hexDigest=void 0,vr.prototype.$reserved=void 0,vr.prototype.$objectType=void 0,vr.prototype.$unknownFields=void 0;var br={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SOFTWARE:"SOFTWARE",FIRMWARE:"FIRMWARE",PRODUCT_META:"PRODUCT_META",FRAMEWORK:"FRAMEWORK",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(br).find((function(t){return br[t]===e}));return null==t?br.$UNKNOWN:br[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case br.$UNKNOWN:case br.$REDACTED:case br.SOFTWARE:case br.FIRMWARE:case br.PRODUCT_META:case br.FRAMEWORK:return;default:throw new Error("Invalid : must be BundleType.{ $UNKNOWN|$REDACTED|SOFTWARE|FIRMWARE|PRODUCT_META|FRAMEWORK }")}}};Object.freeze(br);const gr=br;var mr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NUTANIX:"NUTANIX",THIRD_PARTY:"THIRD_PARTY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(mr).find((function(t){return mr[t]===e}));return null==t?mr.$UNKNOWN:mr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case mr.$UNKNOWN:case mr.$REDACTED:case mr.NUTANIX:case mr.THIRD_PARTY:return;default:throw new Error("Invalid : must be BundleVendor.{ $UNKNOWN|$REDACTED|NUTANIX|THIRD_PARTY }")}}};Object.freeze(mr);const wr=mr;var Or={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RECOMMENDED:"RECOMMENDED",CRITICAL:"CRITICAL",LATEST:"LATEST",DEPRECATED:"DEPRECATED",EMERGENCY:"EMERGENCY",AVAILABLE:"AVAILABLE",LTS:"LTS",STS:"STS",ESTS:"ESTS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Or).find((function(t){return Or[t]===e}));return null==t?Or.$UNKNOWN:Or[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Or.$UNKNOWN:case Or.$REDACTED:case Or.RECOMMENDED:case Or.CRITICAL:case Or.LATEST:case Or.DEPRECATED:case Or.EMERGENCY:case Or.AVAILABLE:case Or.LTS:case Or.STS:case Or.ESTS:return;default:throw new Error("Invalid : must be AvailableVersionStatus.{ $UNKNOWN|$REDACTED|RECOMMENDED|CRITICAL|LATEST|DEPRECATED|EMERGENCY|AVAILABLE|LTS|STS|ESTS }")}}};Object.freeze(Or);const jr=Or;var kr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SOFTWARE:"SOFTWARE",FIRMWARE:"FIRMWARE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(kr).find((function(t){return kr[t]===e}));return null==t?kr.$UNKNOWN:kr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case kr.$UNKNOWN:case kr.$REDACTED:case kr.SOFTWARE:case kr.FIRMWARE:return;default:throw new Error("Invalid : must be EntityType.{ $UNKNOWN|$REDACTED|SOFTWARE|FIRMWARE }")}}};Object.freeze(kr);const $r=kr;function Pr(e){return Pr="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},Pr(e)}function Tr(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 Er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(n),!0).forEach((function(t){Sr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sr(e,t,n){return(t=Dr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fr(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,Dr(r.key),r)}}function Dr(e){var t=function(e){if("object"!=Pr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pr(t)?t:t+""}function Ir(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ir=function(){return!!e})()}function Ar(e){return Ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ar(e)}function Cr(e,t){return Cr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cr(e,t)}var xr=new WeakSet,Rr=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=Ar(t),function(e,t){if(t&&("object"==Pr(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,Ir()?Reflect.construct(t,n||[],Ar(e).constructor):t.apply(e,n))}(this,t),xr),e.$objectType="lifecycle.v4.common.EntityBaseModel",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&&Cr(e,t)}(t,e),n=t,r=[{key:"getEntityClass",value:function(){return this.entityClass}},{key:"setEntityClass",value:function(e){this.entityClass=e}},{key:"getEntityModel",value:function(){return this.entityModel}},{key:"setEntityModel",value:function(e){this.entityModel=e}},{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"getEntityVersion",value:function(){return this.entityVersion}},{key:"setEntityVersion",value:function(e){this.entityVersion=e}},{key:"getHardwareFamily",value:function(){return this.hardwareFamily}},{key:"setHardwareFamily",value:function(e){this.hardwareFamily=e}},{key:"toJson",value:function(e){return Er(!1===e?Er(Er(Er(Er(Er(Er(Er(Er({},void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),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()}:{}):Er(Er(Er(Er(Er({},void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),{},{$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 E?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("entityClass"===t){if(void 0===this.entityClass||null===this.entityClass)return new R("entityClass","undefined or null");if(!I.validateMaxLength(this.entityClass,256))return new R("entityClass","does not satisfy required maxLength constraint: 256");if(!I.validateMinLength(this.entityClass,1))return new R("entityClass","does not satisfy required minLength constraint: 1")}if("entityModel"===t){if(void 0===this.entityModel||null===this.entityModel)return new R("entityModel","undefined or null");if(!I.validateMaxLength(this.entityModel,256))return new R("entityModel","does not satisfy required maxLength constraint: 256");if(!I.validateMinLength(this.entityModel,1))return new R("entityModel","does not satisfy required minLength constraint: 1")}if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new R("entityType","undefined or null");if("entityVersion"===t){if(void 0===this.entityVersion||null===this.entityVersion)return new R("entityVersion","undefined or null");if(!I.validateMaxLength(this.entityVersion,128))return new R("entityVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.entityVersion,1))return new R("entityVersion","does not satisfy required minLength constraint: 1")}if("hardwareFamily"===t){if(void 0===this.hardwareFamily||null===this.hardwareFamily)return new R("hardwareFamily","undefined or null");if(!I.validateMaxLength(this.hardwareFamily,256))return new R("hardwareFamily","does not satisfy required maxLength constraint: 256");if(!I.validateMinLength(this.hardwareFamily,1))return new R("hardwareFamily","does not satisfy required minLength constraint: 1")}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("entityClass")&&null!==e.entityClass&&void 0!==e.entityClass&&n.setEntityClass(e.entityClass),e.hasOwnProperty("entityModel")&&null!==e.entityModel&&void 0!==e.entityModel&&n.setEntityModel(e.entityModel),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&n.setEntityType($r.constructFromObject(e.entityType)),e.hasOwnProperty("entityVersion")&&null!==e.entityVersion&&void 0!==e.entityVersion&&n.setEntityVersion(e.entityVersion),e.hasOwnProperty("hardwareFamily")&&null!==e.hardwareFamily&&void 0!==e.hardwareFamily&&n.setHardwareFamily(e.hardwareFamily),!r))for(var o in n.$unknownFields=Er({},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&&Fr(n.prototype,r),o&&Fr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);Rr.prototype.entityClass=void 0,Rr.prototype.entityModel=void 0,Rr.prototype.entityType=void 0,Rr.prototype.entityVersion=void 0,Rr.prototype.hardwareFamily=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Wn.prototype.tenantId=void 0;var Ur={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SHASUM:"SHASUM",HEX_MD5:"HEX_MD5",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ur).find((function(t){return Ur[t]===e}));return null==t?Ur.$UNKNOWN:Ur[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ur.$UNKNOWN:case Ur.$REDACTED:case Ur.SHASUM:case Ur.HEX_MD5:return;default:throw new Error("Invalid : must be CheckSumType.{ $UNKNOWN|$REDACTED|SHASUM|HEX_MD5 }")}}};Object.freeze(Ur);const Mr=Ur;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)}function Vr(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 Nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(n),!0).forEach((function(t){Jr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jr(e,t,n){return(t=Wr(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,Wr(r.key),r)}}function Wr(e){var t=function(e){if("object"!=_r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_r(t)?t:t+""}var Br=new WeakSet,Hr=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.sizeBytes=t,this.checksumType=n,this.checksum=r,this.$objectType="lifecycle.v4.resources.ImageFile",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getFileLocationId",value:function(){return this.fileLocationId}},{key:"setFileLocationId",value:function(e){this.fileLocationId=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getSizeBytes",value:function(){return this.sizeBytes}},{key:"setSizeBytes",value:function(e){this.sizeBytes=e}},{key:"getFilePath",value:function(){return this.filePath}},{key:"setFilePath",value:function(e){this.filePath=e}},{key:"getChecksumType",value:function(){return this.checksumType}},{key:"setChecksumType",value:function(e){this.checksumType=e}},{key:"getChecksum",value:function(){return this.checksum}},{key:"setChecksum",value:function(e){this.checksum=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 Nr(Nr(Nr(!1===e?Nr(Nr(Nr(Nr({},void 0!==this.getFileLocationId()&&null!==this.getFileLocationId()?{fileLocationId:this.getFileLocationId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getSizeBytes()&&null!==this.getSizeBytes()?{sizeBytes:this.getSizeBytes()}:{}),void 0!==this.getFilePath()&&null!==this.getFilePath()?{filePath:this.getFilePath()}:{}):Nr(Nr({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getSizeBytes()&&null!==this.getSizeBytes()?{sizeBytes:this.getSizeBytes()}:{}),void 0!==this.getChecksumType()&&null!==this.getChecksumType()?{checksumType:this.getChecksumType()}:{}),void 0!==this.getChecksum()&&null!==this.getChecksum()?{checksum:this.getChecksum()}:{}),{},{$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 E?r=["sizeBytes","checksumType","checksum"]: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("fileLocationId"===t){if(void 0===this.fileLocationId||null===this.fileLocationId)return new R("fileLocationId","undefined or null");if(!I.validatePattern(this.fileLocationId,/^[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("fileLocationId","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("name"===t){if(void 0===this.name||null===this.name)return new R("name","undefined or null");if(!I.validateMaxLength(this.name,128))return new R("name","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.name,1))return new R("name","does not satisfy required minLength constraint: 1")}if("sizeBytes"===t&&(void 0===this.sizeBytes||null===this.sizeBytes))return new R("sizeBytes","undefined or null");if("filePath"===t){if(void 0===this.filePath||null===this.filePath)return new R("filePath","undefined or null");if(!I.validateMaxLength(this.filePath,256))return new R("filePath","does not satisfy required maxLength constraint: 256");if(!I.validateMinLength(this.filePath,1))return new R("filePath","does not satisfy required minLength constraint: 1")}if("checksumType"===t&&(void 0===this.checksumType||null===this.checksumType))return new R("checksumType","undefined or null");if("checksum"===t){if(void 0===this.checksum||null===this.checksum)return new R("checksum","undefined or null");if(!I.validateMaxLength(this.checksum,128))return new R("checksum","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.checksum,1))return new R("checksum","does not satisfy required minLength constraint: 1")}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("fileLocationId")&&null!==t.fileLocationId&&void 0!==t.fileLocationId&&n.setFileLocationId(t.fileLocationId),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("sizeBytes")&&null!==t.sizeBytes&&void 0!==t.sizeBytes&&n.setSizeBytes(t.sizeBytes),t.hasOwnProperty("filePath")&&null!==t.filePath&&void 0!==t.filePath&&n.setFilePath(t.filePath),t.hasOwnProperty("checksumType")&&null!==t.checksumType&&void 0!==t.checksumType&&n.setChecksumType(Mr.constructFromObject(t.checksumType)),t.hasOwnProperty("checksum")&&null!==t.checksum&&void 0!==t.checksum&&n.setChecksum(t.checksum),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=Nr({},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&&Lr(t.prototype,n),r&&Lr(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 qr(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 Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){Gr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gr(e,t,n){return(t=Qr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xr(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,Qr(r.key),r)}}function Qr(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 Yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yr=function(){return!!e})()}function Zr(e){return Zr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zr(e)}function eo(e,t){return eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eo(e,t)}Hr.prototype.fileLocationId=void 0,Hr.prototype.name=void 0,Hr.prototype.sizeBytes=void 0,Hr.prototype.filePath=void 0,Hr.prototype.checksumType=void 0,Hr.prototype.checksum=void 0,Hr.prototype.$reserved=void 0,Hr.prototype.$objectType=void 0,Hr.prototype.$unknownFields=void 0;var to=new WeakSet,no=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=Zr(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,Yr()?Reflect.construct(t,n||[],Zr(e).constructor):t.apply(e,n))}(this,t),to),n.specVersion=e,n.$objectType="lifecycle.v4.resources.Image",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&&eo(e,t)}(t,e),n=t,r=[{key:"getReleaseNotes",value:function(){return this.releaseNotes}},{key:"setReleaseNotes",value:function(e){this.releaseNotes=e}},{key:"getSpecVersion",value:function(){return this.specVersion}},{key:"setSpecVersion",value:function(e){this.specVersion=e}},{key:"getIsQualified",value:function(){return this.isQualified}},{key:"setIsQualified",value:function(e){this.isQualified=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getFiles",value:function(){return this.files}},{key:"setFiles",value:function(e){this.files=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"toJson",value:function(e){return Kr(!1===e?Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr({},void 0!==this.getReleaseNotes()&&null!==this.getReleaseNotes()?{releaseNotes:this.getReleaseNotes()}:{}),void 0!==this.getSpecVersion()&&null!==this.getSpecVersion()?{specVersion:this.getSpecVersion()}:{}),void 0!==this.getIsQualified()&&null!==this.getIsQualified()?{isQualified:this.getIsQualified()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getFiles()&&null!==this.getFiles()?{files:this.getFiles().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),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()}:{}):Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr({},void 0!==this.getReleaseNotes()&&null!==this.getReleaseNotes()?{releaseNotes:this.getReleaseNotes()}:{}),void 0!==this.getSpecVersion()&&null!==this.getSpecVersion()?{specVersion:this.getSpecVersion()}:{}),void 0!==this.getIsQualified()&&null!==this.getIsQualified()?{isQualified:this.getIsQualified()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),{},{$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 E?r=["specVersion"]: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("releaseNotes"===t){if(void 0===this.releaseNotes||null===this.releaseNotes)return new R("releaseNotes","undefined or null");if(!I.validateMaxLength(this.releaseNotes,1024))return new R("releaseNotes","does not satisfy required maxLength constraint: 1024")}if("specVersion"===t){if(void 0===this.specVersion||null===this.specVersion)return new R("specVersion","undefined or null");if(!I.validateMaxLength(this.specVersion,128))return new R("specVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.specVersion,1))return new R("specVersion","does not satisfy required minLength constraint: 1")}if("isQualified"===t&&(void 0===this.isQualified||null===this.isQualified))return new R("isQualified","undefined or null");if("status"===t&&(void 0===this.status||null===this.status))return new R("status","undefined or null");if("files"===t){if(void 0===this.files||null===this.files)return new R("files","undefined or null");if(!I.validateMaxItems(this.files,100))return new R("files","does not satisfy required maxItems constraint: 100")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!I.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,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Rr.constructFromObject(e,a,!0),e.hasOwnProperty("releaseNotes")&&null!==e.releaseNotes&&void 0!==e.releaseNotes&&a.setReleaseNotes(e.releaseNotes),e.hasOwnProperty("specVersion")&&null!==e.specVersion&&void 0!==e.specVersion&&a.setSpecVersion(e.specVersion),e.hasOwnProperty("isQualified")&&null!==e.isQualified&&void 0!==e.isQualified&&a.setIsQualified(e.isQualified),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&a.setStatus(jr.constructFromObject(e.status)),e.hasOwnProperty("files")&&null!==e.files&&void 0!==e.files){for(i=[],n=e.files,o=0;o<n.length;o++)r=Hr.constructFromObject(n[o],void 0),i.push(r);a.setFiles(i)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&a.setClusterExtId(e.clusterExtId),!s)for(var u in a.$unknownFields=Kr({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Xr(n.prototype,r),o&&Xr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Rr);function ro(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 oo(e){return oo="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},oo(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 ao(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){so(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 so(e,t,n){return(t=lo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uo(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,lo(r.key),r)}}function lo(e){var t=function(e){if("object"!=oo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oo(t)?t:t+""}function co(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(co=function(){return!!e})()}function fo(e){return fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fo(e)}function po(e,t){return po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},po(e,t)}function yo(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")}no.prototype.releaseNotes=void 0,no.prototype.specVersion=void 0,no.prototype.isQualified=!1,no.prototype.status=void 0,no.prototype.files=void 0,no.prototype.clusterExtId=void 0,Rr.prototype.entityClass=void 0,Rr.prototype.entityModel=void 0,Rr.prototype.entityType=void 0,Rr.prototype.entityVersion=void 0,Rr.prototype.hardwareFamily=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Wn.prototype.tenantId=void 0;var ho=new WeakSet,vo=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=fo(t),function(e,t){if(t&&("object"==oo(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,co()?Reflect.construct(t,n||[],fo(e).constructor):t.apply(e,n))}(this,t),ho),r.name=e,r.vendor=n,r.$objectType="lifecycle.v4.resources.Bundle",r.$reserved={$fv:"v4.r0"},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&&po(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getSizeBytes",value:function(){return this.sizeBytes}},{key:"setSizeBytes",value:function(e){this.sizeBytes=e}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getVendor",value:function(){return this.vendor}},{key:"setVendor",value:function(e){this.vendor=e}},{key:"getImages",value:function(){return this.images}},{key:"setImages",value:function(e){this.images=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getChecksum",value:function(){return this.checksum}},{key:"setChecksum",value:function(e){this.checksum=e}},{key:"toJson",value:function(e){return ao(!1===e?ao(ao(ao(ao(ao(ao(ao(ao(ao(ao({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getSizeBytes()&&null!==this.getSizeBytes()?{sizeBytes:this.getSizeBytes()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{}),void 0!==this.getImages()&&null!==this.getImages()?{images:this.getImages().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getChecksum()&&null!==this.getChecksum()?{checksum:void 0!==this.getChecksum().toJson?this.getChecksum().toJson(!1):Array.isArray(this.getChecksum())?this.getChecksum().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):yo(ho,this,bo).call(this,this.getChecksum(),!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()}:{}):ao(ao(ao(ao(ao(ao(ao({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getSizeBytes()&&null!==this.getSizeBytes()?{sizeBytes:this.getSizeBytes()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{}),void 0!==this.getImages()&&null!==this.getImages()?{images:this.getImages().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getChecksum()&&null!==this.getChecksum()?{checksum:void 0!==this.getChecksum().toJson?this.getChecksum().toJson():Array.isArray(this.getChecksum())?this.getChecksum().map((function(e){return void 0!==e.toJson?e.toJson():e})):yo(ho,this,bo).call(this,this.getChecksum())}:{}),{},{$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 E?r=["name","vendor"]: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(!I.validateMaxLength(this.name,128))return new R("name","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.name,1))return new R("name","does not satisfy required minLength constraint: 1")}if("sizeBytes"===t&&(void 0===this.sizeBytes||null===this.sizeBytes))return new R("sizeBytes","undefined or null");if("type"===t&&(void 0===this.type||null===this.type))return new R("type","undefined or null");if("vendor"===t&&(void 0===this.vendor||null===this.vendor))return new R("vendor","undefined or null");if("images"===t){if(void 0===this.images||null===this.images)return new R("images","undefined or null");if(!I.validateMaxItems(this.images,100))return new R("images","does not satisfy required maxItems constraint: 100")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!I.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"checksum"!==t||void 0!==this.checksum&&null!==this.checksum?new R(t,"no such property exists"):new R("checksum","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=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("sizeBytes")&&null!==e.sizeBytes&&void 0!==e.sizeBytes&&s.setSizeBytes(e.sizeBytes),e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type&&s.setType(gr.constructFromObject(e.type)),e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&s.setVendor(wr.constructFromObject(e.vendor)),e.hasOwnProperty("images")&&null!==e.images&&void 0!==e.images){for(i=[],n=e.images,o=0;o<n.length;o++)r=no.constructFromObject(n[o],void 0),i.push(r);s.setImages(i)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&s.setClusterExtId(e.clusterExtId),e.hasOwnProperty("checksum")&&null!==e.checksum&&void 0!==e.checksum)switch(a=e.checksum.hasOwnProperty("$objectType")?e.checksum.$objectType:oo(e.checksum)){case"lifecycle.v4.common.LcmSha256Sum":s.setChecksum(vr.constructFromObject(e.checksum,void 0));break;case"lifecycle.v4.common.LcmMd5Sum":s.setChecksum(ur.constructFromObject(e.checksum,void 0));break;default:throw"Unknown datatype "+a+" in data"}if(!u)for(var l in s.$unknownFields=ao({},e.$unknownFields),e)Object.keys(s).includes(l)||Object.keys(s).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(s.$unknownFields[l]=e[l])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&uo(n.prototype,r),o&&uo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function bo(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ro(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)?ro(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===oo(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 go(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 wo(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 Oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach((function(t){jo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jo(e,t,n){return(t=$o(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,$o(r.key),r)}}function $o(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 Po(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Po=function(){return!!e})()}function To(e){return To=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},To(e)}function Eo(e,t){return Eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Eo(e,t)}function So(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")}vo.prototype.name=void 0,vo.prototype.sizeBytes=void 0,vo.prototype.type=void 0,vo.prototype.vendor=void 0,vo.prototype.images=void 0,vo.prototype.clusterExtId=void 0,vo.prototype.checksum=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Wn.prototype.tenantId=void 0;var Fo=new WeakSet,Do=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=To(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,Po()?Reflect.construct(t,n||[],To(e).constructor):t.apply(e,n))}(this,t),Fo),e.$objectType="lifecycle.v4.resources.ListBundlesApiResponse",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&&Eo(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 Oo(Oo(Oo({},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})):So(Fo,this,Io).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})):So(Fo,this,Io).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 E?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,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:mo(n[0]),o=0;o<n.length;o++){if("lifecycle.v4.resources.Bundle"!==a)throw"Unknown list of type "+a+" in data";r=vo.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("lifecycle.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:mo(e.data)))throw"Unknown datatype "+a+" in data";s.setData(dn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=Oo({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{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 Io(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return go(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)?go(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"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 Ao(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 Co(e){return Co="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},Co(e)}function xo(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 Ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xo(Object(n),!0).forEach((function(t){Uo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uo(e,t,n){return(t=_o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mo(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,_o(r.key),r)}}function _o(e){var t=function(e){if("object"!=Co(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Co(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Co(t)?t:t+""}function Vo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vo=function(){return!!e})()}function No(e){return No=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},No(e)}function Jo(e,t){return Jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jo(e,t)}function Lo(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")}Do.prototype.metadata=void 0,Do.prototype.data=void 0,Do.prototype.$reserved=void 0,Do.prototype.$objectType=void 0,Do.prototype.$unknownFields=void 0;var Wo=new WeakSet,Bo=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=No(t),function(e,t){if(t&&("object"==Co(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,Vo()?Reflect.construct(t,n||[],No(e).constructor):t.apply(e,n))}(this,t),Wo),e.$objectType="lifecycle.v4.resources.CreateBundleApiResponse",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&&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 Ro(Ro(Ro({},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})):Lo(Wo,this,Ho).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})):Lo(Wo,this,Ho).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 E?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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Co(e.data)){case"prism.v4.config.TaskReference":r.setData(On.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=Ro({},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&&Mo(n.prototype,r),o&&Mo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ho(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ao(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)?Ao(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Co(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 zo(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 qo(e){return qo="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},qo(e)}function Ko(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 Go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ko(Object(n),!0).forEach((function(t){Xo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xo(e,t,n){return(t=Yo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qo(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,Yo(r.key),r)}}function Yo(e){var t=function(e){if("object"!=qo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qo(t)?t:t+""}function Zo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zo=function(){return!!e})()}function ei(e){return ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ei(e)}function ti(e,t){return ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ti(e,t)}function ni(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")}Bo.prototype.metadata=void 0,Bo.prototype.data=void 0,Bo.prototype.$reserved=void 0,Bo.prototype.$objectType=void 0,Bo.prototype.$unknownFields=void 0;var ri=new WeakSet,oi=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=ei(t),function(e,t){if(t&&("object"==qo(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||[],ei(e).constructor):t.apply(e,n))}(this,t),ri),e.$objectType="lifecycle.v4.resources.GetBundleByIdApiResponse",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&&ti(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 Go(Go(Go({},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})):ni(ri,this,ii).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})):ni(ri,this,ii).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 E?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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:qo(e.data)){case"lifecycle.v4.resources.Bundle":r.setData(vo.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=Go({},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&&Qo(n.prototype,r),o&&Qo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ii(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return zo(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)?zo(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===qo(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 ai(e){return ai="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},ai(e)}function si(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 ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?si(Object(n),!0).forEach((function(t){li(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):si(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function li(e,t,n){return(t=fi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ci(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,fi(r.key),r)}}function fi(e){var t=function(e){if("object"!=ai(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ai(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ai(t)?t:t+""}function di(e,t){return e.get(pi(e,t))}function pi(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")}oi.prototype.metadata=void 0,oi.prototype.data=void 0,oi.prototype.$reserved=void 0,oi.prototype.$objectType=void 0,oi.prototype.$unknownFields=void 0;var yi=new WeakMap,hi=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,yi,void 0),this.apiClient=t||lt.instance,n=yi,r=new Set,n.set(pi(n,this),r),di(yi,this).add("authorization"),di(yi,this).add("cookie"),di(yi,this).add("host"),di(yi,this).add("user-agent")},t=[{key:"createBundle",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 vo&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createBundle");var o={};Object.keys(r).forEach((function(e){di(yi,n).has(e.toLowerCase())||(o[e]=r[e])}));var i=ui({},o);lt.addEtagReferenceToHeader(e,i);var a=Bo;return this.apiClient.callApi("/api/lifecycle/v4.0/resources/bundles","POST",{},{},i,{},t,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],a)}},{key:"deleteBundleById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteBundleById");var r={extId:e},o={};Object.keys(n).forEach((function(e){di(yi,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=ui({},o),a=xn;return this.apiClient.callApi("/api/lifecycle/v4.0/resources/bundles/{extId}","DELETE",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"getBundleById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getBundleById");var r={extId:e},o={};Object.keys(n).forEach((function(e){di(yi,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=ui({},o),a=oi;return this.apiClient.callApi("/api/lifecycle/v4.0/resources/bundles/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"listBundles",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=ui(ui(ui(ui(ui({},(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){di(yi,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=ui({},o),a=Do;return this.apiClient.callApi("/api/lifecycle/v4.0/resources/bundles","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&ci(e.prototype,t),n&&ci(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),vi={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CONNECTED_SITE:"CONNECTED_SITE",DARKSITE_WEB_SERVER:"DARKSITE_WEB_SERVER",DARKSITE_DIRECT_UPLOAD:"DARKSITE_DIRECT_UPLOAD",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(vi).find((function(t){return vi[t]===e}));return null==t?vi.$UNKNOWN:vi[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case vi.$UNKNOWN:case vi.$REDACTED:case vi.CONNECTED_SITE:case vi.DARKSITE_WEB_SERVER:case vi.DARKSITE_DIRECT_UPLOAD:return;default:throw new Error("Invalid : must be ConnectivityType.{ $UNKNOWN|$REDACTED|CONNECTED_SITE|DARKSITE_WEB_SERVER|DARKSITE_DIRECT_UPLOAD }")}}};Object.freeze(vi);const bi=vi;function gi(e){return gi="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},gi(e)}function mi(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 wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mi(Object(n),!0).forEach((function(t){Oi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oi(e,t,n){return(t=ki(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,ki(r.key),r)}}function ki(e){var t=function(e){if("object"!=gi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gi(t)?t:t+""}function $i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($i=function(){return!!e})()}function Pi(e){return Pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pi(e)}function Ti(e,t){return Ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ti(e,t)}var Ei=new WeakSet,Si=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=Pi(t),function(e,t){if(t&&("object"==gi(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,$i()?Reflect.construct(t,n||[],Pi(e).constructor):t.apply(e,n))}(this,t),Ei),e.$objectType="lifecycle.v4.resources.Config",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&&Ti(e,t)}(t,e),n=t,r=[{key:"getUrl",value:function(){return this.url}},{key:"setUrl",value:function(e){this.url=e}},{key:"getIsAutoInventoryEnabled",value:function(){return this.isAutoInventoryEnabled}},{key:"setIsAutoInventoryEnabled",value:function(e){this.isAutoInventoryEnabled=e}},{key:"getAutoInventorySchedule",value:function(){return this.autoInventorySchedule}},{key:"setAutoInventorySchedule",value:function(e){this.autoInventorySchedule=e}},{key:"getVersion",value:function(){return this.version}},{key:"setVersion",value:function(e){this.version=e}},{key:"getDisplayVersion",value:function(){return this.displayVersion}},{key:"setDisplayVersion",value:function(e){this.displayVersion=e}},{key:"getConnectivityType",value:function(){return this.connectivityType}},{key:"setConnectivityType",value:function(e){this.connectivityType=e}},{key:"getIsHttpsEnabled",value:function(){return this.isHttpsEnabled}},{key:"setIsHttpsEnabled",value:function(e){this.isHttpsEnabled=e}},{key:"getSupportedSoftwareEntities",value:function(){return this.supportedSoftwareEntities}},{key:"setSupportedSoftwareEntities",value:function(e){this.supportedSoftwareEntities=e}},{key:"getDeprecatedSoftwareEntities",value:function(){return this.deprecatedSoftwareEntities}},{key:"setDeprecatedSoftwareEntities",value:function(e){this.deprecatedSoftwareEntities=e}},{key:"getIsFrameworkBundleUploaded",value:function(){return this.isFrameworkBundleUploaded}},{key:"setIsFrameworkBundleUploaded",value:function(e){this.isFrameworkBundleUploaded=e}},{key:"getHasModuleAutoUpgradeEnabled",value:function(){return this.hasModuleAutoUpgradeEnabled}},{key:"setHasModuleAutoUpgradeEnabled",value:function(e){this.hasModuleAutoUpgradeEnabled=e}},{key:"toJson",value:function(e){return wi(!1===e?wi(wi(wi(wi(wi(wi(wi(wi(wi(wi(wi(wi(wi(wi({},void 0!==this.getUrl()&&null!==this.getUrl()?{url:this.getUrl()}:{}),void 0!==this.getIsAutoInventoryEnabled()&&null!==this.getIsAutoInventoryEnabled()?{isAutoInventoryEnabled:this.getIsAutoInventoryEnabled()}:{}),void 0!==this.getAutoInventorySchedule()&&null!==this.getAutoInventorySchedule()?{autoInventorySchedule:this.getAutoInventorySchedule()}:{}),void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getDisplayVersion()&&null!==this.getDisplayVersion()?{displayVersion:this.getDisplayVersion()}:{}),void 0!==this.getConnectivityType()&&null!==this.getConnectivityType()?{connectivityType:this.getConnectivityType()}:{}),void 0!==this.getIsHttpsEnabled()&&null!==this.getIsHttpsEnabled()?{isHttpsEnabled:this.getIsHttpsEnabled()}:{}),void 0!==this.getSupportedSoftwareEntities()&&null!==this.getSupportedSoftwareEntities()?{supportedSoftwareEntities:this.getSupportedSoftwareEntities()}:{}),void 0!==this.getDeprecatedSoftwareEntities()&&null!==this.getDeprecatedSoftwareEntities()?{deprecatedSoftwareEntities:this.getDeprecatedSoftwareEntities()}:{}),void 0!==this.getIsFrameworkBundleUploaded()&&null!==this.getIsFrameworkBundleUploaded()?{isFrameworkBundleUploaded:this.getIsFrameworkBundleUploaded()}:{}),void 0!==this.getHasModuleAutoUpgradeEnabled()&&null!==this.getHasModuleAutoUpgradeEnabled()?{hasModuleAutoUpgradeEnabled:this.getHasModuleAutoUpgradeEnabled()}:{}),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()}:{}):wi(wi(wi(wi(wi(wi({},void 0!==this.getUrl()&&null!==this.getUrl()?{url:this.getUrl()}:{}),void 0!==this.getIsAutoInventoryEnabled()&&null!==this.getIsAutoInventoryEnabled()?{isAutoInventoryEnabled:this.getIsAutoInventoryEnabled()}:{}),void 0!==this.getAutoInventorySchedule()&&null!==this.getAutoInventorySchedule()?{autoInventorySchedule:this.getAutoInventorySchedule()}:{}),void 0!==this.getConnectivityType()&&null!==this.getConnectivityType()?{connectivityType:this.getConnectivityType()}:{}),void 0!==this.getIsHttpsEnabled()&&null!==this.getIsHttpsEnabled()?{isHttpsEnabled:this.getIsHttpsEnabled()}:{}),void 0!==this.getHasModuleAutoUpgradeEnabled()&&null!==this.getHasModuleAutoUpgradeEnabled()?{hasModuleAutoUpgradeEnabled:this.getHasModuleAutoUpgradeEnabled()}:{}),{},{$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 E?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("url"===t){if(void 0===this.url||null===this.url)return new R("url","undefined or null");if(!I.validatePattern(this.url,/^((http[s]?|nfs):\/)?\/?([^:\/\\s]*)((\/\\w+)*(:[0-9]+)*?\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/))return new R("url","does not satisfy required pattern: /^((http[s]?|nfs):/)?/?([^:/\\s]*)((/\\w+)*(:[0-9]+)*?/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/")}if("isAutoInventoryEnabled"===t&&(void 0===this.isAutoInventoryEnabled||null===this.isAutoInventoryEnabled))return new R("isAutoInventoryEnabled","undefined or null");if("autoInventorySchedule"===t){if(void 0===this.autoInventorySchedule||null===this.autoInventorySchedule)return new R("autoInventorySchedule","undefined or null");if(!I.validatePattern(this.autoInventorySchedule,/^([01]\\d|2[0-3]):([0-5]\\d)$/))return new R("autoInventorySchedule","does not satisfy required pattern: /^([01]\\d|2[0-3]):([0-5]\\d)$/")}if("version"===t){if(void 0===this.version||null===this.version)return new R("version","undefined or null");if(!I.validateMaxLength(this.version,128))return new R("version","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.version,1))return new R("version","does not satisfy required minLength constraint: 1")}if("displayVersion"===t){if(void 0===this.displayVersion||null===this.displayVersion)return new R("displayVersion","undefined or null");if(!I.validateMaxLength(this.displayVersion,128))return new R("displayVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.displayVersion,1))return new R("displayVersion","does not satisfy required minLength constraint: 1")}if("connectivityType"===t&&(void 0===this.connectivityType||null===this.connectivityType))return new R("connectivityType","undefined or null");if("isHttpsEnabled"===t&&(void 0===this.isHttpsEnabled||null===this.isHttpsEnabled))return new R("isHttpsEnabled","undefined or null");if("supportedSoftwareEntities"===t){if(void 0===this.supportedSoftwareEntities||null===this.supportedSoftwareEntities)return new R("supportedSoftwareEntities","undefined or null");if(!I.validateMaxItems(this.supportedSoftwareEntities,100))return new R("supportedSoftwareEntities","does not satisfy required maxItems constraint: 100")}if("deprecatedSoftwareEntities"===t){if(void 0===this.deprecatedSoftwareEntities||null===this.deprecatedSoftwareEntities)return new R("deprecatedSoftwareEntities","undefined or null");if(!I.validateMaxItems(this.deprecatedSoftwareEntities,100))return new R("deprecatedSoftwareEntities","does not satisfy required maxItems constraint: 100")}return"isFrameworkBundleUploaded"!==t||void 0!==this.isFrameworkBundleUploaded&&null!==this.isFrameworkBundleUploaded?"hasModuleAutoUpgradeEnabled"!==t||void 0!==this.hasModuleAutoUpgradeEnabled&&null!==this.hasModuleAutoUpgradeEnabled?new R(t,"no such property exists"):new R("hasModuleAutoUpgradeEnabled","undefined or null"):new R("isFrameworkBundleUploaded","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(i=i||new t,er.constructFromObject(e,i,!0),e.hasOwnProperty("url")&&null!==e.url&&void 0!==e.url&&i.setUrl(e.url),e.hasOwnProperty("isAutoInventoryEnabled")&&null!==e.isAutoInventoryEnabled&&void 0!==e.isAutoInventoryEnabled&&i.setIsAutoInventoryEnabled(e.isAutoInventoryEnabled),e.hasOwnProperty("autoInventorySchedule")&&null!==e.autoInventorySchedule&&void 0!==e.autoInventorySchedule&&i.setAutoInventorySchedule(e.autoInventorySchedule),e.hasOwnProperty("version")&&null!==e.version&&void 0!==e.version&&i.setVersion(e.version),e.hasOwnProperty("displayVersion")&&null!==e.displayVersion&&void 0!==e.displayVersion&&i.setDisplayVersion(e.displayVersion),e.hasOwnProperty("connectivityType")&&null!==e.connectivityType&&void 0!==e.connectivityType&&i.setConnectivityType(bi.constructFromObject(e.connectivityType)),e.hasOwnProperty("isHttpsEnabled")&&null!==e.isHttpsEnabled&&void 0!==e.isHttpsEnabled&&i.setIsHttpsEnabled(e.isHttpsEnabled),e.hasOwnProperty("supportedSoftwareEntities")&&null!==e.supportedSoftwareEntities&&void 0!==e.supportedSoftwareEntities){for(o=[],n=e.supportedSoftwareEntities,r=0;r<n.length;r++)o.push(n[r]);i.setSupportedSoftwareEntities(o)}if(e.hasOwnProperty("deprecatedSoftwareEntities")&&null!==e.deprecatedSoftwareEntities&&void 0!==e.deprecatedSoftwareEntities){for(o=[],n=e.deprecatedSoftwareEntities,r=0;r<n.length;r++)o.push(n[r]);i.setDeprecatedSoftwareEntities(o)}if(e.hasOwnProperty("isFrameworkBundleUploaded")&&null!==e.isFrameworkBundleUploaded&&void 0!==e.isFrameworkBundleUploaded&&i.setIsFrameworkBundleUploaded(e.isFrameworkBundleUploaded),e.hasOwnProperty("hasModuleAutoUpgradeEnabled")&&null!==e.hasModuleAutoUpgradeEnabled&&void 0!==e.hasModuleAutoUpgradeEnabled&&i.setHasModuleAutoUpgradeEnabled(e.hasModuleAutoUpgradeEnabled),!a)for(var s in i.$unknownFields=wi({},e.$unknownFields),e)Object.keys(i).includes(s)||Object.keys(i).includes(this.snakeToCamel(s))||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(i.$unknownFields[s]=e[s])}return i}},{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}(er);function Fi(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 Di(e){return Di="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},Di(e)}function Ii(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?Ii(Object(n),!0).forEach((function(t){Ci(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ci(e,t,n){return(t=Ri(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xi(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,Ri(r.key),r)}}function Ri(e){var t=function(e){if("object"!=Di(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Di(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Di(t)?t:t+""}function Ui(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ui=function(){return!!e})()}function Mi(e){return Mi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mi(e)}function _i(e,t){return _i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_i(e,t)}function Vi(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")}Si.prototype.url=void 0,Si.prototype.isAutoInventoryEnabled=!1,Si.prototype.autoInventorySchedule=void 0,Si.prototype.version=void 0,Si.prototype.displayVersion=void 0,Si.prototype.connectivityType=void 0,Si.prototype.isHttpsEnabled=!1,Si.prototype.supportedSoftwareEntities=void 0,Si.prototype.deprecatedSoftwareEntities=void 0,Si.prototype.isFrameworkBundleUploaded=!1,Si.prototype.hasModuleAutoUpgradeEnabled=!1,er.prototype.extId=void 0,er.prototype.links=void 0,Wn.prototype.tenantId=void 0;var Ni=new WeakSet,Ji=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=Mi(t),function(e,t){if(t&&("object"==Di(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||[],Mi(e).constructor):t.apply(e,n))}(this,t),Ni),e.$objectType="lifecycle.v4.resources.GetConfigApiResponse",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&&_i(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 Ai(Ai(Ai({},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})):Vi(Ni,this,Li).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})):Vi(Ni,this,Li).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 E?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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Di(e.data)){case"lifecycle.v4.resources.Config":r.setData(Si.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=Ai({},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&&xi(n.prototype,r),o&&xi(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Li(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Fi(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)?Fi(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Di(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 Wi(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 Bi(e){return Bi="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},Bi(e)}function Hi(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 zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hi(Object(n),!0).forEach((function(t){qi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qi(e,t,n){return(t=Gi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ki(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,Gi(r.key),r)}}function Gi(e){var t=function(e){if("object"!=Bi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bi(t)?t:t+""}function Xi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xi=function(){return!!e})()}function Qi(e){return Qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qi(e)}function Yi(e,t){return Yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yi(e,t)}function Zi(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")}Ji.prototype.metadata=void 0,Ji.prototype.data=void 0,Ji.prototype.$reserved=void 0,Ji.prototype.$objectType=void 0,Ji.prototype.$unknownFields=void 0;var ea=new WeakSet,ta=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=Qi(t),function(e,t){if(t&&("object"==Bi(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,Xi()?Reflect.construct(t,n||[],Qi(e).constructor):t.apply(e,n))}(this,t),ea),e.$objectType="lifecycle.v4.resources.UpdateConfigApiResponse",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&&Yi(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 zi(zi(zi({},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})):Zi(ea,this,na).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})):Zi(ea,this,na).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 E?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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Bi(e.data)){case"prism.v4.config.TaskReference":r.setData(On.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=zi({},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&&Ki(n.prototype,r),o&&Ki(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function na(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Wi(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)?Wi(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Bi(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 ra(e){return ra="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},ra(e)}function oa(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 ia(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(n),!0).forEach((function(t){aa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aa(e,t,n){return(t=ua(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sa(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,ua(r.key),r)}}function ua(e){var t=function(e){if("object"!=ra(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ra(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ra(t)?t:t+""}function la(e,t){return e.get(ca(e,t))}function ca(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")}ta.prototype.metadata=void 0,ta.prototype.data=void 0,ta.prototype.$reserved=void 0,ta.prototype.$objectType=void 0,ta.prototype.$unknownFields=void 0;var fa=new WeakMap,da=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,fa,void 0),this.apiClient=t||lt.instance,n=fa,r=new Set,n.set(ca(n,this),r),la(fa,this).add("authorization"),la(fa,this).add("cookie"),la(fa,this).add("host"),la(fa,this).add("user-agent")},t=[{key:"getConfig",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};e=e||{};var r={};Object.keys(n).forEach((function(e){la(fa,t).has(e.toLowerCase())||(r[e]=n[e])}));var o=ia({"X-Cluster-Id":e.xClusterId},r),i=Ji;return this.apiClient.callApi("/api/lifecycle/v4.0/resources/config","GET",{},{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],i)}},{key:"updateConfig",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;if(null==(o=e instanceof Si&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling updateConfig");var i={};Object.keys(r).forEach((function(e){la(fa,n).has(e.toLowerCase())||(i[e]=r[e])}));var a=ia({"X-Cluster-Id":t.xClusterId},i);lt.addEtagReferenceToHeader(e,a);var s=ta;return this.apiClient.callApi("/api/lifecycle/v4.0/resources/config","PUT",{},{},a,{},o,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&sa(e.prototype,t),n&&sa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function pa(e){return pa="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},pa(e)}function ya(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 ha(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(n),!0).forEach((function(t){va(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ya(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function va(e,t,n){return(t=ga(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ba(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,ga(r.key),r)}}function ga(e){var t=function(e){if("object"!=pa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pa(t)?t:t+""}var ma=new WeakSet,wa=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,ma),this.entityUuid=t,this.toVersion=n,this.$objectType="lifecycle.v4.common.EntityUpdateSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getEntityUuid",value:function(){return this.entityUuid}},{key:"setEntityUuid",value:function(e){this.entityUuid=e}},{key:"getToVersion",value:function(){return this.toVersion}},{key:"setToVersion",value:function(e){this.toVersion=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 ha(ha(ha({},void 0!==this.getEntityUuid()&&null!==this.getEntityUuid()?{entityUuid:this.getEntityUuid()}:{}),void 0!==this.getToVersion()&&null!==this.getToVersion()?{toVersion:this.getToVersion()}:{}),{},{$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 E?r=["entityUuid","toVersion"]: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("entityUuid"===t){if(void 0===this.entityUuid||null===this.entityUuid)return new R("entityUuid","undefined or null");if(!I.validatePattern(this.entityUuid,/^[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("entityUuid","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("toVersion"===t){if(void 0===this.toVersion||null===this.toVersion)return new R("toVersion","undefined or null");if(!I.validateMaxLength(this.toVersion,128))return new R("toVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.toVersion,1))return new R("toVersion","does not satisfy required minLength constraint: 1")}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("entityUuid")&&null!==t.entityUuid&&void 0!==t.entityUuid&&n.setEntityUuid(t.entityUuid),t.hasOwnProperty("toVersion")&&null!==t.toVersion&&void 0!==t.toVersion&&n.setToVersion(t.toVersion),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=ha({},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&&ba(t.prototype,n),r&&ba(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,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){$a(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 $a(e,t,n){return(t=Ta(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pa(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,Ta(r.key),r)}}function Ta(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+""}wa.prototype.entityUuid=void 0,wa.prototype.toVersion=void 0,wa.prototype.$reserved=void 0,wa.prototype.$objectType=void 0,wa.prototype.$unknownFields=void 0;var Ea=new WeakSet,Sa=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,Ea),this.entityUpdateSpecs=t,this.$objectType="lifecycle.v4.common.PreloadSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getEntityUpdateSpecs",value:function(){return this.entityUpdateSpecs}},{key:"setEntityUpdateSpecs",value:function(e){this.entityUpdateSpecs=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({},void 0!==this.getEntityUpdateSpecs()&&null!==this.getEntityUpdateSpecs()?{entityUpdateSpecs:this.getEntityUpdateSpecs().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 E?r=["entityUpdateSpecs"]: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("entityUpdateSpecs"===t){if(void 0===this.entityUpdateSpecs||null===this.entityUpdateSpecs)return new R("entityUpdateSpecs","undefined or null");if(!I.validateMaxItems(this.entityUpdateSpecs,2048))return new R("entityUpdateSpecs","does not satisfy required maxItems constraint: 2048")}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,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("entityUpdateSpecs")&&null!==t.entityUpdateSpecs&&void 0!==t.entityUpdateSpecs){for(i=[],n=t.entityUpdateSpecs,o=0;o<n.length;o++)r=wa.constructFromObject(n[o],void 0),i.push(r);a.setEntityUpdateSpecs(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=ka({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Pa(t.prototype,n),r&&Pa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Sa.prototype.entityUpdateSpecs=void 0,Sa.prototype.$reserved=void 0,Sa.prototype.$objectType=void 0,Sa.prototype.$unknownFields=void 0;var Fa={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NODE:"NODE",CLUSTER:"CLUSTER",PC:"PC",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Fa).find((function(t){return Fa[t]===e}));return null==t?Fa.$UNKNOWN:Fa[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Fa.$UNKNOWN:case Fa.$REDACTED:case Fa.NODE:case Fa.CLUSTER:case Fa.PC:return;default:throw new Error("Invalid : must be LocationType.{ $UNKNOWN|$REDACTED|NODE|CLUSTER|PC }")}}};Object.freeze(Fa);const Da=Fa;function Ia(e){return Ia="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},Ia(e)}function Aa(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?Aa(Object(n),!0).forEach((function(t){xa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xa(e,t,n){return(t=Ua(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ra(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,Ua(r.key),r)}}function Ua(e){var t=function(e){if("object"!=Ia(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ia(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ia(t)?t:t+""}var Ma=new WeakSet,_a=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,Ma),this.$objectType="lifecycle.v4.common.LocationInfo",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getUuid",value:function(){return this.uuid}},{key:"setUuid",value:function(e){this.uuid=e}},{key:"getLocationType",value:function(){return this.locationType}},{key:"setLocationType",value:function(e){this.locationType=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 Ca(Ca(!1===e?Ca({},void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{}):{},void 0!==this.getLocationType()&&null!==this.getLocationType()?{locationType:this.getLocationType()}:{}),{},{$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 E?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("uuid"===t){if(void 0===this.uuid||null===this.uuid)return new R("uuid","undefined or null");if(!I.validatePattern(this.uuid,/^[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("uuid","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"locationType"!==t||void 0!==this.locationType&&null!==this.locationType?"$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("locationType","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("uuid")&&null!==t.uuid&&void 0!==t.uuid&&n.setUuid(t.uuid),t.hasOwnProperty("locationType")&&null!==t.locationType&&void 0!==t.locationType&&n.setLocationType(Da.constructFromObject(t.locationType)),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=Ca({},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&&Ra(t.prototype,n),r&&Ra(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Va(e){return Va="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},Va(e)}function Na(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 Ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Na(Object(n),!0).forEach((function(t){La(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function La(e,t,n){return(t=Ba(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wa(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,Ba(r.key),r)}}function Ba(e){var t=function(e){if("object"!=Va(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Va(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Va(t)?t:t+""}function Ha(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ha=function(){return!!e})()}function za(e){return za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},za(e)}function qa(e,t){return qa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qa(e,t)}_a.prototype.uuid=void 0,_a.prototype.locationType=void 0,_a.prototype.$reserved=void 0,_a.prototype.$objectType=void 0,_a.prototype.$unknownFields=void 0;var Ka=new WeakSet,Ga=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=za(t),function(e,t){if(t&&("object"==Va(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,Ha()?Reflect.construct(t,n||[],za(e).constructor):t.apply(e,n))}(this,t),Ka),e.$objectType="lifecycle.v4.resources.DependentEntity",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&&qa(e,t)}(t,e),n=t,r=[{key:"getDependentVersions",value:function(){return this.dependentVersions}},{key:"setDependentVersions",value:function(e){this.dependentVersions=e}},{key:"toJson",value:function(e){return Ja(!1===e?Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja({},void 0!==this.getDependentVersions()&&null!==this.getDependentVersions()?{dependentVersions:this.getDependentVersions().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),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()}:{}):Ja(Ja(Ja(Ja(Ja({},void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),{},{$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 E?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("dependentVersions"===t){if(void 0===this.dependentVersions||null===this.dependentVersions)return new R("dependentVersions","undefined or null");if(!I.validateMaxItems(this.dependentVersions,100))return new R("dependentVersions","does not satisfy required maxItems constraint: 100")}return new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Rr.constructFromObject(e,a,!0),e.hasOwnProperty("dependentVersions")&&null!==e.dependentVersions&&void 0!==e.dependentVersions){for(i=[],n=e.dependentVersions,o=0;o<n.length;o++)r=ce.constructFromObject(n[o],void 0),i.push(r);a.setDependentVersions(i)}if(!s)for(var u in a.$unknownFields=Ja({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Wa(n.prototype,r),o&&Wa(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Rr);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 Qa(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 Ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qa(Object(n),!0).forEach((function(t){Za(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Za(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"!=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+""}function ns(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")}Ga.prototype.dependentVersions=void 0,Rr.prototype.entityClass=void 0,Rr.prototype.entityModel=void 0,Rr.prototype.entityType=void 0,Rr.prototype.entityVersion=void 0,Rr.prototype.hardwareFamily=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Wn.prototype.tenantId=void 0;var rs=new WeakSet,os=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,rs),this.$objectType="lifecycle.v4.resources.AvailableVersion",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getVersion",value:function(){return this.version}},{key:"setVersion",value:function(e){this.version=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"getAvailableVersionUuid",value:function(){return this.availableVersionUuid}},{key:"setAvailableVersionUuid",value:function(e){this.availableVersionUuid=e}},{key:"getOrder",value:function(){return this.order}},{key:"setOrder",value:function(e){this.order=e}},{key:"getDisablementReason",value:function(){return this.disablementReason}},{key:"setDisablementReason",value:function(e){this.disablementReason=e}},{key:"getReleaseNotes",value:function(){return this.releaseNotes}},{key:"setReleaseNotes",value:function(e){this.releaseNotes=e}},{key:"getReleaseDate",value:function(){return this.releaseDate}},{key:"setReleaseDate",value:function(e){this.releaseDate=e}},{key:"getCustomMessage",value:function(){return this.customMessage}},{key:"setCustomMessage",value:function(e){this.customMessage=e}},{key:"getChildEntities",value:function(){return this.childEntities}},{key:"setChildEntities",value:function(e){this.childEntities=e}},{key:"getGroupUuid",value:function(){return this.groupUuid}},{key:"setGroupUuid",value:function(e){this.groupUuid=e}},{key:"getDependencies",value:function(){return this.dependencies}},{key:"setDependencies",value:function(e){this.dependencies=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 Ya(Ya(Ya(!1===e?Ya(Ya(Ya(Ya(Ya(Ya(Ya(Ya(Ya(Ya({},void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getAvailableVersionUuid()&&null!==this.getAvailableVersionUuid()?{availableVersionUuid:this.getAvailableVersionUuid()}:{}),void 0!==this.getOrder()&&null!==this.getOrder()?{order:this.getOrder()}:{}),void 0!==this.getDisablementReason()&&null!==this.getDisablementReason()?{disablementReason:this.getDisablementReason()}:{}),void 0!==this.getReleaseNotes()&&null!==this.getReleaseNotes()?{releaseNotes:this.getReleaseNotes()}:{}),void 0!==this.getReleaseDate()&&null!==this.getReleaseDate()?{releaseDate:ns(rs,this,is).call(this,this.getReleaseDate(),!0)}:{}),void 0!==this.getCustomMessage()&&null!==this.getCustomMessage()?{customMessage:this.getCustomMessage()}:{}),void 0!==this.getChildEntities()&&null!==this.getChildEntities()?{childEntities:this.getChildEntities()}:{}):Ya(Ya(Ya(Ya(Ya(Ya(Ya(Ya(Ya({},void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getAvailableVersionUuid()&&null!==this.getAvailableVersionUuid()?{availableVersionUuid:this.getAvailableVersionUuid()}:{}),void 0!==this.getOrder()&&null!==this.getOrder()?{order:this.getOrder()}:{}),void 0!==this.getDisablementReason()&&null!==this.getDisablementReason()?{disablementReason:this.getDisablementReason()}:{}),void 0!==this.getReleaseNotes()&&null!==this.getReleaseNotes()?{releaseNotes:this.getReleaseNotes()}:{}),void 0!==this.getReleaseDate()&&null!==this.getReleaseDate()?{releaseDate:ns(rs,this,is).call(this,this.getReleaseDate(),!0)}:{}),void 0!==this.getCustomMessage()&&null!==this.getCustomMessage()?{customMessage:this.getCustomMessage()}:{}),void 0!==this.getGroupUuid()&&null!==this.getGroupUuid()?{groupUuid:this.getGroupUuid()}:{}),void 0!==this.getDependencies()&&null!==this.getDependencies()?{dependencies:this.getDependencies().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 E?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("version"===t){if(void 0===this.version||null===this.version)return new R("version","undefined or null");if(!I.validateMaxLength(this.version,128))return new R("version","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.version,1))return new R("version","does not satisfy required minLength constraint: 1")}if("status"===t&&(void 0===this.status||null===this.status))return new R("status","undefined or null");if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new R("isEnabled","undefined or null");if("availableVersionUuid"===t){if(void 0===this.availableVersionUuid||null===this.availableVersionUuid)return new R("availableVersionUuid","undefined or null");if(!I.validatePattern(this.availableVersionUuid,/^[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("availableVersionUuid","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("order"===t){if(void 0===this.order||null===this.order)return new R("order","undefined or null");if(!I.validateMaximum(this.order,1e4))return new R("order","does not satisfy required maximum constraint: 10000");if(!I.validateMinimum(this.order,1))return new R("order","does not satisfy required minimum constraint: 1")}if("disablementReason"===t){if(void 0===this.disablementReason||null===this.disablementReason)return new R("disablementReason","undefined or null");if(!I.validateMaxLength(this.disablementReason,512))return new R("disablementReason","does not satisfy required maxLength constraint: 512");if(!I.validateMinLength(this.disablementReason,1))return new R("disablementReason","does not satisfy required minLength constraint: 1")}if("releaseNotes"===t){if(void 0===this.releaseNotes||null===this.releaseNotes)return new R("releaseNotes","undefined or null");if(!I.validateMaxLength(this.releaseNotes,1024))return new R("releaseNotes","does not satisfy required maxLength constraint: 1024");if(!I.validateMinLength(this.releaseNotes,1))return new R("releaseNotes","does not satisfy required minLength constraint: 1")}if("releaseDate"===t&&(void 0===this.releaseDate||null===this.releaseDate))return new R("releaseDate","undefined or null");if("customMessage"===t){if(void 0===this.customMessage||null===this.customMessage)return new R("customMessage","undefined or null");if(!I.validateMaxLength(this.customMessage,512))return new R("customMessage","does not satisfy required maxLength constraint: 512");if(!I.validateMinLength(this.customMessage,1))return new R("customMessage","does not satisfy required minLength constraint: 1")}if("childEntities"===t){if(void 0===this.childEntities||null===this.childEntities)return new R("childEntities","undefined or null");if(!I.validateMaxItems(this.childEntities,100))return new R("childEntities","does not satisfy required maxItems constraint: 100")}if("groupUuid"===t){if(void 0===this.groupUuid||null===this.groupUuid)return new R("groupUuid","undefined or null");if(!I.validatePattern(this.groupUuid,/^[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("groupUuid","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("dependencies"===t){if(void 0===this.dependencies||null===this.dependencies)return new R("dependencies","undefined or null");if(!I.validateMaxItems(this.dependencies,100))return new R("dependencies","does not satisfy required maxItems constraint: 100")}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,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("version")&&null!==t.version&&void 0!==t.version&&a.setVersion(t.version),t.hasOwnProperty("status")&&null!==t.status&&void 0!==t.status&&a.setStatus(jr.constructFromObject(t.status)),t.hasOwnProperty("isEnabled")&&null!==t.isEnabled&&void 0!==t.isEnabled&&a.setIsEnabled(t.isEnabled),t.hasOwnProperty("availableVersionUuid")&&null!==t.availableVersionUuid&&void 0!==t.availableVersionUuid&&a.setAvailableVersionUuid(t.availableVersionUuid),t.hasOwnProperty("order")&&null!==t.order&&void 0!==t.order&&a.setOrder(t.order),t.hasOwnProperty("disablementReason")&&null!==t.disablementReason&&void 0!==t.disablementReason&&a.setDisablementReason(t.disablementReason),t.hasOwnProperty("releaseNotes")&&null!==t.releaseNotes&&void 0!==t.releaseNotes&&a.setReleaseNotes(t.releaseNotes),t.hasOwnProperty("releaseDate")&&null!==t.releaseDate&&void 0!==t.releaseDate&&a.setReleaseDate(t.releaseDate),t.hasOwnProperty("customMessage")&&null!==t.customMessage&&void 0!==t.customMessage&&a.setCustomMessage(t.customMessage),t.hasOwnProperty("childEntities")&&null!==t.childEntities&&void 0!==t.childEntities){for(i=[],n=t.childEntities,o=0;o<n.length;o++)i.push(n[o]);a.setChildEntities(i)}if(t.hasOwnProperty("groupUuid")&&null!==t.groupUuid&&void 0!==t.groupUuid&&a.setGroupUuid(t.groupUuid),t.hasOwnProperty("dependencies")&&null!==t.dependencies&&void 0!==t.dependencies){for(i=[],n=t.dependencies,o=0;o<n.length;o++)r=Ga.constructFromObject(n[o],void 0),i.push(r);a.setDependencies(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=Ya({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&es(t.prototype,n),r&&es(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function is(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function as(e){return as="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},as(e)}function ss(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 us(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(n),!0).forEach((function(t){ls(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ls(e,t,n){return(t=fs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cs(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,fs(r.key),r)}}function fs(e){var t=function(e){if("object"!=as(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=as(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==as(t)?t:t+""}function ds(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ds=function(){return!!e})()}function ps(e){return ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ps(e)}function ys(e,t){return ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ys(e,t)}function hs(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")}os.prototype.version=void 0,os.prototype.status=void 0,os.prototype.isEnabled=!0,os.prototype.availableVersionUuid=void 0,os.prototype.order=void 0,os.prototype.disablementReason=void 0,os.prototype.releaseNotes=void 0,os.prototype.releaseDate=void 0,os.prototype.customMessage=void 0,os.prototype.childEntities=void 0,os.prototype.groupUuid=void 0,os.prototype.dependencies=void 0,os.prototype.$reserved=void 0,os.prototype.$objectType=void 0,os.prototype.$unknownFields=void 0;var vs=new WeakSet,bs=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=ps(t),function(e,t){if(t&&("object"==as(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||[],ps(e).constructor):t.apply(e,n))}(this,t),vs),e.$objectType="lifecycle.v4.resources.Entity",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&&ys(e,t)}(t,e),n=t,r=[{key:"getEntityDescription",value:function(){return this.entityDescription}},{key:"setEntityDescription",value:function(e){this.entityDescription=e}},{key:"getLocationInfo",value:function(){return this.locationInfo}},{key:"setLocationInfo",value:function(e){this.locationInfo=e}},{key:"getTargetVersion",value:function(){return this.targetVersion}},{key:"setTargetVersion",value:function(e){this.targetVersion=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"getDeviceId",value:function(){return this.deviceId}},{key:"setDeviceId",value:function(e){this.deviceId=e}},{key:"getGroupUuid",value:function(){return this.groupUuid}},{key:"setGroupUuid",value:function(e){this.groupUuid=e}},{key:"getEntityDetails",value:function(){return this.entityDetails}},{key:"setEntityDetails",value:function(e){this.entityDetails=e}},{key:"getChildEntities",value:function(){return this.childEntities}},{key:"setChildEntities",value:function(e){this.childEntities=e}},{key:"getAvailableVersions",value:function(){return this.availableVersions}},{key:"setAvailableVersions",value:function(e){this.availableVersions=e}},{key:"getSubEntities",value:function(){return this.subEntities}},{key:"setSubEntities",value:function(e){this.subEntities=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getHardwareVendor",value:function(){return this.hardwareVendor}},{key:"setHardwareVendor",value:function(e){this.hardwareVendor=e}},{key:"toJson",value:function(e){return us(!1===e?us(us(us(us(us(us(us(us(us(us(us(us(us(us(us(us(us(us(us(us({},void 0!==this.getEntityDescription()&&null!==this.getEntityDescription()?{entityDescription:this.getEntityDescription()}:{}),void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getTargetVersion()&&null!==this.getTargetVersion()?{targetVersion:this.getTargetVersion()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:hs(vs,this,gs).call(this,this.getLastUpdatedTime(),!1)}:{}),void 0!==this.getDeviceId()&&null!==this.getDeviceId()?{deviceId:this.getDeviceId()}:{}),void 0!==this.getGroupUuid()&&null!==this.getGroupUuid()?{groupUuid:this.getGroupUuid()}:{}),void 0!==this.getEntityDetails()&&null!==this.getEntityDetails()?{entityDetails:this.getEntityDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getChildEntities()&&null!==this.getChildEntities()?{childEntities:this.getChildEntities()}:{}),void 0!==this.getAvailableVersions()&&null!==this.getAvailableVersions()?{availableVersions:this.getAvailableVersions().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSubEntities()&&null!==this.getSubEntities()?{subEntities:this.getSubEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getHardwareVendor()&&null!==this.getHardwareVendor()?{hardwareVendor:this.getHardwareVendor()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),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()}:{}):us(us(us(us(us(us(us(us(us({},void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getSubEntities()&&null!==this.getSubEntities()?{subEntities:this.getSubEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getHardwareVendor()&&null!==this.getHardwareVendor()?{hardwareVendor:this.getHardwareVendor()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),{},{$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 E?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("entityDescription"===t){if(void 0===this.entityDescription||null===this.entityDescription)return new R("entityDescription","undefined or null");if(!I.validateMaxLength(this.entityDescription,256))return new R("entityDescription","does not satisfy required maxLength constraint: 256");if(!I.validateMinLength(this.entityDescription,1))return new R("entityDescription","does not satisfy required minLength constraint: 1")}if("locationInfo"===t&&(void 0===this.locationInfo||null===this.locationInfo))return new R("locationInfo","undefined or null");if("targetVersion"===t){if(void 0===this.targetVersion||null===this.targetVersion)return new R("targetVersion","undefined or null");if(!I.validateMaxLength(this.targetVersion,128))return new R("targetVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.targetVersion,1))return new R("targetVersion","does not satisfy required minLength constraint: 1")}if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new R("lastUpdatedTime","undefined or null");if("deviceId"===t){if(void 0===this.deviceId||null===this.deviceId)return new R("deviceId","undefined or null");if(!I.validateMaxLength(this.deviceId,128))return new R("deviceId","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.deviceId,1))return new R("deviceId","does not satisfy required minLength constraint: 1")}if("groupUuid"===t){if(void 0===this.groupUuid||null===this.groupUuid)return new R("groupUuid","undefined or null");if(!I.validatePattern(this.groupUuid,/^[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("groupUuid","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("entityDetails"===t){if(void 0===this.entityDetails||null===this.entityDetails)return new R("entityDetails","undefined or null");if(!I.validateMaxItems(this.entityDetails,100))return new R("entityDetails","does not satisfy required maxItems constraint: 100")}if("childEntities"===t){if(void 0===this.childEntities||null===this.childEntities)return new R("childEntities","undefined or null");if(!I.validateMaxItems(this.childEntities,100))return new R("childEntities","does not satisfy required maxItems constraint: 100")}if("availableVersions"===t){if(void 0===this.availableVersions||null===this.availableVersions)return new R("availableVersions","undefined or null");if(!I.validateMaxItems(this.availableVersions,100))return new R("availableVersions","does not satisfy required maxItems constraint: 100")}if("subEntities"===t){if(void 0===this.subEntities||null===this.subEntities)return new R("subEntities","undefined or null");if(!I.validateMaxItems(this.subEntities,100))return new R("subEntities","does not satisfy required maxItems constraint: 100")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!I.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("hardwareVendor"===t){if(void 0===this.hardwareVendor||null===this.hardwareVendor)return new R("hardwareVendor","undefined or null");if(!I.validateMaxLength(this.hardwareVendor,256))return new R("hardwareVendor","does not satisfy required maxLength constraint: 256");if(!I.validateMinLength(this.hardwareVendor,1))return new R("hardwareVendor","does not satisfy required minLength constraint: 1")}return new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Rr.constructFromObject(e,a,!0),e.hasOwnProperty("entityDescription")&&null!==e.entityDescription&&void 0!==e.entityDescription&&a.setEntityDescription(e.entityDescription),e.hasOwnProperty("locationInfo")&&null!==e.locationInfo&&void 0!==e.locationInfo&&a.setLocationInfo(_a.constructFromObject(e.locationInfo)),e.hasOwnProperty("targetVersion")&&null!==e.targetVersion&&void 0!==e.targetVersion&&a.setTargetVersion(e.targetVersion),e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&a.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("deviceId")&&null!==e.deviceId&&void 0!==e.deviceId&&a.setDeviceId(e.deviceId),e.hasOwnProperty("groupUuid")&&null!==e.groupUuid&&void 0!==e.groupUuid&&a.setGroupUuid(e.groupUuid),e.hasOwnProperty("entityDetails")&&null!==e.entityDetails&&void 0!==e.entityDetails){for(i=[],n=e.entityDetails,o=0;o<n.length;o++)r=ce.constructFromObject(n[o],void 0),i.push(r);a.setEntityDetails(i)}if(e.hasOwnProperty("childEntities")&&null!==e.childEntities&&void 0!==e.childEntities){for(i=[],n=e.childEntities,o=0;o<n.length;o++)i.push(n[o]);a.setChildEntities(i)}if(e.hasOwnProperty("availableVersions")&&null!==e.availableVersions&&void 0!==e.availableVersions){for(i=[],n=e.availableVersions,o=0;o<n.length;o++)r=os.constructFromObject(n[o],void 0),i.push(r);a.setAvailableVersions(i)}if(e.hasOwnProperty("subEntities")&&null!==e.subEntities&&void 0!==e.subEntities){for(i=[],n=e.subEntities,o=0;o<n.length;o++)r=Rr.constructFromObject(n[o],void 0),i.push(r);a.setSubEntities(i)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&a.setClusterExtId(e.clusterExtId),e.hasOwnProperty("hardwareVendor")&&null!==e.hardwareVendor&&void 0!==e.hardwareVendor&&a.setHardwareVendor(e.hardwareVendor),!s)for(var u in a.$unknownFields=us({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&cs(n.prototype,r),o&&cs(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Rr);function gs(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function ms(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 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=Ps(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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,Ps(r.key),r)}}function Ps(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+""}function Ts(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ts=function(){return!!e})()}function Es(e){return Es=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Es(e)}function Ss(e,t){return Ss=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ss(e,t)}function Fs(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")}bs.prototype.entityDescription=void 0,bs.prototype.locationInfo=void 0,bs.prototype.targetVersion=void 0,bs.prototype.lastUpdatedTime=void 0,bs.prototype.deviceId=void 0,bs.prototype.groupUuid=void 0,bs.prototype.entityDetails=void 0,bs.prototype.childEntities=void 0,bs.prototype.availableVersions=void 0,bs.prototype.subEntities=void 0,bs.prototype.clusterExtId=void 0,bs.prototype.hardwareVendor=void 0,Rr.prototype.entityClass=void 0,Rr.prototype.entityModel=void 0,Rr.prototype.entityType=void 0,Rr.prototype.entityVersion=void 0,Rr.prototype.hardwareFamily=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Wn.prototype.tenantId=void 0;var Ds=new WeakSet,Is=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=Es(t),function(e,t){if(t&&("object"==ws(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,Ts()?Reflect.construct(t,n||[],Es(e).constructor):t.apply(e,n))}(this,t),Ds),e.$objectType="lifecycle.v4.resources.GetEntityByIdApiResponse",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&&Ss(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 js(js(js({},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})):Fs(Ds,this,As).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})):Fs(Ds,this,As).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 E?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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ws(e.data)){case"lifecycle.v4.resources.Entity":r.setData(bs.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=js({},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&&$s(n.prototype,r),o&&$s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function As(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ms(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)?ms(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===ws(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 Cs(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 xs(e){return xs="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},xs(e)}function Rs(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 Us(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rs(Object(n),!0).forEach((function(t){Ms(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ms(e,t,n){return(t=Vs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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,Vs(r.key),r)}}function Vs(e){var t=function(e){if("object"!=xs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xs(t)?t:t+""}function Ns(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ns=function(){return!!e})()}function Js(e){return Js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Js(e)}function Ls(e,t){return Ls=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ls(e,t)}function Ws(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")}Is.prototype.metadata=void 0,Is.prototype.data=void 0,Is.prototype.$reserved=void 0,Is.prototype.$objectType=void 0,Is.prototype.$unknownFields=void 0;var Bs=new WeakSet,Hs=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=Js(t),function(e,t){if(t&&("object"==xs(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||[],Js(e).constructor):t.apply(e,n))}(this,t),Bs),e.$objectType="lifecycle.v4.operations.PreloadArtifactsApiResponse",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&&Ls(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 Us(Us(Us({},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})):Ws(Bs,this,zs).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})):Ws(Bs,this,zs).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 E?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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:xs(e.data)){case"prism.v4.config.TaskReference":r.setData(On.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=Us({},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&&_s(n.prototype,r),o&&_s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function zs(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Cs(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)?Cs(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===xs(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 qs(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 Ks(e){return Ks="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},Ks(e)}function Gs(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 Xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(n),!0).forEach((function(t){Qs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qs(e,t,n){return(t=Zs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ys(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,Zs(r.key),r)}}function Zs(e){var t=function(e){if("object"!=Ks(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ks(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ks(t)?t:t+""}function eu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eu=function(){return!!e})()}function tu(e){return tu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tu(e)}function nu(e,t){return nu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nu(e,t)}function ru(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")}Hs.prototype.metadata=void 0,Hs.prototype.data=void 0,Hs.prototype.$reserved=void 0,Hs.prototype.$objectType=void 0,Hs.prototype.$unknownFields=void 0;var ou=new WeakSet,iu=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=tu(t),function(e,t){if(t&&("object"==Ks(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,eu()?Reflect.construct(t,n||[],tu(e).constructor):t.apply(e,n))}(this,t),ou),e.$objectType="lifecycle.v4.resources.ListEntitiesApiResponse",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&&nu(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 Xs(Xs(Xs({},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})):ru(ou,this,au).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})):ru(ou,this,au).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 E?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,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Ks(n[0]),o=0;o<n.length;o++){if("lifecycle.v4.resources.Entity"!==a)throw"Unknown list of type "+a+" in data";r=bs.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("lifecycle.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ks(e.data)))throw"Unknown datatype "+a+" in data";s.setData(dn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=Xs({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ys(n.prototype,r),o&&Ys(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function au(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return qs(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)?qs(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Ks(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 su(e){return su="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},su(e)}function uu(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 lu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uu(Object(n),!0).forEach((function(t){cu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cu(e,t,n){return(t=du(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fu(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,du(r.key),r)}}function du(e){var t=function(e){if("object"!=su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==su(t)?t:t+""}function pu(e,t){return e.get(yu(e,t))}function yu(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")}iu.prototype.metadata=void 0,iu.prototype.data=void 0,iu.prototype.$reserved=void 0,iu.prototype.$objectType=void 0,iu.prototype.$unknownFields=void 0;var hu=new WeakMap,vu=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,hu,void 0),this.apiClient=t||lt.instance,n=hu,r=new Set,n.set(yu(n,this),r),pu(hu,this).add("authorization"),pu(hu,this).add("cookie"),pu(hu,this).add("host"),pu(hu,this).add("user-agent")},t=[{key:"getEntityById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getEntityById");var r={extId:e},o={};Object.keys(n).forEach((function(e){pu(hu,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=lu({},o),a=Is;return this.apiClient.callApi("/api/lifecycle/v4.0/resources/entities/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"listEntities",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=lu(lu(lu(lu(lu({},(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){pu(hu,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=lu({},o),a=iu;return this.apiClient.callApi("/api/lifecycle/v4.0/resources/entities","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"preloadArtifacts",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;if(null==(o=e instanceof Sa&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling preloadArtifacts");var i={};Object.keys(r).forEach((function(e){pu(hu,n).has(e.toLowerCase())||(i[e]=r[e])}));var a=lu({"X-Cluster-Id":t.xClusterId},i);lt.addEtagReferenceToHeader(e,a);var s=Hs;return this.apiClient.callApi("/api/lifecycle/v4.0/operations/$actions/preload-artifacts","POST",{},{},a,{},o,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&fu(e.prototype,t),n&&fu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function bu(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 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 $u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($u=function(){return!!e})()}function Pu(e){return Pu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pu(e)}function Tu(e,t){return Tu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tu(e,t)}function Eu(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 Su=new WeakSet,Fu=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=Pu(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,$u()?Reflect.construct(t,n||[],Pu(e).constructor):t.apply(e,n))}(this,t),Su),e.$objectType="lifecycle.v4.resources.ListImagesApiResponse",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&&Tu(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 wu(wu(wu({},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})):Eu(Su,this,Du).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})):Eu(Su,this,Du).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 E?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,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:gu(n[0]),o=0;o<n.length;o++){if("lifecycle.v4.resources.Image"!==a)throw"Unknown list of type "+a+" in data";r=no.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("lifecycle.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:gu(e.data)))throw"Unknown datatype "+a+" in data";s.setData(dn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=wu({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{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}(l);function Du(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return bu(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)?bu(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===gu(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 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 Au(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 Cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Au(Object(n),!0).forEach((function(t){xu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Au(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xu(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 Ru(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"!=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 Mu(e,t){return e.get(_u(e,t))}function _u(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")}Fu.prototype.metadata=void 0,Fu.prototype.data=void 0,Fu.prototype.$reserved=void 0,Fu.prototype.$objectType=void 0,Fu.prototype.$unknownFields=void 0;var Vu=new WeakMap,Nu=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,Vu,void 0),this.apiClient=t||lt.instance,n=Vu,r=new Set,n.set(_u(n,this),r),Mu(Vu,this).add("authorization"),Mu(Vu,this).add("cookie"),Mu(Vu,this).add("host"),Mu(Vu,this).add("user-agent")},t=[{key:"listImages",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Cu(Cu(Cu(Cu(Cu({},(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){Mu(Vu,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Cu({},o),a=Fu;return this.apiClient.callApi("/api/lifecycle/v4.0/resources/images","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Ru(e.prototype,t),n&&Ru(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Ju(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 Lu(e){return Lu="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},Lu(e)}function Wu(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 Bu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wu(Object(n),!0).forEach((function(t){Hu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hu(e,t,n){return(t=qu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zu(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,qu(r.key),r)}}function qu(e){var t=function(e){if("object"!=Lu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lu(t)?t:t+""}function Ku(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ku=function(){return!!e})()}function Gu(e){return Gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gu(e)}function Xu(e,t){return Xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xu(e,t)}function Qu(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 Yu=new WeakSet,Zu=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=Gu(t),function(e,t){if(t&&("object"==Lu(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||[],Gu(e).constructor):t.apply(e,n))}(this,t),Yu),e.$objectType="lifecycle.v4.operations.InventoryApiResponse",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&&Xu(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 Bu(Bu(Bu({},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})):Qu(Yu,this,el).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})):Qu(Yu,this,el).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 E?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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Lu(e.data)){case"prism.v4.config.TaskReference":r.setData(On.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=Bu({},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&&zu(n.prototype,r),o&&zu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function el(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ju(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)?Ju(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Lu(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 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,t,n){return(t=il(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ol(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,il(r.key),r)}}function il(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(e,t){return e.get(sl(e,t))}function sl(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")}Zu.prototype.metadata=void 0,Zu.prototype.data=void 0,Zu.prototype.$reserved=void 0,Zu.prototype.$objectType=void 0,Zu.prototype.$unknownFields=void 0;var ul=new WeakMap,ll=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,ul,void 0),this.apiClient=t||lt.instance,n=ul,r=new Set,n.set(sl(n,this),r),al(ul,this).add("authorization"),al(ul,this).add("cookie"),al(ul,this).add("host"),al(ul,this).add("user-agent")},t=[{key:"performInventory",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};e=e||{};var r={};Object.keys(n).forEach((function(e){al(ul,t).has(e.toLowerCase())||(r[e]=n[e])}));var o=function(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){rl(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}({"X-Cluster-Id":e.xClusterId},r),i=Zu;return this.apiClient.callApi("/api/lifecycle/v4.0/operations/$actions/inventory","POST",{},{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],i)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&ol(e.prototype,t),n&&ol(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),cl={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INVENTORY:"INVENTORY",PRECHECKS:"PRECHECKS",UPGRADE:"UPGRADE",NONE:"NONE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(cl).find((function(t){return cl[t]===e}));return null==t?cl.$UNKNOWN:cl[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case cl.$UNKNOWN:case cl.$REDACTED:case cl.INVENTORY:case cl.PRECHECKS:case cl.UPGRADE:case cl.NONE:return;default:throw new Error("Invalid : must be OperationType.{ $UNKNOWN|$REDACTED|INVENTORY|PRECHECKS|UPGRADE|NONE }")}}};Object.freeze(cl);const fl=cl;function dl(e){return dl="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},dl(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"!=dl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dl(t)?t:t+""}var gl=new WeakSet,ml=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,gl),this.$objectType="lifecycle.v4.common.InProgressOpDetails",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getTaskExtId",value:function(){return this.taskExtId}},{key:"setTaskExtId",value:function(e){this.taskExtId=e}},{key:"getOperationType",value:function(){return this.operationType}},{key:"setOperationType",value:function(e){this.operationType=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 yl(yl(yl({},void 0!==this.getTaskExtId()&&null!==this.getTaskExtId()?{taskExtId:this.getTaskExtId()}:{}),void 0!==this.getOperationType()&&null!==this.getOperationType()?{operationType:this.getOperationType()}:{}),{},{$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 E?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("taskExtId"===t){if(void 0===this.taskExtId||null===this.taskExtId)return new R("taskExtId","undefined or null");if(!I.validatePattern(this.taskExtId,/^[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("taskExtId","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"operationType"!==t||void 0!==this.operationType&&null!==this.operationType?"$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("operationType","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("taskExtId")&&null!==t.taskExtId&&void 0!==t.taskExtId&&n.setTaskExtId(t.taskExtId),t.hasOwnProperty("operationType")&&null!==t.operationType&&void 0!==t.operationType&&n.setOperationType(fl.constructFromObject(t.operationType)),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=yl({},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&&vl(t.prototype,n),r&&vl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();ml.prototype.taskExtId=void 0,ml.prototype.operationType=void 0,ml.prototype.$reserved=void 0,ml.prototype.$objectType=void 0,ml.prototype.$unknownFields=void 0;var wl={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",MCL_INVENTORY:"MCL_INVENTORY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(wl).find((function(t){return wl[t]===e}));return null==t?wl.$UNKNOWN:wl[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case wl.$UNKNOWN:case wl.$REDACTED:case wl.MCL_INVENTORY:return;default:throw new Error("Invalid : must be Capability.{ $UNKNOWN|$REDACTED|MCL_INVENTORY }")}}};Object.freeze(wl);const Ol=wl;function jl(e){return jl="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},jl(e)}function kl(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 $l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kl(Object(n),!0).forEach((function(t){Pl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pl(e,t,n){return(t=El(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tl(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,El(r.key),r)}}function El(e){var t=function(e){if("object"!=jl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jl(t)?t:t+""}function Sl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sl=function(){return!!e})()}function Fl(e){return Fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fl(e)}function Dl(e,t){return Dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dl(e,t)}var Il=new WeakSet,Al=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=Fl(t),function(e,t){if(t&&("object"==jl(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,Sl()?Reflect.construct(t,n||[],Fl(e).constructor):t.apply(e,n))}(this,t),Il),e.$objectType="lifecycle.v4.resources.LcmSummary",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&&Dl(e,t)}(t,e),n=t,r=[{key:"getCurrentVersion",value:function(){return this.currentVersion}},{key:"setCurrentVersion",value:function(e){this.currentVersion=e}},{key:"getAvailableVersion",value:function(){return this.availableVersion}},{key:"setAvailableVersion",value:function(e){this.availableVersion=e}},{key:"getHardwareVendor",value:function(){return this.hardwareVendor}},{key:"setHardwareVendor",value:function(e){this.hardwareVendor=e}},{key:"getCapabilities",value:function(){return this.capabilities}},{key:"setCapabilities",value:function(e){this.capabilities=e}},{key:"getInProgressOperation",value:function(){return this.inProgressOperation}},{key:"setInProgressOperation",value:function(e){this.inProgressOperation=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"toJson",value:function(e){return $l(!1===e?$l($l($l($l($l($l($l($l($l({},void 0!==this.getCurrentVersion()&&null!==this.getCurrentVersion()?{currentVersion:this.getCurrentVersion()}:{}),void 0!==this.getAvailableVersion()&&null!==this.getAvailableVersion()?{availableVersion:this.getAvailableVersion()}:{}),void 0!==this.getHardwareVendor()&&null!==this.getHardwareVendor()?{hardwareVendor:this.getHardwareVendor()}:{}),void 0!==this.getCapabilities()&&null!==this.getCapabilities()?{capabilities:this.getCapabilities()}:{}),void 0!==this.getInProgressOperation()&&null!==this.getInProgressOperation()?{inProgressOperation:this.getInProgressOperation().toJson(!1)}:{}),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()}:{}):$l($l($l($l($l($l({},void 0!==this.getCurrentVersion()&&null!==this.getCurrentVersion()?{currentVersion:this.getCurrentVersion()}:{}),void 0!==this.getAvailableVersion()&&null!==this.getAvailableVersion()?{availableVersion:this.getAvailableVersion()}:{}),void 0!==this.getHardwareVendor()&&null!==this.getHardwareVendor()?{hardwareVendor:this.getHardwareVendor()}:{}),void 0!==this.getCapabilities()&&null!==this.getCapabilities()?{capabilities:this.getCapabilities()}:{}),void 0!==this.getInProgressOperation()&&null!==this.getInProgressOperation()?{inProgressOperation:this.getInProgressOperation().toJson(!1)}:{}),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 E?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("currentVersion"===t){if(void 0===this.currentVersion||null===this.currentVersion)return new R("currentVersion","undefined or null");if(!I.validateMaxLength(this.currentVersion,128))return new R("currentVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.currentVersion,1))return new R("currentVersion","does not satisfy required minLength constraint: 1")}if("availableVersion"===t){if(void 0===this.availableVersion||null===this.availableVersion)return new R("availableVersion","undefined or null");if(!I.validateMaxLength(this.availableVersion,128))return new R("availableVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.availableVersion,1))return new R("availableVersion","does not satisfy required minLength constraint: 1")}if("hardwareVendor"===t){if(void 0===this.hardwareVendor||null===this.hardwareVendor)return new R("hardwareVendor","undefined or null");if(!I.validateMaxLength(this.hardwareVendor,256))return new R("hardwareVendor","does not satisfy required maxLength constraint: 256");if(!I.validateMinLength(this.hardwareVendor,1))return new R("hardwareVendor","does not satisfy required minLength constraint: 1")}if("capabilities"===t){if(void 0===this.capabilities||null===this.capabilities)return new R("capabilities","undefined or null");if(!I.validateMaxItems(this.capabilities,7))return new R("capabilities","does not satisfy required maxItems constraint: 7")}if("inProgressOperation"===t&&(void 0===this.inProgressOperation||null===this.inProgressOperation))return new R("inProgressOperation","undefined or null");if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!I.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,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,er.constructFromObject(e,a,!0),e.hasOwnProperty("currentVersion")&&null!==e.currentVersion&&void 0!==e.currentVersion&&a.setCurrentVersion(e.currentVersion),e.hasOwnProperty("availableVersion")&&null!==e.availableVersion&&void 0!==e.availableVersion&&a.setAvailableVersion(e.availableVersion),e.hasOwnProperty("hardwareVendor")&&null!==e.hardwareVendor&&void 0!==e.hardwareVendor&&a.setHardwareVendor(e.hardwareVendor),e.hasOwnProperty("capabilities")&&null!==e.capabilities&&void 0!==e.capabilities){for(i=[],n=e.capabilities,o=0;o<n.length;o++)r=Ol.constructFromObject(n[o],void 0),i.push(r);a.setCapabilities(i)}if(e.hasOwnProperty("inProgressOperation")&&null!==e.inProgressOperation&&void 0!==e.inProgressOperation&&a.setInProgressOperation(ml.constructFromObject(e.inProgressOperation)),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&a.setClusterExtId(e.clusterExtId),!s)for(var u in a.$unknownFields=$l({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Tl(n.prototype,r),o&&Tl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function Cl(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 Rl(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 Ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rl(Object(n),!0).forEach((function(t){Ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ml(e,t,n){return(t=Vl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _l(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,Vl(r.key),r)}}function Vl(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 Nl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nl=function(){return!!e})()}function Jl(e){return Jl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jl(e)}function Ll(e,t){return Ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ll(e,t)}function Wl(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")}Al.prototype.currentVersion=void 0,Al.prototype.availableVersion=void 0,Al.prototype.hardwareVendor=void 0,Al.prototype.capabilities=void 0,Al.prototype.inProgressOperation=void 0,Al.prototype.clusterExtId=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Wn.prototype.tenantId=void 0;var Bl=new WeakSet,Hl=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=Jl(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,Nl()?Reflect.construct(t,n||[],Jl(e).constructor):t.apply(e,n))}(this,t),Bl),e.$objectType="lifecycle.v4.resources.GetLcmSummaryByIdApiResponse",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&&Ll(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 Ul(Ul(Ul({},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})):Wl(Bl,this,zl).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})):Wl(Bl,this,zl).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 E?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(_e.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"lifecycle.v4.resources.LcmSummary":r.setData(Al.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=Ul({},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&&_l(n.prototype,r),o&&_l(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function zl(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Cl(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)?Cl(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"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 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 Kl(e){return Kl="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},Kl(e)}function Gl(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 Xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gl(Object(n),!0).forEach((function(t){Ql(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ql(e,t,n){return(t=Zl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yl(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,Zl(r.key),r)}}function Zl(e){var t=function(e){if("object"!=Kl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Kl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kl(t)?t:t+""}function ec(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ec=function(){return!!e})()}function tc(e){return tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tc(e)}function nc(e,t){return nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nc(e,t)}function rc(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")}Hl.prototype.metadata=void 0,Hl.prototype.data=void 0,Hl.prototype.$reserved=void 0,Hl.prototype.$objectType=void 0,Hl.prototype.$unknownFields=void 0;var oc=new WeakSet,ic=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=tc(t),function(e,t){if(t&&("object"==Kl(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,ec()?Reflect.construct(t,n||[],tc(e).constructor):t.apply(e,n))}(this,t),oc),e.$objectType="lifecycle.v4.resources.ListLcmSummariesApiResponse",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&&nc(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 Xl(Xl(Xl({},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})):rc(oc,this,ac).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})):rc(oc,this,ac).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 E?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,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Kl(n[0]),o=0;o<n.length;o++){if("lifecycle.v4.resources.LcmSummary"!==a)throw"Unknown list of type "+a+" in data";r=Al.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("lifecycle.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Kl(e.data)))throw"Unknown datatype "+a+" in data";s.setData(dn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=Xl({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Yl(n.prototype,r),o&&Yl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ac(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Kl(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 sc(e){return sc="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},sc(e)}function uc(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 lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uc(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cc(e,t,n){return(t=dc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fc(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,dc(r.key),r)}}function dc(e){var t=function(e){if("object"!=sc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sc(t)?t:t+""}function pc(e,t){return e.get(yc(e,t))}function yc(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")}ic.prototype.metadata=void 0,ic.prototype.data=void 0,ic.prototype.$reserved=void 0,ic.prototype.$objectType=void 0,ic.prototype.$unknownFields=void 0;var hc=new WeakMap,vc=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,hc,void 0),this.apiClient=t||lt.instance,n=hc,r=new Set,n.set(yc(n,this),r),pc(hc,this).add("authorization"),pc(hc,this).add("cookie"),pc(hc,this).add("host"),pc(hc,this).add("user-agent")},t=[{key:"getLcmSummaryById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getLcmSummaryById");var r={extId:e},o={};Object.keys(n).forEach((function(e){pc(hc,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=lc({},o),a=Hl;return this.apiClient.callApi("/api/lifecycle/v4.0/resources/lcm-summaries/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"listLcmSummaries",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=lc(lc(lc(lc(lc({},(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){pc(hc,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=lc({},o),a=ic;return this.apiClient.callApi("/api/lifecycle/v4.0/resources/lcm-summaries","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&fc(e.prototype,t),n&&fc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),bc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ESX:"ESX",AHV:"AHV",HYPERV:"HYPERV",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(bc).find((function(t){return bc[t]===e}));return null==t?bc.$UNKNOWN:bc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case bc.$UNKNOWN:case bc.$REDACTED:case bc.ESX:case bc.AHV:case bc.HYPERV:return;default:throw new Error("Invalid : must be HypervisorType.{ $UNKNOWN|$REDACTED|ESX|AHV|HYPERV }")}}};Object.freeze(bc);const gc=bc;var mc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ENTITY:"ENTITY",LOCATION:"LOCATION",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(mc).find((function(t){return mc[t]===e}));return null==t?mc.$UNKNOWN:mc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case mc.$UNKNOWN:case mc.$REDACTED:case mc.ENTITY:case mc.LOCATION:return;default:throw new Error("Invalid : must be NotificationType.{ $UNKNOWN|$REDACTED|ENTITY|LOCATION }")}}};Object.freeze(mc);const wc=mc;var Oc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",WARNING:"WARNING",NOTICE:"NOTICE",INFO:"INFO",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Oc).find((function(t){return Oc[t]===e}));return null==t?Oc.$UNKNOWN:Oc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Oc.$UNKNOWN:case Oc.$REDACTED:case Oc.WARNING:case Oc.NOTICE:case Oc.INFO:return;default:throw new Error("Invalid : must be SeverityLevel.{ $UNKNOWN|$REDACTED|WARNING|NOTICE|INFO }")}}};Object.freeze(Oc);const jc=Oc;function kc(e){return kc="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},kc(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 Pc(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){Tc(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 Tc(e,t,n){return(t=Sc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ec(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,Sc(r.key),r)}}function Sc(e){var t=function(e){if("object"!=kc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kc(t)?t:t+""}var Fc=new WeakSet,Dc=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,Fc),this.$objectType="lifecycle.v4.resources.NotificationDetail",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getSeverityLevel",value:function(){return this.severityLevel}},{key:"setSeverityLevel",value:function(e){this.severityLevel=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=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 Pc(Pc(Pc({},void 0!==this.getSeverityLevel()&&null!==this.getSeverityLevel()?{severityLevel:this.getSeverityLevel()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),{},{$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 E?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("severityLevel"===t&&(void 0===this.severityLevel||null===this.severityLevel))return new R("severityLevel","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new R("message","undefined or null");if(!I.validateMaxLength(this.message,512))return new R("message","does not satisfy required maxLength constraint: 512");if(!I.validateMinLength(this.message,1))return new R("message","does not satisfy required minLength constraint: 1")}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("severityLevel")&&null!==t.severityLevel&&void 0!==t.severityLevel&&n.setSeverityLevel(jc.constructFromObject(t.severityLevel)),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),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=Pc({},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&&Ec(t.prototype,n),r&&Ec(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ic(e){return Ic="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},Ic(e)}function Ac(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 Cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ac(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ac(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xc(e,t,n){return(t=Uc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rc(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,Uc(r.key),r)}}function Uc(e){var t=function(e){if("object"!=Ic(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ic(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ic(t)?t:t+""}function Mc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Mc=function(){return!!e})()}function _c(e){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_c(e)}function Vc(e,t){return Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vc(e,t)}Dc.prototype.severityLevel=void 0,Dc.prototype.message=void 0,Dc.prototype.$reserved=void 0,Dc.prototype.$objectType=void 0,Dc.prototype.$unknownFields=void 0;var Nc=new WeakSet,Jc=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=_c(t),function(e,t){if(t&&("object"==Ic(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,Mc()?Reflect.construct(t,n||[],_c(e).constructor):t.apply(e,n))}(this,t),Nc),e.$objectType="lifecycle.v4.resources.NotificationItem",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&&Vc(e,t)}(t,e),n=t,r=[{key:"getNotificationType",value:function(){return this.notificationType}},{key:"setNotificationType",value:function(e){this.notificationType=e}},{key:"getDetails",value:function(){return this.details}},{key:"setDetails",value:function(e){this.details=e}},{key:"getToVersion",value:function(){return this.toVersion}},{key:"setToVersion",value:function(e){this.toVersion=e}},{key:"getLocationInfo",value:function(){return this.locationInfo}},{key:"setLocationInfo",value:function(e){this.locationInfo=e}},{key:"getHypervisorType",value:function(){return this.hypervisorType}},{key:"setHypervisorType",value:function(e){this.hypervisorType=e}},{key:"toJson",value:function(e){return Cc(!1===e?Cc(Cc(Cc(Cc(Cc(Cc(Cc(Cc(Cc(Cc(Cc(Cc(Cc({},void 0!==this.getNotificationType()&&null!==this.getNotificationType()?{notificationType:this.getNotificationType()}:{}),void 0!==this.getDetails()&&null!==this.getDetails()?{details:this.getDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getToVersion()&&null!==this.getToVersion()?{toVersion:this.getToVersion()}:{}),void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getHypervisorType()&&null!==this.getHypervisorType()?{hypervisorType:this.getHypervisorType()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),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()}:{}):Cc(Cc(Cc(Cc(Cc(Cc(Cc(Cc(Cc(Cc({},void 0!==this.getNotificationType()&&null!==this.getNotificationType()?{notificationType:this.getNotificationType()}:{}),void 0!==this.getDetails()&&null!==this.getDetails()?{details:this.getDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getToVersion()&&null!==this.getToVersion()?{toVersion:this.getToVersion()}:{}),void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getHypervisorType()&&null!==this.getHypervisorType()?{hypervisorType:this.getHypervisorType()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),{},{$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 E?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("notificationType"===t&&(void 0===this.notificationType||null===this.notificationType))return new R("notificationType","undefined or null");if("details"===t){if(void 0===this.details||null===this.details)return new R("details","undefined or null");if(!I.validateMaxItems(this.details,100))return new R("details","does not satisfy required maxItems constraint: 100")}if("toVersion"===t){if(void 0===this.toVersion||null===this.toVersion)return new R("toVersion","undefined or null");if(!I.validateMaxLength(this.toVersion,128))return new R("toVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.toVersion,1))return new R("toVersion","does not satisfy required minLength constraint: 1")}return"locationInfo"!==t||void 0!==this.locationInfo&&null!==this.locationInfo?"hypervisorType"!==t||void 0!==this.hypervisorType&&null!==this.hypervisorType?new R(t,"no such property exists"):new R("hypervisorType","undefined or null"):new R("locationInfo","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Rr.constructFromObject(e,a,!0),e.hasOwnProperty("notificationType")&&null!==e.notificationType&&void 0!==e.notificationType&&a.setNotificationType(wc.constructFromObject(e.notificationType)),e.hasOwnProperty("details")&&null!==e.details&&void 0!==e.details){for(i=[],n=e.details,o=0;o<n.length;o++)r=Dc.constructFromObject(n[o],void 0),i.push(r);a.setDetails(i)}if(e.hasOwnProperty("toVersion")&&null!==e.toVersion&&void 0!==e.toVersion&&a.setToVersion(e.toVersion),e.hasOwnProperty("locationInfo")&&null!==e.locationInfo&&void 0!==e.locationInfo&&a.setLocationInfo(_a.constructFromObject(e.locationInfo)),e.hasOwnProperty("hypervisorType")&&null!==e.hypervisorType&&void 0!==e.hypervisorType&&a.setHypervisorType(gc.constructFromObject(e.hypervisorType)),!s)for(var u in a.$unknownFields=Cc({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Rc(n.prototype,r),o&&Rc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Rr);function Lc(e){return Lc="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},Lc(e)}function Wc(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 Bc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach((function(t){Hc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hc(e,t,n){return(t=qc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zc(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,qc(r.key),r)}}function qc(e){var t=function(e){if("object"!=Lc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lc(t)?t:t+""}function Kc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kc=function(){return!!e})()}function Gc(e){return Gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gc(e)}function Xc(e,t){return Xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xc(e,t)}Jc.prototype.notificationType=void 0,Jc.prototype.details=void 0,Jc.prototype.toVersion=void 0,Jc.prototype.locationInfo=void 0,Jc.prototype.hypervisorType=void 0,Rr.prototype.entityClass=void 0,Rr.prototype.entityModel=void 0,Rr.prototype.entityType=void 0,Rr.prototype.entityVersion=void 0,Rr.prototype.hardwareFamily=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Wn.prototype.tenantId=void 0;var Qc=new WeakSet,Yc=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=Gc(t),function(e,t){if(t&&("object"==Lc(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,Kc()?Reflect.construct(t,n||[],Gc(e).constructor):t.apply(e,n))}(this,t),Qc),e.$objectType="lifecycle.v4.resources.Notification",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&&Xc(e,t)}(t,e),n=t,r=[{key:"getNotifications",value:function(){return this.notifications}},{key:"setNotifications",value:function(e){this.notifications=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"toJson",value:function(e){return Bc(!1===e?Bc(Bc(Bc(Bc(Bc({},void 0!==this.getNotifications()&&null!==this.getNotifications()?{notifications:this.getNotifications().map((function(e){return e.toJson(!1)}))}:{}),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()}:{}):Bc(Bc({},void 0!==this.getNotifications()&&null!==this.getNotifications()?{notifications:this.getNotifications().map((function(e){return e.toJson(!1)}))}:{}),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 E?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("notifications"===t){if(void 0===this.notifications||null===this.notifications)return new R("notifications","undefined or null");if(!I.validateMaxItems(this.notifications,2048))return new R("notifications","does not satisfy required maxItems constraint: 2048")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!I.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,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,er.constructFromObject(e,a,!0),e.hasOwnProperty("notifications")&&null!==e.notifications&&void 0!==e.notifications){for(i=[],n=e.notifications,o=0;o<n.length;o++)r=Jc.constructFromObject(n[o],void 0),i.push(r);a.setNotifications(i)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&a.setClusterExtId(e.clusterExtId),!s)for(var u in a.$unknownFields=Bc({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&zc(n.prototype,r),o&&zc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function Zc(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 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=af(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,af(r.key),r)}}function af(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+""}function sf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sf=function(){return!!e})()}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uf(e)}function lf(e,t){return lf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lf(e,t)}function cf(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")}Yc.prototype.notifications=void 0,Yc.prototype.clusterExtId=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Wn.prototype.tenantId=void 0;var ff=new WeakSet,df=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=uf(t),function(e,t){if(t&&("object"==ef(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,sf()?Reflect.construct(t,n||[],uf(e).constructor):t.apply(e,n))}(this,t),ff),e.$objectType="lifecycle.v4.resources.GetNotificationsByIdApiResponse",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&&lf(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 nf(nf(nf({},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})):cf(ff,this,pf).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})):cf(ff,this,pf).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 E?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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ef(e.data)){case"lifecycle.v4.resources.Notification":r.setData(Yc.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=nf({},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&&of(n.prototype,r),o&&of(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function pf(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Zc(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)?Zc(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===ef(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 yf(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 hf(e){return hf="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},hf(e)}function vf(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 bf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vf(Object(n),!0).forEach((function(t){gf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gf(e,t,n){return(t=wf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mf(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,wf(r.key),r)}}function wf(e){var t=function(e){if("object"!=hf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hf(t)?t:t+""}function Of(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Of=function(){return!!e})()}function jf(e){return jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jf(e)}function kf(e,t){return kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kf(e,t)}function $f(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")}df.prototype.metadata=void 0,df.prototype.data=void 0,df.prototype.$reserved=void 0,df.prototype.$objectType=void 0,df.prototype.$unknownFields=void 0;var Pf=new WeakSet,Tf=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=jf(t),function(e,t){if(t&&("object"==hf(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,Of()?Reflect.construct(t,n||[],jf(e).constructor):t.apply(e,n))}(this,t),Pf),e.$objectType="lifecycle.v4.operations.ComputeNotificationsApiResponse",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&&kf(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 bf(bf(bf({},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})):$f(Pf,this,Ef).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})):$f(Pf,this,Ef).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 E?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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:hf(e.data)){case"prism.v4.config.TaskReference":r.setData(On.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=bf({},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&&mf(n.prototype,r),o&&mf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ef(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return yf(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)?yf(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===hf(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 Sf(e){return Sf="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},Sf(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 Df(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){If(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 If(e,t,n){return(t=Cf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Af(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,Cf(r.key),r)}}function Cf(e){var t=function(e){if("object"!=Sf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sf(t)?t:t+""}Tf.prototype.metadata=void 0,Tf.prototype.data=void 0,Tf.prototype.$reserved=void 0,Tf.prototype.$objectType=void 0,Tf.prototype.$unknownFields=void 0;var xf=new WeakSet,Rf=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,xf),this.notificationsSpec=t,this.$objectType="lifecycle.v4.resources.NotificationsSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getNotificationsSpec",value:function(){return this.notificationsSpec}},{key:"setNotificationsSpec",value:function(e){this.notificationsSpec=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 Df(Df({},void 0!==this.getNotificationsSpec()&&null!==this.getNotificationsSpec()?{notificationsSpec:this.getNotificationsSpec().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 E?r=["notificationsSpec"]: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("notificationsSpec"===t){if(void 0===this.notificationsSpec||null===this.notificationsSpec)return new R("notificationsSpec","undefined or null");if(!I.validateMaxItems(this.notificationsSpec,2048))return new R("notificationsSpec","does not satisfy required maxItems constraint: 2048")}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,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("notificationsSpec")&&null!==t.notificationsSpec&&void 0!==t.notificationsSpec){for(i=[],n=t.notificationsSpec,o=0;o<n.length;o++)r=wa.constructFromObject(n[o],void 0),i.push(r);a.setNotificationsSpec(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=Df({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Af(t.prototype,n),r&&Af(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Uf(e){return Uf="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},Uf(e)}function Mf(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 _f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mf(Object(n),!0).forEach((function(t){Vf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vf(e,t,n){return(t=Jf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nf(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,Jf(r.key),r)}}function Jf(e){var t=function(e){if("object"!=Uf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Uf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Uf(t)?t:t+""}function Lf(e,t){return e.get(Wf(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")}Rf.prototype.notificationsSpec=void 0,Rf.prototype.$reserved=void 0,Rf.prototype.$objectType=void 0,Rf.prototype.$unknownFields=void 0;var Bf=new WeakMap,Hf=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,Bf,void 0),this.apiClient=t||lt.instance,n=Bf,r=new Set,n.set(Wf(n,this),r),Lf(Bf,this).add("authorization"),Lf(Bf,this).add("cookie"),Lf(Bf,this).add("host"),Lf(Bf,this).add("user-agent")},t=[{key:"computeNotifications",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;if(null==(o=e instanceof Rf&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling computeNotifications");var i={};Object.keys(r).forEach((function(e){Lf(Bf,n).has(e.toLowerCase())||(i[e]=r[e])}));var a=_f({"X-Cluster-Id":t.xClusterId},i);lt.addEtagReferenceToHeader(e,a);var s=Tf;return this.apiClient.callApi("/api/lifecycle/v4.0/operations/$actions/compute-notifications","POST",{},{},a,{},o,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],s)}},{key:"getNotificationById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getNotificationById");var r={extId:e},o={};Object.keys(n).forEach((function(e){Lf(Bf,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=_f({},o),a=df;return this.apiClient.callApi("/api/lifecycle/v4.0/resources/notifications/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Nf(e.prototype,t),n&&Nf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function zf(e){return zf="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},zf(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 Kf(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){Gf(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}function Gf(e,t,n){return(t=Qf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xf(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,Qf(r.key),r)}}function Qf(e){var t=function(e){if("object"!=zf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zf(t)?t:t+""}var Yf=new WeakSet,Zf=function(){function e(t,n,r,o){!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,Yf),this.hypervisorType=t,this.ip=n,this.username=r,this.password=o,this.$objectType="lifecycle.v4.common.ManagementServer",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getHypervisorType",value:function(){return this.hypervisorType}},{key:"setHypervisorType",value:function(e){this.hypervisorType=e}},{key:"getIp",value:function(){return this.ip}},{key:"setIp",value:function(e){this.ip=e}},{key:"getUsername",value:function(){return this.username}},{key:"setUsername",value:function(e){this.username=e}},{key:"getPassword",value:function(){return this.password}},{key:"setPassword",value:function(e){this.password=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 Kf(Kf(Kf(Kf(Kf({},void 0!==this.getHypervisorType()&&null!==this.getHypervisorType()?{hypervisorType:this.getHypervisorType()}:{}),void 0!==this.getIp()&&null!==this.getIp()?{ip:this.getIp()}:{}),void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),{},{$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 E?r=["hypervisorType","ip","username","password"]: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("hypervisorType"===t&&(void 0===this.hypervisorType||null===this.hypervisorType))return new R("hypervisorType","undefined or null");if("ip"===t){if(void 0===this.ip||null===this.ip)return new R("ip","undefined or null");if(!I.validatePattern(this.ip,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new R("ip","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("username"===t){if(void 0===this.username||null===this.username)return new R("username","undefined or null");if(!I.validateMaxLength(this.username,128))return new R("username","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.username,1))return new R("username","does not satisfy required minLength constraint: 1")}if("password"===t){if(void 0===this.password||null===this.password)return new R("password","undefined or null");if(!I.validateMaxLength(this.password,128))return new R("password","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.password,1))return new R("password","does not satisfy required minLength constraint: 1")}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("hypervisorType")&&null!==t.hypervisorType&&void 0!==t.hypervisorType&&n.setHypervisorType(gc.constructFromObject(t.hypervisorType)),t.hasOwnProperty("ip")&&null!==t.ip&&void 0!==t.ip&&n.setIp(t.ip),t.hasOwnProperty("username")&&null!==t.username&&void 0!==t.username&&n.setUsername(t.username),t.hasOwnProperty("password")&&null!==t.password&&void 0!==t.password&&n.setPassword(t.password),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=Kf({},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&&Xf(t.prototype,n),r&&Xf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Zf.prototype.hypervisorType=void 0,Zf.prototype.ip=void 0,Zf.prototype.username=void 0,Zf.prototype.password=void 0,Zf.prototype.$reserved=void 0,Zf.prototype.$objectType=void 0,Zf.prototype.$unknownFields=void 0;var ed={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",POWER_OFF_UVMS:"POWER_OFF_UVMS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ed).find((function(t){return ed[t]===e}));return null==t?ed.$UNKNOWN:ed[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ed.$UNKNOWN:case ed.$REDACTED:case ed.POWER_OFF_UVMS:return;default:throw new Error("Invalid : must be SystemAutoMgmtFlag.{ $UNKNOWN|$REDACTED|POWER_OFF_UVMS }")}}};Object.freeze(ed);const td=ed;function nd(e){return nd="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},nd(e)}function rd(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 od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rd(Object(n),!0).forEach((function(t){id(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function id(e,t,n){return(t=sd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ad(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,sd(r.key),r)}}function sd(e){var t=function(e){if("object"!=nd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nd(t)?t:t+""}var ud=new WeakSet,ld=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,ud),this.entityUpdateSpecs=t,this.$objectType="lifecycle.v4.common.PrechecksSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getManagementServer",value:function(){return this.managementServer}},{key:"setManagementServer",value:function(e){this.managementServer=e}},{key:"getEntityUpdateSpecs",value:function(){return this.entityUpdateSpecs}},{key:"setEntityUpdateSpecs",value:function(e){this.entityUpdateSpecs=e}},{key:"getSkippedPrecheckFlags",value:function(){return this.skippedPrecheckFlags}},{key:"setSkippedPrecheckFlags",value:function(e){this.skippedPrecheckFlags=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 od(od(od(od({},void 0!==this.getManagementServer()&&null!==this.getManagementServer()?{managementServer:this.getManagementServer().toJson(!1)}:{}),void 0!==this.getEntityUpdateSpecs()&&null!==this.getEntityUpdateSpecs()?{entityUpdateSpecs:this.getEntityUpdateSpecs().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSkippedPrecheckFlags()&&null!==this.getSkippedPrecheckFlags()?{skippedPrecheckFlags:this.getSkippedPrecheckFlags()}:{}),{},{$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 E?r=["entityUpdateSpecs"]: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("managementServer"===t&&(void 0===this.managementServer||null===this.managementServer))return new R("managementServer","undefined or null");if("entityUpdateSpecs"===t){if(void 0===this.entityUpdateSpecs||null===this.entityUpdateSpecs)return new R("entityUpdateSpecs","undefined or null");if(!I.validateMaxItems(this.entityUpdateSpecs,2048))return new R("entityUpdateSpecs","does not satisfy required maxItems constraint: 2048")}if("skippedPrecheckFlags"===t){if(void 0===this.skippedPrecheckFlags||null===this.skippedPrecheckFlags)return new R("skippedPrecheckFlags","undefined or null");if(!I.validateMaxItems(this.skippedPrecheckFlags,20))return new R("skippedPrecheckFlags","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,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("managementServer")&&null!==t.managementServer&&void 0!==t.managementServer&&a.setManagementServer(Zf.constructFromObject(t.managementServer)),t.hasOwnProperty("entityUpdateSpecs")&&null!==t.entityUpdateSpecs&&void 0!==t.entityUpdateSpecs){for(i=[],n=t.entityUpdateSpecs,o=0;o<n.length;o++)r=wa.constructFromObject(n[o],void 0),i.push(r);a.setEntityUpdateSpecs(i)}if(t.hasOwnProperty("skippedPrecheckFlags")&&null!==t.skippedPrecheckFlags&&void 0!==t.skippedPrecheckFlags){for(i=[],n=t.skippedPrecheckFlags,o=0;o<n.length;o++)r=td.constructFromObject(n[o],void 0),i.push(r);a.setSkippedPrecheckFlags(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=od({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ad(t.prototype,n),r&&ad(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function cd(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 fd(e){return fd="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},fd(e)}function dd(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 pd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dd(Object(n),!0).forEach((function(t){yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yd(e,t,n){return(t=vd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hd(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,vd(r.key),r)}}function vd(e){var t=function(e){if("object"!=fd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fd(t)?t:t+""}function bd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bd=function(){return!!e})()}function gd(e){return gd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gd(e)}function md(e,t){return md=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},md(e,t)}function wd(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")}ld.prototype.managementServer=void 0,ld.prototype.entityUpdateSpecs=void 0,ld.prototype.skippedPrecheckFlags=void 0,ld.prototype.$reserved=void 0,ld.prototype.$objectType=void 0,ld.prototype.$unknownFields=void 0;var Od=new WeakSet,jd=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=gd(t),function(e,t){if(t&&("object"==fd(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,bd()?Reflect.construct(t,n||[],gd(e).constructor):t.apply(e,n))}(this,t),Od),e.$objectType="lifecycle.v4.operations.PrechecksApiResponse",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&&md(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 pd(pd(pd({},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})):wd(Od,this,kd).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})):wd(Od,this,kd).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 E?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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:fd(e.data)){case"prism.v4.config.TaskReference":r.setData(On.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=pd({},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&&hd(n.prototype,r),o&&hd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function kd(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return cd(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)?cd(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===fd(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 $d(e){return $d="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},$d(e)}function Pd(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 Td(e,t,n){return(t=Sd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ed(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,Sd(r.key),r)}}function Sd(e){var t=function(e){if("object"!=$d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$d(t)?t:t+""}function Fd(e,t){return e.get(Dd(e,t))}function Dd(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")}jd.prototype.metadata=void 0,jd.prototype.data=void 0,jd.prototype.$reserved=void 0,jd.prototype.$objectType=void 0,jd.prototype.$unknownFields=void 0;var Id=new WeakMap,Ad=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,Id,void 0),this.apiClient=t||lt.instance,n=Id,r=new Set,n.set(Dd(n,this),r),Fd(Id,this).add("authorization"),Fd(Id,this).add("cookie"),Fd(Id,this).add("host"),Fd(Id,this).add("user-agent")},t=[{key:"performPrechecks",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;if(null==(o=e instanceof ld&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling performPrechecks");var i={};Object.keys(r).forEach((function(e){Fd(Id,n).has(e.toLowerCase())||(i[e]=r[e])}));var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pd(Object(n),!0).forEach((function(t){Td(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"X-Cluster-Id":t.xClusterId},i);lt.addEtagReferenceToHeader(e,a);var s=jd;return this.apiClient.callApi("/api/lifecycle/v4.0/operations/$actions/prechecks","POST",{},{},a,{},o,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Ed(e.prototype,t),n&&Ed(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Cd(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 xd(e){return xd="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},xd(e)}function Rd(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 Ud(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rd(Object(n),!0).forEach((function(t){Md(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Md(e,t,n){return(t=Vd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,Vd(r.key),r)}}function Vd(e){var t=function(e){if("object"!=xd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xd(t)?t:t+""}function Nd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nd=function(){return!!e})()}function Jd(e){return Jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jd(e)}function Ld(e,t){return Ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ld(e,t)}function Wd(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 Bd=new WeakSet,Hd=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=Jd(t),function(e,t){if(t&&("object"==xd(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,Nd()?Reflect.construct(t,n||[],Jd(e).constructor):t.apply(e,n))}(this,t),Bd),e.$objectType="lifecycle.v4.operations.ComputeRecommendationsApiResponse",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&&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 Ud(Ud(Ud({},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})):Wd(Bd,this,zd).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})):Wd(Bd,this,zd).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 E?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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:xd(e.data)){case"prism.v4.config.TaskReference":r.setData(On.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=Ud({},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&&_d(n.prototype,r),o&&_d(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function zd(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Cd(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)?Cd(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===xd(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 qd(e){return qd="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},qd(e)}function Kd(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 Gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kd(Object(n),!0).forEach((function(t){Xd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xd(e,t,n){return(t=Yd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qd(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,Yd(r.key),r)}}function Yd(e){var t=function(e){if("object"!=qd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qd(t)?t:t+""}Hd.prototype.metadata=void 0,Hd.prototype.data=void 0,Hd.prototype.$reserved=void 0,Hd.prototype.$objectType=void 0,Hd.prototype.$unknownFields=void 0;var Zd=new WeakSet,ep=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,Zd),this.entityIdentifier=t,this.$objectType="lifecycle.v4.common.EntityDeploySpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getEntityIdentifier",value:function(){return this.entityIdentifier}},{key:"setEntityIdentifier",value:function(e){this.entityIdentifier=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 Gd(Gd({},void 0!==this.getEntityIdentifier()&&null!==this.getEntityIdentifier()?{entityIdentifier:this.getEntityIdentifier().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 E?r=["entityIdentifier"]: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"entityIdentifier"!==t||void 0!==this.entityIdentifier&&null!==this.entityIdentifier?"$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("entityIdentifier","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("entityIdentifier")&&null!==t.entityIdentifier&&void 0!==t.entityIdentifier&&n.setEntityIdentifier(Rr.constructFromObject(t.entityIdentifier)),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=Gd({},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&&Qd(t.prototype,n),r&&Qd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function tp(e){return tp="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},tp(e)}function np(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 rp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?np(Object(n),!0).forEach((function(t){op(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):np(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function op(e,t,n){return(t=ap(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ip(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,ap(r.key),r)}}function ap(e){var t=function(e){if("object"!=tp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tp(t)?t:t+""}function sp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sp=function(){return!!e})()}function up(e){return up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},up(e)}function lp(e,t){return lp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lp(e,t)}ep.prototype.entityIdentifier=void 0,ep.prototype.$reserved=void 0,ep.prototype.$objectType=void 0,ep.prototype.$unknownFields=void 0;var cp=new WeakSet,fp=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=up(t),function(e,t){if(t&&("object"==tp(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,sp()?Reflect.construct(t,n||[],up(e).constructor):t.apply(e,n))}(this,t),cp),n.version=e,n.$objectType="lifecycle.v4.resources.TargetEntity",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&&lp(e,t)}(t,e),n=t,r=[{key:"getVersion",value:function(){return this.version}},{key:"setVersion",value:function(e){this.version=e}},{key:"getLocationInfo",value:function(){return this.locationInfo}},{key:"setLocationInfo",value:function(e){this.locationInfo=e}},{key:"getDeviceId",value:function(){return this.deviceId}},{key:"setDeviceId",value:function(e){this.deviceId=e}},{key:"toJson",value:function(e){return rp(!1===e?rp(rp(rp(rp(rp(rp(rp(rp(rp(rp(rp({},void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getDeviceId()&&null!==this.getDeviceId()?{deviceId:this.getDeviceId()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),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()}:{}):rp(rp(rp(rp(rp(rp(rp(rp({},void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getDeviceId()&&null!==this.getDeviceId()?{deviceId:this.getDeviceId()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),{},{$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 E?r=["version"]: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("version"===t){if(void 0===this.version||null===this.version)return new R("version","undefined or null");if(!I.validateMaxLength(this.version,128))return new R("version","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.version,1))return new R("version","does not satisfy required minLength constraint: 1")}if("locationInfo"===t&&(void 0===this.locationInfo||null===this.locationInfo))return new R("locationInfo","undefined or null");if("deviceId"===t){if(void 0===this.deviceId||null===this.deviceId)return new R("deviceId","undefined or null");if(!I.validateMaxLength(this.deviceId,128))return new R("deviceId","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.deviceId,1))return new R("deviceId","does not satisfy required minLength constraint: 1")}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,Rr.constructFromObject(e,n,!0),e.hasOwnProperty("version")&&null!==e.version&&void 0!==e.version&&n.setVersion(e.version),e.hasOwnProperty("locationInfo")&&null!==e.locationInfo&&void 0!==e.locationInfo&&n.setLocationInfo(_a.constructFromObject(e.locationInfo)),e.hasOwnProperty("deviceId")&&null!==e.deviceId&&void 0!==e.deviceId&&n.setDeviceId(e.deviceId),!r))for(var o in n.$unknownFields=rp({},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&&ip(n.prototype,r),o&&ip(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Rr);function dp(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 pp(e){return pp="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},pp(e)}function yp(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 hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yp(Object(n),!0).forEach((function(t){vp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vp(e,t,n){return(t=gp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bp(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,gp(r.key),r)}}function gp(e){var t=function(e){if("object"!=pp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pp(t)?t:t+""}function mp(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")}fp.prototype.version=void 0,fp.prototype.locationInfo=void 0,fp.prototype.deviceId=void 0,Rr.prototype.entityClass=void 0,Rr.prototype.entityModel=void 0,Rr.prototype.entityType=void 0,Rr.prototype.entityVersion=void 0,Rr.prototype.hardwareFamily=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Wn.prototype.tenantId=void 0;var wp=new WeakSet,Op=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,wp),this.recommendationSpec=t,this.$objectType="lifecycle.v4.resources.RecommendationSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getRecommendationSpec",value:function(){return this.recommendationSpec}},{key:"setRecommendationSpec",value:function(e){this.recommendationSpec=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 hp(hp({},!1===e?void 0!==this.getRecommendationSpec()&&null!==this.getRecommendationSpec()?{recommendationSpec:void 0!==this.getRecommendationSpec().toJson?this.getRecommendationSpec().toJson(!1):Array.isArray(this.getRecommendationSpec())?this.getRecommendationSpec().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):mp(wp,this,jp).call(this,this.getRecommendationSpec(),!1)}:{}:void 0!==this.getRecommendationSpec()&&null!==this.getRecommendationSpec()?{recommendationSpec:void 0!==this.getRecommendationSpec().toJson?this.getRecommendationSpec().toJson():Array.isArray(this.getRecommendationSpec())?this.getRecommendationSpec().map((function(e){return void 0!==e.toJson?e.toJson():e})):mp(wp,this,jp).call(this,this.getRecommendationSpec())}:{}),{},{$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 E?r=["recommendationSpec"]: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"recommendationSpec"!==t||void 0!==this.recommendationSpec&&null!==this.recommendationSpec?"$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("recommendationSpec","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("recommendationSpec")&&null!==t.recommendationSpec&&void 0!==t.recommendationSpec){if(!Array.isArray(t.recommendationSpec))throw"Unknown datatype "+(a=t.recommendationSpec.hasOwnProperty("$objectType")?t.recommendationSpec.$objectType:pp(t.recommendationSpec))+" in data";if(0===t.recommendationSpec.length)s.setRecommendationSpec([]);else{if(i=[],(n=t.recommendationSpec)[0].hasOwnProperty("$objectType"))a=n[0].$objectType;else{a=pp(n[0]);try{Object.keys($r).find((function(e){return $r[e]===n[0]}))&&(a="lifecycle.v4.common.EntityType")}catch(e){}}for(o=0;o<n.length;o++)switch(a){case"lifecycle.v4.common.EntityType":r=$r.constructFromObject(n[o],void 0),i.push(r);break;case"lifecycle.v4.resources.TargetEntity":r=fp.constructFromObject(n[o],void 0),i.push(r);break;case"lifecycle.v4.common.EntityUpdateSpec":r=wa.constructFromObject(n[o],void 0),i.push(r);break;case"lifecycle.v4.common.EntityDeploySpec":r=ep.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}s.setRecommendationSpec(i)}}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!u)for(var l in s.$unknownFields=hp({},t.$unknownFields),t)Object.keys(s).includes(l)||Object.keys(s).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(s.$unknownFields[l]=t[l])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&bp(t.prototype,n),r&&bp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function jp(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return dp(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)?dp(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===pp(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 kp(e){return kp="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},kp(e)}function $p(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 Pp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$p(Object(n),!0).forEach((function(t){Tp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tp(e,t,n){return(t=Sp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ep(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,Sp(r.key),r)}}function Sp(e){var t=function(e){if("object"!=kp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kp(t)?t:t+""}function Fp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fp=function(){return!!e})()}function Dp(e){return Dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dp(e)}function Ip(e,t){return Ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ip(e,t)}Op.prototype.recommendationSpec=void 0,Op.prototype.$reserved=void 0,Op.prototype.$objectType=void 0,Op.prototype.$unknownFields=void 0;var Ap=new WeakSet,Cp=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=Dp(t),function(e,t){if(t&&("object"==kp(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,Fp()?Reflect.construct(t,n||[],Dp(e).constructor):t.apply(e,n))}(this,t),Ap),e.$objectType="lifecycle.v4.resources.DeployableVersion",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&&Ip(e,t)}(t,e),n=t,r=[{key:"getTargetVersion",value:function(){return this.targetVersion}},{key:"setTargetVersion",value:function(e){this.targetVersion=e}},{key:"getUpdateDependencies",value:function(){return this.updateDependencies}},{key:"setUpdateDependencies",value:function(e){this.updateDependencies=e}},{key:"toJson",value:function(e){return Pp(!1===e?Pp(Pp(Pp(Pp(Pp(Pp(Pp(Pp(Pp(Pp({},void 0!==this.getTargetVersion()&&null!==this.getTargetVersion()?{targetVersion:this.getTargetVersion()}:{}),void 0!==this.getUpdateDependencies()&&null!==this.getUpdateDependencies()?{updateDependencies:this.getUpdateDependencies().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),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()}:{}):Pp(Pp(Pp(Pp(Pp(Pp(Pp({},void 0!==this.getTargetVersion()&&null!==this.getTargetVersion()?{targetVersion:this.getTargetVersion()}:{}),void 0!==this.getUpdateDependencies()&&null!==this.getUpdateDependencies()?{updateDependencies:this.getUpdateDependencies().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),{},{$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 E?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("targetVersion"===t){if(void 0===this.targetVersion||null===this.targetVersion)return new R("targetVersion","undefined or null");if(!I.validateMaxLength(this.targetVersion,128))return new R("targetVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.targetVersion,1))return new R("targetVersion","does not satisfy required minLength constraint: 1")}if("updateDependencies"===t){if(void 0===this.updateDependencies||null===this.updateDependencies)return new R("updateDependencies","undefined or null");if(!I.validateMaxItems(this.updateDependencies,2048))return new R("updateDependencies","does not satisfy required maxItems constraint: 2048")}return new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Rr.constructFromObject(e,a,!0),e.hasOwnProperty("targetVersion")&&null!==e.targetVersion&&void 0!==e.targetVersion&&a.setTargetVersion(e.targetVersion),e.hasOwnProperty("updateDependencies")&&null!==e.updateDependencies&&void 0!==e.updateDependencies){for(i=[],n=e.updateDependencies,o=0;o<n.length;o++)r=wa.constructFromObject(n[o],void 0),i.push(r);a.setUpdateDependencies(i)}if(!s)for(var u in a.$unknownFields=Pp({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ep(n.prototype,r),o&&Ep(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Rr);function xp(e){return xp="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},xp(e)}function Rp(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 Up(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rp(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mp(e,t,n){return(t=Vp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _p(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,Vp(r.key),r)}}function Vp(e){var t=function(e){if("object"!=xp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xp(t)?t:t+""}function Np(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Np=function(){return!!e})()}function Jp(e){return Jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jp(e)}function Lp(e,t){return Lp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lp(e,t)}Cp.prototype.targetVersion=void 0,Cp.prototype.updateDependencies=void 0,Rr.prototype.entityClass=void 0,Rr.prototype.entityModel=void 0,Rr.prototype.entityType=void 0,Rr.prototype.entityVersion=void 0,Rr.prototype.hardwareFamily=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Wn.prototype.tenantId=void 0;var Wp=new WeakSet,Bp=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=Jp(t),function(e,t){if(t&&("object"==xp(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,Np()?Reflect.construct(t,n||[],Jp(e).constructor):t.apply(e,n))}(this,t),Wp),e.$objectType="lifecycle.v4.resources.UpdatedTargetEntity",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&&Lp(e,t)}(t,e),n=t,r=[{key:"getLocationInfo",value:function(){return this.locationInfo}},{key:"setLocationInfo",value:function(e){this.locationInfo=e}},{key:"toJson",value:function(e){return Up(!1===e?Up(Up(Up(Up(Up(Up(Up(Up(Up({},void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),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()}:{}):Up(Up(Up(Up(Up(Up({},void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),{},{$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 E?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"locationInfo"!==t||void 0!==this.locationInfo&&null!==this.locationInfo?new R(t,"no such property exists"):new R("locationInfo","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,Rr.constructFromObject(e,n,!0),e.hasOwnProperty("locationInfo")&&null!==e.locationInfo&&void 0!==e.locationInfo&&n.setLocationInfo(_a.constructFromObject(e.locationInfo)),!r))for(var o in n.$unknownFields=Up({},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&&_p(n.prototype,r),o&&_p(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Rr);function Hp(e){return Hp="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},Hp(e)}function zp(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 qp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zp(Object(n),!0).forEach((function(t){Kp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kp(e,t,n){return(t=Xp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gp(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,Xp(r.key),r)}}function Xp(e){var t=function(e){if("object"!=Hp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hp(t)?t:t+""}Bp.prototype.locationInfo=void 0,Rr.prototype.entityClass=void 0,Rr.prototype.entityModel=void 0,Rr.prototype.entityType=void 0,Rr.prototype.entityVersion=void 0,Rr.prototype.hardwareFamily=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Wn.prototype.tenantId=void 0;var Qp=new WeakSet,Yp=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,Qp),this.message=t,this.$objectType="lifecycle.v4.resources.UpdatedTargetEntityResult",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getTargetEntity",value:function(){return this.targetEntity}},{key:"setTargetEntity",value:function(e){this.targetEntity=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=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 qp(qp(qp({},void 0!==this.getTargetEntity()&&null!==this.getTargetEntity()?{targetEntity:this.getTargetEntity().toJson(!1)}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),{},{$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 E?r=["message"]: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("targetEntity"===t&&(void 0===this.targetEntity||null===this.targetEntity))return new R("targetEntity","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new R("message","undefined or null");if(!I.validateMaxLength(this.message,512))return new R("message","does not satisfy required maxLength constraint: 512");if(!I.validateMinLength(this.message,1))return new R("message","does not satisfy required minLength constraint: 1")}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("targetEntity")&&null!==t.targetEntity&&void 0!==t.targetEntity&&n.setTargetEntity(Bp.constructFromObject(t.targetEntity)),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),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=qp({},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&&Gp(t.prototype,n),r&&Gp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Zp(e){return Zp="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},Zp(e)}function ey(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 ty(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ey(Object(n),!0).forEach((function(t){ny(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ey(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ny(e,t,n){return(t=oy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ry(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,oy(r.key),r)}}function oy(e){var t=function(e){if("object"!=Zp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zp(t)?t:t+""}function iy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(iy=function(){return!!e})()}function ay(e){return ay=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ay(e)}function sy(e,t){return sy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sy(e,t)}Yp.prototype.targetEntity=void 0,Yp.prototype.message=void 0,Yp.prototype.$reserved=void 0,Yp.prototype.$objectType=void 0,Yp.prototype.$unknownFields=void 0;var uy=new WeakSet,ly=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=ay(t),function(e,t){if(t&&("object"==Zp(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,iy()?Reflect.construct(t,n||[],ay(e).constructor):t.apply(e,n))}(this,t),uy),e.$objectType="lifecycle.v4.resources.RecommendationResult",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&&sy(e,t)}(t,e),n=t,r=[{key:"getEntityUpdateSpecs",value:function(){return this.entityUpdateSpecs}},{key:"setEntityUpdateSpecs",value:function(e){this.entityUpdateSpecs=e}},{key:"getSkippedEntities",value:function(){return this.skippedEntities}},{key:"setSkippedEntities",value:function(e){this.skippedEntities=e}},{key:"getModifiableEntities",value:function(){return this.modifiableEntities}},{key:"setModifiableEntities",value:function(e){this.modifiableEntities=e}},{key:"getAddableEntities",value:function(){return this.addableEntities}},{key:"setAddableEntities",value:function(e){this.addableEntities=e}},{key:"getDeployableVersions",value:function(){return this.deployableVersions}},{key:"setDeployableVersions",value:function(e){this.deployableVersions=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"toJson",value:function(e){return ty(!1===e?ty(ty(ty(ty(ty(ty(ty(ty(ty({},void 0!==this.getEntityUpdateSpecs()&&null!==this.getEntityUpdateSpecs()?{entityUpdateSpecs:this.getEntityUpdateSpecs().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSkippedEntities()&&null!==this.getSkippedEntities()?{skippedEntities:this.getSkippedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getModifiableEntities()&&null!==this.getModifiableEntities()?{modifiableEntities:this.getModifiableEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getAddableEntities()&&null!==this.getAddableEntities()?{addableEntities:this.getAddableEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getDeployableVersions()&&null!==this.getDeployableVersions()?{deployableVersions:this.getDeployableVersions().map((function(e){return e.toJson(!1)}))}:{}),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()}:{}):ty(ty(ty(ty(ty(ty({},void 0!==this.getEntityUpdateSpecs()&&null!==this.getEntityUpdateSpecs()?{entityUpdateSpecs:this.getEntityUpdateSpecs().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSkippedEntities()&&null!==this.getSkippedEntities()?{skippedEntities:this.getSkippedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getModifiableEntities()&&null!==this.getModifiableEntities()?{modifiableEntities:this.getModifiableEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getAddableEntities()&&null!==this.getAddableEntities()?{addableEntities:this.getAddableEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getDeployableVersions()&&null!==this.getDeployableVersions()?{deployableVersions:this.getDeployableVersions().map((function(e){return e.toJson(!1)}))}:{}),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 E?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("entityUpdateSpecs"===t){if(void 0===this.entityUpdateSpecs||null===this.entityUpdateSpecs)return new R("entityUpdateSpecs","undefined or null");if(!I.validateMaxItems(this.entityUpdateSpecs,2048))return new R("entityUpdateSpecs","does not satisfy required maxItems constraint: 2048")}if("skippedEntities"===t){if(void 0===this.skippedEntities||null===this.skippedEntities)return new R("skippedEntities","undefined or null");if(!I.validateMaxItems(this.skippedEntities,2048))return new R("skippedEntities","does not satisfy required maxItems constraint: 2048")}if("modifiableEntities"===t){if(void 0===this.modifiableEntities||null===this.modifiableEntities)return new R("modifiableEntities","undefined or null");if(!I.validateMaxItems(this.modifiableEntities,2048))return new R("modifiableEntities","does not satisfy required maxItems constraint: 2048")}if("addableEntities"===t){if(void 0===this.addableEntities||null===this.addableEntities)return new R("addableEntities","undefined or null");if(!I.validateMaxItems(this.addableEntities,2048))return new R("addableEntities","does not satisfy required maxItems constraint: 2048")}if("deployableVersions"===t){if(void 0===this.deployableVersions||null===this.deployableVersions)return new R("deployableVersions","undefined or null");if(!I.validateMaxItems(this.deployableVersions,2048))return new R("deployableVersions","does not satisfy required maxItems constraint: 2048")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!I.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,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,er.constructFromObject(e,a,!0),e.hasOwnProperty("entityUpdateSpecs")&&null!==e.entityUpdateSpecs&&void 0!==e.entityUpdateSpecs){for(i=[],n=e.entityUpdateSpecs,o=0;o<n.length;o++)r=wa.constructFromObject(n[o],void 0),i.push(r);a.setEntityUpdateSpecs(i)}if(e.hasOwnProperty("skippedEntities")&&null!==e.skippedEntities&&void 0!==e.skippedEntities){for(i=[],n=e.skippedEntities,o=0;o<n.length;o++)r=Yp.constructFromObject(n[o],void 0),i.push(r);a.setSkippedEntities(i)}if(e.hasOwnProperty("modifiableEntities")&&null!==e.modifiableEntities&&void 0!==e.modifiableEntities){for(i=[],n=e.modifiableEntities,o=0;o<n.length;o++)r=Yp.constructFromObject(n[o],void 0),i.push(r);a.setModifiableEntities(i)}if(e.hasOwnProperty("addableEntities")&&null!==e.addableEntities&&void 0!==e.addableEntities){for(i=[],n=e.addableEntities,o=0;o<n.length;o++)r=Yp.constructFromObject(n[o],void 0),i.push(r);a.setAddableEntities(i)}if(e.hasOwnProperty("deployableVersions")&&null!==e.deployableVersions&&void 0!==e.deployableVersions){for(i=[],n=e.deployableVersions,o=0;o<n.length;o++)r=Cp.constructFromObject(n[o],void 0),i.push(r);a.setDeployableVersions(i)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&a.setClusterExtId(e.clusterExtId),!s)for(var u in a.$unknownFields=ty({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&ry(n.prototype,r),o&&ry(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function cy(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 fy(e){return fy="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},fy(e)}function dy(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 py(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dy(Object(n),!0).forEach((function(t){yy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yy(e,t,n){return(t=vy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hy(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,vy(r.key),r)}}function vy(e){var t=function(e){if("object"!=fy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fy(t)?t:t+""}function by(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(by=function(){return!!e})()}function gy(e){return gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gy(e)}function my(e,t){return my=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},my(e,t)}function wy(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")}ly.prototype.entityUpdateSpecs=void 0,ly.prototype.skippedEntities=void 0,ly.prototype.modifiableEntities=void 0,ly.prototype.addableEntities=void 0,ly.prototype.deployableVersions=void 0,ly.prototype.clusterExtId=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Wn.prototype.tenantId=void 0;var Oy=new WeakSet,jy=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=gy(t),function(e,t){if(t&&("object"==fy(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,by()?Reflect.construct(t,n||[],gy(e).constructor):t.apply(e,n))}(this,t),Oy),e.$objectType="lifecycle.v4.resources.GetRecommendationByIdApiResponse",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&&my(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 py(py(py({},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})):wy(Oy,this,ky).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})):wy(Oy,this,ky).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 E?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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:fy(e.data)){case"lifecycle.v4.resources.RecommendationResult":r.setData(ly.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=py({},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&&hy(n.prototype,r),o&&hy(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ky(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return cy(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)?cy(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===fy(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 $y(e){return $y="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},$y(e)}function Py(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 Ty(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Py(Object(n),!0).forEach((function(t){Ey(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Py(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ey(e,t,n){return(t=Fy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sy(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,Fy(r.key),r)}}function Fy(e){var t=function(e){if("object"!=$y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$y(t)?t:t+""}function Dy(e,t){return e.get(Iy(e,t))}function Iy(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")}jy.prototype.metadata=void 0,jy.prototype.data=void 0,jy.prototype.$reserved=void 0,jy.prototype.$objectType=void 0,jy.prototype.$unknownFields=void 0;var Ay=new WeakMap,Cy=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,Ay,void 0),this.apiClient=t||lt.instance,n=Ay,r=new Set,n.set(Iy(n,this),r),Dy(Ay,this).add("authorization"),Dy(Ay,this).add("cookie"),Dy(Ay,this).add("host"),Dy(Ay,this).add("user-agent")},t=[{key:"computeRecommendations",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;if(null==(o=e instanceof Op&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling computeRecommendations");var i={};Object.keys(r).forEach((function(e){Dy(Ay,n).has(e.toLowerCase())||(i[e]=r[e])}));var a=Ty({"X-Cluster-Id":t.xClusterId},i);lt.addEtagReferenceToHeader(e,a);var s=Hd;return this.apiClient.callApi("/api/lifecycle/v4.0/operations/$actions/compute-recommendations","POST",{},{},a,{},o,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],s)}},{key:"getRecommendationById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getRecommendationById");var r={extId:e},o={};Object.keys(n).forEach((function(e){Dy(Ay,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Ty({},o),a=jy;return this.apiClient.callApi("/api/lifecycle/v4.0/resources/recommendations/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Sy(e.prototype,t),n&&Sy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function xy(e){return xy="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},xy(e)}function Ry(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 Uy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ry(Object(n),!0).forEach((function(t){My(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ry(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function My(e,t,n){return(t=Vy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _y(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,Vy(r.key),r)}}function Vy(e){var t=function(e){if("object"!=xy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xy(t)?t:t+""}var Ny=new WeakSet,Jy=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,Ny),this.$objectType="lifecycle.v4.resources.FrameworkVersionInfo",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCurrentVersion",value:function(){return this.currentVersion}},{key:"setCurrentVersion",value:function(e){this.currentVersion=e}},{key:"getAvailableVersion",value:function(){return this.availableVersion}},{key:"setAvailableVersion",value:function(e){this.availableVersion=e}},{key:"getIsUpdateNeeded",value:function(){return this.isUpdateNeeded}},{key:"setIsUpdateNeeded",value:function(e){this.isUpdateNeeded=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 Uy(Uy(Uy(Uy({},void 0!==this.getCurrentVersion()&&null!==this.getCurrentVersion()?{currentVersion:this.getCurrentVersion()}:{}),void 0!==this.getAvailableVersion()&&null!==this.getAvailableVersion()?{availableVersion:this.getAvailableVersion()}:{}),void 0!==this.getIsUpdateNeeded()&&null!==this.getIsUpdateNeeded()?{isUpdateNeeded:this.getIsUpdateNeeded()}:{}),{},{$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 E?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("currentVersion"===t){if(void 0===this.currentVersion||null===this.currentVersion)return new R("currentVersion","undefined or null");if(!I.validateMaxLength(this.currentVersion,128))return new R("currentVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.currentVersion,1))return new R("currentVersion","does not satisfy required minLength constraint: 1")}if("availableVersion"===t){if(void 0===this.availableVersion||null===this.availableVersion)return new R("availableVersion","undefined or null");if(!I.validateMaxLength(this.availableVersion,128))return new R("availableVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.availableVersion,1))return new R("availableVersion","does not satisfy required minLength constraint: 1")}return"isUpdateNeeded"!==t||void 0!==this.isUpdateNeeded&&null!==this.isUpdateNeeded?"$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("isUpdateNeeded","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("currentVersion")&&null!==t.currentVersion&&void 0!==t.currentVersion&&n.setCurrentVersion(t.currentVersion),t.hasOwnProperty("availableVersion")&&null!==t.availableVersion&&void 0!==t.availableVersion&&n.setAvailableVersion(t.availableVersion),t.hasOwnProperty("isUpdateNeeded")&&null!==t.isUpdateNeeded&&void 0!==t.isUpdateNeeded&&n.setIsUpdateNeeded(t.isUpdateNeeded),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=Uy({},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&&_y(t.prototype,n),r&&_y(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ly(e){return Ly="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},Ly(e)}function Wy(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 By(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wy(Object(n),!0).forEach((function(t){Hy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hy(e,t,n){return(t=qy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zy(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,qy(r.key),r)}}function qy(e){var t=function(e){if("object"!=Ly(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ly(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ly(t)?t:t+""}Jy.prototype.currentVersion=void 0,Jy.prototype.availableVersion=void 0,Jy.prototype.isUpdateNeeded=!1,Jy.prototype.$reserved=void 0,Jy.prototype.$objectType=void 0,Jy.prototype.$unknownFields=void 0;var Ky=new WeakSet,Gy=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,Ky),this.$objectType="lifecycle.v4.resources.InProgressOpInfo",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getOperationId",value:function(){return this.operationId}},{key:"setOperationId",value:function(e){this.operationId=e}},{key:"getOperationType",value:function(){return this.operationType}},{key:"setOperationType",value:function(e){this.operationType=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 By(By(By({},void 0!==this.getOperationId()&&null!==this.getOperationId()?{operationId:this.getOperationId()}:{}),void 0!==this.getOperationType()&&null!==this.getOperationType()?{operationType:this.getOperationType()}:{}),{},{$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 E?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("operationId"===t){if(void 0===this.operationId||null===this.operationId)return new R("operationId","undefined or null");if(!I.validatePattern(this.operationId,/^[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("operationId","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"operationType"!==t||void 0!==this.operationType&&null!==this.operationType?"$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("operationType","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("operationId")&&null!==t.operationId&&void 0!==t.operationId&&n.setOperationId(t.operationId),t.hasOwnProperty("operationType")&&null!==t.operationType&&void 0!==t.operationType&&n.setOperationType(fl.constructFromObject(t.operationType)),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=By({},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&&zy(t.prototype,n),r&&zy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xy(e){return Xy="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},Xy(e)}function Qy(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 Yy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qy(Object(n),!0).forEach((function(t){Zy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zy(e,t,n){return(t=th(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eh(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,th(r.key),r)}}function th(e){var t=function(e){if("object"!=Xy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xy(t)?t:t+""}function nh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nh=function(){return!!e})()}function rh(e){return rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rh(e)}function oh(e,t){return oh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oh(e,t)}Gy.prototype.operationId=void 0,Gy.prototype.operationType=void 0,Gy.prototype.$reserved=void 0,Gy.prototype.$objectType=void 0,Gy.prototype.$unknownFields=void 0;var ih=new WeakSet,ah=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=rh(t),function(e,t){if(t&&("object"==Xy(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,nh()?Reflect.construct(t,n||[],rh(e).constructor):t.apply(e,n))}(this,t),ih),e.$objectType="lifecycle.v4.resources.StatusInfo",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&&oh(e,t)}(t,e),n=t,r=[{key:"getFrameworkVersion",value:function(){return this.frameworkVersion}},{key:"setFrameworkVersion",value:function(e){this.frameworkVersion=e}},{key:"getInProgressOperation",value:function(){return this.inProgressOperation}},{key:"setInProgressOperation",value:function(e){this.inProgressOperation=e}},{key:"getIsCancelIntentSet",value:function(){return this.isCancelIntentSet}},{key:"setIsCancelIntentSet",value:function(e){this.isCancelIntentSet=e}},{key:"getUploadTaskUuid",value:function(){return this.uploadTaskUuid}},{key:"setUploadTaskUuid",value:function(e){this.uploadTaskUuid=e}},{key:"toJson",value:function(e){return Yy(!1===e?Yy(Yy(Yy(Yy(Yy(Yy(Yy({},void 0!==this.getFrameworkVersion()&&null!==this.getFrameworkVersion()?{frameworkVersion:this.getFrameworkVersion().toJson(!1)}:{}),void 0!==this.getInProgressOperation()&&null!==this.getInProgressOperation()?{inProgressOperation:this.getInProgressOperation().toJson(!1)}:{}),void 0!==this.getIsCancelIntentSet()&&null!==this.getIsCancelIntentSet()?{isCancelIntentSet:this.getIsCancelIntentSet()}:{}),void 0!==this.getUploadTaskUuid()&&null!==this.getUploadTaskUuid()?{uploadTaskUuid:this.getUploadTaskUuid()}:{}),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()}:{}):Yy(Yy(Yy(Yy({},void 0!==this.getFrameworkVersion()&&null!==this.getFrameworkVersion()?{frameworkVersion:this.getFrameworkVersion().toJson(!1)}:{}),void 0!==this.getInProgressOperation()&&null!==this.getInProgressOperation()?{inProgressOperation:this.getInProgressOperation().toJson(!1)}:{}),void 0!==this.getIsCancelIntentSet()&&null!==this.getIsCancelIntentSet()?{isCancelIntentSet:this.getIsCancelIntentSet()}:{}),void 0!==this.getUploadTaskUuid()&&null!==this.getUploadTaskUuid()?{uploadTaskUuid:this.getUploadTaskUuid()}:{}),{},{$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 E?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("frameworkVersion"===t&&(void 0===this.frameworkVersion||null===this.frameworkVersion))return new R("frameworkVersion","undefined or null");if("inProgressOperation"===t&&(void 0===this.inProgressOperation||null===this.inProgressOperation))return new R("inProgressOperation","undefined or null");if("isCancelIntentSet"===t&&(void 0===this.isCancelIntentSet||null===this.isCancelIntentSet))return new R("isCancelIntentSet","undefined or null");if("uploadTaskUuid"===t){if(void 0===this.uploadTaskUuid||null===this.uploadTaskUuid)return new R("uploadTaskUuid","undefined or null");if(!I.validatePattern(this.uploadTaskUuid,/^[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("uploadTaskUuid","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("frameworkVersion")&&null!==e.frameworkVersion&&void 0!==e.frameworkVersion&&n.setFrameworkVersion(Jy.constructFromObject(e.frameworkVersion)),e.hasOwnProperty("inProgressOperation")&&null!==e.inProgressOperation&&void 0!==e.inProgressOperation&&n.setInProgressOperation(Gy.constructFromObject(e.inProgressOperation)),e.hasOwnProperty("isCancelIntentSet")&&null!==e.isCancelIntentSet&&void 0!==e.isCancelIntentSet&&n.setIsCancelIntentSet(e.isCancelIntentSet),e.hasOwnProperty("uploadTaskUuid")&&null!==e.uploadTaskUuid&&void 0!==e.uploadTaskUuid&&n.setUploadTaskUuid(e.uploadTaskUuid),!r))for(var o in n.$unknownFields=Yy({},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&&eh(n.prototype,r),o&&eh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(er);function sh(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 uh(e){return uh="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},uh(e)}function lh(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 ch(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lh(Object(n),!0).forEach((function(t){fh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fh(e,t,n){return(t=ph(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dh(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,ph(r.key),r)}}function ph(e){var t=function(e){if("object"!=uh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==uh(t)?t:t+""}function yh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yh=function(){return!!e})()}function hh(e){return hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hh(e)}function vh(e,t){return vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vh(e,t)}function bh(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")}ah.prototype.frameworkVersion=void 0,ah.prototype.inProgressOperation=void 0,ah.prototype.isCancelIntentSet=!1,ah.prototype.uploadTaskUuid=void 0,er.prototype.extId=void 0,er.prototype.links=void 0,Wn.prototype.tenantId=void 0;var gh=new WeakSet,mh=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=hh(t),function(e,t){if(t&&("object"==uh(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,yh()?Reflect.construct(t,n||[],hh(e).constructor):t.apply(e,n))}(this,t),gh),e.$objectType="lifecycle.v4.resources.GetStatusApiResponse",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&&vh(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 ch(ch(ch({},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})):bh(gh,this,wh).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})):bh(gh,this,wh).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 E?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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:uh(e.data)){case"lifecycle.v4.resources.StatusInfo":r.setData(ah.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=ch({},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&&dh(n.prototype,r),o&&dh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function wh(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return sh(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)?sh(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===uh(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 Oh(e){return Oh="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},Oh(e)}function jh(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 kh(e,t,n){return(t=Ph(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $h(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,Ph(r.key),r)}}function Ph(e){var t=function(e){if("object"!=Oh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Oh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oh(t)?t:t+""}function Th(e,t){return e.get(Eh(e,t))}function Eh(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")}mh.prototype.metadata=void 0,mh.prototype.data=void 0,mh.prototype.$reserved=void 0,mh.prototype.$objectType=void 0,mh.prototype.$unknownFields=void 0;var Sh=new WeakMap,Fh=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,Sh,void 0),this.apiClient=t||lt.instance,n=Sh,r=new Set,n.set(Eh(n,this),r),Th(Sh,this).add("authorization"),Th(Sh,this).add("cookie"),Th(Sh,this).add("host"),Th(Sh,this).add("user-agent")},t=[{key:"getStatus",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};e=e||{};var r={};Object.keys(n).forEach((function(e){Th(Sh,t).has(e.toLowerCase())||(r[e]=n[e])}));var o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jh(Object(n),!0).forEach((function(t){kh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"X-Cluster-Id":e.xClusterId},r),i=mh;return this.apiClient.callApi("/api/lifecycle/v4.0/resources/status","GET",{},{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],i)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&$h(e.prototype,t),n&&$h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Dh(e){return Dh="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},Dh(e)}function Ih(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 Ah(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ih(Object(n),!0).forEach((function(t){Ch(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ih(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ch(e,t,n){return(t=Rh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xh(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,Rh(r.key),r)}}function Rh(e){var t=function(e){if("object"!=Dh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Dh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dh(t)?t:t+""}function Uh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Uh=function(){return!!e})()}function Mh(e){return Mh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mh(e)}function _h(e,t){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_h(e,t)}var Vh=new WeakSet,Nh=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=Mh(t),function(e,t){if(t&&("object"==Dh(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,Uh()?Reflect.construct(t,n||[],Mh(e).constructor):t.apply(e,n))}(this,t,[e]),Vh),n.$objectType="lifecycle.v4.common.UpgradeSpec",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&&_h(e,t)}(t,e),n=t,r=[{key:"getAutoHandleFlags",value:function(){return this.autoHandleFlags}},{key:"setAutoHandleFlags",value:function(e){this.autoHandleFlags=e}},{key:"getMaxWaitTimeInSecs",value:function(){return this.maxWaitTimeInSecs}},{key:"setMaxWaitTimeInSecs",value:function(e){this.maxWaitTimeInSecs=e}},{key:"toJson",value:function(e){return Ah(Ah(Ah(Ah(Ah(Ah({},void 0!==this.getAutoHandleFlags()&&null!==this.getAutoHandleFlags()?{autoHandleFlags:this.getAutoHandleFlags()}:{}),void 0!==this.getMaxWaitTimeInSecs()&&null!==this.getMaxWaitTimeInSecs()?{maxWaitTimeInSecs:this.getMaxWaitTimeInSecs()}:{}),void 0!==this.getManagementServer()&&null!==this.getManagementServer()?{managementServer:this.getManagementServer().toJson(!1)}:{}),void 0!==this.getEntityUpdateSpecs()&&null!==this.getEntityUpdateSpecs()?{entityUpdateSpecs:this.getEntityUpdateSpecs().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSkippedPrecheckFlags()&&null!==this.getSkippedPrecheckFlags()?{skippedPrecheckFlags:this.getSkippedPrecheckFlags()}:{}),{},{$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 E?r=["entityUpdateSpecs"]: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("autoHandleFlags"===t){if(void 0===this.autoHandleFlags||null===this.autoHandleFlags)return new R("autoHandleFlags","undefined or null");if(!I.validateMaxItems(this.autoHandleFlags,20))return new R("autoHandleFlags","does not satisfy required maxItems constraint: 20")}if("maxWaitTimeInSecs"===t){if(void 0===this.maxWaitTimeInSecs||null===this.maxWaitTimeInSecs)return new R("maxWaitTimeInSecs","undefined or null");if(!I.validateMaximum(this.maxWaitTimeInSecs,86400))return new R("maxWaitTimeInSecs","does not satisfy required maximum constraint: 86400");if(!I.validateMinimum(this.maxWaitTimeInSecs,60))return new R("maxWaitTimeInSecs","does not satisfy required minimum constraint: 60")}return new R(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,ld.constructFromObject(e,a,!0),e.hasOwnProperty("autoHandleFlags")&&null!==e.autoHandleFlags&&void 0!==e.autoHandleFlags){for(i=[],n=e.autoHandleFlags,o=0;o<n.length;o++)r=td.constructFromObject(n[o],void 0),i.push(r);a.setAutoHandleFlags(i)}if(e.hasOwnProperty("maxWaitTimeInSecs")&&null!==e.maxWaitTimeInSecs&&void 0!==e.maxWaitTimeInSecs&&a.setMaxWaitTimeInSecs(e.maxWaitTimeInSecs),!s)for(var u in a.$unknownFields=Ah({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&xh(n.prototype,r),o&&xh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ld);function Jh(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 Lh(e){return Lh="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},Lh(e)}function Wh(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 Bh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wh(Object(n),!0).forEach((function(t){Hh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hh(e,t,n){return(t=qh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zh(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,qh(r.key),r)}}function qh(e){var t=function(e){if("object"!=Lh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lh(t)?t:t+""}function Kh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kh=function(){return!!e})()}function Gh(e){return Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gh(e)}function Xh(e,t){return Xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xh(e,t)}function Qh(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")}Nh.prototype.autoHandleFlags=void 0,Nh.prototype.maxWaitTimeInSecs=void 0,ld.prototype.managementServer=void 0,ld.prototype.entityUpdateSpecs=void 0,ld.prototype.skippedPrecheckFlags=void 0;var Yh=new WeakSet,Zh=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=Gh(t),function(e,t){if(t&&("object"==Lh(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,Kh()?Reflect.construct(t,n||[],Gh(e).constructor):t.apply(e,n))}(this,t),Yh),e.$objectType="lifecycle.v4.operations.UpgradeApiResponse",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&&Xh(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 Bh(Bh(Bh({},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})):Qh(Yh,this,ev).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})):Qh(Yh,this,ev).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 E?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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Lh(e.data)){case"prism.v4.config.TaskReference":r.setData(On.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=Bh({},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&&zh(n.prototype,r),o&&zh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ev(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Jh(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)?Jh(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Lh(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 tv(e){return tv="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},tv(e)}function nv(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 rv(e,t,n){return(t=iv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ov(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,iv(r.key),r)}}function iv(e){var t=function(e){if("object"!=tv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tv(t)?t:t+""}function av(e,t){return e.get(sv(e,t))}function sv(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")}Zh.prototype.metadata=void 0,Zh.prototype.data=void 0,Zh.prototype.$reserved=void 0,Zh.prototype.$objectType=void 0,Zh.prototype.$unknownFields=void 0;var uv=new WeakMap,lv=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,uv,void 0),this.apiClient=t||lt.instance,n=uv,r=new Set,n.set(sv(n,this),r),av(uv,this).add("authorization"),av(uv,this).add("cookie"),av(uv,this).add("host"),av(uv,this).add("user-agent")},t=[{key:"performUpgrade",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;if(null==(o=e instanceof Nh&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling performUpgrade");var i={};Object.keys(r).forEach((function(e){av(uv,n).has(e.toLowerCase())||(i[e]=r[e])}));var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nv(Object(n),!0).forEach((function(t){rv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"X-Cluster-Id":t.xClusterId},i);lt.addEtagReferenceToHeader(e,a);var s=Zh;return this.apiClient.callApi("/api/lifecycle/v4.0/operations/$actions/upgrade","POST",{},{},a,{},o,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&ov(e.prototype,t),n&&ov(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function cv(e){return cv="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},cv(e)}function fv(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 dv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fv(Object(n),!0).forEach((function(t){pv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pv(e,t,n){return(t=hv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yv(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,hv(r.key),r)}}function hv(e){var t=function(e){if("object"!=cv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cv(t)?t:t+""}var vv=new WeakSet,bv=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,vv),this.entityDeploySpecs=t,this.$objectType="lifecycle.v4.common.DeploySpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getEntityDeploySpecs",value:function(){return this.entityDeploySpecs}},{key:"setEntityDeploySpecs",value:function(e){this.entityDeploySpecs=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 dv(dv({},void 0!==this.getEntityDeploySpecs()&&null!==this.getEntityDeploySpecs()?{entityDeploySpecs:this.getEntityDeploySpecs().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 E?r=["entityDeploySpecs"]: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("entityDeploySpecs"===t){if(void 0===this.entityDeploySpecs||null===this.entityDeploySpecs)return new R("entityDeploySpecs","undefined or null");if(!I.validateMaxItems(this.entityDeploySpecs,2048))return new R("entityDeploySpecs","does not satisfy required maxItems constraint: 2048")}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,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("entityDeploySpecs")&&null!==t.entityDeploySpecs&&void 0!==t.entityDeploySpecs){for(i=[],n=t.entityDeploySpecs,o=0;o<n.length;o++)r=ep.constructFromObject(n[o],void 0),i.push(r);a.setEntityDeploySpecs(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=dv({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&yv(t.prototype,n),r&&yv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function gv(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 mv(e){return mv="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},mv(e)}function wv(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 Ov(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wv(Object(n),!0).forEach((function(t){jv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jv(e,t,n){return(t=$v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kv(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,$v(r.key),r)}}function $v(e){var t=function(e){if("object"!=mv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mv(t)?t:t+""}function Pv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Pv=function(){return!!e})()}function Tv(e){return Tv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tv(e)}function Ev(e,t){return Ev=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ev(e,t)}function Sv(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")}bv.prototype.entityDeploySpecs=void 0,bv.prototype.$reserved=void 0,bv.prototype.$objectType=void 0,bv.prototype.$unknownFields=void 0;var Fv=new WeakSet,Dv=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=Tv(t),function(e,t){if(t&&("object"==mv(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,Pv()?Reflect.construct(t,n||[],Tv(e).constructor):t.apply(e,n))}(this,t),Fv),e.$objectType="lifecycle.v4.operations.DeployArtifactsApiResponse",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&&Ev(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 Ov(Ov(Ov({},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})):Sv(Fv,this,Iv).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})):Sv(Fv,this,Iv).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 E?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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:mv(e.data)){case"prism.v4.config.TaskReference":r.setData(On.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(dn.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=Ov({},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&&kv(n.prototype,r),o&&kv(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Iv(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,a,s=[],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)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return gv(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)?gv(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],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===mv(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}Dv.prototype.metadata=void 0,Dv.prototype.data=void 0,Dv.prototype.$reserved=void 0,Dv.prototype.$objectType=void 0,Dv.prototype.$unknownFields=void 0;const Av={ApiClient:lt,BundlesApi:hi,ConfigApi:da,EntitiesApi:vu,ImagesApi:Nu,InventoryApi:ll,LcmSummariesApi:vc,NotificationsApi:Hf,PrechecksApi:Ad,RecommendationsApi:Cy,StatusApi:Fh,UpgradesApi:lv,Flag:W,KVPair:ce,MapOfStringWrapper:Z,Message:Oe,MessageSeverity:pe,TenantAwareModel:Wn,ApiLink:Fe,ApiResponseMetadata:_e,ExternalizableAbstractModel:er,AvailableVersionStatus:jr,CheckSumType:Mr,DeploySpec:bv,EntityBaseModel:Rr,EntityDeploySpec:ep,EntityType:$r,EntityUpdateSpec:wa,HypervisorType:gc,InProgressOpDetails:ml,LcmMd5Sum:ur,LcmSha256Sum:vr,LocationInfo:_a,LocationType:Da,ManagementServer:Zf,NotificationType:wc,OperationType:fl,PrechecksSpec:ld,PreloadSpec:Sa,SystemAutoMgmtFlag:td,UpgradeSpec:Nh,AppMessage:Ut,ErrorResponse:dn,SchemaValidationError:en,SchemaValidationErrorMessage:Ht,ComputeNotificationsApiResponse:Tf,ComputeRecommendationsApiResponse:Hd,DeployArtifactsApiResponse:Dv,InventoryApiResponse:Zu,PrechecksApiResponse:jd,PreloadArtifactsApiResponse:Hs,UpgradeApiResponse:Zh,AvailableVersion:os,Bundle:vo,BundleType:gr,BundleVendor:wr,Capability:Ol,Config:Si,ConnectivityType:bi,CreateBundleApiResponse:Bo,DeleteBundleByIdApiResponse:xn,DependentEntity:Ga,DeployableVersion:Cp,Entity:bs,FrameworkVersionInfo:Jy,GetBundleByIdApiResponse:oi,GetConfigApiResponse:Ji,GetEntityByIdApiResponse:Is,GetLcmSummaryByIdApiResponse:Hl,GetNotificationsByIdApiResponse:df,GetRecommendationByIdApiResponse:jy,GetStatusApiResponse:mh,Image:no,ImageFile:Hr,InProgressOpInfo:Gy,LcmSummary:Al,ListBundlesApiResponse:Do,ListEntitiesApiResponse:iu,ListImagesApiResponse:Fu,ListLcmSummariesApiResponse:ic,Notification:Yc,NotificationDetail:Dc,NotificationItem:Jc,NotificationsSpec:Rf,RecommendationResult:ly,RecommendationSpec:Op,SeverityLevel:jc,StatusInfo:ah,TargetEntity:fp,UpdateConfigApiResponse:ta,UpdatedTargetEntity:Bp,UpdatedTargetEntityResult:Yp,TaskReference:On}})(),r.default})()));
|
|
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.Lifecycle=t())}("undefined"==typeof self?this:self,()=>(()=>{var e={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}},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}},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=f,a.stableStringify=f;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,f){var d;if(c+=1,"object"===t(e)&&null!==e){for(d=0;d<s.length;d++)if(s[d]===e)return void u(r,e,o,a);if(void 0!==f.depthLimit&&c>f.depthLimit)return void u(n,e,o,a);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void u(n,e,o,a);if(s.push(e),Array.isArray(e))for(d=0;d<e.length;d++)l(e[d],d,d,s,e,c,f);else{var p=Object.keys(e);for(d=0;d<p.length;d++){var y=p[d];l(e[y],y,d,s,e,c,f)}}s.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function f(e,t,n,r){void 0===r&&(r=s());var a,u=d(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 d(e,i,s,a,l,f,p){var y;if(f+=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&&f>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++)d(e[y],y,y,a,e,f,p);else{var h={},v=Object.keys(e).sort(c);for(y=0;y<v.length;y++){var b=v[y];d(e[b],b,y,a,e,f,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)}}},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)}},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}},545:()=>{},548:()=>{},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 f(){}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 d=t=e.exports;t.Request=m,d.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=d("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}d.serializeObject=y,d.parseString=v,d.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"},d.serialize={"application/x-www-form-urlencoded":y,"application/json":s},d.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},l(g.prototype),g.prototype._parseBody=function(e){var t=d.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=d.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},d.Response=g,i(m.prototype),a(m.prototype),m.prototype.type=function(e){return this.set("Content-Type",d.types[e]||e),this},m.prototype.accept=function(e){return this.set("Accept",d.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||f,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=d.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||d.serialize[o?o.split(";")[0]:""];!i&&b(o)&&(i=d.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)},d.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){c.prototype[e.toLowerCase()]=function(t,n){var r=new d.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}),c.prototype.del=c.prototype.delete,d.get=function(e,t,n){var r=d("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.head=function(e,t,n){var r=d("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.options=function(e,t,n){var r=d("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.del=w,d.delete=w,d.patch=function(e,t,n){var r=d("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.post=function(e,t,n){var r=d("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.put=function(e,t,n){var r=d("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},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}},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},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))}},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 f(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 d(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=d(o),u=a.device,l=a.isUnc,c=a.isAbsolute,f=a.tail;if((!u||!e||u.toLowerCase()===e.toLowerCase())&&(e||(e=u),n||(t=f+"\\"+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=d(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 d(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,f=0;f<u;f++)if(i[f]!==s[f]){l=f;break}if(0==l)return t;var d=[];for(f=l;f<i.length;f++)d.push("..");return(d=d.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=f(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=f(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},c.extname=function(e){return f(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=f(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},799:()=>{},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&&j(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)),k(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(j(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(k(n))return f(n)}var l,w="",$=!1,P=["{","}"];return p(n)&&($=!0,P=["[","]"]),j(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),m(n)&&(w=" "+RegExp.prototype.toString.call(n)),O(n)&&(w=" "+Date.prototype.toUTCString.call(n)),k(n)&&(w=" "+f(n)),0!==s.length||$&&0!=n.length?r<0?m(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=$?function(e,t,n,r,o){for(var i=[],s=0,a=t.length;s<a;++s)F(t,String(s))?i.push(d(e,t,n,r,String(s),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(d(e,t,n,r,o,!0))}),i}(e,n,r,a,s):s.map(function(t){return d(e,n,r,a,t,$)}),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,P)):P[0]+w+P[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(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")),F(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]"===$(e)}function w(e){return"object"===r(e)&&null!==e}function O(e){return w(e)&&"[object Date]"===$(e)}function k(e){return w(e)&&("[object Error]"===$(e)||e instanceof Error)}function j(e){return"function"==typeof e}function $(e){return Object.prototype.toString.call(e)}function P(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=k,t.isFunction=j,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 T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[P((e=new Date).getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":"),[e.getDate(),T[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}},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}},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}},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:()=>LF});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 f(){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 d=/^(?:[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&&d.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},v=function(e,t,n){var r=(e=e||{}).random||(e.rng||f)();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),k=n.n(O),j=n(784),$=n.n(j),P=n(548),T={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return T[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===T.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(T);const F=T;function E(e){return E="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},E(e)}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,C(r.key),r)}}function C(e){var t=function(e){if("object"!=E(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}var I=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&&S(e.prototype,null),t&&S(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function D(e){return D="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},D(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,U(r.key),r)}}function U(e){var t=function(e){if("object"!=D(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==D(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()}}}])&&A(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function x(e){return x="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},x(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 M(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){V(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 V(e,t,n){return(t=L(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(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,L(r.key),r)}}function L(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}var J=new WeakSet,W=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,J),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 M(M(M({},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 F?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(!I.validateMaxLength(this.name,128))return new R("name","does not satisfy required maxLength constraint: 128");if(!I.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=M({},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&&_(t.prototype,n),r&&_(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function B(e){return B="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},B(e)}function z(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 q(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 K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach(function(t){H(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function H(e,t,n){return(t=X(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,X(r.key),r)}}function X(e){var t=function(e){if("object"!=B(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==B(t)?t:t+""}function Z(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")}W.prototype.name=void 0,W.prototype.value=!1,W.prototype.$reserved=void 0,W.prototype.$objectType=void 0,W.prototype.$unknownFields=void 0;var Q=new WeakSet,Y=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,Q),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 K(K({},!1===e?void 0!==this.getMap()&&null!==this.getMap()?{map:Z(Q,this,ee).call(this,this.getMap(),!1)}:{}:void 0!==this.getMap()&&null!==this.getMap()?{map:Z(Q,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 F?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=K({},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 z(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)?z(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"===B(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")}Y.prototype.map=void 0,Y.prototype.$reserved=void 0,Y.prototype.$objectType=void 0,Y.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,fe).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,fe).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 F?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(!I.validateMaxLength(this.name,128))return new R("name","does not satisfy required maxLength constraint: 128");if(!I.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=Y.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 fe(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 de={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(de).find(function(t){return de[t]===e});return null==t?de.$UNKNOWN:de[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case de.$UNKNOWN:case de.$REDACTED:case de.INFO:case de.WARNING:case de.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(de);const pe=de;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 F?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 ke(e){return ke="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},ke(e)}function je(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 $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach(function(t){Pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pe(e,t,n){return(t=Fe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(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,Fe(r.key),r)}}function Fe(e){var t=function(e){if("object"!=ke(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ke(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 Ee=new WeakSet,Se=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,Ee),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 $e($e($e({},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 F?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=$e({},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&&Te(t.prototype,n),r&&Te(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ce(e){return Ce="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},Ce(e)}function Ie(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 De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach(function(t){Ae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ae(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 Ue(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"!=Ce(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ce(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ce(t)?t:t+""}Se.prototype.href=void 0,Se.prototype.rel=void 0,Se.prototype.$reserved=void 0,Se.prototype.$objectType=void 0,Se.prototype.$unknownFields=void 0;var xe,Ne=new WeakSet,Me=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,Ne),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 De(De(De(De(De(De({},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 F?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(!I.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(!I.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(!I.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(!I.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=W.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=Se.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=De({},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&&Ue(t.prototype,n),r&&Ue(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ve(){Ve=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)),_e(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&&_e(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,n){if(""===n)return e;var r=i[t];return Array.isArray(r)?"$"+r.join("$"):"number"==typeof r?"$"+r:""}))}if("function"==typeof o){var s=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=Be(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,s)),o.apply(this,e)})}return e[Symbol.replace].call(this,n,o)},Ve.apply(this,arguments)}function _e(e,t){return _e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_e(e,t)}function Le(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 Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach(function(t){We(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function We(e,t,n){return(t=He(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Be(e){return Be="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},Be(e)}function ze(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 qe(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)?qe(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 qe(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 Ke(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,He(r.key),r)}}function He(e){var t=function(e){if("object"!=Be(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Be(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Be(t)?t:t+""}function Ge(e,t,n){Xe(e,t),t.set(e,n)}function Xe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ze(e,t){return e.get(Ye(e,t))}function Qe(e,t,n){return e.set(Ye(e,t),n),n}function Ye(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")}Me.prototype.flags=void 0,Me.prototype.links=void 0,Me.prototype.totalAvailableResults=void 0,Me.prototype.messages=void 0,Me.prototype.extraInfo=void 0,Me.prototype.$reserved=void 0,Me.prototype.$objectType=void 0,Me.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),Xe(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),Qe(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={},Qe(ot,this,3e4),Qe(it,this,3e4),Qe(st,this,108e5),this.readTimeout=Ze(it,this),this.connectTimeout=Ze(ot,this),this.cache=!0,Qe(tt,this,null),this.maxRedirects=1,this.maxRetryAttempts=5,this.retryInterval=3e3,this.withCredentials=!1,"undefined"==typeof self&&(this.agent=new(t().agent)),this.requestAgent=null,this.debug=!1,Qe(nt,this,null),this.username=null,this.password=null,Qe(rt,this,!0),this.downloadDestination=null,this.loggerFile=null}return r=e,o=[{key:"verifySsl",get:function(){return Ze(rt,this)},set:function(e){this.requestAgent=e?null:new(w().Agent)({rejectUnauthorized:!1}),Qe(rt,this,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=k().createWriteStream(e,{flags:"a"})),Qe(nt,this,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&Qe(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),Qe(et,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==Ze(et,this)&&""!==this.host&&""!==this.port?r=Ze(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=ze(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,f,d){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)},Ye(ut,this,yt).call(this,h,l),"GET"===r.toUpperCase()&&!1===this.cache&&(i._=(new Date).getTime()),h.query(Ye(ut,this,pt).call(this,i)),h.set(this.defaultHeaders).set(Ye(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(Ye(ut,this,pt).call(this,{"NTNX-Request-Id":b}))}var g="undefined"!=typeof window&&void 0!==window.document;g||(this.downloadDestination=".",h.set(Ye(ut,this,pt).call(this,{"User-Agent":"Nutanix-lifecycle-js-client/4.1.1"}))),this.requestAgent&&h.agent(this.requestAgent);var m={};m.response=Ye(ut,this,gt).call(this,this.connectTimeout,Ze(ot,this)),m.deadline=Ye(ut,this,gt).call(this,this.readTimeout,Ze(it,this)),h.timeout(m);var w=s.hasOwnProperty("Content-Type")?s["Content-Type"]:Ye(ut,this,ft).call(this,c);if(w?"multipart/form-data"!=w&&h.type(w):h.header["Content-Type"]||h.type("application/json"),Ye(ut,this,Ot).call(this,Ze(at,this).INFO,null,"Request URL :",r,y),Ye(ut,this,Ot).call(this,Ze(at,this).DEBUG,Ye(ut,this,jt),"Request Headers :",void 0===h.header?"":h.header),"application/x-www-form-urlencoded"===w)h.send(Ye(ut,this,pt).call(this,a));else if("multipart/form-data"==w){var O=Ye(ut,this,pt).call(this,a);for(var j in O)O.hasOwnProperty(j)&&(Ye(ut,this,dt).call(this,O[j])?h.attach(j,O[j]):h.field(j,O[j]))}else{if("application/octet-stream"===w&&null!=u&&"function"==typeof u.pipe){if(Ye(ut,this,Ot).call(this,Ze(at,this).INFO,null,"Piping octet-stream request"),"function"==typeof u.pipe)u.pipe(h);else{var $;try{$=n(965)}catch(e){Ye(ut,this,Ot).call(this,Ze(at,this).ERROR,null,"Error fetching steam/web")}u instanceof $.ReadableStream?u.pipeTo(new $.WritableStream({write:function(e){h.write(e)},close:function(){Ye(ut,this,Ot).call(this,Ze(at,this).INFO,null,"READABLE STREAM CLOSED")},abort:function(e){Ye(ut,this,Ot).call(this,Ze(at,this).ERROR,null,"READABLE STREAM ABORTED")}})):h.send(u)}return new Promise(function(t,n){h.on("error",function(e){Ye(ut,p,Ot).call(p,Ze(at,p).DEBUG,null,"Caught the following error :",e),n(e)}).on("response",function(r){Ye(ut,p,$t).call(p,r,e,i,d,t,n)})})}u&&h.send(u)}"Blob"==typeof d?h.responseType("blob"):"String"===d&&h.responseType("string"),Ye(ut,this,wt).call(this,h),Ye(ut,this,Ot).call(this,Ze(at,this).DEBUG,null,"Request Body :",void 0===h._data?"":h._data);var P=s.hasOwnProperty("Accept")&&null!=s.Accept?s.Accept:f.join(", "),T=["application/octet-stream","application/pdf","application/zip"];return P&&h.accept(P),new Promise(function(o,s){h.buffer(!1).redirects(0).retry(p.maxRetryAttempts,p.retryInterval,[]).withCredentials(p.withCredentials).on("error",function(e){Ye(ut,p,Ot).call(p,Ze(at,p).DEBUG,null,"Caught the following error :",e)}).end(function(a,u){if(a)Ye(ut,p,Ot).call(p,Ze(at,p).DEBUG,null,"Caught error during the request!"),Ye(ut,p,Ot).call(p,Ze(at,p).ERROR,null,a),null!==a.response&&void 0!==a.response?a.data=Ye(ut,p,vt).call(p,a.response,d):a.data=Ye(ut,p,ht).call(p,a),s(a);else{Ye(ut,p,Ot).call(p,Ze(at,p).INFO,null,"Response Status :",u.status),Ye(ut,p,Ot).call(p,Ze(at,p).DEBUG,Ye(ut,p,jt),"Response Headers :",u.headers);var l="";if(u.headers.hasOwnProperty("content-type")&&(l=u.headers["content-type"]),T.includes(l))if(g){var c;try{c=n(965)}catch(e){Ye(ut,p,Ot).call(p,Ze(at,p).ERROR,null,"Error fetching steam/web")}if(p.downloadDestination instanceof c.WritableStream){var f=p.downloadDestination.getWriter();try{u.on("data",function(e){f.write(e)})}catch(e){Ye(ut,p,Ot).call(p,Ze(at,p).ERROR,null,"Issue while downloading file",e)}u.on("end",function(){Ye(ut,p,Ot).call(p,Ze(at,p).INFO,null,"Finished streaming response"),f.close();var e=Ye(ut,p,vt).call(p,u,d);o({data:e,response:u})}).on("error",function(e){Ye(ut,p,Ot).call(p,Ze(at,p).ERROR,null,"Caught the following error :",e),e.data=Ye(ut,p,ht).call(p,e),s(e)})}else{var y="Incompatible downloadDestination for Browser Environment, must be WritableStream";Ye(ut,p,Ot).call(p,Ze(at,p).ERROR,null,y),s(y)}}else{var v=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt",b=k().createWriteStream(v);Ye(ut,p,Pt).call(p,u,b,v,o,s,d)}else if(302==u.status){var m=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt",w=p;Ye(ut,p,Ot).call(p,Ze(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")&&(Ye(ut,p,Ot).call(p,Ze(at,p).INFO,null,"Writing X-Redirect-Token into Cookie"),O.set("Cookie",u.headers["x-redirect-token"])),O.redirects(0),O.withCredentials(p.withCredentials),O.buffer(!1);var j=k().createWriteStream(m);O.pipe(j),O.on("response",function(e){Ye(ut,w,Ot).call(w,Ze(at,w).INFO,null,"Received response after redirection :",e.status),Ye(ut,w,Pt).call(w,e,j,m,o,s,d)})}else Ye(ut,p,$t).call(p,u,e,i,d,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"===Be(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&&Ke(r.prototype,o),i&&Ke(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 ft(e){for(var t=0;t<e.length;t++)if(Ye(ut,this,ct).call(this,e[t]))return e[t];return e[0]}function dt(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 P.Blob&&e instanceof P.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];Ye(ut,this,dt).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||""),Ye(ut,n,Ot).call(n,Ze(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)}Ye(ut,n,Ot).call(n,Ze(at,n).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),Ye(ut,n,Ot).call(n,Ze(at,n).DEBUG,null,"oauth2 applied to request");break;default:throw Ye(ut,n,Ot).call(n,Ze(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 P.Blob([e.text],{type:e.headers["content-type"]});var n=new W;n.name="hasError",n.value=!1;var r=[n],o=new Me;return o.flags=r,i.metadata=o,i}var i;return(null==(i=e.body)||"object"===Be(i)&&void 0===i.length&&!Object.keys(i).length)&&(i=e.text),xe.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>Ze(st,this)&&(e=Ze(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=ze(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))}Qe(tt,this,t),Ye(ut,this,Ot).call(this,Ze(at,this).DEBUG,null,"Retained cookie :",t)}else Qe(tt,this,null)}function wt(e){null!=Ze(tt,this)&&e.set(Ye(ut,this,pt).call(this,{Cookie:Ze(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"===Be(e)&&"key"in e&&"value"in e&&"symbol"===Be(e.value)||(e=Ze(at,this).INFO),!Ye(ut,this,kt).call(this,e)){r=r.map(function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)});var i=r.join(" ");i=(new Date).toISOString()+" "+e.key+" - "+i,void 0!==Ze(nt,this)&&null!==Ze(nt,this)&&"function"==typeof Ze(nt,this).log?Ze(nt,this).log(i):console.log(i)}}function kt(e){return!this.debug&&e===Ze(at,this).DEBUG}function jt(e){if("object"!==Be(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=Ye(ut,this,vt).call(this,e,r);Ye(ut,this,Ot).call(this,Ze(at,this).INFO,null,"Response Status :",e.status),Ye(ut,this,Ot).call(this,Ze(at,this).DEBUG,Ye(ut,this,jt),"Response Headers :",e.headers),Ye(ut,this,mt).call(this,e||{}),Ye(ut,this,Ot).call(this,Ze(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),Ye(ut,this,bt).call(this,s,t,n),o({data:s,response:e})):(Ye(ut,this,Ot).call(this,Ze(at,this).ERROR,null,s),i(Je(Je({},e.error),{},{data:s})))}catch(e){Ye(ut,this,Ot).call(this,Ze(at,this).DEBUG,null,"Caught error while processing response!"),Ye(ut,this,Ot).call(this,Ze(at,this).ERROR,null,e),e.data=Ye(ut,this,ht).call(this,e),i(e)}}function Pt(e,t,n,r,o,i){var s=this;Ye(ut,this,Ot).call(this,Ze(at,this).INFO,null,"Streaming response to : ",n);try{e.on("data",function(e){t.write(e)})}catch(e){Ye(ut,this,Ot).call(this,Ze(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(Ve(/.*filename="(.*)".*/,{filename:1})),c=$().parse(l.groups.filename);u=this.downloadDestination+"/"+c.name+"_"+Date.now()+c.ext,a.data={path:$().parse(u),$objectType:"Path"};var f=new W;f.name="hasError",f.value=!1;var d=[f],p=new Me;p.flags=d,a.metadata=p}e.on("end",function(){Ye(ut,s,Ot).call(s,Ze(at,s).INFO,null,"Finished streaming response"),0!==u.length?(Ye(ut,s,Ot).call(s,Ze(at,s).INFO,null,"Content-Disposition header found [",u,"] is final filename"),t.close(),k().renameSync(n,u),r({data:a,response:e})):(Ye(ut,s,Ot).call(s,Ze(at,s).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),r({data:a,response:e}))}),e.on("error",function(e){Ye(ut,s,Ot).call(s,Ze(at,s).ERROR,null,"Caught the following error :",e),error.data=Ye(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 Ft(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 Et(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 St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach(function(t){Ct(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ct(e,t,n){return(t=Dt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function It(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,Dt(r.key),r)}}function Dt(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+""}function At(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")}xe=lt,lt.instance=new lt;var Ut=new WeakSet,Rt=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,Ut),this.$objectType="lifecycle.v4.error.AppMessage",this.$reserved={$fv:"v4.r1"},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 St(St(St(St(St(St(St({},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:At(Ut,this,xt).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:At(Ut,this,xt).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 F?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=St({},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&&It(t.prototype,n),r&&It(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xt(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 Ft(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)?Ft(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"===Tt(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 Nt(e){return Nt="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},Nt(e)}function Mt(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 Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach(function(t){_t(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _t(e,t,n){return(t=Jt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lt(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,Jt(r.key),r)}}function Jt(e){var t=function(e){if("object"!=Nt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nt(t)?t:t+""}Rt.prototype.message=void 0,Rt.prototype.severity=void 0,Rt.prototype.code=void 0,Rt.prototype.locale="en_US",Rt.prototype.errorGroup=void 0,Rt.prototype.argumentsMap=void 0,Rt.prototype.$reserved=void 0,Rt.prototype.$objectType=void 0,Rt.prototype.$unknownFields=void 0;var Wt=new WeakSet,Bt=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,Wt),this.$objectType="lifecycle.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r1"},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 Vt(Vt(Vt(Vt({},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 F?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=Vt({},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&&Lt(t.prototype,n),r&&Lt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function zt(e){return zt="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},zt(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 Kt(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){Ht(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 Ht(e,t,n){return(t=Xt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gt(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,Xt(r.key),r)}}function Xt(e){var t=function(e){if("object"!=zt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zt(t)?t:t+""}function Zt(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")}Bt.prototype.location=void 0,Bt.prototype.message=void 0,Bt.prototype.attributePath=void 0,Bt.prototype.$reserved=void 0,Bt.prototype.$objectType=void 0,Bt.prototype.$unknownFields=void 0;var Qt=new WeakSet,Yt=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,Qt),this.$objectType="lifecycle.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r1"},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 Kt(Kt(Kt(Kt(Kt(Kt({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Zt(Qt,this,en).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 F?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=Bt.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=Kt({},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&&Gt(t.prototype,n),r&&Gt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function en(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function tn(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 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 rn(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 on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach(function(t){sn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sn(e,t,n){return(t=un(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function an(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,un(r.key),r)}}function un(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+""}function ln(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")}Yt.prototype.timestamp=void 0,Yt.prototype.statusCode=void 0,Yt.prototype.error=void 0,Yt.prototype.path=void 0,Yt.prototype.validationErrorMessages=void 0,Yt.prototype.$reserved=void 0,Yt.prototype.$objectType=void 0,Yt.prototype.$unknownFields=void 0;var cn=new WeakSet,fn=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,cn),this.$objectType="lifecycle.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r1"},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 on(on({},!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}):ln(cn,this,dn).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}):ln(cn,this,dn).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 F?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:nn(n[0]),o=0;o<n.length;o++){if("lifecycle.v4.error.AppMessage"!==s)throw"Unknown list of type "+s+" in data";r=Rt.constructFromObject(n[o],void 0),i.push(r)}a.setError(i)}else{if("lifecycle.v4.error.SchemaValidationError"!==(s=t.error.hasOwnProperty("$objectType")?t.error.$objectType:nn(t.error)))throw"Unknown datatype "+s+" in data";a.setError(Yt.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=on({},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&&an(t.prototype,n),r&&an(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function dn(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 tn(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)?tn(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"===nn(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 pn(e){return pn="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},pn(e)}function yn(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 hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(n),!0).forEach(function(t){vn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vn(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 bn(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"!=pn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pn(t)?t:t+""}fn.prototype.error=void 0,fn.prototype.$reserved=void 0,fn.prototype.$objectType=void 0,fn.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="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r1"},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 hn(hn({},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 F?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(!I.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=hn({},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&&bn(t.prototype,n),r&&bn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function On(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 jn(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?jn(Object(n),!0).forEach(function(t){Pn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pn(e,t,n){return(t=Fn(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,Fn(r.key),r)}}function Fn(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 En(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(En=function(){return!!e})()}function Sn(e){return Sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sn(e)}function Cn(e,t){return Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cn(e,t)}function In(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.extId=void 0,wn.prototype.$reserved=void 0,wn.prototype.$objectType=void 0,wn.prototype.$unknownFields=void 0;var Dn=new WeakSet,An=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=Sn(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,En()?Reflect.construct(t,n||[],Sn(e).constructor):t.apply(e,n))}(this,t),Dn),e.$objectType="lifecycle.v4.resources.DeleteBundleByIdApiResponse",e.$reserved={$fv:"v4.r1"},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&&Cn(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}):In(Dn,this,Un).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}):In(Dn,this,Un).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 F?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(Me.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(wn.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(fn.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 Un(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 On(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)?On(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 Rn(e){return Rn="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},Rn(e)}function xn(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?xn(Object(n),!0).forEach(function(t){Mn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mn(e,t,n){return(t=_n(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,_n(r.key),r)}}function _n(e){var t=function(e){if("object"!=Rn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rn(t)?t:t+""}An.prototype.metadata=void 0,An.prototype.data=void 0,An.prototype.$reserved=void 0,An.prototype.$objectType=void 0,An.prototype.$unknownFields=void 0;var Ln=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,Ln),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?Nn(Nn({},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 F?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(!I.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=Nn({},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 Wn(e){return Wn="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},Wn(e)}function Bn(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 zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(n),!0).forEach(function(t){qn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qn(e,t,n){return(t=Hn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kn(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,Hn(r.key),r)}}function Hn(e){var t=function(e){if("object"!=Wn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wn(t)?t:t+""}function Gn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Gn=function(){return!!e})()}function Xn(e){return Xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xn(e)}function Zn(e,t){return Zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zn(e,t)}Jn.prototype.tenantId=void 0,Jn.prototype.$reserved=void 0,Jn.prototype.$objectType=void 0,Jn.prototype.$unknownFields=void 0;var Qn=new WeakSet,Yn=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=Xn(t),function(e,t){if(t&&("object"==Wn(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,Gn()?Reflect.construct(t,n||[],Xn(e).constructor):t.apply(e,n))}(this,t),Qn),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&&Zn(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?zn(zn(zn(zn({},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 F?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(!I.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===F.update&&!I.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(!I.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=Se.constructFromObject(n[o],void 0),i.push(r);s.setLinks(i)}if(!a)for(var u in s.$unknownFields=zn({},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&&Kn(n.prototype,r),o&&Kn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Jn);function er(e){return er="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},er(e)}function tr(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 nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(n),!0).forEach(function(t){rr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rr(e,t,n){return(t=ir(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function or(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,ir(r.key),r)}}function ir(e){var t=function(e){if("object"!=er(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=er(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==er(t)?t:t+""}Yn.prototype.extId=void 0,Yn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var sr=new WeakSet,ar=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,sr),this.hexDigest=t,this.$objectType="lifecycle.v4.common.LcmMd5Sum",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getHexDigest",value:function(){return this.hexDigest}},{key:"setHexDigest",value:function(e){this.hexDigest=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 nr(nr({},void 0!==this.getHexDigest()&&null!==this.getHexDigest()?{hexDigest:this.getHexDigest()}:{}),{},{$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 F?r=["hexDigest"]: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("hexDigest"===t){if(void 0===this.hexDigest||null===this.hexDigest)return new R("hexDigest","undefined or null");if(!I.validatePattern(this.hexDigest,/^[a-f0-9]{32}$/))return new R("hexDigest","does not satisfy required pattern: /^[a-f0-9]{32}$/")}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("hexDigest")&&null!==t.hexDigest&&void 0!==t.hexDigest&&n.setHexDigest(t.hexDigest),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=nr({},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&&or(t.prototype,n),r&&or(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ur(e){return ur="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},ur(e)}function lr(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 cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach(function(t){fr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fr(e,t,n){return(t=pr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dr(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,pr(r.key),r)}}function pr(e){var t=function(e){if("object"!=ur(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ur(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ur(t)?t:t+""}ar.prototype.hexDigest=void 0,ar.prototype.$reserved=void 0,ar.prototype.$objectType=void 0,ar.prototype.$unknownFields=void 0;var yr=new WeakSet,hr=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,yr),this.hexDigest=t,this.$objectType="lifecycle.v4.common.LcmSha256Sum",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getHexDigest",value:function(){return this.hexDigest}},{key:"setHexDigest",value:function(e){this.hexDigest=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 cr(cr({},void 0!==this.getHexDigest()&&null!==this.getHexDigest()?{hexDigest:this.getHexDigest()}:{}),{},{$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 F?r=["hexDigest"]: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("hexDigest"===t){if(void 0===this.hexDigest||null===this.hexDigest)return new R("hexDigest","undefined or null");if(!I.validatePattern(this.hexDigest,/^([a-fA-F0-9]{64})$/))return new R("hexDigest","does not satisfy required pattern: /^([a-fA-F0-9]{64})$/")}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("hexDigest")&&null!==t.hexDigest&&void 0!==t.hexDigest&&n.setHexDigest(t.hexDigest),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=cr({},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&&dr(t.prototype,n),r&&dr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();hr.prototype.hexDigest=void 0,hr.prototype.$reserved=void 0,hr.prototype.$objectType=void 0,hr.prototype.$unknownFields=void 0;var vr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SOFTWARE:"SOFTWARE",FIRMWARE:"FIRMWARE",PRODUCT_META:"PRODUCT_META",FRAMEWORK:"FRAMEWORK",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(vr).find(function(t){return vr[t]===e});return null==t?vr.$UNKNOWN:vr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case vr.$UNKNOWN:case vr.$REDACTED:case vr.SOFTWARE:case vr.FIRMWARE:case vr.PRODUCT_META:case vr.FRAMEWORK:return;default:throw new Error("Invalid : must be BundleType.{ $UNKNOWN|$REDACTED|SOFTWARE|FIRMWARE|PRODUCT_META|FRAMEWORK }")}}};Object.freeze(vr);const br=vr;var gr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NUTANIX:"NUTANIX",THIRD_PARTY:"THIRD_PARTY",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.NUTANIX:case gr.THIRD_PARTY:return;default:throw new Error("Invalid : must be BundleVendor.{ $UNKNOWN|$REDACTED|NUTANIX|THIRD_PARTY }")}}};Object.freeze(gr);const mr=gr;var wr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RECOMMENDED:"RECOMMENDED",CRITICAL:"CRITICAL",LATEST:"LATEST",DEPRECATED:"DEPRECATED",EMERGENCY:"EMERGENCY",AVAILABLE:"AVAILABLE",LTS:"LTS",STS:"STS",ESTS:"ESTS",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.RECOMMENDED:case wr.CRITICAL:case wr.LATEST:case wr.DEPRECATED:case wr.EMERGENCY:case wr.AVAILABLE:case wr.LTS:case wr.STS:case wr.ESTS:return;default:throw new Error("Invalid : must be AvailableVersionStatus.{ $UNKNOWN|$REDACTED|RECOMMENDED|CRITICAL|LATEST|DEPRECATED|EMERGENCY|AVAILABLE|LTS|STS|ESTS }")}}};Object.freeze(wr);const Or=wr;var kr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SOFTWARE:"SOFTWARE",FIRMWARE:"FIRMWARE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(kr).find(function(t){return kr[t]===e});return null==t?kr.$UNKNOWN:kr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case kr.$UNKNOWN:case kr.$REDACTED:case kr.SOFTWARE:case kr.FIRMWARE:return;default:throw new Error("Invalid : must be EntityType.{ $UNKNOWN|$REDACTED|SOFTWARE|FIRMWARE }")}}};Object.freeze(kr);const jr=kr;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)}function Pr(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 Tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pr(Object(n),!0).forEach(function(t){Fr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fr(e,t,n){return(t=Sr(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,Sr(r.key),r)}}function Sr(e){var t=function(e){if("object"!=$r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$r(t)?t:t+""}function Cr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Cr=function(){return!!e})()}function Ir(e){return Ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ir(e)}function Dr(e,t){return Dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dr(e,t)}var Ar=new WeakSet,Ur=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"==$r(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,Cr()?Reflect.construct(t,n||[],Ir(e).constructor):t.apply(e,n))}(this,t),Ar),e.$objectType="lifecycle.v4.common.EntityBaseModel",e.$reserved={$fv:"v4.r1"},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&&Dr(e,t)}(t,e),n=t,r=[{key:"getEntityClass",value:function(){return this.entityClass}},{key:"setEntityClass",value:function(e){this.entityClass=e}},{key:"getEntityModel",value:function(){return this.entityModel}},{key:"setEntityModel",value:function(e){this.entityModel=e}},{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"getEntityVersion",value:function(){return this.entityVersion}},{key:"setEntityVersion",value:function(e){this.entityVersion=e}},{key:"getHardwareFamily",value:function(){return this.hardwareFamily}},{key:"setHardwareFamily",value:function(e){this.hardwareFamily=e}},{key:"toJson",value:function(e){return Tr(!1===e?Tr(Tr(Tr(Tr(Tr(Tr(Tr(Tr({},void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),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()}:{}):Tr(Tr(Tr(Tr(Tr({},void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),{},{$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 F?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("entityClass"===t){if(void 0===this.entityClass||null===this.entityClass)return new R("entityClass","undefined or null");if(!I.validateMaxLength(this.entityClass,256))return new R("entityClass","does not satisfy required maxLength constraint: 256");if(!I.validateMinLength(this.entityClass,1))return new R("entityClass","does not satisfy required minLength constraint: 1")}if("entityModel"===t){if(void 0===this.entityModel||null===this.entityModel)return new R("entityModel","undefined or null");if(!I.validateMaxLength(this.entityModel,256))return new R("entityModel","does not satisfy required maxLength constraint: 256");if(!I.validateMinLength(this.entityModel,1))return new R("entityModel","does not satisfy required minLength constraint: 1")}if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new R("entityType","undefined or null");if("entityVersion"===t){if(void 0===this.entityVersion||null===this.entityVersion)return new R("entityVersion","undefined or null");if(!I.validateMaxLength(this.entityVersion,128))return new R("entityVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.entityVersion,1))return new R("entityVersion","does not satisfy required minLength constraint: 1")}if("hardwareFamily"===t){if(void 0===this.hardwareFamily||null===this.hardwareFamily)return new R("hardwareFamily","undefined or null");if(!I.validateMaxLength(this.hardwareFamily,256))return new R("hardwareFamily","does not satisfy required maxLength constraint: 256");if(!I.validateMinLength(this.hardwareFamily,1))return new R("hardwareFamily","does not satisfy required minLength constraint: 1")}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,Yn.constructFromObject(e,n,!0),e.hasOwnProperty("entityClass")&&null!==e.entityClass&&void 0!==e.entityClass&&n.setEntityClass(e.entityClass),e.hasOwnProperty("entityModel")&&null!==e.entityModel&&void 0!==e.entityModel&&n.setEntityModel(e.entityModel),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&n.setEntityType(jr.constructFromObject(e.entityType)),e.hasOwnProperty("entityVersion")&&null!==e.entityVersion&&void 0!==e.entityVersion&&n.setEntityVersion(e.entityVersion),e.hasOwnProperty("hardwareFamily")&&null!==e.hardwareFamily&&void 0!==e.hardwareFamily&&n.setHardwareFamily(e.hardwareFamily),!r))for(var o in n.$unknownFields=Tr({},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&&Er(n.prototype,r),o&&Er(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Yn);Ur.prototype.entityClass=void 0,Ur.prototype.entityModel=void 0,Ur.prototype.entityType=void 0,Ur.prototype.entityVersion=void 0,Ur.prototype.hardwareFamily=void 0,Yn.prototype.extId=void 0,Yn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Rr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SHASUM:"SHASUM",HEX_MD5:"HEX_MD5",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.SHASUM:case Rr.HEX_MD5:return;default:throw new Error("Invalid : must be CheckSumType.{ $UNKNOWN|$REDACTED|SHASUM|HEX_MD5 }")}}};Object.freeze(Rr);const xr=Rr;function Nr(e){return Nr="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},Nr(e)}function Mr(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 Vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(n),!0).forEach(function(t){_r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _r(e,t,n){return(t=Jr(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,Jr(r.key),r)}}function Jr(e){var t=function(e){if("object"!=Nr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nr(t)?t:t+""}var Wr=new WeakSet,Br=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,Wr),this.sizeBytes=t,this.checksumType=n,this.checksum=r,this.$objectType="lifecycle.v4.resources.ImageFile",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getFileLocationId",value:function(){return this.fileLocationId}},{key:"setFileLocationId",value:function(e){this.fileLocationId=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getSizeBytes",value:function(){return this.sizeBytes}},{key:"setSizeBytes",value:function(e){this.sizeBytes=e}},{key:"getFilePath",value:function(){return this.filePath}},{key:"setFilePath",value:function(e){this.filePath=e}},{key:"getChecksumType",value:function(){return this.checksumType}},{key:"setChecksumType",value:function(e){this.checksumType=e}},{key:"getChecksum",value:function(){return this.checksum}},{key:"setChecksum",value:function(e){this.checksum=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 Vr(Vr(Vr(!1===e?Vr(Vr(Vr(Vr({},void 0!==this.getFileLocationId()&&null!==this.getFileLocationId()?{fileLocationId:this.getFileLocationId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getSizeBytes()&&null!==this.getSizeBytes()?{sizeBytes:this.getSizeBytes()}:{}),void 0!==this.getFilePath()&&null!==this.getFilePath()?{filePath:this.getFilePath()}:{}):Vr(Vr({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getSizeBytes()&&null!==this.getSizeBytes()?{sizeBytes:this.getSizeBytes()}:{}),void 0!==this.getChecksumType()&&null!==this.getChecksumType()?{checksumType:this.getChecksumType()}:{}),void 0!==this.getChecksum()&&null!==this.getChecksum()?{checksum:this.getChecksum()}:{}),{},{$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 F?r=["sizeBytes","checksumType","checksum"]: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("fileLocationId"===t){if(void 0===this.fileLocationId||null===this.fileLocationId)return new R("fileLocationId","undefined or null");if(!I.validatePattern(this.fileLocationId,/^[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("fileLocationId","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("name"===t){if(void 0===this.name||null===this.name)return new R("name","undefined or null");if(!I.validateMaxLength(this.name,128))return new R("name","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.name,1))return new R("name","does not satisfy required minLength constraint: 1")}if("sizeBytes"===t&&(void 0===this.sizeBytes||null===this.sizeBytes))return new R("sizeBytes","undefined or null");if("filePath"===t){if(void 0===this.filePath||null===this.filePath)return new R("filePath","undefined or null");if(!I.validateMaxLength(this.filePath,256))return new R("filePath","does not satisfy required maxLength constraint: 256");if(!I.validateMinLength(this.filePath,1))return new R("filePath","does not satisfy required minLength constraint: 1")}if("checksumType"===t&&(void 0===this.checksumType||null===this.checksumType))return new R("checksumType","undefined or null");if("checksum"===t){if(void 0===this.checksum||null===this.checksum)return new R("checksum","undefined or null");if(!I.validateMaxLength(this.checksum,128))return new R("checksum","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.checksum,1))return new R("checksum","does not satisfy required minLength constraint: 1")}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("fileLocationId")&&null!==t.fileLocationId&&void 0!==t.fileLocationId&&n.setFileLocationId(t.fileLocationId),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("sizeBytes")&&null!==t.sizeBytes&&void 0!==t.sizeBytes&&n.setSizeBytes(t.sizeBytes),t.hasOwnProperty("filePath")&&null!==t.filePath&&void 0!==t.filePath&&n.setFilePath(t.filePath),t.hasOwnProperty("checksumType")&&null!==t.checksumType&&void 0!==t.checksumType&&n.setChecksumType(xr.constructFromObject(t.checksumType)),t.hasOwnProperty("checksum")&&null!==t.checksum&&void 0!==t.checksum&&n.setChecksum(t.checksum),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=Vr({},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&&Lr(t.prototype,n),r&&Lr(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 qr(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 Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach(function(t){Hr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hr(e,t,n){return(t=Xr(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,Xr(r.key),r)}}function Xr(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 Zr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zr=function(){return!!e})()}function Qr(e){return Qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qr(e)}function Yr(e,t){return Yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yr(e,t)}Br.prototype.fileLocationId=void 0,Br.prototype.name=void 0,Br.prototype.sizeBytes=void 0,Br.prototype.filePath=void 0,Br.prototype.checksumType=void 0,Br.prototype.checksum=void 0,Br.prototype.$reserved=void 0,Br.prototype.$objectType=void 0,Br.prototype.$unknownFields=void 0;var eo=new WeakSet,to=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=Qr(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,Zr()?Reflect.construct(t,n||[],Qr(e).constructor):t.apply(e,n))}(this,t),eo),n.specVersion=e,n.$objectType="lifecycle.v4.resources.Image",n.$reserved={$fv:"v4.r1"},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&&Yr(e,t)}(t,e),n=t,r=[{key:"getReleaseNotes",value:function(){return this.releaseNotes}},{key:"setReleaseNotes",value:function(e){this.releaseNotes=e}},{key:"getSpecVersion",value:function(){return this.specVersion}},{key:"setSpecVersion",value:function(e){this.specVersion=e}},{key:"getIsQualified",value:function(){return this.isQualified}},{key:"setIsQualified",value:function(e){this.isQualified=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getFiles",value:function(){return this.files}},{key:"setFiles",value:function(e){this.files=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"toJson",value:function(e){return Kr(!1===e?Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr({},void 0!==this.getReleaseNotes()&&null!==this.getReleaseNotes()?{releaseNotes:this.getReleaseNotes()}:{}),void 0!==this.getSpecVersion()&&null!==this.getSpecVersion()?{specVersion:this.getSpecVersion()}:{}),void 0!==this.getIsQualified()&&null!==this.getIsQualified()?{isQualified:this.getIsQualified()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getFiles()&&null!==this.getFiles()?{files:this.getFiles().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),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()}:{}):Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr({},void 0!==this.getReleaseNotes()&&null!==this.getReleaseNotes()?{releaseNotes:this.getReleaseNotes()}:{}),void 0!==this.getSpecVersion()&&null!==this.getSpecVersion()?{specVersion:this.getSpecVersion()}:{}),void 0!==this.getIsQualified()&&null!==this.getIsQualified()?{isQualified:this.getIsQualified()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),{},{$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 F?r=["specVersion"]: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("releaseNotes"===t){if(void 0===this.releaseNotes||null===this.releaseNotes)return new R("releaseNotes","undefined or null");if(!I.validateMaxLength(this.releaseNotes,1024))return new R("releaseNotes","does not satisfy required maxLength constraint: 1024")}if("specVersion"===t){if(void 0===this.specVersion||null===this.specVersion)return new R("specVersion","undefined or null");if(!I.validateMaxLength(this.specVersion,128))return new R("specVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.specVersion,1))return new R("specVersion","does not satisfy required minLength constraint: 1")}if("isQualified"===t&&(void 0===this.isQualified||null===this.isQualified))return new R("isQualified","undefined or null");if("status"===t&&(void 0===this.status||null===this.status))return new R("status","undefined or null");if("files"===t){if(void 0===this.files||null===this.files)return new R("files","undefined or null");if(!I.validateMaxItems(this.files,100))return new R("files","does not satisfy required maxItems constraint: 100")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!I.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,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,Ur.constructFromObject(e,s,!0),e.hasOwnProperty("releaseNotes")&&null!==e.releaseNotes&&void 0!==e.releaseNotes&&s.setReleaseNotes(e.releaseNotes),e.hasOwnProperty("specVersion")&&null!==e.specVersion&&void 0!==e.specVersion&&s.setSpecVersion(e.specVersion),e.hasOwnProperty("isQualified")&&null!==e.isQualified&&void 0!==e.isQualified&&s.setIsQualified(e.isQualified),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&s.setStatus(Or.constructFromObject(e.status)),e.hasOwnProperty("files")&&null!==e.files&&void 0!==e.files){for(i=[],n=e.files,o=0;o<n.length;o++)r=Br.constructFromObject(n[o],void 0),i.push(r);s.setFiles(i)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&s.setClusterExtId(e.clusterExtId),!a)for(var u in s.$unknownFields=Kr({},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&&Gr(n.prototype,r),o&&Gr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ur);function no(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 ro(e){return ro="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},ro(e)}function oo(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 io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(n),!0).forEach(function(t){so(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function so(e,t,n){return(t=uo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ao(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,uo(r.key),r)}}function uo(e){var t=function(e){if("object"!=ro(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ro(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ro(t)?t:t+""}function lo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(lo=function(){return!!e})()}function co(e){return co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},co(e)}function fo(e,t){return fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fo(e,t)}function po(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")}to.prototype.releaseNotes=void 0,to.prototype.specVersion=void 0,to.prototype.isQualified=!1,to.prototype.status=void 0,to.prototype.files=void 0,to.prototype.clusterExtId=void 0,Ur.prototype.entityClass=void 0,Ur.prototype.entityModel=void 0,Ur.prototype.entityType=void 0,Ur.prototype.entityVersion=void 0,Ur.prototype.hardwareFamily=void 0,Yn.prototype.extId=void 0,Yn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var yo=new WeakSet,ho=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=co(t),function(e,t){if(t&&("object"==ro(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,lo()?Reflect.construct(t,n||[],co(e).constructor):t.apply(e,n))}(this,t),yo),r.name=e,r.vendor=n,r.$objectType="lifecycle.v4.resources.Bundle",r.$reserved={$fv:"v4.r1"},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&&fo(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getSizeBytes",value:function(){return this.sizeBytes}},{key:"setSizeBytes",value:function(e){this.sizeBytes=e}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getVendor",value:function(){return this.vendor}},{key:"setVendor",value:function(e){this.vendor=e}},{key:"getImages",value:function(){return this.images}},{key:"setImages",value:function(e){this.images=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getChecksum",value:function(){return this.checksum}},{key:"setChecksum",value:function(e){this.checksum=e}},{key:"toJson",value:function(e){return io(!1===e?io(io(io(io(io(io(io(io(io(io({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getSizeBytes()&&null!==this.getSizeBytes()?{sizeBytes:this.getSizeBytes()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{}),void 0!==this.getImages()&&null!==this.getImages()?{images:this.getImages().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getChecksum()&&null!==this.getChecksum()?{checksum:void 0!==this.getChecksum().toJson?this.getChecksum().toJson(!1):Array.isArray(this.getChecksum())?this.getChecksum().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):po(yo,this,vo).call(this,this.getChecksum(),!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()}:{}):io(io(io(io(io(io(io({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getSizeBytes()&&null!==this.getSizeBytes()?{sizeBytes:this.getSizeBytes()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{}),void 0!==this.getImages()&&null!==this.getImages()?{images:this.getImages().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getChecksum()&&null!==this.getChecksum()?{checksum:void 0!==this.getChecksum().toJson?this.getChecksum().toJson():Array.isArray(this.getChecksum())?this.getChecksum().map(function(e){return void 0!==e.toJson?e.toJson():e}):po(yo,this,vo).call(this,this.getChecksum())}:{}),{},{$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 F?r=["name","vendor"]: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(!I.validateMaxLength(this.name,128))return new R("name","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.name,1))return new R("name","does not satisfy required minLength constraint: 1")}if("sizeBytes"===t&&(void 0===this.sizeBytes||null===this.sizeBytes))return new R("sizeBytes","undefined or null");if("type"===t&&(void 0===this.type||null===this.type))return new R("type","undefined or null");if("vendor"===t&&(void 0===this.vendor||null===this.vendor))return new R("vendor","undefined or null");if("images"===t){if(void 0===this.images||null===this.images)return new R("images","undefined or null");if(!I.validateMaxItems(this.images,100))return new R("images","does not satisfy required maxItems constraint: 100")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!I.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"checksum"!==t||void 0!==this.checksum&&null!==this.checksum?new R(t,"no such property exists"):new R("checksum","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,Yn.constructFromObject(e,a,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&a.setName(e.name),e.hasOwnProperty("sizeBytes")&&null!==e.sizeBytes&&void 0!==e.sizeBytes&&a.setSizeBytes(e.sizeBytes),e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type&&a.setType(br.constructFromObject(e.type)),e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&a.setVendor(mr.constructFromObject(e.vendor)),e.hasOwnProperty("images")&&null!==e.images&&void 0!==e.images){for(i=[],n=e.images,o=0;o<n.length;o++)r=to.constructFromObject(n[o],void 0),i.push(r);a.setImages(i)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&a.setClusterExtId(e.clusterExtId),e.hasOwnProperty("checksum")&&null!==e.checksum&&void 0!==e.checksum)switch(s=e.checksum.hasOwnProperty("$objectType")?e.checksum.$objectType:ro(e.checksum)){case"lifecycle.v4.common.LcmSha256Sum":a.setChecksum(hr.constructFromObject(e.checksum,void 0));break;case"lifecycle.v4.common.LcmMd5Sum":a.setChecksum(ar.constructFromObject(e.checksum,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(!u)for(var l in a.$unknownFields=io({},e.$unknownFields),e)Object.keys(a).includes(l)||Object.keys(a).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(a.$unknownFields[l]=e[l])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&ao(n.prototype,r),o&&ao(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Yn);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 no(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)?no(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"===ro(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 go(e){return go="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},go(e)}function mo(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 wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mo(Object(n),!0).forEach(function(t){Oo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Oo(e,t,n){return(t=jo(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,jo(r.key),r)}}function jo(e){var t=function(e){if("object"!=go(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=go(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==go(t)?t:t+""}function $o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($o=function(){return!!e})()}function Po(e){return Po=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Po(e)}function To(e,t){return To=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},To(e,t)}function Fo(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")}ho.prototype.name=void 0,ho.prototype.sizeBytes=void 0,ho.prototype.type=void 0,ho.prototype.vendor=void 0,ho.prototype.images=void 0,ho.prototype.clusterExtId=void 0,ho.prototype.checksum=void 0,Yn.prototype.extId=void 0,Yn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Eo=new WeakSet,So=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=Po(t),function(e,t){if(t&&("object"==go(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,$o()?Reflect.construct(t,n||[],Po(e).constructor):t.apply(e,n))}(this,t),Eo),e.$objectType="lifecycle.v4.resources.ListBundlesApiResponse",e.$reserved={$fv:"v4.r1"},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&&To(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 wo(wo(wo({},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}):Fo(Eo,this,Co).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}):Fo(Eo,this,Co).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 F?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(Me.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:go(n[0]),o=0;o<n.length;o++){if("lifecycle.v4.resources.Bundle"!==s)throw"Unknown list of type "+s+" in data";r=ho.constructFromObject(n[o],void 0),i.push(r)}a.setData(i)}else{if("lifecycle.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:go(e.data)))throw"Unknown datatype "+s+" in data";a.setData(fn.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=wo({},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&&ko(n.prototype,r),o&&ko(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Co(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"===go(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 Io(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 Do(e){return Do="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},Do(e)}function Ao(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 Uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(n),!0).forEach(function(t){Ro(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ao(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ro(e,t,n){return(t=No(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xo(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,No(r.key),r)}}function No(e){var t=function(e){if("object"!=Do(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Do(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Do(t)?t:t+""}function Mo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Mo=function(){return!!e})()}function Vo(e){return Vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vo(e)}function _o(e,t){return _o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_o(e,t)}function Lo(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")}So.prototype.metadata=void 0,So.prototype.data=void 0,So.prototype.$reserved=void 0,So.prototype.$objectType=void 0,So.prototype.$unknownFields=void 0;var Jo=new WeakSet,Wo=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=Vo(t),function(e,t){if(t&&("object"==Do(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,Mo()?Reflect.construct(t,n||[],Vo(e).constructor):t.apply(e,n))}(this,t),Jo),e.$objectType="lifecycle.v4.resources.CreateBundleApiResponse",e.$reserved={$fv:"v4.r1"},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&&_o(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 Uo(Uo(Uo({},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}):Lo(Jo,this,Bo).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}):Lo(Jo,this,Bo).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 F?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(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Do(e.data)){case"prism.v4.config.TaskReference":r.setData(wn.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(fn.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=Uo({},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&&xo(n.prototype,r),o&&xo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Bo(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 Io(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)?Io(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"===Do(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 zo(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 qo(e){return qo="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},qo(e)}function Ko(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?Ko(Object(n),!0).forEach(function(t){Go(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Go(e,t,n){return(t=Zo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xo(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,Zo(r.key),r)}}function Zo(e){var t=function(e){if("object"!=qo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qo(t)?t:t+""}function Qo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Qo=function(){return!!e})()}function Yo(e){return Yo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yo(e)}function ei(e,t){return ei=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ei(e,t)}function ti(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")}Wo.prototype.metadata=void 0,Wo.prototype.data=void 0,Wo.prototype.$reserved=void 0,Wo.prototype.$objectType=void 0,Wo.prototype.$unknownFields=void 0;var ni=new WeakSet,ri=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=Yo(t),function(e,t){if(t&&("object"==qo(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,Qo()?Reflect.construct(t,n||[],Yo(e).constructor):t.apply(e,n))}(this,t),ni),e.$objectType="lifecycle.v4.resources.GetBundleByIdApiResponse",e.$reserved={$fv:"v4.r1"},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&&ei(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}):ti(ni,this,oi).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}):ti(ni,this,oi).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 F?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(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:qo(e.data)){case"lifecycle.v4.resources.Bundle":r.setData(ho.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(fn.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&&Xo(n.prototype,r),o&&Xo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function oi(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 zo(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)?zo(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"===qo(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 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 si(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?si(Object(n),!0).forEach(function(t){ui(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):si(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ui(e,t,n){return(t=ci(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function li(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,ci(r.key),r)}}function ci(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 fi(e,t){return e.get(di(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")}ri.prototype.metadata=void 0,ri.prototype.data=void 0,ri.prototype.$reserved=void 0,ri.prototype.$objectType=void 0,ri.prototype.$unknownFields=void 0;var pi=new WeakMap,yi=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,pi,void 0),this.apiClient=t||lt.instance,n=pi,r=new Set,n.set(di(n,this),r),fi(pi,this).add("authorization"),fi(pi,this).add("cookie"),fi(pi,this).add("host"),fi(pi,this).add("user-agent")},t=[{key:"createBundle",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 ho&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createBundle");var o={};Object.keys(r).forEach(function(e){fi(pi,n).has(e.toLowerCase())||(o[e]=r[e])});var i=ai({},o);lt.addEtagReferenceToHeader(e,i);var s=Wo;return this.apiClient.callApi("/api/lifecycle/v4.1/resources/bundles","POST",{},{},i,{},t,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],s)}},{key:"deleteBundleById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteBundleById");var r={extId:e},o={};Object.keys(n).forEach(function(e){fi(pi,t).has(e.toLowerCase())||(o[e]=n[e])});var i=ai({},o),s=An;return this.apiClient.callApi("/api/lifecycle/v4.1/resources/bundles/{extId}","DELETE",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"getBundleById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getBundleById");var r={extId:e},o={};Object.keys(n).forEach(function(e){fi(pi,t).has(e.toLowerCase())||(o[e]=n[e])});var i=ai({},o),s=ri;return this.apiClient.callApi("/api/lifecycle/v4.1/resources/bundles/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"listBundles",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=ai(ai(ai(ai(ai({},(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){fi(pi,t).has(e.toLowerCase())||(o[e]=n[e])});var i=ai({},o),s=So;return this.apiClient.callApi("/api/lifecycle/v4.1/resources/bundles","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&li(e.prototype,t),n&&li(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),hi={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CONNECTED_SITE:"CONNECTED_SITE",DARKSITE_WEB_SERVER:"DARKSITE_WEB_SERVER",DARKSITE_DIRECT_UPLOAD:"DARKSITE_DIRECT_UPLOAD",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(hi).find(function(t){return hi[t]===e});return null==t?hi.$UNKNOWN:hi[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case hi.$UNKNOWN:case hi.$REDACTED:case hi.CONNECTED_SITE:case hi.DARKSITE_WEB_SERVER:case hi.DARKSITE_DIRECT_UPLOAD:return;default:throw new Error("Invalid : must be ConnectivityType.{ $UNKNOWN|$REDACTED|CONNECTED_SITE|DARKSITE_WEB_SERVER|DARKSITE_DIRECT_UPLOAD }")}}};Object.freeze(hi);const vi=hi;function bi(e){return bi="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},bi(e)}function gi(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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(n),!0).forEach(function(t){wi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wi(e,t,n){return(t=ki(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oi(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,ki(r.key),r)}}function ki(e){var t=function(e){if("object"!=bi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bi(t)?t:t+""}function ji(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ji=function(){return!!e})()}function $i(e){return $i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$i(e)}function Pi(e,t){return Pi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pi(e,t)}var Ti=new WeakSet,Fi=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=$i(t),function(e,t){if(t&&("object"==bi(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,ji()?Reflect.construct(t,n||[],$i(e).constructor):t.apply(e,n))}(this,t),Ti),e.$objectType="lifecycle.v4.resources.Config",e.$reserved={$fv:"v4.r1"},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&&Pi(e,t)}(t,e),n=t,r=[{key:"getUrl",value:function(){return this.url}},{key:"setUrl",value:function(e){this.url=e}},{key:"getIsAutoInventoryEnabled",value:function(){return this.isAutoInventoryEnabled}},{key:"setIsAutoInventoryEnabled",value:function(e){this.isAutoInventoryEnabled=e}},{key:"getAutoInventorySchedule",value:function(){return this.autoInventorySchedule}},{key:"setAutoInventorySchedule",value:function(e){this.autoInventorySchedule=e}},{key:"getVersion",value:function(){return this.version}},{key:"setVersion",value:function(e){this.version=e}},{key:"getDisplayVersion",value:function(){return this.displayVersion}},{key:"setDisplayVersion",value:function(e){this.displayVersion=e}},{key:"getConnectivityType",value:function(){return this.connectivityType}},{key:"setConnectivityType",value:function(e){this.connectivityType=e}},{key:"getIsHttpsEnabled",value:function(){return this.isHttpsEnabled}},{key:"setIsHttpsEnabled",value:function(e){this.isHttpsEnabled=e}},{key:"getSupportedSoftwareEntities",value:function(){return this.supportedSoftwareEntities}},{key:"setSupportedSoftwareEntities",value:function(e){this.supportedSoftwareEntities=e}},{key:"getDeprecatedSoftwareEntities",value:function(){return this.deprecatedSoftwareEntities}},{key:"setDeprecatedSoftwareEntities",value:function(e){this.deprecatedSoftwareEntities=e}},{key:"getIsFrameworkBundleUploaded",value:function(){return this.isFrameworkBundleUploaded}},{key:"setIsFrameworkBundleUploaded",value:function(e){this.isFrameworkBundleUploaded=e}},{key:"getHasModuleAutoUpgradeEnabled",value:function(){return this.hasModuleAutoUpgradeEnabled}},{key:"setHasModuleAutoUpgradeEnabled",value:function(e){this.hasModuleAutoUpgradeEnabled=e}},{key:"toJson",value:function(e){return mi(!1===e?mi(mi(mi(mi(mi(mi(mi(mi(mi(mi(mi(mi(mi(mi({},void 0!==this.getUrl()&&null!==this.getUrl()?{url:this.getUrl()}:{}),void 0!==this.getIsAutoInventoryEnabled()&&null!==this.getIsAutoInventoryEnabled()?{isAutoInventoryEnabled:this.getIsAutoInventoryEnabled()}:{}),void 0!==this.getAutoInventorySchedule()&&null!==this.getAutoInventorySchedule()?{autoInventorySchedule:this.getAutoInventorySchedule()}:{}),void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getDisplayVersion()&&null!==this.getDisplayVersion()?{displayVersion:this.getDisplayVersion()}:{}),void 0!==this.getConnectivityType()&&null!==this.getConnectivityType()?{connectivityType:this.getConnectivityType()}:{}),void 0!==this.getIsHttpsEnabled()&&null!==this.getIsHttpsEnabled()?{isHttpsEnabled:this.getIsHttpsEnabled()}:{}),void 0!==this.getSupportedSoftwareEntities()&&null!==this.getSupportedSoftwareEntities()?{supportedSoftwareEntities:this.getSupportedSoftwareEntities()}:{}),void 0!==this.getDeprecatedSoftwareEntities()&&null!==this.getDeprecatedSoftwareEntities()?{deprecatedSoftwareEntities:this.getDeprecatedSoftwareEntities()}:{}),void 0!==this.getIsFrameworkBundleUploaded()&&null!==this.getIsFrameworkBundleUploaded()?{isFrameworkBundleUploaded:this.getIsFrameworkBundleUploaded()}:{}),void 0!==this.getHasModuleAutoUpgradeEnabled()&&null!==this.getHasModuleAutoUpgradeEnabled()?{hasModuleAutoUpgradeEnabled:this.getHasModuleAutoUpgradeEnabled()}:{}),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()}:{}):mi(mi(mi(mi(mi(mi({},void 0!==this.getUrl()&&null!==this.getUrl()?{url:this.getUrl()}:{}),void 0!==this.getIsAutoInventoryEnabled()&&null!==this.getIsAutoInventoryEnabled()?{isAutoInventoryEnabled:this.getIsAutoInventoryEnabled()}:{}),void 0!==this.getAutoInventorySchedule()&&null!==this.getAutoInventorySchedule()?{autoInventorySchedule:this.getAutoInventorySchedule()}:{}),void 0!==this.getConnectivityType()&&null!==this.getConnectivityType()?{connectivityType:this.getConnectivityType()}:{}),void 0!==this.getIsHttpsEnabled()&&null!==this.getIsHttpsEnabled()?{isHttpsEnabled:this.getIsHttpsEnabled()}:{}),void 0!==this.getHasModuleAutoUpgradeEnabled()&&null!==this.getHasModuleAutoUpgradeEnabled()?{hasModuleAutoUpgradeEnabled:this.getHasModuleAutoUpgradeEnabled()}:{}),{},{$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 F?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("url"===t){if(void 0===this.url||null===this.url)return new R("url","undefined or null");if(!I.validatePattern(this.url,/^((http[s]?|nfs):\/)?\/?([^:\/\\s]*)((\/\\w+)*(:[0-9]+)*?\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/))return new R("url","does not satisfy required pattern: /^((http[s]?|nfs):/)?/?([^:/\\s]*)((/\\w+)*(:[0-9]+)*?/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/")}if("isAutoInventoryEnabled"===t&&(void 0===this.isAutoInventoryEnabled||null===this.isAutoInventoryEnabled))return new R("isAutoInventoryEnabled","undefined or null");if("autoInventorySchedule"===t){if(void 0===this.autoInventorySchedule||null===this.autoInventorySchedule)return new R("autoInventorySchedule","undefined or null");if(!I.validatePattern(this.autoInventorySchedule,/^([01]\\d|2[0-3]):([0-5]\\d)$/))return new R("autoInventorySchedule","does not satisfy required pattern: /^([01]\\d|2[0-3]):([0-5]\\d)$/")}if("version"===t){if(void 0===this.version||null===this.version)return new R("version","undefined or null");if(!I.validateMaxLength(this.version,128))return new R("version","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.version,1))return new R("version","does not satisfy required minLength constraint: 1")}if("displayVersion"===t){if(void 0===this.displayVersion||null===this.displayVersion)return new R("displayVersion","undefined or null");if(!I.validateMaxLength(this.displayVersion,128))return new R("displayVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.displayVersion,1))return new R("displayVersion","does not satisfy required minLength constraint: 1")}if("connectivityType"===t&&(void 0===this.connectivityType||null===this.connectivityType))return new R("connectivityType","undefined or null");if("isHttpsEnabled"===t&&(void 0===this.isHttpsEnabled||null===this.isHttpsEnabled))return new R("isHttpsEnabled","undefined or null");if("supportedSoftwareEntities"===t){if(void 0===this.supportedSoftwareEntities||null===this.supportedSoftwareEntities)return new R("supportedSoftwareEntities","undefined or null");if(!I.validateMaxItems(this.supportedSoftwareEntities,100))return new R("supportedSoftwareEntities","does not satisfy required maxItems constraint: 100")}if("deprecatedSoftwareEntities"===t){if(void 0===this.deprecatedSoftwareEntities||null===this.deprecatedSoftwareEntities)return new R("deprecatedSoftwareEntities","undefined or null");if(!I.validateMaxItems(this.deprecatedSoftwareEntities,100))return new R("deprecatedSoftwareEntities","does not satisfy required maxItems constraint: 100")}return"isFrameworkBundleUploaded"!==t||void 0!==this.isFrameworkBundleUploaded&&null!==this.isFrameworkBundleUploaded?"hasModuleAutoUpgradeEnabled"!==t||void 0!==this.hasModuleAutoUpgradeEnabled&&null!==this.hasModuleAutoUpgradeEnabled?new R(t,"no such property exists"):new R("hasModuleAutoUpgradeEnabled","undefined or null"):new R("isFrameworkBundleUploaded","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,Yn.constructFromObject(e,i,!0),e.hasOwnProperty("url")&&null!==e.url&&void 0!==e.url&&i.setUrl(e.url),e.hasOwnProperty("isAutoInventoryEnabled")&&null!==e.isAutoInventoryEnabled&&void 0!==e.isAutoInventoryEnabled&&i.setIsAutoInventoryEnabled(e.isAutoInventoryEnabled),e.hasOwnProperty("autoInventorySchedule")&&null!==e.autoInventorySchedule&&void 0!==e.autoInventorySchedule&&i.setAutoInventorySchedule(e.autoInventorySchedule),e.hasOwnProperty("version")&&null!==e.version&&void 0!==e.version&&i.setVersion(e.version),e.hasOwnProperty("displayVersion")&&null!==e.displayVersion&&void 0!==e.displayVersion&&i.setDisplayVersion(e.displayVersion),e.hasOwnProperty("connectivityType")&&null!==e.connectivityType&&void 0!==e.connectivityType&&i.setConnectivityType(vi.constructFromObject(e.connectivityType)),e.hasOwnProperty("isHttpsEnabled")&&null!==e.isHttpsEnabled&&void 0!==e.isHttpsEnabled&&i.setIsHttpsEnabled(e.isHttpsEnabled),e.hasOwnProperty("supportedSoftwareEntities")&&null!==e.supportedSoftwareEntities&&void 0!==e.supportedSoftwareEntities){for(o=[],n=e.supportedSoftwareEntities,r=0;r<n.length;r++)o.push(n[r]);i.setSupportedSoftwareEntities(o)}if(e.hasOwnProperty("deprecatedSoftwareEntities")&&null!==e.deprecatedSoftwareEntities&&void 0!==e.deprecatedSoftwareEntities){for(o=[],n=e.deprecatedSoftwareEntities,r=0;r<n.length;r++)o.push(n[r]);i.setDeprecatedSoftwareEntities(o)}if(e.hasOwnProperty("isFrameworkBundleUploaded")&&null!==e.isFrameworkBundleUploaded&&void 0!==e.isFrameworkBundleUploaded&&i.setIsFrameworkBundleUploaded(e.isFrameworkBundleUploaded),e.hasOwnProperty("hasModuleAutoUpgradeEnabled")&&null!==e.hasModuleAutoUpgradeEnabled&&void 0!==e.hasModuleAutoUpgradeEnabled&&i.setHasModuleAutoUpgradeEnabled(e.hasModuleAutoUpgradeEnabled),!s)for(var a in i.$unknownFields=mi({},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&&Oi(n.prototype,r),o&&Oi(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Yn);function Ei(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 Si(e){return Si="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},Si(e)}function Ci(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 Ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ci(Object(n),!0).forEach(function(t){Di(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ci(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Di(e,t,n){return(t=Ui(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ai(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,Ui(r.key),r)}}function Ui(e){var t=function(e){if("object"!=Si(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Si(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Si(t)?t:t+""}function Ri(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ri=function(){return!!e})()}function xi(e){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xi(e)}function Ni(e,t){return Ni=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ni(e,t)}function Mi(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")}Fi.prototype.url=void 0,Fi.prototype.isAutoInventoryEnabled=!1,Fi.prototype.autoInventorySchedule=void 0,Fi.prototype.version=void 0,Fi.prototype.displayVersion=void 0,Fi.prototype.connectivityType=void 0,Fi.prototype.isHttpsEnabled=!1,Fi.prototype.supportedSoftwareEntities=void 0,Fi.prototype.deprecatedSoftwareEntities=void 0,Fi.prototype.isFrameworkBundleUploaded=!1,Fi.prototype.hasModuleAutoUpgradeEnabled=!1,Yn.prototype.extId=void 0,Yn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Vi=new WeakSet,_i=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=xi(t),function(e,t){if(t&&("object"==Si(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||[],xi(e).constructor):t.apply(e,n))}(this,t),Vi),e.$objectType="lifecycle.v4.resources.GetConfigApiResponse",e.$reserved={$fv:"v4.r1"},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&&Ni(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 Ii(Ii(Ii({},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}):Mi(Vi,this,Li).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}):Mi(Vi,this,Li).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 F?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(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Si(e.data)){case"lifecycle.v4.resources.Config":r.setData(Fi.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(fn.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=Ii({},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&&Ai(n.prototype,r),o&&Ai(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Li(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 Ei(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)?Ei(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"===Si(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 Ji(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 Wi(e){return Wi="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},Wi(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 zi(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){qi(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}function qi(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 Ki(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"!=Wi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wi(t)?t:t+""}function Gi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Gi=function(){return!!e})()}function Xi(e){return Xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xi(e)}function Zi(e,t){return Zi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zi(e,t)}function Qi(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")}_i.prototype.metadata=void 0,_i.prototype.data=void 0,_i.prototype.$reserved=void 0,_i.prototype.$objectType=void 0,_i.prototype.$unknownFields=void 0;var Yi=new WeakSet,es=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=Xi(t),function(e,t){if(t&&("object"==Wi(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,Gi()?Reflect.construct(t,n||[],Xi(e).constructor):t.apply(e,n))}(this,t),Yi),e.$objectType="lifecycle.v4.resources.UpdateConfigApiResponse",e.$reserved={$fv:"v4.r1"},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&&Zi(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 zi(zi(zi({},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}):Qi(Yi,this,ts).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}):Qi(Yi,this,ts).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 F?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(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Wi(e.data)){case"prism.v4.config.TaskReference":r.setData(wn.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(fn.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=zi({},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&&Ki(n.prototype,r),o&&Ki(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ts(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 Ji(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)?Ji(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"===Wi(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 ns(e){return ns="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},ns(e)}function rs(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 os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rs(Object(n),!0).forEach(function(t){is(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function is(e,t,n){return(t=as(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ss(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,as(r.key),r)}}function as(e){var t=function(e){if("object"!=ns(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ns(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ns(t)?t:t+""}function us(e,t){return e.get(ls(e,t))}function ls(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")}es.prototype.metadata=void 0,es.prototype.data=void 0,es.prototype.$reserved=void 0,es.prototype.$objectType=void 0,es.prototype.$unknownFields=void 0;var cs=new WeakMap,fs=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,cs,void 0),this.apiClient=t||lt.instance,n=cs,r=new Set,n.set(ls(n,this),r),us(cs,this).add("authorization"),us(cs,this).add("cookie"),us(cs,this).add("host"),us(cs,this).add("user-agent")},t=[{key:"getConfig",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};e=e||{};var r={};Object.keys(n).forEach(function(e){us(cs,t).has(e.toLowerCase())||(r[e]=n[e])});var o=os({"X-Cluster-Id":e.xClusterId},r),i=_i;return this.apiClient.callApi("/api/lifecycle/v4.1/resources/config","GET",{},{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],i)}},{key:"updateConfig",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;if(null==(o=e instanceof Fi&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling updateConfig");var i={};Object.keys(r).forEach(function(e){us(cs,n).has(e.toLowerCase())||(i[e]=r[e])});var s=os({"X-Cluster-Id":t.xClusterId},i);lt.addEtagReferenceToHeader(e,s);var a=es;return this.apiClient.callApi("/api/lifecycle/v4.1/resources/config","PUT",{},{},s,{},o,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],a)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&ss(e.prototype,t),n&&ss(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function ds(e){return ds="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},ds(e)}function ps(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 ys(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ps(Object(n),!0).forEach(function(t){hs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ps(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hs(e,t,n){return(t=bs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vs(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,bs(r.key),r)}}function bs(e){var t=function(e){if("object"!=ds(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ds(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ds(t)?t:t+""}var gs=new WeakSet,ms=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,gs),this.entityUuid=t,this.toVersion=n,this.$objectType="lifecycle.v4.common.EntityUpdateSpec",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getEntityUuid",value:function(){return this.entityUuid}},{key:"setEntityUuid",value:function(e){this.entityUuid=e}},{key:"getToVersion",value:function(){return this.toVersion}},{key:"setToVersion",value:function(e){this.toVersion=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 ys(ys(ys({},void 0!==this.getEntityUuid()&&null!==this.getEntityUuid()?{entityUuid:this.getEntityUuid()}:{}),void 0!==this.getToVersion()&&null!==this.getToVersion()?{toVersion:this.getToVersion()}:{}),{},{$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 F?r=["entityUuid","toVersion"]: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("entityUuid"===t){if(void 0===this.entityUuid||null===this.entityUuid)return new R("entityUuid","undefined or null");if(!I.validatePattern(this.entityUuid,/^[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("entityUuid","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("toVersion"===t){if(void 0===this.toVersion||null===this.toVersion)return new R("toVersion","undefined or null");if(!I.validateMaxLength(this.toVersion,128))return new R("toVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.toVersion,1))return new R("toVersion","does not satisfy required minLength constraint: 1")}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("entityUuid")&&null!==t.entityUuid&&void 0!==t.entityUuid&&n.setEntityUuid(t.entityUuid),t.hasOwnProperty("toVersion")&&null!==t.toVersion&&void 0!==t.toVersion&&n.setToVersion(t.toVersion),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=ys({},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&&vs(t.prototype,n),r&&vs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 ks(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){js(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 js(e,t,n){return(t=Ps(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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,Ps(r.key),r)}}function Ps(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.entityUuid=void 0,ms.prototype.toVersion=void 0,ms.prototype.$reserved=void 0,ms.prototype.$objectType=void 0,ms.prototype.$unknownFields=void 0;var Ts=new WeakSet,Fs=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,Ts),this.entityUpdateSpecs=t,this.$objectType="lifecycle.v4.common.PreloadSpec",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getEntityUpdateSpecs",value:function(){return this.entityUpdateSpecs}},{key:"setEntityUpdateSpecs",value:function(e){this.entityUpdateSpecs=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 ks(ks({},void 0!==this.getEntityUpdateSpecs()&&null!==this.getEntityUpdateSpecs()?{entityUpdateSpecs:this.getEntityUpdateSpecs().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 F?r=["entityUpdateSpecs"]: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("entityUpdateSpecs"===t){if(void 0===this.entityUpdateSpecs||null===this.entityUpdateSpecs)return new R("entityUpdateSpecs","undefined or null");if(!I.validateMaxItems(this.entityUpdateSpecs,2048))return new R("entityUpdateSpecs","does not satisfy required maxItems constraint: 2048")}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("entityUpdateSpecs")&&null!==t.entityUpdateSpecs&&void 0!==t.entityUpdateSpecs){for(i=[],n=t.entityUpdateSpecs,o=0;o<n.length;o++)r=ms.constructFromObject(n[o],void 0),i.push(r);s.setEntityUpdateSpecs(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=ks({},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&&$s(t.prototype,n),r&&$s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Fs.prototype.entityUpdateSpecs=void 0,Fs.prototype.$reserved=void 0,Fs.prototype.$objectType=void 0,Fs.prototype.$unknownFields=void 0;var Es={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NODE:"NODE",CLUSTER:"CLUSTER",PC:"PC",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Es).find(function(t){return Es[t]===e});return null==t?Es.$UNKNOWN:Es[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Es.$UNKNOWN:case Es.$REDACTED:case Es.NODE:case Es.CLUSTER:case Es.PC:return;default:throw new Error("Invalid : must be LocationType.{ $UNKNOWN|$REDACTED|NODE|CLUSTER|PC }")}}};Object.freeze(Es);const Ss=Es;function Cs(e){return Cs="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},Cs(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 Ds(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){As(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}function As(e,t,n){return(t=Rs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Us(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,Rs(r.key),r)}}function Rs(e){var t=function(e){if("object"!=Cs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cs(t)?t:t+""}var xs=new WeakSet,Ns=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,xs),this.$objectType="lifecycle.v4.common.LocationInfo",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getUuid",value:function(){return this.uuid}},{key:"setUuid",value:function(e){this.uuid=e}},{key:"getLocationType",value:function(){return this.locationType}},{key:"setLocationType",value:function(e){this.locationType=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 Ds(Ds(!1===e?Ds({},void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{}):{},void 0!==this.getLocationType()&&null!==this.getLocationType()?{locationType:this.getLocationType()}:{}),{},{$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 F?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("uuid"===t){if(void 0===this.uuid||null===this.uuid)return new R("uuid","undefined or null");if(!I.validatePattern(this.uuid,/^[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("uuid","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"locationType"!==t||void 0!==this.locationType&&null!==this.locationType?"$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("locationType","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("uuid")&&null!==t.uuid&&void 0!==t.uuid&&n.setUuid(t.uuid),t.hasOwnProperty("locationType")&&null!==t.locationType&&void 0!==t.locationType&&n.setLocationType(Ss.constructFromObject(t.locationType)),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=Ds({},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&&Us(t.prototype,n),r&&Us(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ms(e){return Ms="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},Ms(e)}function Vs(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 _s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vs(Object(n),!0).forEach(function(t){Ls(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ls(e,t,n){return(t=Ws(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Js(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,Ws(r.key),r)}}function Ws(e){var t=function(e){if("object"!=Ms(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ms(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ms(t)?t:t+""}function Bs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Bs=function(){return!!e})()}function zs(e){return zs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zs(e)}function qs(e,t){return qs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qs(e,t)}Ns.prototype.uuid=void 0,Ns.prototype.locationType=void 0,Ns.prototype.$reserved=void 0,Ns.prototype.$objectType=void 0,Ns.prototype.$unknownFields=void 0;var Ks=new WeakSet,Hs=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=zs(t),function(e,t){if(t&&("object"==Ms(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,Bs()?Reflect.construct(t,n||[],zs(e).constructor):t.apply(e,n))}(this,t),Ks),e.$objectType="lifecycle.v4.resources.DependentEntity",e.$reserved={$fv:"v4.r1"},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&&qs(e,t)}(t,e),n=t,r=[{key:"getDependentVersions",value:function(){return this.dependentVersions}},{key:"setDependentVersions",value:function(e){this.dependentVersions=e}},{key:"toJson",value:function(e){return _s(!1===e?_s(_s(_s(_s(_s(_s(_s(_s(_s({},void 0!==this.getDependentVersions()&&null!==this.getDependentVersions()?{dependentVersions:this.getDependentVersions().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),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()}:{}):_s(_s(_s(_s(_s({},void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),{},{$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 F?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("dependentVersions"===t){if(void 0===this.dependentVersions||null===this.dependentVersions)return new R("dependentVersions","undefined or null");if(!I.validateMaxItems(this.dependentVersions,100))return new R("dependentVersions","does not satisfy required maxItems constraint: 100")}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,Ur.constructFromObject(e,s,!0),e.hasOwnProperty("dependentVersions")&&null!==e.dependentVersions&&void 0!==e.dependentVersions){for(i=[],n=e.dependentVersions,o=0;o<n.length;o++)r=ce.constructFromObject(n[o],void 0),i.push(r);s.setDependentVersions(i)}if(!a)for(var u in s.$unknownFields=_s({},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&&Js(n.prototype,r),o&&Js(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ur);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 Xs(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 Zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xs(Object(n),!0).forEach(function(t){Qs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qs(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 Ys(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(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")}Hs.prototype.dependentVersions=void 0,Ur.prototype.entityClass=void 0,Ur.prototype.entityModel=void 0,Ur.prototype.entityType=void 0,Ur.prototype.entityVersion=void 0,Ur.prototype.hardwareFamily=void 0,Yn.prototype.extId=void 0,Yn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var na=new WeakSet,ra=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,na),this.$objectType="lifecycle.v4.resources.AvailableVersion",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getVersion",value:function(){return this.version}},{key:"setVersion",value:function(e){this.version=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"getAvailableVersionUuid",value:function(){return this.availableVersionUuid}},{key:"setAvailableVersionUuid",value:function(e){this.availableVersionUuid=e}},{key:"getOrder",value:function(){return this.order}},{key:"setOrder",value:function(e){this.order=e}},{key:"getDisablementReason",value:function(){return this.disablementReason}},{key:"setDisablementReason",value:function(e){this.disablementReason=e}},{key:"getReleaseNotes",value:function(){return this.releaseNotes}},{key:"setReleaseNotes",value:function(e){this.releaseNotes=e}},{key:"getReleaseDate",value:function(){return this.releaseDate}},{key:"setReleaseDate",value:function(e){this.releaseDate=e}},{key:"getCustomMessage",value:function(){return this.customMessage}},{key:"setCustomMessage",value:function(e){this.customMessage=e}},{key:"getChildEntities",value:function(){return this.childEntities}},{key:"setChildEntities",value:function(e){this.childEntities=e}},{key:"getGroupUuid",value:function(){return this.groupUuid}},{key:"setGroupUuid",value:function(e){this.groupUuid=e}},{key:"getDependencies",value:function(){return this.dependencies}},{key:"setDependencies",value:function(e){this.dependencies=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 Zs(Zs(Zs(!1===e?Zs(Zs(Zs(Zs(Zs(Zs(Zs(Zs(Zs(Zs({},void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getAvailableVersionUuid()&&null!==this.getAvailableVersionUuid()?{availableVersionUuid:this.getAvailableVersionUuid()}:{}),void 0!==this.getOrder()&&null!==this.getOrder()?{order:this.getOrder()}:{}),void 0!==this.getDisablementReason()&&null!==this.getDisablementReason()?{disablementReason:this.getDisablementReason()}:{}),void 0!==this.getReleaseNotes()&&null!==this.getReleaseNotes()?{releaseNotes:this.getReleaseNotes()}:{}),void 0!==this.getReleaseDate()&&null!==this.getReleaseDate()?{releaseDate:ta(na,this,oa).call(this,this.getReleaseDate(),!0)}:{}),void 0!==this.getCustomMessage()&&null!==this.getCustomMessage()?{customMessage:this.getCustomMessage()}:{}),void 0!==this.getChildEntities()&&null!==this.getChildEntities()?{childEntities:this.getChildEntities()}:{}):Zs(Zs(Zs(Zs(Zs(Zs(Zs(Zs(Zs({},void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getAvailableVersionUuid()&&null!==this.getAvailableVersionUuid()?{availableVersionUuid:this.getAvailableVersionUuid()}:{}),void 0!==this.getOrder()&&null!==this.getOrder()?{order:this.getOrder()}:{}),void 0!==this.getDisablementReason()&&null!==this.getDisablementReason()?{disablementReason:this.getDisablementReason()}:{}),void 0!==this.getReleaseNotes()&&null!==this.getReleaseNotes()?{releaseNotes:this.getReleaseNotes()}:{}),void 0!==this.getReleaseDate()&&null!==this.getReleaseDate()?{releaseDate:ta(na,this,oa).call(this,this.getReleaseDate(),!0)}:{}),void 0!==this.getCustomMessage()&&null!==this.getCustomMessage()?{customMessage:this.getCustomMessage()}:{}),void 0!==this.getGroupUuid()&&null!==this.getGroupUuid()?{groupUuid:this.getGroupUuid()}:{}),void 0!==this.getDependencies()&&null!==this.getDependencies()?{dependencies:this.getDependencies().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 F?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("version"===t){if(void 0===this.version||null===this.version)return new R("version","undefined or null");if(!I.validateMaxLength(this.version,128))return new R("version","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.version,1))return new R("version","does not satisfy required minLength constraint: 1")}if("status"===t&&(void 0===this.status||null===this.status))return new R("status","undefined or null");if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new R("isEnabled","undefined or null");if("availableVersionUuid"===t){if(void 0===this.availableVersionUuid||null===this.availableVersionUuid)return new R("availableVersionUuid","undefined or null");if(!I.validatePattern(this.availableVersionUuid,/^[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("availableVersionUuid","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("order"===t){if(void 0===this.order||null===this.order)return new R("order","undefined or null");if(!I.validateMaximum(this.order,1e4))return new R("order","does not satisfy required maximum constraint: 10000");if(!I.validateMinimum(this.order,1))return new R("order","does not satisfy required minimum constraint: 1")}if("disablementReason"===t){if(void 0===this.disablementReason||null===this.disablementReason)return new R("disablementReason","undefined or null");if(!I.validateMaxLength(this.disablementReason,512))return new R("disablementReason","does not satisfy required maxLength constraint: 512");if(!I.validateMinLength(this.disablementReason,1))return new R("disablementReason","does not satisfy required minLength constraint: 1")}if("releaseNotes"===t){if(void 0===this.releaseNotes||null===this.releaseNotes)return new R("releaseNotes","undefined or null");if(!I.validateMaxLength(this.releaseNotes,1024))return new R("releaseNotes","does not satisfy required maxLength constraint: 1024");if(!I.validateMinLength(this.releaseNotes,1))return new R("releaseNotes","does not satisfy required minLength constraint: 1")}if("releaseDate"===t&&(void 0===this.releaseDate||null===this.releaseDate))return new R("releaseDate","undefined or null");if("customMessage"===t){if(void 0===this.customMessage||null===this.customMessage)return new R("customMessage","undefined or null");if(!I.validateMaxLength(this.customMessage,512))return new R("customMessage","does not satisfy required maxLength constraint: 512");if(!I.validateMinLength(this.customMessage,1))return new R("customMessage","does not satisfy required minLength constraint: 1")}if("childEntities"===t){if(void 0===this.childEntities||null===this.childEntities)return new R("childEntities","undefined or null");if(!I.validateMaxItems(this.childEntities,100))return new R("childEntities","does not satisfy required maxItems constraint: 100")}if("groupUuid"===t){if(void 0===this.groupUuid||null===this.groupUuid)return new R("groupUuid","undefined or null");if(!I.validatePattern(this.groupUuid,/^[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("groupUuid","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("dependencies"===t){if(void 0===this.dependencies||null===this.dependencies)return new R("dependencies","undefined or null");if(!I.validateMaxItems(this.dependencies,100))return new R("dependencies","does not satisfy required maxItems constraint: 100")}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("version")&&null!==t.version&&void 0!==t.version&&s.setVersion(t.version),t.hasOwnProperty("status")&&null!==t.status&&void 0!==t.status&&s.setStatus(Or.constructFromObject(t.status)),t.hasOwnProperty("isEnabled")&&null!==t.isEnabled&&void 0!==t.isEnabled&&s.setIsEnabled(t.isEnabled),t.hasOwnProperty("availableVersionUuid")&&null!==t.availableVersionUuid&&void 0!==t.availableVersionUuid&&s.setAvailableVersionUuid(t.availableVersionUuid),t.hasOwnProperty("order")&&null!==t.order&&void 0!==t.order&&s.setOrder(t.order),t.hasOwnProperty("disablementReason")&&null!==t.disablementReason&&void 0!==t.disablementReason&&s.setDisablementReason(t.disablementReason),t.hasOwnProperty("releaseNotes")&&null!==t.releaseNotes&&void 0!==t.releaseNotes&&s.setReleaseNotes(t.releaseNotes),t.hasOwnProperty("releaseDate")&&null!==t.releaseDate&&void 0!==t.releaseDate&&s.setReleaseDate(t.releaseDate),t.hasOwnProperty("customMessage")&&null!==t.customMessage&&void 0!==t.customMessage&&s.setCustomMessage(t.customMessage),t.hasOwnProperty("childEntities")&&null!==t.childEntities&&void 0!==t.childEntities){for(i=[],n=t.childEntities,o=0;o<n.length;o++)i.push(n[o]);s.setChildEntities(i)}if(t.hasOwnProperty("groupUuid")&&null!==t.groupUuid&&void 0!==t.groupUuid&&s.setGroupUuid(t.groupUuid),t.hasOwnProperty("dependencies")&&null!==t.dependencies&&void 0!==t.dependencies){for(i=[],n=t.dependencies,o=0;o<n.length;o++)r=Hs.constructFromObject(n[o],void 0),i.push(r);s.setDependencies(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=Zs({},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&&Ys(t.prototype,n),r&&Ys(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function oa(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function ia(e){return ia="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},ia(e)}function sa(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 aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sa(Object(n),!0).forEach(function(t){ua(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ua(e,t,n){return(t=ca(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function la(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,ca(r.key),r)}}function ca(e){var t=function(e){if("object"!=ia(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ia(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ia(t)?t:t+""}function fa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fa=function(){return!!e})()}function da(e){return da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},da(e)}function pa(e,t){return pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pa(e,t)}function ya(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")}ra.prototype.version=void 0,ra.prototype.status=void 0,ra.prototype.isEnabled=!0,ra.prototype.availableVersionUuid=void 0,ra.prototype.order=void 0,ra.prototype.disablementReason=void 0,ra.prototype.releaseNotes=void 0,ra.prototype.releaseDate=void 0,ra.prototype.customMessage=void 0,ra.prototype.childEntities=void 0,ra.prototype.groupUuid=void 0,ra.prototype.dependencies=void 0,ra.prototype.$reserved=void 0,ra.prototype.$objectType=void 0,ra.prototype.$unknownFields=void 0;var ha=new WeakSet,va=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=da(t),function(e,t){if(t&&("object"==ia(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,fa()?Reflect.construct(t,n||[],da(e).constructor):t.apply(e,n))}(this,t),ha),e.$objectType="lifecycle.v4.resources.Entity",e.$reserved={$fv:"v4.r1"},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&&pa(e,t)}(t,e),n=t,r=[{key:"getEntityDescription",value:function(){return this.entityDescription}},{key:"setEntityDescription",value:function(e){this.entityDescription=e}},{key:"getLocationInfo",value:function(){return this.locationInfo}},{key:"setLocationInfo",value:function(e){this.locationInfo=e}},{key:"getTargetVersion",value:function(){return this.targetVersion}},{key:"setTargetVersion",value:function(e){this.targetVersion=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"getDeviceId",value:function(){return this.deviceId}},{key:"setDeviceId",value:function(e){this.deviceId=e}},{key:"getGroupUuid",value:function(){return this.groupUuid}},{key:"setGroupUuid",value:function(e){this.groupUuid=e}},{key:"getEntityDetails",value:function(){return this.entityDetails}},{key:"setEntityDetails",value:function(e){this.entityDetails=e}},{key:"getChildEntities",value:function(){return this.childEntities}},{key:"setChildEntities",value:function(e){this.childEntities=e}},{key:"getAvailableVersions",value:function(){return this.availableVersions}},{key:"setAvailableVersions",value:function(e){this.availableVersions=e}},{key:"getSubEntities",value:function(){return this.subEntities}},{key:"setSubEntities",value:function(e){this.subEntities=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getHardwareVendor",value:function(){return this.hardwareVendor}},{key:"setHardwareVendor",value:function(e){this.hardwareVendor=e}},{key:"toJson",value:function(e){return aa(!1===e?aa(aa(aa(aa(aa(aa(aa(aa(aa(aa(aa(aa(aa(aa(aa(aa(aa(aa(aa(aa({},void 0!==this.getEntityDescription()&&null!==this.getEntityDescription()?{entityDescription:this.getEntityDescription()}:{}),void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getTargetVersion()&&null!==this.getTargetVersion()?{targetVersion:this.getTargetVersion()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:ya(ha,this,ba).call(this,this.getLastUpdatedTime(),!1)}:{}),void 0!==this.getDeviceId()&&null!==this.getDeviceId()?{deviceId:this.getDeviceId()}:{}),void 0!==this.getGroupUuid()&&null!==this.getGroupUuid()?{groupUuid:this.getGroupUuid()}:{}),void 0!==this.getEntityDetails()&&null!==this.getEntityDetails()?{entityDetails:this.getEntityDetails().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getChildEntities()&&null!==this.getChildEntities()?{childEntities:this.getChildEntities()}:{}),void 0!==this.getAvailableVersions()&&null!==this.getAvailableVersions()?{availableVersions:this.getAvailableVersions().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getSubEntities()&&null!==this.getSubEntities()?{subEntities:this.getSubEntities().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getHardwareVendor()&&null!==this.getHardwareVendor()?{hardwareVendor:this.getHardwareVendor()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),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()}:{}):aa(aa(aa(aa(aa(aa(aa(aa(aa({},void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getSubEntities()&&null!==this.getSubEntities()?{subEntities:this.getSubEntities().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getHardwareVendor()&&null!==this.getHardwareVendor()?{hardwareVendor:this.getHardwareVendor()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),{},{$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 F?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("entityDescription"===t){if(void 0===this.entityDescription||null===this.entityDescription)return new R("entityDescription","undefined or null");if(!I.validateMaxLength(this.entityDescription,256))return new R("entityDescription","does not satisfy required maxLength constraint: 256");if(!I.validateMinLength(this.entityDescription,1))return new R("entityDescription","does not satisfy required minLength constraint: 1")}if("locationInfo"===t&&(void 0===this.locationInfo||null===this.locationInfo))return new R("locationInfo","undefined or null");if("targetVersion"===t){if(void 0===this.targetVersion||null===this.targetVersion)return new R("targetVersion","undefined or null");if(!I.validateMaxLength(this.targetVersion,128))return new R("targetVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.targetVersion,1))return new R("targetVersion","does not satisfy required minLength constraint: 1")}if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new R("lastUpdatedTime","undefined or null");if("deviceId"===t){if(void 0===this.deviceId||null===this.deviceId)return new R("deviceId","undefined or null");if(!I.validateMaxLength(this.deviceId,128))return new R("deviceId","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.deviceId,1))return new R("deviceId","does not satisfy required minLength constraint: 1")}if("groupUuid"===t){if(void 0===this.groupUuid||null===this.groupUuid)return new R("groupUuid","undefined or null");if(!I.validatePattern(this.groupUuid,/^[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("groupUuid","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("entityDetails"===t){if(void 0===this.entityDetails||null===this.entityDetails)return new R("entityDetails","undefined or null");if(!I.validateMaxItems(this.entityDetails,100))return new R("entityDetails","does not satisfy required maxItems constraint: 100")}if("childEntities"===t){if(void 0===this.childEntities||null===this.childEntities)return new R("childEntities","undefined or null");if(!I.validateMaxItems(this.childEntities,100))return new R("childEntities","does not satisfy required maxItems constraint: 100")}if("availableVersions"===t){if(void 0===this.availableVersions||null===this.availableVersions)return new R("availableVersions","undefined or null");if(!I.validateMaxItems(this.availableVersions,100))return new R("availableVersions","does not satisfy required maxItems constraint: 100")}if("subEntities"===t){if(void 0===this.subEntities||null===this.subEntities)return new R("subEntities","undefined or null");if(!I.validateMaxItems(this.subEntities,100))return new R("subEntities","does not satisfy required maxItems constraint: 100")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!I.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("hardwareVendor"===t){if(void 0===this.hardwareVendor||null===this.hardwareVendor)return new R("hardwareVendor","undefined or null");if(!I.validateMaxLength(this.hardwareVendor,256))return new R("hardwareVendor","does not satisfy required maxLength constraint: 256");if(!I.validateMinLength(this.hardwareVendor,1))return new R("hardwareVendor","does not satisfy required minLength constraint: 1")}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,Ur.constructFromObject(e,s,!0),e.hasOwnProperty("entityDescription")&&null!==e.entityDescription&&void 0!==e.entityDescription&&s.setEntityDescription(e.entityDescription),e.hasOwnProperty("locationInfo")&&null!==e.locationInfo&&void 0!==e.locationInfo&&s.setLocationInfo(Ns.constructFromObject(e.locationInfo)),e.hasOwnProperty("targetVersion")&&null!==e.targetVersion&&void 0!==e.targetVersion&&s.setTargetVersion(e.targetVersion),e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&s.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("deviceId")&&null!==e.deviceId&&void 0!==e.deviceId&&s.setDeviceId(e.deviceId),e.hasOwnProperty("groupUuid")&&null!==e.groupUuid&&void 0!==e.groupUuid&&s.setGroupUuid(e.groupUuid),e.hasOwnProperty("entityDetails")&&null!==e.entityDetails&&void 0!==e.entityDetails){for(i=[],n=e.entityDetails,o=0;o<n.length;o++)r=ce.constructFromObject(n[o],void 0),i.push(r);s.setEntityDetails(i)}if(e.hasOwnProperty("childEntities")&&null!==e.childEntities&&void 0!==e.childEntities){for(i=[],n=e.childEntities,o=0;o<n.length;o++)i.push(n[o]);s.setChildEntities(i)}if(e.hasOwnProperty("availableVersions")&&null!==e.availableVersions&&void 0!==e.availableVersions){for(i=[],n=e.availableVersions,o=0;o<n.length;o++)r=ra.constructFromObject(n[o],void 0),i.push(r);s.setAvailableVersions(i)}if(e.hasOwnProperty("subEntities")&&null!==e.subEntities&&void 0!==e.subEntities){for(i=[],n=e.subEntities,o=0;o<n.length;o++)r=Ur.constructFromObject(n[o],void 0),i.push(r);s.setSubEntities(i)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&s.setClusterExtId(e.clusterExtId),e.hasOwnProperty("hardwareVendor")&&null!==e.hardwareVendor&&void 0!==e.hardwareVendor&&s.setHardwareVendor(e.hardwareVendor),!a)for(var u in s.$unknownFields=aa({},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&&la(n.prototype,r),o&&la(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ur);function ba(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function ga(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 ma(e){return ma="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},ma(e)}function wa(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 Oa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wa(Object(n),!0).forEach(function(t){ka(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ka(e,t,n){return(t=$a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ja(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"!=ma(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ma(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ma(t)?t:t+""}function Pa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pa=function(){return!!e})()}function Ta(e){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ta(e)}function Fa(e,t){return Fa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fa(e,t)}function Ea(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")}va.prototype.entityDescription=void 0,va.prototype.locationInfo=void 0,va.prototype.targetVersion=void 0,va.prototype.lastUpdatedTime=void 0,va.prototype.deviceId=void 0,va.prototype.groupUuid=void 0,va.prototype.entityDetails=void 0,va.prototype.childEntities=void 0,va.prototype.availableVersions=void 0,va.prototype.subEntities=void 0,va.prototype.clusterExtId=void 0,va.prototype.hardwareVendor=void 0,Ur.prototype.entityClass=void 0,Ur.prototype.entityModel=void 0,Ur.prototype.entityType=void 0,Ur.prototype.entityVersion=void 0,Ur.prototype.hardwareFamily=void 0,Yn.prototype.extId=void 0,Yn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Sa=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=Ta(t),function(e,t){if(t&&("object"==ma(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,Pa()?Reflect.construct(t,n||[],Ta(e).constructor):t.apply(e,n))}(this,t),Sa),e.$objectType="lifecycle.v4.resources.GetEntityByIdApiResponse",e.$reserved={$fv:"v4.r1"},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&&Fa(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 Oa(Oa(Oa({},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}):Ea(Sa,this,Ia).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}):Ea(Sa,this,Ia).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 F?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(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ma(e.data)){case"lifecycle.v4.resources.Entity":r.setData(va.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(fn.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=Oa({},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&&ja(n.prototype,r),o&&ja(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ia(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 ga(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)?ga(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"===ma(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 Da(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 Aa(e){return Aa="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},Aa(e)}function Ua(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 Ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ua(Object(n),!0).forEach(function(t){xa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ua(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xa(e,t,n){return(t=Ma(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Na(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,Ma(r.key),r)}}function Ma(e){var t=function(e){if("object"!=Aa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Aa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Aa(t)?t:t+""}function Va(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Va=function(){return!!e})()}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_a(e)}function La(e,t){return La=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},La(e,t)}function Ja(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")}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 Wa=new WeakSet,Ba=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=_a(t),function(e,t){if(t&&("object"==Aa(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,Va()?Reflect.construct(t,n||[],_a(e).constructor):t.apply(e,n))}(this,t),Wa),e.$objectType="lifecycle.v4.operations.PreloadArtifactsApiResponse",e.$reserved={$fv:"v4.r1"},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&&La(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 Ra(Ra(Ra({},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}):Ja(Wa,this,za).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}):Ja(Wa,this,za).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 F?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(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Aa(e.data)){case"prism.v4.config.TaskReference":r.setData(wn.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(fn.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=Ra({},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&&Na(n.prototype,r),o&&Na(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function za(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 Da(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)?Da(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"===Aa(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 qa(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 Ka(e){return Ka="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},Ka(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 Ga(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){Xa(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 Xa(e,t,n){return(t=Qa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Za(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,Qa(r.key),r)}}function Qa(e){var t=function(e){if("object"!=Ka(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ka(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ka(t)?t:t+""}function Ya(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ya=function(){return!!e})()}function eu(e){return eu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eu(e)}function tu(e,t){return tu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tu(e,t)}function nu(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.metadata=void 0,Ba.prototype.data=void 0,Ba.prototype.$reserved=void 0,Ba.prototype.$objectType=void 0,Ba.prototype.$unknownFields=void 0;var ru=new WeakSet,ou=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=eu(t),function(e,t){if(t&&("object"==Ka(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,Ya()?Reflect.construct(t,n||[],eu(e).constructor):t.apply(e,n))}(this,t),ru),e.$objectType="lifecycle.v4.resources.ListEntitiesApiResponse",e.$reserved={$fv:"v4.r1"},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&&tu(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 Ga(Ga(Ga({},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}):nu(ru,this,iu).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}):nu(ru,this,iu).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 F?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(Me.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:Ka(n[0]),o=0;o<n.length;o++){if("lifecycle.v4.resources.Entity"!==s)throw"Unknown list of type "+s+" in data";r=va.constructFromObject(n[o],void 0),i.push(r)}a.setData(i)}else{if("lifecycle.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ka(e.data)))throw"Unknown datatype "+s+" in data";a.setData(fn.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=Ga({},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&&Za(n.prototype,r),o&&Za(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function iu(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 qa(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)?qa(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"===Ka(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 su(e){return su="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},su(e)}function au(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 uu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?au(Object(n),!0).forEach(function(t){lu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):au(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lu(e,t,n){return(t=fu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cu(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,fu(r.key),r)}}function fu(e){var t=function(e){if("object"!=su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==su(t)?t:t+""}function du(e,t){return e.get(pu(e,t))}function pu(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")}ou.prototype.metadata=void 0,ou.prototype.data=void 0,ou.prototype.$reserved=void 0,ou.prototype.$objectType=void 0,ou.prototype.$unknownFields=void 0;var yu=new WeakMap,hu=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,yu,void 0),this.apiClient=t||lt.instance,n=yu,r=new Set,n.set(pu(n,this),r),du(yu,this).add("authorization"),du(yu,this).add("cookie"),du(yu,this).add("host"),du(yu,this).add("user-agent")},t=[{key:"getEntityById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getEntityById");var r={extId:e},o={};Object.keys(n).forEach(function(e){du(yu,t).has(e.toLowerCase())||(o[e]=n[e])});var i=uu({},o),s=Ca;return this.apiClient.callApi("/api/lifecycle/v4.1/resources/entities/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"listEntities",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=uu(uu(uu(uu(uu({},(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){du(yu,t).has(e.toLowerCase())||(o[e]=n[e])});var i=uu({},o),s=ou;return this.apiClient.callApi("/api/lifecycle/v4.1/resources/entities","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"preloadArtifacts",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;if(null==(o=e instanceof Fs&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling preloadArtifacts");var i={};Object.keys(r).forEach(function(e){du(yu,n).has(e.toLowerCase())||(i[e]=r[e])});var s=uu({"X-Cluster-Id":t.xClusterId},i);lt.addEtagReferenceToHeader(e,s);var a=Ba;return this.apiClient.callApi("/api/lifecycle/v4.1/operations/$actions/preload-artifacts","POST",{},{},s,{},o,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],a)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&cu(e.prototype,t),n&&cu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function vu(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 bu(e){return bu="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},bu(e)}function gu(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?gu(Object(n),!0).forEach(function(t){wu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wu(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 Ou(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"!=bu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bu(t)?t:t+""}function ju(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ju=function(){return!!e})()}function $u(e){return $u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$u(e)}function Pu(e,t){return Pu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pu(e,t)}function Tu(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 Fu=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=$u(t),function(e,t){if(t&&("object"==bu(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,ju()?Reflect.construct(t,n||[],$u(e).constructor):t.apply(e,n))}(this,t),Fu),e.$objectType="lifecycle.v4.resources.ListImagesApiResponse",e.$reserved={$fv:"v4.r1"},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&&Pu(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 mu(mu(mu({},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}):Tu(Fu,this,Su).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}):Tu(Fu,this,Su).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 F?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(Me.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:bu(n[0]),o=0;o<n.length;o++){if("lifecycle.v4.resources.Image"!==s)throw"Unknown list of type "+s+" in data";r=to.constructFromObject(n[o],void 0),i.push(r)}a.setData(i)}else{if("lifecycle.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:bu(e.data)))throw"Unknown datatype "+s+" in data";a.setData(fn.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=mu({},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&&Ou(n.prototype,r),o&&Ou(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Su(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 vu(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)?vu(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"===bu(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 Cu(e){return Cu="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},Cu(e)}function Iu(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 Du(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iu(Object(n),!0).forEach(function(t){Au(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Au(e,t,n){return(t=Ru(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uu(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,Ru(r.key),r)}}function Ru(e){var t=function(e){if("object"!=Cu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cu(t)?t:t+""}function xu(e,t){return e.get(Nu(e,t))}function Nu(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 Mu=new WeakMap,Vu=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,Mu,void 0),this.apiClient=t||lt.instance,n=Mu,r=new Set,n.set(Nu(n,this),r),xu(Mu,this).add("authorization"),xu(Mu,this).add("cookie"),xu(Mu,this).add("host"),xu(Mu,this).add("user-agent")},t=[{key:"listImages",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Du(Du(Du(Du(Du({},(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){xu(Mu,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Du({},o),s=Eu;return this.apiClient.callApi("/api/lifecycle/v4.1/resources/images","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Uu(e.prototype,t),n&&Uu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function _u(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 Lu(e){return Lu="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},Lu(e)}function Ju(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?Ju(Object(n),!0).forEach(function(t){Bu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ju(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bu(e,t,n){return(t=qu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zu(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,qu(r.key),r)}}function qu(e){var t=function(e){if("object"!=Lu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lu(t)?t:t+""}function Ku(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ku=function(){return!!e})()}function Hu(e){return Hu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hu(e)}function Gu(e,t){return Gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gu(e,t)}function Xu(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 Zu=new WeakSet,Qu=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=Hu(t),function(e,t){if(t&&("object"==Lu(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||[],Hu(e).constructor):t.apply(e,n))}(this,t),Zu),e.$objectType="lifecycle.v4.operations.InventoryApiResponse",e.$reserved={$fv:"v4.r1"},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&&Gu(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 Wu(Wu(Wu({},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}):Xu(Zu,this,Yu).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}):Xu(Zu,this,Yu).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 F?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(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Lu(e.data)){case"prism.v4.config.TaskReference":r.setData(wn.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(fn.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=Wu({},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&&zu(n.prototype,r),o&&zu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Yu(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 _u(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)?_u(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"===Lu(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 el(e){return el="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},el(e)}function tl(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 nl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tl(Object(n),!0).forEach(function(t){rl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rl(e,t,n){return(t=il(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ol(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,il(r.key),r)}}function il(e){var t=function(e){if("object"!=el(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=el(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==el(t)?t:t+""}Qu.prototype.metadata=void 0,Qu.prototype.data=void 0,Qu.prototype.$reserved=void 0,Qu.prototype.$objectType=void 0,Qu.prototype.$unknownFields=void 0;var sl=new WeakSet,al=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,sl),this.credentialExtId=t,this.$objectType="lifecycle.v4.common.CredentialReference",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getCredentialExtId",value:function(){return this.credentialExtId}},{key:"setCredentialExtId",value:function(e){this.credentialExtId=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 nl(nl({},void 0!==this.getCredentialExtId()&&null!==this.getCredentialExtId()?{credentialExtId:this.getCredentialExtId()}:{}),{},{$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 F?r=["credentialExtId"]: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("credentialExtId"===t){if(void 0===this.credentialExtId||null===this.credentialExtId)return new R("credentialExtId","undefined or null");if(!I.validatePattern(this.credentialExtId,/^[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("credentialExtId","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("credentialExtId")&&null!==t.credentialExtId&&void 0!==t.credentialExtId&&n.setCredentialExtId(t.credentialExtId),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=nl({},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&&ol(t.prototype,n),r&&ol(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();al.prototype.credentialExtId=void 0,al.prototype.$reserved=void 0,al.prototype.$objectType=void 0,al.prototype.$unknownFields=void 0;var ul={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INTERSIGHT_SAAS:"INTERSIGHT_SAAS",INTERSIGHT_VIRTUAL_APPLIANCE:"INTERSIGHT_VIRTUAL_APPLIANCE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ul).find(function(t){return ul[t]===e});return null==t?ul.$UNKNOWN:ul[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ul.$UNKNOWN:case ul.$REDACTED:case ul.INTERSIGHT_SAAS:case ul.INTERSIGHT_VIRTUAL_APPLIANCE:return;default:throw new Error("Invalid : must be IntersightConnectionType.{ $UNKNOWN|$REDACTED|INTERSIGHT_SAAS|INTERSIGHT_VIRTUAL_APPLIANCE }")}}};Object.freeze(ul);const ll=ul;function cl(e){return cl="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},cl(e)}function fl(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 dl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fl(Object(n),!0).forEach(function(t){pl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pl(e,t,n){return(t=hl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yl(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,hl(r.key),r)}}function hl(e){var t=function(e){if("object"!=cl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cl(t)?t:t+""}var vl=new WeakSet,bl=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,vl),this.apiKey=t,this.secretKey=n,this.$objectType="security.v4.config.KeyBasedAuth",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getApiKey",value:function(){return this.apiKey}},{key:"setApiKey",value:function(e){this.apiKey=e}},{key:"getSecretKey",value:function(){return this.secretKey}},{key:"setSecretKey",value:function(e){this.secretKey=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 dl(dl(dl({},void 0!==this.getApiKey()&&null!==this.getApiKey()?{apiKey:this.getApiKey()}:{}),void 0!==this.getSecretKey()&&null!==this.getSecretKey()?{secretKey:this.getSecretKey()}:{}),{},{$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 F?r=["apiKey","secretKey"]: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("apiKey"===t){if(void 0===this.apiKey||null===this.apiKey)return new R("apiKey","undefined or null");if(!I.validateMaxLength(this.apiKey,1024))return new R("apiKey","does not satisfy required maxLength constraint: 1024");if(!I.validateMinLength(this.apiKey,1))return new R("apiKey","does not satisfy required minLength constraint: 1")}if("secretKey"===t){if(void 0===this.secretKey||null===this.secretKey)return new R("secretKey","undefined or null");if(!I.validateMaxLength(this.secretKey,2048))return new R("secretKey","does not satisfy required maxLength constraint: 2048");if(!I.validateMinLength(this.secretKey,1))return new R("secretKey","does not satisfy required minLength constraint: 1")}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("apiKey")&&null!==t.apiKey&&void 0!==t.apiKey&&n.setApiKey(t.apiKey),t.hasOwnProperty("secretKey")&&null!==t.secretKey&&void 0!==t.secretKey&&n.setSecretKey(t.secretKey),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=dl({},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&&yl(t.prototype,n),r&&yl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function gl(e){return gl="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},gl(e)}function ml(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 wl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ml(Object(n),!0).forEach(function(t){Ol(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ml(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ol(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 kl(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"!=gl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gl(t)?t:t+""}bl.prototype.apiKey=void 0,bl.prototype.secretKey=void 0,bl.prototype.$reserved=void 0,bl.prototype.$objectType=void 0,bl.prototype.$unknownFields=void 0;var $l=new WeakSet,Pl=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,$l),this.credential=t,this.$objectType="security.v4.config.KeyBasedAuthCredential",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCredential",value:function(){return this.credential}},{key:"setCredential",value:function(e){this.credential=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 wl(wl({},void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().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 F?r=["credential"]: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"credential"!==t||void 0!==this.credential&&null!==this.credential?"$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("credential","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("credential")&&null!==t.credential&&void 0!==t.credential&&n.setCredential(bl.constructFromObject(t.credential)),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=wl({},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&&kl(t.prototype,n),r&&kl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 Fl(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 El(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fl(Object(n),!0).forEach(function(t){Sl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sl(e,t,n){return(t=Il(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cl(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,Il(r.key),r)}}function Il(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 Dl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Dl=function(){return!!e})()}function Al(e){return Al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Al(e)}function Ul(e,t){return Ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ul(e,t)}Pl.prototype.credential=void 0,Pl.prototype.$reserved=void 0,Pl.prototype.$objectType=void 0,Pl.prototype.$unknownFields=void 0;var Rl=new WeakSet,xl=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=Al(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,Dl()?Reflect.construct(t,n||[],Al(e).constructor):t.apply(e,n))}(this,t,[r]),Rl),o.url=e,o.deploymentType=n,o.$objectType="security.v4.config.IntersightCredential",o.$reserved={$fv:"v4.r0"},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&&Ul(e,t)}(t,e),n=t,r=[{key:"getUrl",value:function(){return this.url}},{key:"setUrl",value:function(e){this.url=e}},{key:"getDeploymentType",value:function(){return this.deploymentType}},{key:"setDeploymentType",value:function(e){this.deploymentType=e}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"toJson",value:function(e){return El(El(!1===e?El(El(El({},void 0!==this.getUrl()&&null!==this.getUrl()?{url:this.getUrl()}:{}),void 0!==this.getDeploymentType()&&null!==this.getDeploymentType()?{deploymentType:this.getDeploymentType()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}):El(El({},void 0!==this.getUrl()&&null!==this.getUrl()?{url:this.getUrl()}:{}),void 0!==this.getDeploymentType()&&null!==this.getDeploymentType()?{deploymentType:this.getDeploymentType()}:{}),void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().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 F?r=["credential","url","deploymentType"]: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("url"===t){if(void 0===this.url||null===this.url)return new R("url","undefined or null");if(!I.validatePattern(this.url,/^((http[s]?|nfs):\/)?\/?([^:\/\\s]*)((\/\\w+)*(:[0-9]+)*?\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/))return new R("url","does not satisfy required pattern: /^((http[s]?|nfs):/)?/?([^:/\\s]*)((/\\w+)*(:[0-9]+)*?/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/")}return"deploymentType"!==t||void 0!==this.deploymentType&&null!==this.deploymentType?"type"!==t||void 0!==this.type&&null!==this.type?new R(t,"no such property exists"):new R("type","undefined or null"):new R("deploymentType","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,Pl.constructFromObject(e,n,!0),e.hasOwnProperty("url")&&null!==e.url&&void 0!==e.url&&n.setUrl(e.url),e.hasOwnProperty("deploymentType")&&null!==e.deploymentType&&void 0!==e.deploymentType&&n.setDeploymentType(ll.constructFromObject(e.deploymentType)),e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type&&n.setType(e.type),!r))for(var o in n.$unknownFields=El({},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&&Cl(n.prototype,r),o&&Cl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Pl);function Nl(e){return Nl="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},Nl(e)}function Ml(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?Ml(Object(n),!0).forEach(function(t){_l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ml(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _l(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 Ll(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"!=Nl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nl(t)?t:t+""}xl.prototype.url=void 0,xl.prototype.deploymentType=void 0,xl.prototype.type=void 0,Pl.prototype.credential=void 0;var Wl=new WeakSet,Bl=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,Wl),this.username=t,this.password=n,this.$objectType="common.v1.config.BasicAuth",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getUsername",value:function(){return this.username}},{key:"setUsername",value:function(e){this.username=e}},{key:"getPassword",value:function(){return this.password}},{key:"setPassword",value:function(e){this.password=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 Vl(Vl(Vl({},void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),{},{$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 F?r=["username","password"]: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(!I.validateMaxLength(this.username,256))return new R("username","does not satisfy required maxLength constraint: 256");if(!I.validateMinLength(this.username,3))return new R("username","does not satisfy required minLength constraint: 3")}return"password"!==t||void 0!==this.password&&null!==this.password?"$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("password","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("username")&&null!==t.username&&void 0!==t.username&&n.setUsername(t.username),t.hasOwnProperty("password")&&null!==t.password&&void 0!==t.password&&n.setPassword(t.password),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=Vl({},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&&Ll(t.prototype,n),r&&Ll(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function zl(e){return zl="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},zl(e)}function ql(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 Kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ql(Object(n),!0).forEach(function(t){Hl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ql(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hl(e,t,n){return(t=Xl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gl(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,Xl(r.key),r)}}function Xl(e){var t=function(e){if("object"!=zl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zl(t)?t:t+""}Bl.prototype.username=void 0,Bl.prototype.password=void 0,Bl.prototype.$reserved=void 0,Bl.prototype.$objectType=void 0,Bl.prototype.$unknownFields=void 0;var Zl=new WeakSet,Ql=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,Zl),this.$objectType="common.v1.config.FQDN",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{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 Kl(Kl({},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 F?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("value"===t){if(void 0===this.value||null===this.value)return new R("value","undefined or null");if(!I.validatePattern(this.value,/^([a-zA-Z0-9À-ÿ]+(?:-[a-zA-Z0-9À-ÿ]+)*\\.)+[a-zA-ZÀ-ÿ]{2,63}$/))return new R("value","does not satisfy required pattern: /^([a-zA-Z0-9À-ÿ]+(?:-[a-zA-Z0-9À-ÿ]+)*\\.)+[a-zA-ZÀ-ÿ]{2,63}$/")}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("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=Kl({},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&&Gl(t.prototype,n),r&&Gl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Yl(e){return Yl="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},Yl(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){nc(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 nc(e,t,n){return(t=oc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rc(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,oc(r.key),r)}}function oc(e){var t=function(e){if("object"!=Yl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yl(t)?t:t+""}Ql.prototype.value=void 0,Ql.prototype.$reserved=void 0,Ql.prototype.$objectType=void 0,Ql.prototype.$unknownFields=void 0;var ic=new WeakSet,sc=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,ic),this.value=t,this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=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 tc(tc(tc({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$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 F?r=["value"]: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("value"===t){if(void 0===this.value||null===this.value)return new R("value","undefined or null");if(!I.validatePattern(this.value,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new R("value","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new R("prefixLength","undefined or null");if(!I.validateMaximum(this.prefixLength,32))return new R("prefixLength","does not satisfy required maximum constraint: 32");if(!I.validateMinimum(this.prefixLength,0))return new R("prefixLength","does not satisfy required minimum constraint: 0")}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("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),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=tc({},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&&rc(t.prototype,n),r&&rc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ac(e){return ac="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},ac(e)}function uc(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 lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uc(Object(n),!0).forEach(function(t){cc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cc(e,t,n){return(t=dc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fc(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,dc(r.key),r)}}function dc(e){var t=function(e){if("object"!=ac(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ac(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ac(t)?t:t+""}sc.prototype.value=void 0,sc.prototype.prefixLength=32,sc.prototype.$reserved=void 0,sc.prototype.$objectType=void 0,sc.prototype.$unknownFields=void 0;var pc=new WeakSet,yc=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,pc),this.value=t,this.$objectType="common.v1.config.IPv6Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=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 lc(lc(lc({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$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 F?r=["value"]: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("value"===t){if(void 0===this.value||null===this.value)return new R("value","undefined or null");if(!I.validatePattern(this.value,/^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/))return new R("value","does not satisfy required pattern: /^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new R("prefixLength","undefined or null");if(!I.validateMaximum(this.prefixLength,128))return new R("prefixLength","does not satisfy required maximum constraint: 128");if(!I.validateMinimum(this.prefixLength,0))return new R("prefixLength","does not satisfy required minimum constraint: 0")}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("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),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=lc({},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&&fc(t.prototype,n),r&&fc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function hc(e){return hc="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},hc(e)}function vc(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 bc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vc(Object(n),!0).forEach(function(t){gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gc(e,t,n){return(t=wc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mc(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,wc(r.key),r)}}function wc(e){var t=function(e){if("object"!=hc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hc(t)?t:t+""}yc.prototype.value=void 0,yc.prototype.prefixLength=128,yc.prototype.$reserved=void 0,yc.prototype.$objectType=void 0,yc.prototype.$unknownFields=void 0;var Oc=new WeakSet,kc=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,Oc),this.$objectType="common.v1.config.IPAddressOrFQDN",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"getIpv6",value:function(){return this.ipv6}},{key:"setIpv6",value:function(e){this.ipv6=e}},{key:"getFqdn",value:function(){return this.fqdn}},{key:"setFqdn",value:function(e){this.fqdn=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:"hasIpv4",value:function(){return!(void 0===this.ipv4||null===this.ipv4)}},{key:"hasIpv6",value:function(){return!(void 0===this.ipv6||null===this.ipv6)}},{key:"hasFqdn",value:function(){return!(void 0===this.fqdn||null===this.fqdn)}},{key:"isValid",value:function(){return this.hasIpv4()||this.hasIpv6()||this.hasFqdn()}},{key:"toJson",value:function(e){return bc(bc(bc(bc({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson(!1)}:{}),void 0!==this.getFqdn()&&null!==this.getFqdn()?{fqdn:this.getFqdn().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 F?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"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"fqdn"!==t||void 0!==this.fqdn&&null!==this.fqdn?"$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("fqdn","undefined or null"):new R("ipv6","undefined or null"):new R("ipv4","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("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(sc.constructFromObject(t.ipv4)),t.hasOwnProperty("ipv6")&&null!==t.ipv6&&void 0!==t.ipv6&&n.setIpv6(yc.constructFromObject(t.ipv6)),t.hasOwnProperty("fqdn")&&null!==t.fqdn&&void 0!==t.fqdn&&n.setFqdn(Ql.constructFromObject(t.fqdn)),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=bc({},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&&mc(t.prototype,n),r&&mc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function jc(e){return jc="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},jc(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 Pc(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){Tc(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 Tc(e,t,n){return(t=Ec(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fc(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,Ec(r.key),r)}}function Ec(e){var t=function(e){if("object"!=jc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jc(t)?t:t+""}kc.prototype.ipv4=void 0,kc.prototype.ipv6=void 0,kc.prototype.fqdn=void 0,kc.prototype.$reserved=void 0,kc.prototype.$objectType=void 0,kc.prototype.$unknownFields=void 0;var Sc=new WeakSet,Cc=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,Sc),this.credential=t,this.$objectType="security.v4.config.BasicAuthCredential",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCredential",value:function(){return this.credential}},{key:"setCredential",value:function(e){this.credential=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 Pc(Pc({},void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().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 F?r=["credential"]: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"credential"!==t||void 0!==this.credential&&null!==this.credential?"$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("credential","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("credential")&&null!==t.credential&&void 0!==t.credential&&n.setCredential(Bl.constructFromObject(t.credential)),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=Pc({},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&&Fc(t.prototype,n),r&&Fc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ic(e){return Ic="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},Ic(e)}function Dc(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 Ac(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(n),!0).forEach(function(t){Uc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Uc(e,t,n){return(t=xc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rc(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,xc(r.key),r)}}function xc(e){var t=function(e){if("object"!=Ic(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ic(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ic(t)?t:t+""}function Nc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Nc=function(){return!!e})()}function Mc(e){return Mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mc(e)}function Vc(e,t){return Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vc(e,t)}Cc.prototype.credential=void 0,Cc.prototype.$reserved=void 0,Cc.prototype.$objectType=void 0,Cc.prototype.$unknownFields=void 0;var _c=new WeakSet,Lc=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=Mc(t),function(e,t){if(t&&("object"==Ic(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,Nc()?Reflect.construct(t,n||[],Mc(e).constructor):t.apply(e,n))}(this,t,[n]),_c),r.address=e,r.$objectType="security.v4.config.VcenterCredential",r.$reserved={$fv:"v4.r0"},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&&Vc(e,t)}(t,e),n=t,r=[{key:"getAddress",value:function(){return this.address}},{key:"setAddress",value:function(e){this.address=e}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"toJson",value:function(e){return Ac(Ac(!1===e?Ac(Ac({},void 0!==this.getAddress()&&null!==this.getAddress()?{address:this.getAddress().toJson(!1)}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}):Ac({},void 0!==this.getAddress()&&null!==this.getAddress()?{address:this.getAddress().toJson(!1)}:{}),void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().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 F?r=["credential","address"]: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"address"!==t||void 0!==this.address&&null!==this.address?"type"!==t||void 0!==this.type&&null!==this.type?new R(t,"no such property exists"):new R("type","undefined or null"):new R("address","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,Cc.constructFromObject(e,n,!0),e.hasOwnProperty("address")&&null!==e.address&&void 0!==e.address&&n.setAddress(kc.constructFromObject(e.address)),e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type&&n.setType(e.type),!r))for(var o in n.$unknownFields=Ac({},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&&Rc(n.prototype,r),o&&Rc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Cc);function Jc(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 Bc(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 zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bc(Object(n),!0).forEach(function(t){qc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qc(e,t,n){return(t=Hc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kc(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,Hc(r.key),r)}}function Hc(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 Gc(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.address=void 0,Lc.prototype.type=void 0,Cc.prototype.credential=void 0;var Xc=new WeakSet,Zc=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,Xc),this.credentialSpec=t,this.$objectType="lifecycle.v4.common.VendorManagementCredential",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getCredentialSpec",value:function(){return this.credentialSpec}},{key:"setCredentialSpec",value:function(e){this.credentialSpec=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 zc(zc({},!1===e?void 0!==this.getCredentialSpec()&&null!==this.getCredentialSpec()?{credentialSpec:void 0!==this.getCredentialSpec().toJson?this.getCredentialSpec().toJson(!1):Array.isArray(this.getCredentialSpec())?this.getCredentialSpec().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Gc(Xc,this,Qc).call(this,this.getCredentialSpec(),!1)}:{}:void 0!==this.getCredentialSpec()&&null!==this.getCredentialSpec()?{credentialSpec:void 0!==this.getCredentialSpec().toJson?this.getCredentialSpec().toJson():Array.isArray(this.getCredentialSpec())?this.getCredentialSpec().map(function(e){return void 0!==e.toJson?e.toJson():e}):Gc(Xc,this,Qc).call(this,this.getCredentialSpec())}:{}),{},{$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 F?r=["credentialSpec"]: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"credentialSpec"!==t||void 0!==this.credentialSpec&&null!==this.credentialSpec?"$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("credentialSpec","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("credentialSpec")&&null!==t.credentialSpec&&void 0!==t.credentialSpec)switch(n=t.credentialSpec.hasOwnProperty("$objectType")?t.credentialSpec.$objectType:Wc(t.credentialSpec)){case"security.v4.config.IntersightCredential":r.setCredentialSpec(xl.constructFromObject(t.credentialSpec,void 0));break;case"security.v4.config.VcenterCredential":r.setCredentialSpec(Lc.constructFromObject(t.credentialSpec,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!o)for(var i in r.$unknownFields=zc({},t.$unknownFields),t)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=t[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Kc(t.prototype,n),r&&Kc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Qc(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 Jc(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)?Jc(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}function Yc(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 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+""}function af(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")}Zc.prototype.credentialSpec=void 0,Zc.prototype.$reserved=void 0,Zc.prototype.$objectType=void 0,Zc.prototype.$unknownFields=void 0;var uf=new WeakSet,lf=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,uf),this.credentialDetail=t,this.$objectType="lifecycle.v4.common.Credential",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getCredentialDetail",value:function(){return this.credentialDetail}},{key:"setCredentialDetail",value:function(e){this.credentialDetail=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({},!1===e?void 0!==this.getCredentialDetail()&&null!==this.getCredentialDetail()?{credentialDetail:void 0!==this.getCredentialDetail().toJson?this.getCredentialDetail().toJson(!1):Array.isArray(this.getCredentialDetail())?this.getCredentialDetail().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):af(uf,this,cf).call(this,this.getCredentialDetail(),!1)}:{}:void 0!==this.getCredentialDetail()&&null!==this.getCredentialDetail()?{credentialDetail:void 0!==this.getCredentialDetail().toJson?this.getCredentialDetail().toJson():Array.isArray(this.getCredentialDetail())?this.getCredentialDetail().map(function(e){return void 0!==e.toJson?e.toJson():e}):af(uf,this,cf).call(this,this.getCredentialDetail())}:{}),{},{$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 F?r=["credentialDetail"]: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"credentialDetail"!==t||void 0!==this.credentialDetail&&null!==this.credentialDetail?"$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("credentialDetail","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("credentialDetail")&&null!==t.credentialDetail&&void 0!==t.credentialDetail)switch(n=t.credentialDetail.hasOwnProperty("$objectType")?t.credentialDetail.$objectType:ef(t.credentialDetail)){case"lifecycle.v4.common.CredentialReference":r.setCredentialDetail(al.constructFromObject(t.credentialDetail,void 0));break;case"lifecycle.v4.common.VendorManagementCredential":r.setCredentialDetail(Zc.constructFromObject(t.credentialDetail,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!o)for(var i in r.$unknownFields=nf({},t.$unknownFields),t)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=t[i])}return r}},{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}();function cf(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 Yc(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)?Yc(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"===ef(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 ff(e){return ff="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},ff(e)}function df(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?df(Object(n),!0).forEach(function(t){yf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):df(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"!=ff(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ff(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ff(t)?t:t+""}lf.prototype.credentialDetail=void 0,lf.prototype.$reserved=void 0,lf.prototype.$objectType=void 0,lf.prototype.$unknownFields=void 0;var bf=new WeakSet,gf=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,bf),this.$objectType="lifecycle.v4.operations.InventorySpec",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getCredentials",value:function(){return this.credentials}},{key:"setCredentials",value:function(e){this.credentials=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 pf(pf({},void 0!==this.getCredentials()&&null!==this.getCredentials()?{credentials:this.getCredentials().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 F?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("credentials"===t){if(void 0===this.credentials||null===this.credentials)return new R("credentials","undefined or null");if(!I.validateMaxItems(this.credentials,4))return new R("credentials","does not satisfy required maxItems constraint: 4")}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("credentials")&&null!==t.credentials&&void 0!==t.credentials){for(i=[],n=t.credentials,o=0;o<n.length;o++)r=lf.constructFromObject(n[o],void 0),i.push(r);s.setCredentials(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=pf({},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&&hf(t.prototype,n),r&&hf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function mf(e){return mf="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},mf(e)}function wf(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 Of(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wf(Object(n),!0).forEach(function(t){kf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kf(e,t,n){return(t=$f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jf(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"!=mf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mf(t)?t:t+""}function Pf(e,t){return e.get(Tf(e,t))}function Tf(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")}gf.prototype.credentials=void 0,gf.prototype.$reserved=void 0,gf.prototype.$objectType=void 0,gf.prototype.$unknownFields=void 0;var Ff=new WeakMap,Ef=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,Ff,void 0),this.apiClient=t||lt.instance,n=Ff,r=new Set,n.set(Tf(n,this),r),Pf(Ff,this).add("authorization"),Pf(Ff,this).add("cookie"),Pf(Ff,this).add("host"),Pf(Ff,this).add("user-agent")},t=[{key:"performInventory",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;o=e instanceof gf&&"function"==typeof e.toJson?e.toJson():e;var i=Of({},t.hasOwnProperty("$dryrun")?{$dryrun:t.$dryrun}:{}),s={};Object.keys(r).forEach(function(e){Pf(Ff,n).has(e.toLowerCase())||(s[e]=r[e])});var a=Of({"X-Cluster-Id":t.xClusterId},s);lt.addEtagReferenceToHeader(e,a);var u=Qu;return this.apiClient.callApi("/api/lifecycle/v4.1/operations/$actions/inventory","POST",{},i,a,{},o,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&jf(e.prototype,t),n&&jf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),Sf={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INVENTORY:"INVENTORY",PRECHECKS:"PRECHECKS",UPGRADE:"UPGRADE",NONE:"NONE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Sf).find(function(t){return Sf[t]===e});return null==t?Sf.$UNKNOWN:Sf[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Sf.$UNKNOWN:case Sf.$REDACTED:case Sf.INVENTORY:case Sf.PRECHECKS:case Sf.UPGRADE:case Sf.NONE:return;default:throw new Error("Invalid : must be OperationType.{ $UNKNOWN|$REDACTED|INVENTORY|PRECHECKS|UPGRADE|NONE }")}}};Object.freeze(Sf);const Cf=Sf;function If(e){return If="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},If(e)}function Df(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 Af(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Df(Object(n),!0).forEach(function(t){Uf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Df(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Uf(e,t,n){return(t=xf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rf(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,xf(r.key),r)}}function xf(e){var t=function(e){if("object"!=If(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=If(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==If(t)?t:t+""}var Nf=new WeakSet,Mf=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,Nf),this.$objectType="lifecycle.v4.common.InProgressOpDetails",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getTaskExtId",value:function(){return this.taskExtId}},{key:"setTaskExtId",value:function(e){this.taskExtId=e}},{key:"getOperationType",value:function(){return this.operationType}},{key:"setOperationType",value:function(e){this.operationType=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 Af(Af(Af({},void 0!==this.getTaskExtId()&&null!==this.getTaskExtId()?{taskExtId:this.getTaskExtId()}:{}),void 0!==this.getOperationType()&&null!==this.getOperationType()?{operationType:this.getOperationType()}:{}),{},{$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 F?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("taskExtId"===t){if(void 0===this.taskExtId||null===this.taskExtId)return new R("taskExtId","undefined or null");if(!I.validatePattern(this.taskExtId,/^[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("taskExtId","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"operationType"!==t||void 0!==this.operationType&&null!==this.operationType?"$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("operationType","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("taskExtId")&&null!==t.taskExtId&&void 0!==t.taskExtId&&n.setTaskExtId(t.taskExtId),t.hasOwnProperty("operationType")&&null!==t.operationType&&void 0!==t.operationType&&n.setOperationType(Cf.constructFromObject(t.operationType)),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=Af({},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&&Rf(t.prototype,n),r&&Rf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Mf.prototype.taskExtId=void 0,Mf.prototype.operationType=void 0,Mf.prototype.$reserved=void 0,Mf.prototype.$objectType=void 0,Mf.prototype.$unknownFields=void 0;var Vf={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",MCL_INVENTORY:"MCL_INVENTORY",MCL_UPGRADE:"MCL_UPGRADE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Vf).find(function(t){return Vf[t]===e});return null==t?Vf.$UNKNOWN:Vf[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Vf.$UNKNOWN:case Vf.$REDACTED:case Vf.MCL_INVENTORY:case Vf.MCL_UPGRADE:return;default:throw new Error("Invalid : must be Capability.{ $UNKNOWN|$REDACTED|MCL_INVENTORY|MCL_UPGRADE }")}}};Object.freeze(Vf);const _f=Vf;function Lf(e){return Lf="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},Lf(e)}function Jf(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 Wf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jf(Object(n),!0).forEach(function(t){Bf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bf(e,t,n){return(t=qf(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,qf(r.key),r)}}function qf(e){var t=function(e){if("object"!=Lf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lf(t)?t:t+""}function Kf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Kf=function(){return!!e})()}function Hf(e){return Hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hf(e)}function Gf(e,t){return Gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gf(e,t)}var Xf=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"==Lf(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,Kf()?Reflect.construct(t,n||[],Hf(e).constructor):t.apply(e,n))}(this,t),Xf),e.$objectType="lifecycle.v4.resources.LcmSummary",e.$reserved={$fv:"v4.r1"},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&&Gf(e,t)}(t,e),n=t,r=[{key:"getCurrentVersion",value:function(){return this.currentVersion}},{key:"setCurrentVersion",value:function(e){this.currentVersion=e}},{key:"getAvailableVersion",value:function(){return this.availableVersion}},{key:"setAvailableVersion",value:function(e){this.availableVersion=e}},{key:"getHardwareVendor",value:function(){return this.hardwareVendor}},{key:"setHardwareVendor",value:function(e){this.hardwareVendor=e}},{key:"getCapabilities",value:function(){return this.capabilities}},{key:"setCapabilities",value:function(e){this.capabilities=e}},{key:"getInProgressOperation",value:function(){return this.inProgressOperation}},{key:"setInProgressOperation",value:function(e){this.inProgressOperation=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getIsUrlAccessible",value:function(){return this.isUrlAccessible}},{key:"setIsUrlAccessible",value:function(e){this.isUrlAccessible=e}},{key:"toJson",value:function(e){return Wf(!1===e?Wf(Wf(Wf(Wf(Wf(Wf(Wf(Wf(Wf(Wf({},void 0!==this.getCurrentVersion()&&null!==this.getCurrentVersion()?{currentVersion:this.getCurrentVersion()}:{}),void 0!==this.getAvailableVersion()&&null!==this.getAvailableVersion()?{availableVersion:this.getAvailableVersion()}:{}),void 0!==this.getHardwareVendor()&&null!==this.getHardwareVendor()?{hardwareVendor:this.getHardwareVendor()}:{}),void 0!==this.getCapabilities()&&null!==this.getCapabilities()?{capabilities:this.getCapabilities()}:{}),void 0!==this.getInProgressOperation()&&null!==this.getInProgressOperation()?{inProgressOperation:this.getInProgressOperation().toJson(!1)}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getIsUrlAccessible()&&null!==this.getIsUrlAccessible()?{isUrlAccessible:this.getIsUrlAccessible()}:{}),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()}:{}):Wf(Wf(Wf(Wf(Wf(Wf(Wf({},void 0!==this.getCurrentVersion()&&null!==this.getCurrentVersion()?{currentVersion:this.getCurrentVersion()}:{}),void 0!==this.getAvailableVersion()&&null!==this.getAvailableVersion()?{availableVersion:this.getAvailableVersion()}:{}),void 0!==this.getHardwareVendor()&&null!==this.getHardwareVendor()?{hardwareVendor:this.getHardwareVendor()}:{}),void 0!==this.getCapabilities()&&null!==this.getCapabilities()?{capabilities:this.getCapabilities()}:{}),void 0!==this.getInProgressOperation()&&null!==this.getInProgressOperation()?{inProgressOperation:this.getInProgressOperation().toJson(!1)}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getIsUrlAccessible()&&null!==this.getIsUrlAccessible()?{isUrlAccessible:this.getIsUrlAccessible()}:{}),{},{$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 F?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("currentVersion"===t){if(void 0===this.currentVersion||null===this.currentVersion)return new R("currentVersion","undefined or null");if(!I.validateMaxLength(this.currentVersion,128))return new R("currentVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.currentVersion,1))return new R("currentVersion","does not satisfy required minLength constraint: 1")}if("availableVersion"===t){if(void 0===this.availableVersion||null===this.availableVersion)return new R("availableVersion","undefined or null");if(!I.validateMaxLength(this.availableVersion,128))return new R("availableVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.availableVersion,1))return new R("availableVersion","does not satisfy required minLength constraint: 1")}if("hardwareVendor"===t){if(void 0===this.hardwareVendor||null===this.hardwareVendor)return new R("hardwareVendor","undefined or null");if(!I.validateMaxLength(this.hardwareVendor,256))return new R("hardwareVendor","does not satisfy required maxLength constraint: 256");if(!I.validateMinLength(this.hardwareVendor,1))return new R("hardwareVendor","does not satisfy required minLength constraint: 1")}if("capabilities"===t){if(void 0===this.capabilities||null===this.capabilities)return new R("capabilities","undefined or null");if(!I.validateMaxItems(this.capabilities,7))return new R("capabilities","does not satisfy required maxItems constraint: 7")}if("inProgressOperation"===t&&(void 0===this.inProgressOperation||null===this.inProgressOperation))return new R("inProgressOperation","undefined or null");if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!I.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"isUrlAccessible"!==t||void 0!==this.isUrlAccessible&&null!==this.isUrlAccessible?new R(t,"no such property exists"):new R("isUrlAccessible","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,Yn.constructFromObject(e,s,!0),e.hasOwnProperty("currentVersion")&&null!==e.currentVersion&&void 0!==e.currentVersion&&s.setCurrentVersion(e.currentVersion),e.hasOwnProperty("availableVersion")&&null!==e.availableVersion&&void 0!==e.availableVersion&&s.setAvailableVersion(e.availableVersion),e.hasOwnProperty("hardwareVendor")&&null!==e.hardwareVendor&&void 0!==e.hardwareVendor&&s.setHardwareVendor(e.hardwareVendor),e.hasOwnProperty("capabilities")&&null!==e.capabilities&&void 0!==e.capabilities){for(i=[],n=e.capabilities,o=0;o<n.length;o++)r=_f.constructFromObject(n[o],void 0),i.push(r);s.setCapabilities(i)}if(e.hasOwnProperty("inProgressOperation")&&null!==e.inProgressOperation&&void 0!==e.inProgressOperation&&s.setInProgressOperation(Mf.constructFromObject(e.inProgressOperation)),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&s.setClusterExtId(e.clusterExtId),e.hasOwnProperty("isUrlAccessible")&&null!==e.isUrlAccessible&&void 0!==e.isUrlAccessible&&s.setIsUrlAccessible(e.isUrlAccessible),!a)for(var u in s.$unknownFields=Wf({},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&&zf(n.prototype,r),o&&zf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Yn);function Qf(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 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 ed(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 td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(n),!0).forEach(function(t){nd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ed(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nd(e,t,n){return(t=od(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,od(r.key),r)}}function od(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 id(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(id=function(){return!!e})()}function sd(e){return sd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sd(e)}function ad(e,t){return ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ad(e,t)}function ud(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")}Zf.prototype.currentVersion=void 0,Zf.prototype.availableVersion=void 0,Zf.prototype.hardwareVendor=void 0,Zf.prototype.capabilities=void 0,Zf.prototype.inProgressOperation=void 0,Zf.prototype.clusterExtId=void 0,Zf.prototype.isUrlAccessible=!0,Yn.prototype.extId=void 0,Yn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var ld=new WeakSet,cd=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=sd(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,id()?Reflect.construct(t,n||[],sd(e).constructor):t.apply(e,n))}(this,t),ld),e.$objectType="lifecycle.v4.resources.GetLcmSummaryByIdApiResponse",e.$reserved={$fv:"v4.r1"},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&&ad(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 td(td(td({},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}):ud(ld,this,fd).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}):ud(ld,this,fd).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 F?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(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Yf(e.data)){case"lifecycle.v4.resources.LcmSummary":r.setData(Zf.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(fn.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=td({},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 fd(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 Qf(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)?Qf(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"===Yf(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 dd(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 pd(e){return pd="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},pd(e)}function yd(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 hd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yd(Object(n),!0).forEach(function(t){vd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vd(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 bd(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"!=pd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pd(t)?t:t+""}function md(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(md=function(){return!!e})()}function wd(e){return wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wd(e)}function Od(e,t){return Od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Od(e,t)}function kd(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")}cd.prototype.metadata=void 0,cd.prototype.data=void 0,cd.prototype.$reserved=void 0,cd.prototype.$objectType=void 0,cd.prototype.$unknownFields=void 0;var jd=new WeakSet,$d=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=wd(t),function(e,t){if(t&&("object"==pd(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,md()?Reflect.construct(t,n||[],wd(e).constructor):t.apply(e,n))}(this,t),jd),e.$objectType="lifecycle.v4.resources.ListLcmSummariesApiResponse",e.$reserved={$fv:"v4.r1"},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&&Od(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 hd(hd(hd({},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}):kd(jd,this,Pd).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}):kd(jd,this,Pd).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 F?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(Me.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:pd(n[0]),o=0;o<n.length;o++){if("lifecycle.v4.resources.LcmSummary"!==s)throw"Unknown list of type "+s+" in data";r=Zf.constructFromObject(n[o],void 0),i.push(r)}a.setData(i)}else{if("lifecycle.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:pd(e.data)))throw"Unknown datatype "+s+" in data";a.setData(fn.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=hd({},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&&bd(n.prototype,r),o&&bd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Pd(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 dd(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)?dd(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"===pd(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 Td(e){return Td="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},Td(e)}function Fd(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 Ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fd(Object(n),!0).forEach(function(t){Sd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sd(e,t,n){return(t=Id(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cd(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,Id(r.key),r)}}function Id(e){var t=function(e){if("object"!=Td(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Td(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Td(t)?t:t+""}function Dd(e,t){return e.get(Ad(e,t))}function Ad(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")}$d.prototype.metadata=void 0,$d.prototype.data=void 0,$d.prototype.$reserved=void 0,$d.prototype.$objectType=void 0,$d.prototype.$unknownFields=void 0;var Ud=new WeakMap,Rd=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,Ud,void 0),this.apiClient=t||lt.instance,n=Ud,r=new Set,n.set(Ad(n,this),r),Dd(Ud,this).add("authorization"),Dd(Ud,this).add("cookie"),Dd(Ud,this).add("host"),Dd(Ud,this).add("user-agent")},t=[{key:"getLcmSummaryById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getLcmSummaryById");var r={extId:e},o={};Object.keys(n).forEach(function(e){Dd(Ud,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Ed({},o),s=cd;return this.apiClient.callApi("/api/lifecycle/v4.1/resources/lcm-summaries/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"listLcmSummaries",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Ed(Ed(Ed(Ed(Ed({},(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){Dd(Ud,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Ed({},o),s=$d;return this.apiClient.callApi("/api/lifecycle/v4.1/resources/lcm-summaries","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Cd(e.prototype,t),n&&Cd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),xd={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ESX:"ESX",AHV:"AHV",HYPERV:"HYPERV",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(xd).find(function(t){return xd[t]===e});return null==t?xd.$UNKNOWN:xd[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case xd.$UNKNOWN:case xd.$REDACTED:case xd.ESX:case xd.AHV:case xd.HYPERV:return;default:throw new Error("Invalid : must be HypervisorType.{ $UNKNOWN|$REDACTED|ESX|AHV|HYPERV }")}}};Object.freeze(xd);const Nd=xd;var Md={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ENTITY:"ENTITY",LOCATION:"LOCATION",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Md).find(function(t){return Md[t]===e});return null==t?Md.$UNKNOWN:Md[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Md.$UNKNOWN:case Md.$REDACTED:case Md.ENTITY:case Md.LOCATION:return;default:throw new Error("Invalid : must be NotificationType.{ $UNKNOWN|$REDACTED|ENTITY|LOCATION }")}}};Object.freeze(Md);const Vd=Md;var _d={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",WARNING:"WARNING",NOTICE:"NOTICE",INFO:"INFO",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(_d).find(function(t){return _d[t]===e});return null==t?_d.$UNKNOWN:_d[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case _d.$UNKNOWN:case _d.$REDACTED:case _d.WARNING:case _d.NOTICE:case _d.INFO:return;default:throw new Error("Invalid : must be SeverityLevel.{ $UNKNOWN|$REDACTED|WARNING|NOTICE|INFO }")}}};Object.freeze(_d);const Ld=_d;function Jd(e){return Jd="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},Jd(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 Bd(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){zd(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 zd(e,t,n){return(t=Kd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qd(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,Kd(r.key),r)}}function Kd(e){var t=function(e){if("object"!=Jd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jd(t)?t:t+""}var Hd=new WeakSet,Gd=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,Hd),this.$objectType="lifecycle.v4.resources.NotificationDetail",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getSeverityLevel",value:function(){return this.severityLevel}},{key:"setSeverityLevel",value:function(e){this.severityLevel=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=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 Bd(Bd(Bd({},void 0!==this.getSeverityLevel()&&null!==this.getSeverityLevel()?{severityLevel:this.getSeverityLevel()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),{},{$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 F?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("severityLevel"===t&&(void 0===this.severityLevel||null===this.severityLevel))return new R("severityLevel","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new R("message","undefined or null");if(!I.validateMaxLength(this.message,512))return new R("message","does not satisfy required maxLength constraint: 512");if(!I.validateMinLength(this.message,1))return new R("message","does not satisfy required minLength constraint: 1")}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("severityLevel")&&null!==t.severityLevel&&void 0!==t.severityLevel&&n.setSeverityLevel(Ld.constructFromObject(t.severityLevel)),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),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=Bd({},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&&qd(t.prototype,n),r&&qd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xd(e){return Xd="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},Xd(e)}function Zd(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 Qd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zd(Object(n),!0).forEach(function(t){Yd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yd(e,t,n){return(t=tp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ep(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,tp(r.key),r)}}function tp(e){var t=function(e){if("object"!=Xd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xd(t)?t:t+""}function np(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(np=function(){return!!e})()}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rp(e)}function op(e,t){return op=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},op(e,t)}Gd.prototype.severityLevel=void 0,Gd.prototype.message=void 0,Gd.prototype.$reserved=void 0,Gd.prototype.$objectType=void 0,Gd.prototype.$unknownFields=void 0;var ip=new WeakSet,sp=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=rp(t),function(e,t){if(t&&("object"==Xd(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,np()?Reflect.construct(t,n||[],rp(e).constructor):t.apply(e,n))}(this,t),ip),e.$objectType="lifecycle.v4.resources.NotificationItem",e.$reserved={$fv:"v4.r1"},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&&op(e,t)}(t,e),n=t,r=[{key:"getNotificationType",value:function(){return this.notificationType}},{key:"setNotificationType",value:function(e){this.notificationType=e}},{key:"getDetails",value:function(){return this.details}},{key:"setDetails",value:function(e){this.details=e}},{key:"getToVersion",value:function(){return this.toVersion}},{key:"setToVersion",value:function(e){this.toVersion=e}},{key:"getLocationInfo",value:function(){return this.locationInfo}},{key:"setLocationInfo",value:function(e){this.locationInfo=e}},{key:"getHypervisorType",value:function(){return this.hypervisorType}},{key:"setHypervisorType",value:function(e){this.hypervisorType=e}},{key:"toJson",value:function(e){return Qd(!1===e?Qd(Qd(Qd(Qd(Qd(Qd(Qd(Qd(Qd(Qd(Qd(Qd(Qd({},void 0!==this.getNotificationType()&&null!==this.getNotificationType()?{notificationType:this.getNotificationType()}:{}),void 0!==this.getDetails()&&null!==this.getDetails()?{details:this.getDetails().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getToVersion()&&null!==this.getToVersion()?{toVersion:this.getToVersion()}:{}),void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getHypervisorType()&&null!==this.getHypervisorType()?{hypervisorType:this.getHypervisorType()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),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()}:{}):Qd(Qd(Qd(Qd(Qd(Qd(Qd(Qd(Qd(Qd({},void 0!==this.getNotificationType()&&null!==this.getNotificationType()?{notificationType:this.getNotificationType()}:{}),void 0!==this.getDetails()&&null!==this.getDetails()?{details:this.getDetails().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getToVersion()&&null!==this.getToVersion()?{toVersion:this.getToVersion()}:{}),void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getHypervisorType()&&null!==this.getHypervisorType()?{hypervisorType:this.getHypervisorType()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),{},{$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 F?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("notificationType"===t&&(void 0===this.notificationType||null===this.notificationType))return new R("notificationType","undefined or null");if("details"===t){if(void 0===this.details||null===this.details)return new R("details","undefined or null");if(!I.validateMaxItems(this.details,100))return new R("details","does not satisfy required maxItems constraint: 100")}if("toVersion"===t){if(void 0===this.toVersion||null===this.toVersion)return new R("toVersion","undefined or null");if(!I.validateMaxLength(this.toVersion,128))return new R("toVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.toVersion,1))return new R("toVersion","does not satisfy required minLength constraint: 1")}return"locationInfo"!==t||void 0!==this.locationInfo&&null!==this.locationInfo?"hypervisorType"!==t||void 0!==this.hypervisorType&&null!==this.hypervisorType?new R(t,"no such property exists"):new R("hypervisorType","undefined or null"):new R("locationInfo","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,Ur.constructFromObject(e,s,!0),e.hasOwnProperty("notificationType")&&null!==e.notificationType&&void 0!==e.notificationType&&s.setNotificationType(Vd.constructFromObject(e.notificationType)),e.hasOwnProperty("details")&&null!==e.details&&void 0!==e.details){for(i=[],n=e.details,o=0;o<n.length;o++)r=Gd.constructFromObject(n[o],void 0),i.push(r);s.setDetails(i)}if(e.hasOwnProperty("toVersion")&&null!==e.toVersion&&void 0!==e.toVersion&&s.setToVersion(e.toVersion),e.hasOwnProperty("locationInfo")&&null!==e.locationInfo&&void 0!==e.locationInfo&&s.setLocationInfo(Ns.constructFromObject(e.locationInfo)),e.hasOwnProperty("hypervisorType")&&null!==e.hypervisorType&&void 0!==e.hypervisorType&&s.setHypervisorType(Nd.constructFromObject(e.hypervisorType)),!a)for(var u in s.$unknownFields=Qd({},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&&ep(n.prototype,r),o&&ep(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ur);function ap(e){return ap="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},ap(e)}function up(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 lp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?up(Object(n),!0).forEach(function(t){cp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):up(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cp(e,t,n){return(t=dp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fp(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,dp(r.key),r)}}function dp(e){var t=function(e){if("object"!=ap(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ap(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ap(t)?t:t+""}function pp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pp=function(){return!!e})()}function yp(e){return yp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yp(e)}function hp(e,t){return hp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hp(e,t)}sp.prototype.notificationType=void 0,sp.prototype.details=void 0,sp.prototype.toVersion=void 0,sp.prototype.locationInfo=void 0,sp.prototype.hypervisorType=void 0,Ur.prototype.entityClass=void 0,Ur.prototype.entityModel=void 0,Ur.prototype.entityType=void 0,Ur.prototype.entityVersion=void 0,Ur.prototype.hardwareFamily=void 0,Yn.prototype.extId=void 0,Yn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var vp=new WeakSet,bp=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=yp(t),function(e,t){if(t&&("object"==ap(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,pp()?Reflect.construct(t,n||[],yp(e).constructor):t.apply(e,n))}(this,t),vp),e.$objectType="lifecycle.v4.resources.Notification",e.$reserved={$fv:"v4.r1"},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&&hp(e,t)}(t,e),n=t,r=[{key:"getNotifications",value:function(){return this.notifications}},{key:"setNotifications",value:function(e){this.notifications=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"toJson",value:function(e){return lp(!1===e?lp(lp(lp(lp(lp({},void 0!==this.getNotifications()&&null!==this.getNotifications()?{notifications:this.getNotifications().map(function(e){return e.toJson(!1)})}:{}),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()}:{}):lp(lp({},void 0!==this.getNotifications()&&null!==this.getNotifications()?{notifications:this.getNotifications().map(function(e){return e.toJson(!1)})}:{}),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 F?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("notifications"===t){if(void 0===this.notifications||null===this.notifications)return new R("notifications","undefined or null");if(!I.validateMaxItems(this.notifications,2048))return new R("notifications","does not satisfy required maxItems constraint: 2048")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!I.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,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,Yn.constructFromObject(e,s,!0),e.hasOwnProperty("notifications")&&null!==e.notifications&&void 0!==e.notifications){for(i=[],n=e.notifications,o=0;o<n.length;o++)r=sp.constructFromObject(n[o],void 0),i.push(r);s.setNotifications(i)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&s.setClusterExtId(e.clusterExtId),!a)for(var u in s.$unknownFields=lp({},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&&fp(n.prototype,r),o&&fp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Yn);function gp(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 mp(e){return mp="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},mp(e)}function wp(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 Op(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wp(Object(n),!0).forEach(function(t){kp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kp(e,t,n){return(t=$p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jp(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,$p(r.key),r)}}function $p(e){var t=function(e){if("object"!=mp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mp(t)?t:t+""}function Pp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pp=function(){return!!e})()}function Tp(e){return Tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tp(e)}function Fp(e,t){return Fp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fp(e,t)}function Ep(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")}bp.prototype.notifications=void 0,bp.prototype.clusterExtId=void 0,Yn.prototype.extId=void 0,Yn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Sp=new WeakSet,Cp=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=Tp(t),function(e,t){if(t&&("object"==mp(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,Pp()?Reflect.construct(t,n||[],Tp(e).constructor):t.apply(e,n))}(this,t),Sp),e.$objectType="lifecycle.v4.resources.GetNotificationsByIdApiResponse",e.$reserved={$fv:"v4.r1"},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&&Fp(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 Op(Op(Op({},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}):Ep(Sp,this,Ip).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}):Ep(Sp,this,Ip).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 F?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(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:mp(e.data)){case"lifecycle.v4.resources.Notification":r.setData(bp.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(fn.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=Op({},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&&jp(n.prototype,r),o&&jp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ip(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 gp(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)?gp(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"===mp(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 Dp(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 Ap(e){return Ap="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},Ap(e)}function Up(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 Rp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Up(Object(n),!0).forEach(function(t){xp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Up(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xp(e,t,n){return(t=Mp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Np(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,Mp(r.key),r)}}function Mp(e){var t=function(e){if("object"!=Ap(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ap(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ap(t)?t:t+""}function Vp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Vp=function(){return!!e})()}function _p(e){return _p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_p(e)}function Lp(e,t){return Lp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lp(e,t)}function Jp(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")}Cp.prototype.metadata=void 0,Cp.prototype.data=void 0,Cp.prototype.$reserved=void 0,Cp.prototype.$objectType=void 0,Cp.prototype.$unknownFields=void 0;var Wp=new WeakSet,Bp=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=_p(t),function(e,t){if(t&&("object"==Ap(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,Vp()?Reflect.construct(t,n||[],_p(e).constructor):t.apply(e,n))}(this,t),Wp),e.$objectType="lifecycle.v4.operations.ComputeNotificationsApiResponse",e.$reserved={$fv:"v4.r1"},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&&Lp(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 Rp(Rp(Rp({},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}):Jp(Wp,this,zp).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}):Jp(Wp,this,zp).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 F?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(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ap(e.data)){case"prism.v4.config.TaskReference":r.setData(wn.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(fn.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=Rp({},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&&Np(n.prototype,r),o&&Np(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function zp(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 Dp(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)?Dp(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"===Ap(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 qp(e){return qp="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},qp(e)}function Kp(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 Hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kp(Object(n),!0).forEach(function(t){Gp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gp(e,t,n){return(t=Zp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xp(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,Zp(r.key),r)}}function Zp(e){var t=function(e){if("object"!=qp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qp(t)?t:t+""}Bp.prototype.metadata=void 0,Bp.prototype.data=void 0,Bp.prototype.$reserved=void 0,Bp.prototype.$objectType=void 0,Bp.prototype.$unknownFields=void 0;var Qp=new WeakSet,Yp=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,Qp),this.notificationsSpec=t,this.$objectType="lifecycle.v4.resources.NotificationsSpec",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getNotificationsSpec",value:function(){return this.notificationsSpec}},{key:"setNotificationsSpec",value:function(e){this.notificationsSpec=e}},{key:"getCredentials",value:function(){return this.credentials}},{key:"setCredentials",value:function(e){this.credentials=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 Hp(Hp(Hp({},void 0!==this.getNotificationsSpec()&&null!==this.getNotificationsSpec()?{notificationsSpec:this.getNotificationsSpec().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getCredentials()&&null!==this.getCredentials()?{credentials:this.getCredentials().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 F?r=["notificationsSpec"]: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("notificationsSpec"===t){if(void 0===this.notificationsSpec||null===this.notificationsSpec)return new R("notificationsSpec","undefined or null");if(!I.validateMaxItems(this.notificationsSpec,2048))return new R("notificationsSpec","does not satisfy required maxItems constraint: 2048")}if("credentials"===t){if(void 0===this.credentials||null===this.credentials)return new R("credentials","undefined or null");if(!I.validateMaxItems(this.credentials,20))return new R("credentials","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("notificationsSpec")&&null!==t.notificationsSpec&&void 0!==t.notificationsSpec){for(i=[],n=t.notificationsSpec,o=0;o<n.length;o++)r=ms.constructFromObject(n[o],void 0),i.push(r);s.setNotificationsSpec(i)}if(t.hasOwnProperty("credentials")&&null!==t.credentials&&void 0!==t.credentials){for(i=[],n=t.credentials,o=0;o<n.length;o++)r=lf.constructFromObject(n[o],void 0),i.push(r);s.setCredentials(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=Hp({},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&&Xp(t.prototype,n),r&&Xp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ey(e){return ey="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},ey(e)}function ty(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 ny(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ty(Object(n),!0).forEach(function(t){ry(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ty(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ry(e,t,n){return(t=iy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oy(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,iy(r.key),r)}}function iy(e){var t=function(e){if("object"!=ey(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ey(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ey(t)?t:t+""}function sy(e,t){return e.get(ay(e,t))}function ay(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")}Yp.prototype.notificationsSpec=void 0,Yp.prototype.credentials=void 0,Yp.prototype.$reserved=void 0,Yp.prototype.$objectType=void 0,Yp.prototype.$unknownFields=void 0;var uy=new WeakMap,ly=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,uy,void 0),this.apiClient=t||lt.instance,n=uy,r=new Set,n.set(ay(n,this),r),sy(uy,this).add("authorization"),sy(uy,this).add("cookie"),sy(uy,this).add("host"),sy(uy,this).add("user-agent")},t=[{key:"computeNotifications",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;if(null==(o=e instanceof Yp&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling computeNotifications");var i={};Object.keys(r).forEach(function(e){sy(uy,n).has(e.toLowerCase())||(i[e]=r[e])});var s=ny({"X-Cluster-Id":t.xClusterId},i);lt.addEtagReferenceToHeader(e,s);var a=Bp;return this.apiClient.callApi("/api/lifecycle/v4.1/operations/$actions/compute-notifications","POST",{},{},s,{},o,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],a)}},{key:"getNotificationById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getNotificationById");var r={extId:e},o={};Object.keys(n).forEach(function(e){sy(uy,t).has(e.toLowerCase())||(o[e]=n[e])});var i=ny({},o),s=Cp;return this.apiClient.callApi("/api/lifecycle/v4.1/resources/notifications/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&oy(e.prototype,t),n&&oy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function cy(e){return cy="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},cy(e)}function fy(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 dy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fy(Object(n),!0).forEach(function(t){py(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function py(e,t,n){return(t=hy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yy(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,hy(r.key),r)}}function hy(e){var t=function(e){if("object"!=cy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cy(t)?t:t+""}var vy=new WeakSet,by=function(){function e(t,n,r,o){!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,vy),this.hypervisorType=t,this.ip=n,this.username=r,this.password=o,this.$objectType="lifecycle.v4.common.ManagementServer",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getHypervisorType",value:function(){return this.hypervisorType}},{key:"setHypervisorType",value:function(e){this.hypervisorType=e}},{key:"getIp",value:function(){return this.ip}},{key:"setIp",value:function(e){this.ip=e}},{key:"getUsername",value:function(){return this.username}},{key:"setUsername",value:function(e){this.username=e}},{key:"getPassword",value:function(){return this.password}},{key:"setPassword",value:function(e){this.password=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 dy(dy(dy(dy(dy({},void 0!==this.getHypervisorType()&&null!==this.getHypervisorType()?{hypervisorType:this.getHypervisorType()}:{}),void 0!==this.getIp()&&null!==this.getIp()?{ip:this.getIp()}:{}),void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),{},{$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 F?r=["hypervisorType","ip","username","password"]: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("hypervisorType"===t&&(void 0===this.hypervisorType||null===this.hypervisorType))return new R("hypervisorType","undefined or null");if("ip"===t){if(void 0===this.ip||null===this.ip)return new R("ip","undefined or null");if(!I.validatePattern(this.ip,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new R("ip","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("username"===t){if(void 0===this.username||null===this.username)return new R("username","undefined or null");if(!I.validateMaxLength(this.username,128))return new R("username","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.username,1))return new R("username","does not satisfy required minLength constraint: 1")}if("password"===t){if(void 0===this.password||null===this.password)return new R("password","undefined or null");if(!I.validateMaxLength(this.password,128))return new R("password","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.password,1))return new R("password","does not satisfy required minLength constraint: 1")}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("hypervisorType")&&null!==t.hypervisorType&&void 0!==t.hypervisorType&&n.setHypervisorType(Nd.constructFromObject(t.hypervisorType)),t.hasOwnProperty("ip")&&null!==t.ip&&void 0!==t.ip&&n.setIp(t.ip),t.hasOwnProperty("username")&&null!==t.username&&void 0!==t.username&&n.setUsername(t.username),t.hasOwnProperty("password")&&null!==t.password&&void 0!==t.password&&n.setPassword(t.password),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=dy({},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&&yy(t.prototype,n),r&&yy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();by.prototype.hypervisorType=void 0,by.prototype.ip=void 0,by.prototype.username=void 0,by.prototype.password=void 0,by.prototype.$reserved=void 0,by.prototype.$objectType=void 0,by.prototype.$unknownFields=void 0;var gy={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",POWER_OFF_UVMS:"POWER_OFF_UVMS",MIGRATE_POWERED_OFF_UVMS:"MIGRATE_POWERED_OFF_UVMS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(gy).find(function(t){return gy[t]===e});return null==t?gy.$UNKNOWN:gy[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case gy.$UNKNOWN:case gy.$REDACTED:case gy.POWER_OFF_UVMS:case gy.MIGRATE_POWERED_OFF_UVMS:return;default:throw new Error("Invalid : must be SystemAutoMgmtFlag.{ $UNKNOWN|$REDACTED|POWER_OFF_UVMS|MIGRATE_POWERED_OFF_UVMS }")}}};Object.freeze(gy);const my=gy;function wy(e){return wy="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},wy(e)}function Oy(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 ky(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oy(Object(n),!0).forEach(function(t){jy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jy(e,t,n){return(t=Py(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $y(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,Py(r.key),r)}}function Py(e){var t=function(e){if("object"!=wy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wy(t)?t:t+""}var Ty=new WeakSet,Fy=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,Ty),this.entityUpdateSpecs=t,this.$objectType="lifecycle.v4.common.PrechecksSpec",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getManagementServer",value:function(){return this.managementServer}},{key:"setManagementServer",value:function(e){this.managementServer=e}},{key:"getEntityUpdateSpecs",value:function(){return this.entityUpdateSpecs}},{key:"setEntityUpdateSpecs",value:function(e){this.entityUpdateSpecs=e}},{key:"getSkippedPrecheckFlags",value:function(){return this.skippedPrecheckFlags}},{key:"setSkippedPrecheckFlags",value:function(e){this.skippedPrecheckFlags=e}},{key:"getCredentials",value:function(){return this.credentials}},{key:"setCredentials",value:function(e){this.credentials=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 ky(ky(ky(ky(ky({},void 0!==this.getManagementServer()&&null!==this.getManagementServer()?{managementServer:this.getManagementServer().toJson(!1)}:{}),void 0!==this.getEntityUpdateSpecs()&&null!==this.getEntityUpdateSpecs()?{entityUpdateSpecs:this.getEntityUpdateSpecs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getSkippedPrecheckFlags()&&null!==this.getSkippedPrecheckFlags()?{skippedPrecheckFlags:this.getSkippedPrecheckFlags()}:{}),void 0!==this.getCredentials()&&null!==this.getCredentials()?{credentials:this.getCredentials().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 F?r=["entityUpdateSpecs"]: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("managementServer"===t&&(void 0===this.managementServer||null===this.managementServer))return new R("managementServer","undefined or null");if("entityUpdateSpecs"===t){if(void 0===this.entityUpdateSpecs||null===this.entityUpdateSpecs)return new R("entityUpdateSpecs","undefined or null");if(!I.validateMaxItems(this.entityUpdateSpecs,2048))return new R("entityUpdateSpecs","does not satisfy required maxItems constraint: 2048")}if("skippedPrecheckFlags"===t){if(void 0===this.skippedPrecheckFlags||null===this.skippedPrecheckFlags)return new R("skippedPrecheckFlags","undefined or null");if(!I.validateMaxItems(this.skippedPrecheckFlags,20))return new R("skippedPrecheckFlags","does not satisfy required maxItems constraint: 20")}if("credentials"===t){if(void 0===this.credentials||null===this.credentials)return new R("credentials","undefined or null");if(!I.validateMaxItems(this.credentials,4))return new R("credentials","does not satisfy required maxItems constraint: 4")}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("managementServer")&&null!==t.managementServer&&void 0!==t.managementServer&&s.setManagementServer(by.constructFromObject(t.managementServer)),t.hasOwnProperty("entityUpdateSpecs")&&null!==t.entityUpdateSpecs&&void 0!==t.entityUpdateSpecs){for(i=[],n=t.entityUpdateSpecs,o=0;o<n.length;o++)r=ms.constructFromObject(n[o],void 0),i.push(r);s.setEntityUpdateSpecs(i)}if(t.hasOwnProperty("skippedPrecheckFlags")&&null!==t.skippedPrecheckFlags&&void 0!==t.skippedPrecheckFlags){for(i=[],n=t.skippedPrecheckFlags,o=0;o<n.length;o++)r=my.constructFromObject(n[o],void 0),i.push(r);s.setSkippedPrecheckFlags(i)}if(t.hasOwnProperty("credentials")&&null!==t.credentials&&void 0!==t.credentials){for(i=[],n=t.credentials,o=0;o<n.length;o++)r=lf.constructFromObject(n[o],void 0),i.push(r);s.setCredentials(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=ky({},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&&$y(t.prototype,n),r&&$y(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ey(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 Sy(e){return Sy="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},Sy(e)}function Cy(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 Iy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cy(Object(n),!0).forEach(function(t){Dy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dy(e,t,n){return(t=Uy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ay(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,Uy(r.key),r)}}function Uy(e){var t=function(e){if("object"!=Sy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sy(t)?t:t+""}function Ry(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ry=function(){return!!e})()}function xy(e){return xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xy(e)}function Ny(e,t){return Ny=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ny(e,t)}function My(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")}Fy.prototype.managementServer=void 0,Fy.prototype.entityUpdateSpecs=void 0,Fy.prototype.skippedPrecheckFlags=void 0,Fy.prototype.credentials=void 0,Fy.prototype.$reserved=void 0,Fy.prototype.$objectType=void 0,Fy.prototype.$unknownFields=void 0;var Vy=new WeakSet,_y=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=xy(t),function(e,t){if(t&&("object"==Sy(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,Ry()?Reflect.construct(t,n||[],xy(e).constructor):t.apply(e,n))}(this,t),Vy),e.$objectType="lifecycle.v4.operations.PrechecksApiResponse",e.$reserved={$fv:"v4.r1"},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&&Ny(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 Iy(Iy(Iy({},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}):My(Vy,this,Ly).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}):My(Vy,this,Ly).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 F?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(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Sy(e.data)){case"prism.v4.config.TaskReference":r.setData(wn.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(fn.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=Iy({},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&&Ay(n.prototype,r),o&&Ay(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ly(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 Ey(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)?Ey(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"===Sy(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 Jy(e){return Jy="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},Jy(e)}function Wy(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 By(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wy(Object(n),!0).forEach(function(t){zy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zy(e,t,n){return(t=Ky(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qy(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,Ky(r.key),r)}}function Ky(e){var t=function(e){if("object"!=Jy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jy(t)?t:t+""}function Hy(e,t){return e.get(Gy(e,t))}function Gy(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")}_y.prototype.metadata=void 0,_y.prototype.data=void 0,_y.prototype.$reserved=void 0,_y.prototype.$objectType=void 0,_y.prototype.$unknownFields=void 0;var Xy=new WeakMap,Zy=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,Xy,void 0),this.apiClient=t||lt.instance,n=Xy,r=new Set,n.set(Gy(n,this),r),Hy(Xy,this).add("authorization"),Hy(Xy,this).add("cookie"),Hy(Xy,this).add("host"),Hy(Xy,this).add("user-agent")},t=[{key:"performPrechecks",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;if(null==(o=e instanceof Fy&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling performPrechecks");var i=By({},t.hasOwnProperty("$dryrun")?{$dryrun:t.$dryrun}:{}),s={};Object.keys(r).forEach(function(e){Hy(Xy,n).has(e.toLowerCase())||(s[e]=r[e])});var a=By({"X-Cluster-Id":t.xClusterId},s);lt.addEtagReferenceToHeader(e,a);var u=_y;return this.apiClient.callApi("/api/lifecycle/v4.1/operations/$actions/prechecks","POST",{},i,a,{},o,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&qy(e.prototype,t),n&&qy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Qy(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 Yy(e){return Yy="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},Yy(e)}function eh(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 th(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(n),!0).forEach(function(t){nh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nh(e,t,n){return(t=oh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rh(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,oh(r.key),r)}}function oh(e){var t=function(e){if("object"!=Yy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yy(t)?t:t+""}function ih(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ih=function(){return!!e})()}function sh(e){return sh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sh(e)}function ah(e,t){return ah=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ah(e,t)}function uh(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 lh=new WeakSet,ch=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=sh(t),function(e,t){if(t&&("object"==Yy(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,ih()?Reflect.construct(t,n||[],sh(e).constructor):t.apply(e,n))}(this,t),lh),e.$objectType="lifecycle.v4.operations.ComputeRecommendationsApiResponse",e.$reserved={$fv:"v4.r1"},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&&ah(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 th(th(th({},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}):uh(lh,this,fh).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}):uh(lh,this,fh).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 F?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(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Yy(e.data)){case"prism.v4.config.TaskReference":r.setData(wn.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(fn.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=th({},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&&rh(n.prototype,r),o&&rh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function fh(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 Qy(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)?Qy(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"===Yy(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 dh(e){return dh="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},dh(e)}function ph(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 yh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ph(Object(n),!0).forEach(function(t){hh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hh(e,t,n){return(t=bh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vh(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,bh(r.key),r)}}function bh(e){var t=function(e){if("object"!=dh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dh(t)?t:t+""}ch.prototype.metadata=void 0,ch.prototype.data=void 0,ch.prototype.$reserved=void 0,ch.prototype.$objectType=void 0,ch.prototype.$unknownFields=void 0;var gh=new WeakSet,mh=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,gh),this.entityIdentifier=t,this.$objectType="lifecycle.v4.common.EntityDeploySpec",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getEntityIdentifier",value:function(){return this.entityIdentifier}},{key:"setEntityIdentifier",value:function(e){this.entityIdentifier=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 yh(yh({},void 0!==this.getEntityIdentifier()&&null!==this.getEntityIdentifier()?{entityIdentifier:this.getEntityIdentifier().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 F?r=["entityIdentifier"]: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"entityIdentifier"!==t||void 0!==this.entityIdentifier&&null!==this.entityIdentifier?"$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("entityIdentifier","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("entityIdentifier")&&null!==t.entityIdentifier&&void 0!==t.entityIdentifier&&n.setEntityIdentifier(Ur.constructFromObject(t.entityIdentifier)),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=yh({},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&&vh(t.prototype,n),r&&vh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function wh(e){return wh="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},wh(e)}function Oh(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 kh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oh(Object(n),!0).forEach(function(t){jh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jh(e,t,n){return(t=Ph(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $h(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,Ph(r.key),r)}}function Ph(e){var t=function(e){if("object"!=wh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wh(t)?t:t+""}function Th(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Th=function(){return!!e})()}function Fh(e){return Fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fh(e)}function Eh(e,t){return Eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Eh(e,t)}mh.prototype.entityIdentifier=void 0,mh.prototype.$reserved=void 0,mh.prototype.$objectType=void 0,mh.prototype.$unknownFields=void 0;var Sh=new WeakSet,Ch=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=Fh(t),function(e,t){if(t&&("object"==wh(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,Th()?Reflect.construct(t,n||[],Fh(e).constructor):t.apply(e,n))}(this,t),Sh),n.version=e,n.$objectType="lifecycle.v4.resources.TargetEntity",n.$reserved={$fv:"v4.r1"},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&&Eh(e,t)}(t,e),n=t,r=[{key:"getVersion",value:function(){return this.version}},{key:"setVersion",value:function(e){this.version=e}},{key:"getLocationInfo",value:function(){return this.locationInfo}},{key:"setLocationInfo",value:function(e){this.locationInfo=e}},{key:"getDeviceId",value:function(){return this.deviceId}},{key:"setDeviceId",value:function(e){this.deviceId=e}},{key:"toJson",value:function(e){return kh(!1===e?kh(kh(kh(kh(kh(kh(kh(kh(kh(kh(kh({},void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getDeviceId()&&null!==this.getDeviceId()?{deviceId:this.getDeviceId()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),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()}:{}):kh(kh(kh(kh(kh(kh(kh(kh({},void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getDeviceId()&&null!==this.getDeviceId()?{deviceId:this.getDeviceId()}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),{},{$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 F?r=["version"]: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("version"===t){if(void 0===this.version||null===this.version)return new R("version","undefined or null");if(!I.validateMaxLength(this.version,128))return new R("version","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.version,1))return new R("version","does not satisfy required minLength constraint: 1")}if("locationInfo"===t&&(void 0===this.locationInfo||null===this.locationInfo))return new R("locationInfo","undefined or null");if("deviceId"===t){if(void 0===this.deviceId||null===this.deviceId)return new R("deviceId","undefined or null");if(!I.validateMaxLength(this.deviceId,128))return new R("deviceId","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.deviceId,1))return new R("deviceId","does not satisfy required minLength constraint: 1")}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,Ur.constructFromObject(e,n,!0),e.hasOwnProperty("version")&&null!==e.version&&void 0!==e.version&&n.setVersion(e.version),e.hasOwnProperty("locationInfo")&&null!==e.locationInfo&&void 0!==e.locationInfo&&n.setLocationInfo(Ns.constructFromObject(e.locationInfo)),e.hasOwnProperty("deviceId")&&null!==e.deviceId&&void 0!==e.deviceId&&n.setDeviceId(e.deviceId),!r))for(var o in n.$unknownFields=kh({},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&&$h(n.prototype,r),o&&$h(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ur);function Ih(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 Dh(e){return Dh="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},Dh(e)}function Ah(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 Uh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ah(Object(n),!0).forEach(function(t){Rh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ah(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rh(e,t,n){return(t=Nh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xh(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,Nh(r.key),r)}}function Nh(e){var t=function(e){if("object"!=Dh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Dh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dh(t)?t:t+""}function Mh(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")}Ch.prototype.version=void 0,Ch.prototype.locationInfo=void 0,Ch.prototype.deviceId=void 0,Ur.prototype.entityClass=void 0,Ur.prototype.entityModel=void 0,Ur.prototype.entityType=void 0,Ur.prototype.entityVersion=void 0,Ur.prototype.hardwareFamily=void 0,Yn.prototype.extId=void 0,Yn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Vh=new WeakSet,_h=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,Vh),this.recommendationSpec=t,this.$objectType="lifecycle.v4.resources.RecommendationSpec",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getRecommendationSpec",value:function(){return this.recommendationSpec}},{key:"setRecommendationSpec",value:function(e){this.recommendationSpec=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 Uh(Uh({},!1===e?void 0!==this.getRecommendationSpec()&&null!==this.getRecommendationSpec()?{recommendationSpec:void 0!==this.getRecommendationSpec().toJson?this.getRecommendationSpec().toJson(!1):Array.isArray(this.getRecommendationSpec())?this.getRecommendationSpec().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Mh(Vh,this,Lh).call(this,this.getRecommendationSpec(),!1)}:{}:void 0!==this.getRecommendationSpec()&&null!==this.getRecommendationSpec()?{recommendationSpec:void 0!==this.getRecommendationSpec().toJson?this.getRecommendationSpec().toJson():Array.isArray(this.getRecommendationSpec())?this.getRecommendationSpec().map(function(e){return void 0!==e.toJson?e.toJson():e}):Mh(Vh,this,Lh).call(this,this.getRecommendationSpec())}:{}),{},{$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 F?r=["recommendationSpec"]: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"recommendationSpec"!==t||void 0!==this.recommendationSpec&&null!==this.recommendationSpec?"$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("recommendationSpec","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("recommendationSpec")&&null!==t.recommendationSpec&&void 0!==t.recommendationSpec){if(!Array.isArray(t.recommendationSpec))throw"Unknown datatype "+(s=t.recommendationSpec.hasOwnProperty("$objectType")?t.recommendationSpec.$objectType:Dh(t.recommendationSpec))+" in data";if(0===t.recommendationSpec.length)a.setRecommendationSpec([]);else{if(i=[],(n=t.recommendationSpec)[0].hasOwnProperty("$objectType"))s=n[0].$objectType;else{s=Dh(n[0]);try{Object.keys(jr).find(function(e){return jr[e]===n[0]})&&(s="lifecycle.v4.common.EntityType")}catch(e){}}for(o=0;o<n.length;o++)switch(s){case"lifecycle.v4.common.EntityType":r=jr.constructFromObject(n[o],void 0),i.push(r);break;case"lifecycle.v4.resources.TargetEntity":r=Ch.constructFromObject(n[o],void 0),i.push(r);break;case"lifecycle.v4.common.EntityUpdateSpec":r=ms.constructFromObject(n[o],void 0),i.push(r);break;case"lifecycle.v4.common.EntityDeploySpec":r=mh.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+s+" in data"}a.setRecommendationSpec(i)}}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=Uh({},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&&xh(t.prototype,n),r&&xh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Lh(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 Ih(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)?Ih(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"===Dh(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 Jh(e){return Jh="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},Jh(e)}function Wh(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 Bh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wh(Object(n),!0).forEach(function(t){zh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zh(e,t,n){return(t=Kh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qh(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,Kh(r.key),r)}}function Kh(e){var t=function(e){if("object"!=Jh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jh(t)?t:t+""}function Hh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Hh=function(){return!!e})()}function Gh(e){return Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gh(e)}function Xh(e,t){return Xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xh(e,t)}_h.prototype.recommendationSpec=void 0,_h.prototype.$reserved=void 0,_h.prototype.$objectType=void 0,_h.prototype.$unknownFields=void 0;var Zh=new WeakSet,Qh=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=Gh(t),function(e,t){if(t&&("object"==Jh(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,Hh()?Reflect.construct(t,n||[],Gh(e).constructor):t.apply(e,n))}(this,t),Zh),e.$objectType="lifecycle.v4.resources.DeployableVersion",e.$reserved={$fv:"v4.r1"},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&&Xh(e,t)}(t,e),n=t,r=[{key:"getTargetVersion",value:function(){return this.targetVersion}},{key:"setTargetVersion",value:function(e){this.targetVersion=e}},{key:"getUpdateDependencies",value:function(){return this.updateDependencies}},{key:"setUpdateDependencies",value:function(e){this.updateDependencies=e}},{key:"toJson",value:function(e){return Bh(!1===e?Bh(Bh(Bh(Bh(Bh(Bh(Bh(Bh(Bh(Bh({},void 0!==this.getTargetVersion()&&null!==this.getTargetVersion()?{targetVersion:this.getTargetVersion()}:{}),void 0!==this.getUpdateDependencies()&&null!==this.getUpdateDependencies()?{updateDependencies:this.getUpdateDependencies().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),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()}:{}):Bh(Bh(Bh(Bh(Bh(Bh(Bh({},void 0!==this.getTargetVersion()&&null!==this.getTargetVersion()?{targetVersion:this.getTargetVersion()}:{}),void 0!==this.getUpdateDependencies()&&null!==this.getUpdateDependencies()?{updateDependencies:this.getUpdateDependencies().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),{},{$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 F?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("targetVersion"===t){if(void 0===this.targetVersion||null===this.targetVersion)return new R("targetVersion","undefined or null");if(!I.validateMaxLength(this.targetVersion,128))return new R("targetVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.targetVersion,1))return new R("targetVersion","does not satisfy required minLength constraint: 1")}if("updateDependencies"===t){if(void 0===this.updateDependencies||null===this.updateDependencies)return new R("updateDependencies","undefined or null");if(!I.validateMaxItems(this.updateDependencies,2048))return new R("updateDependencies","does not satisfy required maxItems constraint: 2048")}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,Ur.constructFromObject(e,s,!0),e.hasOwnProperty("targetVersion")&&null!==e.targetVersion&&void 0!==e.targetVersion&&s.setTargetVersion(e.targetVersion),e.hasOwnProperty("updateDependencies")&&null!==e.updateDependencies&&void 0!==e.updateDependencies){for(i=[],n=e.updateDependencies,o=0;o<n.length;o++)r=ms.constructFromObject(n[o],void 0),i.push(r);s.setUpdateDependencies(i)}if(!a)for(var u in s.$unknownFields=Bh({},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&&qh(n.prototype,r),o&&qh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ur);function Yh(e){return Yh="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},Yh(e)}function ev(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 tv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ev(Object(n),!0).forEach(function(t){nv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ev(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nv(e,t,n){return(t=ov(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rv(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,ov(r.key),r)}}function ov(e){var t=function(e){if("object"!=Yh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yh(t)?t:t+""}function iv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(iv=function(){return!!e})()}function sv(e){return sv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sv(e)}function av(e,t){return av=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},av(e,t)}Qh.prototype.targetVersion=void 0,Qh.prototype.updateDependencies=void 0,Ur.prototype.entityClass=void 0,Ur.prototype.entityModel=void 0,Ur.prototype.entityType=void 0,Ur.prototype.entityVersion=void 0,Ur.prototype.hardwareFamily=void 0,Yn.prototype.extId=void 0,Yn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var uv=new WeakSet,lv=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=sv(t),function(e,t){if(t&&("object"==Yh(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,iv()?Reflect.construct(t,n||[],sv(e).constructor):t.apply(e,n))}(this,t),uv),e.$objectType="lifecycle.v4.resources.UpdatedTargetEntity",e.$reserved={$fv:"v4.r1"},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&&av(e,t)}(t,e),n=t,r=[{key:"getLocationInfo",value:function(){return this.locationInfo}},{key:"setLocationInfo",value:function(e){this.locationInfo=e}},{key:"toJson",value:function(e){return tv(!1===e?tv(tv(tv(tv(tv(tv(tv(tv(tv({},void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),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()}:{}):tv(tv(tv(tv(tv(tv({},void 0!==this.getLocationInfo()&&null!==this.getLocationInfo()?{locationInfo:this.getLocationInfo().toJson(!1)}:{}),void 0!==this.getEntityClass()&&null!==this.getEntityClass()?{entityClass:this.getEntityClass()}:{}),void 0!==this.getEntityModel()&&null!==this.getEntityModel()?{entityModel:this.getEntityModel()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityVersion()&&null!==this.getEntityVersion()?{entityVersion:this.getEntityVersion()}:{}),void 0!==this.getHardwareFamily()&&null!==this.getHardwareFamily()?{hardwareFamily:this.getHardwareFamily()}:{}),{},{$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 F?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"locationInfo"!==t||void 0!==this.locationInfo&&null!==this.locationInfo?new R(t,"no such property exists"):new R("locationInfo","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,Ur.constructFromObject(e,n,!0),e.hasOwnProperty("locationInfo")&&null!==e.locationInfo&&void 0!==e.locationInfo&&n.setLocationInfo(Ns.constructFromObject(e.locationInfo)),!r))for(var o in n.$unknownFields=tv({},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&&rv(n.prototype,r),o&&rv(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ur);function cv(e){return cv="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},cv(e)}function fv(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 dv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fv(Object(n),!0).forEach(function(t){pv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pv(e,t,n){return(t=hv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yv(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,hv(r.key),r)}}function hv(e){var t=function(e){if("object"!=cv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cv(t)?t:t+""}lv.prototype.locationInfo=void 0,Ur.prototype.entityClass=void 0,Ur.prototype.entityModel=void 0,Ur.prototype.entityType=void 0,Ur.prototype.entityVersion=void 0,Ur.prototype.hardwareFamily=void 0,Yn.prototype.extId=void 0,Yn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var vv=new WeakSet,bv=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,vv),this.message=t,this.$objectType="lifecycle.v4.resources.UpdatedTargetEntityResult",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getTargetEntity",value:function(){return this.targetEntity}},{key:"setTargetEntity",value:function(e){this.targetEntity=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=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 dv(dv(dv({},void 0!==this.getTargetEntity()&&null!==this.getTargetEntity()?{targetEntity:this.getTargetEntity().toJson(!1)}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),{},{$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 F?r=["message"]: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("targetEntity"===t&&(void 0===this.targetEntity||null===this.targetEntity))return new R("targetEntity","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new R("message","undefined or null");if(!I.validateMaxLength(this.message,512))return new R("message","does not satisfy required maxLength constraint: 512");if(!I.validateMinLength(this.message,1))return new R("message","does not satisfy required minLength constraint: 1")}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("targetEntity")&&null!==t.targetEntity&&void 0!==t.targetEntity&&n.setTargetEntity(lv.constructFromObject(t.targetEntity)),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),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=dv({},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&&yv(t.prototype,n),r&&yv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function gv(e){return gv="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},gv(e)}function mv(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 wv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mv(Object(n),!0).forEach(function(t){Ov(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ov(e,t,n){return(t=jv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kv(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,jv(r.key),r)}}function jv(e){var t=function(e){if("object"!=gv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gv(t)?t:t+""}function $v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($v=function(){return!!e})()}function Pv(e){return Pv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pv(e)}function Tv(e,t){return Tv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tv(e,t)}bv.prototype.targetEntity=void 0,bv.prototype.message=void 0,bv.prototype.$reserved=void 0,bv.prototype.$objectType=void 0,bv.prototype.$unknownFields=void 0;var Fv=new WeakSet,Ev=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=Pv(t),function(e,t){if(t&&("object"==gv(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,$v()?Reflect.construct(t,n||[],Pv(e).constructor):t.apply(e,n))}(this,t),Fv),e.$objectType="lifecycle.v4.resources.RecommendationResult",e.$reserved={$fv:"v4.r1"},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&&Tv(e,t)}(t,e),n=t,r=[{key:"getEntityUpdateSpecs",value:function(){return this.entityUpdateSpecs}},{key:"setEntityUpdateSpecs",value:function(e){this.entityUpdateSpecs=e}},{key:"getSkippedEntities",value:function(){return this.skippedEntities}},{key:"setSkippedEntities",value:function(e){this.skippedEntities=e}},{key:"getModifiableEntities",value:function(){return this.modifiableEntities}},{key:"setModifiableEntities",value:function(e){this.modifiableEntities=e}},{key:"getAddableEntities",value:function(){return this.addableEntities}},{key:"setAddableEntities",value:function(e){this.addableEntities=e}},{key:"getDeployableVersions",value:function(){return this.deployableVersions}},{key:"setDeployableVersions",value:function(e){this.deployableVersions=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"toJson",value:function(e){return wv(!1===e?wv(wv(wv(wv(wv(wv(wv(wv(wv({},void 0!==this.getEntityUpdateSpecs()&&null!==this.getEntityUpdateSpecs()?{entityUpdateSpecs:this.getEntityUpdateSpecs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getSkippedEntities()&&null!==this.getSkippedEntities()?{skippedEntities:this.getSkippedEntities().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getModifiableEntities()&&null!==this.getModifiableEntities()?{modifiableEntities:this.getModifiableEntities().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getAddableEntities()&&null!==this.getAddableEntities()?{addableEntities:this.getAddableEntities().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getDeployableVersions()&&null!==this.getDeployableVersions()?{deployableVersions:this.getDeployableVersions().map(function(e){return e.toJson(!1)})}:{}),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()}:{}):wv(wv(wv(wv(wv(wv({},void 0!==this.getEntityUpdateSpecs()&&null!==this.getEntityUpdateSpecs()?{entityUpdateSpecs:this.getEntityUpdateSpecs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getSkippedEntities()&&null!==this.getSkippedEntities()?{skippedEntities:this.getSkippedEntities().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getModifiableEntities()&&null!==this.getModifiableEntities()?{modifiableEntities:this.getModifiableEntities().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getAddableEntities()&&null!==this.getAddableEntities()?{addableEntities:this.getAddableEntities().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getDeployableVersions()&&null!==this.getDeployableVersions()?{deployableVersions:this.getDeployableVersions().map(function(e){return e.toJson(!1)})}:{}),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 F?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("entityUpdateSpecs"===t){if(void 0===this.entityUpdateSpecs||null===this.entityUpdateSpecs)return new R("entityUpdateSpecs","undefined or null");if(!I.validateMaxItems(this.entityUpdateSpecs,2048))return new R("entityUpdateSpecs","does not satisfy required maxItems constraint: 2048")}if("skippedEntities"===t){if(void 0===this.skippedEntities||null===this.skippedEntities)return new R("skippedEntities","undefined or null");if(!I.validateMaxItems(this.skippedEntities,2048))return new R("skippedEntities","does not satisfy required maxItems constraint: 2048")}if("modifiableEntities"===t){if(void 0===this.modifiableEntities||null===this.modifiableEntities)return new R("modifiableEntities","undefined or null");if(!I.validateMaxItems(this.modifiableEntities,2048))return new R("modifiableEntities","does not satisfy required maxItems constraint: 2048")}if("addableEntities"===t){if(void 0===this.addableEntities||null===this.addableEntities)return new R("addableEntities","undefined or null");if(!I.validateMaxItems(this.addableEntities,2048))return new R("addableEntities","does not satisfy required maxItems constraint: 2048")}if("deployableVersions"===t){if(void 0===this.deployableVersions||null===this.deployableVersions)return new R("deployableVersions","undefined or null");if(!I.validateMaxItems(this.deployableVersions,2048))return new R("deployableVersions","does not satisfy required maxItems constraint: 2048")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new R("clusterExtId","undefined or null");if(!I.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,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,Yn.constructFromObject(e,s,!0),e.hasOwnProperty("entityUpdateSpecs")&&null!==e.entityUpdateSpecs&&void 0!==e.entityUpdateSpecs){for(i=[],n=e.entityUpdateSpecs,o=0;o<n.length;o++)r=ms.constructFromObject(n[o],void 0),i.push(r);s.setEntityUpdateSpecs(i)}if(e.hasOwnProperty("skippedEntities")&&null!==e.skippedEntities&&void 0!==e.skippedEntities){for(i=[],n=e.skippedEntities,o=0;o<n.length;o++)r=bv.constructFromObject(n[o],void 0),i.push(r);s.setSkippedEntities(i)}if(e.hasOwnProperty("modifiableEntities")&&null!==e.modifiableEntities&&void 0!==e.modifiableEntities){for(i=[],n=e.modifiableEntities,o=0;o<n.length;o++)r=bv.constructFromObject(n[o],void 0),i.push(r);s.setModifiableEntities(i)}if(e.hasOwnProperty("addableEntities")&&null!==e.addableEntities&&void 0!==e.addableEntities){for(i=[],n=e.addableEntities,o=0;o<n.length;o++)r=bv.constructFromObject(n[o],void 0),i.push(r);s.setAddableEntities(i)}if(e.hasOwnProperty("deployableVersions")&&null!==e.deployableVersions&&void 0!==e.deployableVersions){for(i=[],n=e.deployableVersions,o=0;o<n.length;o++)r=Qh.constructFromObject(n[o],void 0),i.push(r);s.setDeployableVersions(i)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&s.setClusterExtId(e.clusterExtId),!a)for(var u in s.$unknownFields=wv({},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&&kv(n.prototype,r),o&&kv(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Yn);function Sv(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 Cv(e){return Cv="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},Cv(e)}function Iv(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 Dv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iv(Object(n),!0).forEach(function(t){Av(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Av(e,t,n){return(t=Rv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uv(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,Rv(r.key),r)}}function Rv(e){var t=function(e){if("object"!=Cv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cv(t)?t:t+""}function xv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xv=function(){return!!e})()}function Nv(e){return Nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nv(e)}function Mv(e,t){return Mv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mv(e,t)}function Vv(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")}Ev.prototype.entityUpdateSpecs=void 0,Ev.prototype.skippedEntities=void 0,Ev.prototype.modifiableEntities=void 0,Ev.prototype.addableEntities=void 0,Ev.prototype.deployableVersions=void 0,Ev.prototype.clusterExtId=void 0,Yn.prototype.extId=void 0,Yn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var _v=new WeakSet,Lv=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=Nv(t),function(e,t){if(t&&("object"==Cv(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,xv()?Reflect.construct(t,n||[],Nv(e).constructor):t.apply(e,n))}(this,t),_v),e.$objectType="lifecycle.v4.resources.GetRecommendationByIdApiResponse",e.$reserved={$fv:"v4.r1"},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&&Mv(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 Dv(Dv(Dv({},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}):Vv(_v,this,Jv).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}):Vv(_v,this,Jv).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 F?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(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Cv(e.data)){case"lifecycle.v4.resources.RecommendationResult":r.setData(Ev.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(fn.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=Dv({},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&&Uv(n.prototype,r),o&&Uv(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Jv(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 Sv(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)?Sv(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"===Cv(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 Wv(e){return Wv="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},Wv(e)}function Bv(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 zv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bv(Object(n),!0).forEach(function(t){qv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qv(e,t,n){return(t=Hv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kv(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,Hv(r.key),r)}}function Hv(e){var t=function(e){if("object"!=Wv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wv(t)?t:t+""}function Gv(e,t){return e.get(Xv(e,t))}function Xv(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")}Lv.prototype.metadata=void 0,Lv.prototype.data=void 0,Lv.prototype.$reserved=void 0,Lv.prototype.$objectType=void 0,Lv.prototype.$unknownFields=void 0;var Zv=new WeakMap,Qv=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,Zv,void 0),this.apiClient=t||lt.instance,n=Zv,r=new Set,n.set(Xv(n,this),r),Gv(Zv,this).add("authorization"),Gv(Zv,this).add("cookie"),Gv(Zv,this).add("host"),Gv(Zv,this).add("user-agent")},t=[{key:"computeRecommendations",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;if(null==(o=e instanceof _h&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling computeRecommendations");var i={};Object.keys(r).forEach(function(e){Gv(Zv,n).has(e.toLowerCase())||(i[e]=r[e])});var s=zv({"X-Cluster-Id":t.xClusterId},i);lt.addEtagReferenceToHeader(e,s);var a=ch;return this.apiClient.callApi("/api/lifecycle/v4.1/operations/$actions/compute-recommendations","POST",{},{},s,{},o,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],a)}},{key:"getRecommendationById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getRecommendationById");var r={extId:e},o={};Object.keys(n).forEach(function(e){Gv(Zv,t).has(e.toLowerCase())||(o[e]=n[e])});var i=zv({},o),s=Lv;return this.apiClient.callApi("/api/lifecycle/v4.1/resources/recommendations/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Kv(e.prototype,t),n&&Kv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Yv(e){return Yv="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},Yv(e)}function eb(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 tb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eb(Object(n),!0).forEach(function(t){nb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nb(e,t,n){return(t=ob(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rb(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,ob(r.key),r)}}function ob(e){var t=function(e){if("object"!=Yv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yv(t)?t:t+""}var ib=new WeakSet,sb=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,ib),this.$objectType="lifecycle.v4.resources.FrameworkVersionInfo",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getCurrentVersion",value:function(){return this.currentVersion}},{key:"setCurrentVersion",value:function(e){this.currentVersion=e}},{key:"getAvailableVersion",value:function(){return this.availableVersion}},{key:"setAvailableVersion",value:function(e){this.availableVersion=e}},{key:"getIsUpdateNeeded",value:function(){return this.isUpdateNeeded}},{key:"setIsUpdateNeeded",value:function(e){this.isUpdateNeeded=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 tb(tb(tb(tb({},void 0!==this.getCurrentVersion()&&null!==this.getCurrentVersion()?{currentVersion:this.getCurrentVersion()}:{}),void 0!==this.getAvailableVersion()&&null!==this.getAvailableVersion()?{availableVersion:this.getAvailableVersion()}:{}),void 0!==this.getIsUpdateNeeded()&&null!==this.getIsUpdateNeeded()?{isUpdateNeeded:this.getIsUpdateNeeded()}:{}),{},{$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 F?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("currentVersion"===t){if(void 0===this.currentVersion||null===this.currentVersion)return new R("currentVersion","undefined or null");if(!I.validateMaxLength(this.currentVersion,128))return new R("currentVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.currentVersion,1))return new R("currentVersion","does not satisfy required minLength constraint: 1")}if("availableVersion"===t){if(void 0===this.availableVersion||null===this.availableVersion)return new R("availableVersion","undefined or null");if(!I.validateMaxLength(this.availableVersion,128))return new R("availableVersion","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.availableVersion,1))return new R("availableVersion","does not satisfy required minLength constraint: 1")}return"isUpdateNeeded"!==t||void 0!==this.isUpdateNeeded&&null!==this.isUpdateNeeded?"$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("isUpdateNeeded","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("currentVersion")&&null!==t.currentVersion&&void 0!==t.currentVersion&&n.setCurrentVersion(t.currentVersion),t.hasOwnProperty("availableVersion")&&null!==t.availableVersion&&void 0!==t.availableVersion&&n.setAvailableVersion(t.availableVersion),t.hasOwnProperty("isUpdateNeeded")&&null!==t.isUpdateNeeded&&void 0!==t.isUpdateNeeded&&n.setIsUpdateNeeded(t.isUpdateNeeded),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=tb({},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&&rb(t.prototype,n),r&&rb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ab(e){return ab="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},ab(e)}function ub(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 lb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ub(Object(n),!0).forEach(function(t){cb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ub(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cb(e,t,n){return(t=db(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fb(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,db(r.key),r)}}function db(e){var t=function(e){if("object"!=ab(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ab(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ab(t)?t:t+""}sb.prototype.currentVersion=void 0,sb.prototype.availableVersion=void 0,sb.prototype.isUpdateNeeded=!1,sb.prototype.$reserved=void 0,sb.prototype.$objectType=void 0,sb.prototype.$unknownFields=void 0;var pb=new WeakSet,yb=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,pb),this.$objectType="lifecycle.v4.resources.InProgressOpInfo",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getOperationId",value:function(){return this.operationId}},{key:"setOperationId",value:function(e){this.operationId=e}},{key:"getOperationType",value:function(){return this.operationType}},{key:"setOperationType",value:function(e){this.operationType=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 lb(lb(lb({},void 0!==this.getOperationId()&&null!==this.getOperationId()?{operationId:this.getOperationId()}:{}),void 0!==this.getOperationType()&&null!==this.getOperationType()?{operationType:this.getOperationType()}:{}),{},{$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 F?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("operationId"===t){if(void 0===this.operationId||null===this.operationId)return new R("operationId","undefined or null");if(!I.validatePattern(this.operationId,/^[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("operationId","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"operationType"!==t||void 0!==this.operationType&&null!==this.operationType?"$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("operationType","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("operationId")&&null!==t.operationId&&void 0!==t.operationId&&n.setOperationId(t.operationId),t.hasOwnProperty("operationType")&&null!==t.operationType&&void 0!==t.operationType&&n.setOperationType(Cf.constructFromObject(t.operationType)),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=lb({},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&&fb(t.prototype,n),r&&fb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function hb(e){return hb="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},hb(e)}function vb(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 bb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vb(Object(n),!0).forEach(function(t){gb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gb(e,t,n){return(t=wb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mb(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,wb(r.key),r)}}function wb(e){var t=function(e){if("object"!=hb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hb(t)?t:t+""}function Ob(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ob=function(){return!!e})()}function kb(e){return kb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kb(e)}function jb(e,t){return jb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jb(e,t)}yb.prototype.operationId=void 0,yb.prototype.operationType=void 0,yb.prototype.$reserved=void 0,yb.prototype.$objectType=void 0,yb.prototype.$unknownFields=void 0;var $b=new WeakSet,Pb=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=kb(t),function(e,t){if(t&&("object"==hb(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,Ob()?Reflect.construct(t,n||[],kb(e).constructor):t.apply(e,n))}(this,t),$b),e.$objectType="lifecycle.v4.resources.StatusInfo",e.$reserved={$fv:"v4.r1"},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&&jb(e,t)}(t,e),n=t,r=[{key:"getFrameworkVersion",value:function(){return this.frameworkVersion}},{key:"setFrameworkVersion",value:function(e){this.frameworkVersion=e}},{key:"getInProgressOperation",value:function(){return this.inProgressOperation}},{key:"setInProgressOperation",value:function(e){this.inProgressOperation=e}},{key:"getIsCancelIntentSet",value:function(){return this.isCancelIntentSet}},{key:"setIsCancelIntentSet",value:function(e){this.isCancelIntentSet=e}},{key:"getUploadTaskUuid",value:function(){return this.uploadTaskUuid}},{key:"setUploadTaskUuid",value:function(e){this.uploadTaskUuid=e}},{key:"getIsUrlAccessible",value:function(){return this.isUrlAccessible}},{key:"setIsUrlAccessible",value:function(e){this.isUrlAccessible=e}},{key:"toJson",value:function(e){return bb(!1===e?bb(bb(bb(bb(bb(bb(bb(bb({},void 0!==this.getFrameworkVersion()&&null!==this.getFrameworkVersion()?{frameworkVersion:this.getFrameworkVersion().toJson(!1)}:{}),void 0!==this.getInProgressOperation()&&null!==this.getInProgressOperation()?{inProgressOperation:this.getInProgressOperation().toJson(!1)}:{}),void 0!==this.getIsCancelIntentSet()&&null!==this.getIsCancelIntentSet()?{isCancelIntentSet:this.getIsCancelIntentSet()}:{}),void 0!==this.getUploadTaskUuid()&&null!==this.getUploadTaskUuid()?{uploadTaskUuid:this.getUploadTaskUuid()}:{}),void 0!==this.getIsUrlAccessible()&&null!==this.getIsUrlAccessible()?{isUrlAccessible:this.getIsUrlAccessible()}:{}),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()}:{}):bb(bb(bb(bb(bb({},void 0!==this.getFrameworkVersion()&&null!==this.getFrameworkVersion()?{frameworkVersion:this.getFrameworkVersion().toJson(!1)}:{}),void 0!==this.getInProgressOperation()&&null!==this.getInProgressOperation()?{inProgressOperation:this.getInProgressOperation().toJson(!1)}:{}),void 0!==this.getIsCancelIntentSet()&&null!==this.getIsCancelIntentSet()?{isCancelIntentSet:this.getIsCancelIntentSet()}:{}),void 0!==this.getUploadTaskUuid()&&null!==this.getUploadTaskUuid()?{uploadTaskUuid:this.getUploadTaskUuid()}:{}),void 0!==this.getIsUrlAccessible()&&null!==this.getIsUrlAccessible()?{isUrlAccessible:this.getIsUrlAccessible()}:{}),{},{$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 F?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("frameworkVersion"===t&&(void 0===this.frameworkVersion||null===this.frameworkVersion))return new R("frameworkVersion","undefined or null");if("inProgressOperation"===t&&(void 0===this.inProgressOperation||null===this.inProgressOperation))return new R("inProgressOperation","undefined or null");if("isCancelIntentSet"===t&&(void 0===this.isCancelIntentSet||null===this.isCancelIntentSet))return new R("isCancelIntentSet","undefined or null");if("uploadTaskUuid"===t){if(void 0===this.uploadTaskUuid||null===this.uploadTaskUuid)return new R("uploadTaskUuid","undefined or null");if(!I.validatePattern(this.uploadTaskUuid,/^[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("uploadTaskUuid","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"isUrlAccessible"!==t||void 0!==this.isUrlAccessible&&null!==this.isUrlAccessible?new R(t,"no such property exists"):new R("isUrlAccessible","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,Yn.constructFromObject(e,n,!0),e.hasOwnProperty("frameworkVersion")&&null!==e.frameworkVersion&&void 0!==e.frameworkVersion&&n.setFrameworkVersion(sb.constructFromObject(e.frameworkVersion)),e.hasOwnProperty("inProgressOperation")&&null!==e.inProgressOperation&&void 0!==e.inProgressOperation&&n.setInProgressOperation(yb.constructFromObject(e.inProgressOperation)),e.hasOwnProperty("isCancelIntentSet")&&null!==e.isCancelIntentSet&&void 0!==e.isCancelIntentSet&&n.setIsCancelIntentSet(e.isCancelIntentSet),e.hasOwnProperty("uploadTaskUuid")&&null!==e.uploadTaskUuid&&void 0!==e.uploadTaskUuid&&n.setUploadTaskUuid(e.uploadTaskUuid),e.hasOwnProperty("isUrlAccessible")&&null!==e.isUrlAccessible&&void 0!==e.isUrlAccessible&&n.setIsUrlAccessible(e.isUrlAccessible),!r))for(var o in n.$unknownFields=bb({},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&&mb(n.prototype,r),o&&mb(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Yn);function Tb(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 Fb(e){return Fb="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},Fb(e)}function Eb(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 Sb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eb(Object(n),!0).forEach(function(t){Cb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cb(e,t,n){return(t=Db(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ib(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,Db(r.key),r)}}function Db(e){var t=function(e){if("object"!=Fb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Fb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fb(t)?t:t+""}function Ab(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ab=function(){return!!e})()}function Ub(e){return Ub=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ub(e)}function Rb(e,t){return Rb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rb(e,t)}function xb(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")}Pb.prototype.frameworkVersion=void 0,Pb.prototype.inProgressOperation=void 0,Pb.prototype.isCancelIntentSet=!1,Pb.prototype.uploadTaskUuid=void 0,Pb.prototype.isUrlAccessible=!0,Yn.prototype.extId=void 0,Yn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var Nb=new WeakSet,Mb=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=Ub(t),function(e,t){if(t&&("object"==Fb(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,Ab()?Reflect.construct(t,n||[],Ub(e).constructor):t.apply(e,n))}(this,t),Nb),e.$objectType="lifecycle.v4.resources.GetStatusApiResponse",e.$reserved={$fv:"v4.r1"},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&&Rb(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 Sb(Sb(Sb({},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}):xb(Nb,this,Vb).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}):xb(Nb,this,Vb).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 F?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(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Fb(e.data)){case"lifecycle.v4.resources.StatusInfo":r.setData(Pb.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(fn.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=Sb({},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&&Ib(n.prototype,r),o&&Ib(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Vb(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 Tb(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)?Tb(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"===Fb(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 _b(e){return _b="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},_b(e)}function Lb(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 Jb(e,t,n){return(t=Bb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wb(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,Bb(r.key),r)}}function Bb(e){var t=function(e){if("object"!=_b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_b(t)?t:t+""}function zb(e,t){return e.get(qb(e,t))}function qb(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")}Mb.prototype.metadata=void 0,Mb.prototype.data=void 0,Mb.prototype.$reserved=void 0,Mb.prototype.$objectType=void 0,Mb.prototype.$unknownFields=void 0;var Kb=new WeakMap,Hb=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,Kb,void 0),this.apiClient=t||lt.instance,n=Kb,r=new Set,n.set(qb(n,this),r),zb(Kb,this).add("authorization"),zb(Kb,this).add("cookie"),zb(Kb,this).add("host"),zb(Kb,this).add("user-agent")},t=[{key:"getStatus",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};e=e||{};var r={};Object.keys(n).forEach(function(e){zb(Kb,t).has(e.toLowerCase())||(r[e]=n[e])});var o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lb(Object(n),!0).forEach(function(t){Jb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({"X-Cluster-Id":e.xClusterId},r),i=Mb;return this.apiClient.callApi("/api/lifecycle/v4.1/resources/status","GET",{},{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],i)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Wb(e.prototype,t),n&&Wb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Gb(e){return Gb="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},Gb(e)}function Xb(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 Zb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xb(Object(n),!0).forEach(function(t){Qb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qb(e,t,n){return(t=eg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yb(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,eg(r.key),r)}}function eg(e){var t=function(e){if("object"!=Gb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gb(t)?t:t+""}function tg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(tg=function(){return!!e})()}function ng(e){return ng=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ng(e)}function rg(e,t){return rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rg(e,t)}var og=new WeakSet,ig=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=ng(t),function(e,t){if(t&&("object"==Gb(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,tg()?Reflect.construct(t,n||[],ng(e).constructor):t.apply(e,n))}(this,t,[e]),og),n.$objectType="lifecycle.v4.common.UpgradeSpec",n.$reserved={$fv:"v4.r1"},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&&rg(e,t)}(t,e),n=t,r=[{key:"getAutoHandleFlags",value:function(){return this.autoHandleFlags}},{key:"setAutoHandleFlags",value:function(e){this.autoHandleFlags=e}},{key:"getMaxWaitTimeInSecs",value:function(){return this.maxWaitTimeInSecs}},{key:"setMaxWaitTimeInSecs",value:function(e){this.maxWaitTimeInSecs=e}},{key:"toJson",value:function(e){return Zb(Zb(Zb(Zb(Zb(Zb(Zb({},void 0!==this.getAutoHandleFlags()&&null!==this.getAutoHandleFlags()?{autoHandleFlags:this.getAutoHandleFlags()}:{}),void 0!==this.getMaxWaitTimeInSecs()&&null!==this.getMaxWaitTimeInSecs()?{maxWaitTimeInSecs:this.getMaxWaitTimeInSecs()}:{}),void 0!==this.getManagementServer()&&null!==this.getManagementServer()?{managementServer:this.getManagementServer().toJson(!1)}:{}),void 0!==this.getEntityUpdateSpecs()&&null!==this.getEntityUpdateSpecs()?{entityUpdateSpecs:this.getEntityUpdateSpecs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getSkippedPrecheckFlags()&&null!==this.getSkippedPrecheckFlags()?{skippedPrecheckFlags:this.getSkippedPrecheckFlags()}:{}),void 0!==this.getCredentials()&&null!==this.getCredentials()?{credentials:this.getCredentials().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 F?r=["entityUpdateSpecs"]: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("autoHandleFlags"===t){if(void 0===this.autoHandleFlags||null===this.autoHandleFlags)return new R("autoHandleFlags","undefined or null");if(!I.validateMaxItems(this.autoHandleFlags,20))return new R("autoHandleFlags","does not satisfy required maxItems constraint: 20")}if("maxWaitTimeInSecs"===t){if(void 0===this.maxWaitTimeInSecs||null===this.maxWaitTimeInSecs)return new R("maxWaitTimeInSecs","undefined or null");if(!I.validateMaximum(this.maxWaitTimeInSecs,86400))return new R("maxWaitTimeInSecs","does not satisfy required maximum constraint: 86400");if(!I.validateMinimum(this.maxWaitTimeInSecs,60))return new R("maxWaitTimeInSecs","does not satisfy required minimum constraint: 60")}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,Fy.constructFromObject(e,s,!0),e.hasOwnProperty("autoHandleFlags")&&null!==e.autoHandleFlags&&void 0!==e.autoHandleFlags){for(i=[],n=e.autoHandleFlags,o=0;o<n.length;o++)r=my.constructFromObject(n[o],void 0),i.push(r);s.setAutoHandleFlags(i)}if(e.hasOwnProperty("maxWaitTimeInSecs")&&null!==e.maxWaitTimeInSecs&&void 0!==e.maxWaitTimeInSecs&&s.setMaxWaitTimeInSecs(e.maxWaitTimeInSecs),!a)for(var u in s.$unknownFields=Zb({},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&&Yb(n.prototype,r),o&&Yb(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Fy);function sg(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 ag(e){return ag="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},ag(e)}function ug(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 lg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ug(Object(n),!0).forEach(function(t){cg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ug(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cg(e,t,n){return(t=dg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fg(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,dg(r.key),r)}}function dg(e){var t=function(e){if("object"!=ag(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ag(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ag(t)?t:t+""}function pg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pg=function(){return!!e})()}function yg(e){return yg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yg(e)}function hg(e,t){return hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hg(e,t)}function vg(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")}ig.prototype.autoHandleFlags=void 0,ig.prototype.maxWaitTimeInSecs=void 0,Fy.prototype.managementServer=void 0,Fy.prototype.entityUpdateSpecs=void 0,Fy.prototype.skippedPrecheckFlags=void 0,Fy.prototype.credentials=void 0;var bg=new WeakSet,gg=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=yg(t),function(e,t){if(t&&("object"==ag(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,pg()?Reflect.construct(t,n||[],yg(e).constructor):t.apply(e,n))}(this,t),bg),e.$objectType="lifecycle.v4.operations.UpgradeApiResponse",e.$reserved={$fv:"v4.r1"},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&&hg(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 lg(lg(lg({},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}):vg(bg,this,mg).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}):vg(bg,this,mg).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 F?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(Me.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ag(e.data)){case"prism.v4.config.TaskReference":r.setData(wn.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":r.setData(fn.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=lg({},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&&fg(n.prototype,r),o&&fg(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function mg(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 sg(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)?sg(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"===ag(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 wg(e){return wg="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},wg(e)}function Og(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 kg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Og(Object(n),!0).forEach(function(t){jg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Og(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jg(e,t,n){return(t=Pg(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,Pg(r.key),r)}}function Pg(e){var t=function(e){if("object"!=wg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wg(t)?t:t+""}function Tg(e,t){return e.get(Fg(e,t))}function Fg(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")}gg.prototype.metadata=void 0,gg.prototype.data=void 0,gg.prototype.$reserved=void 0,gg.prototype.$objectType=void 0,gg.prototype.$unknownFields=void 0;var Eg=new WeakMap,Sg=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,Eg,void 0),this.apiClient=t||lt.instance,n=Eg,r=new Set,n.set(Fg(n,this),r),Tg(Eg,this).add("authorization"),Tg(Eg,this).add("cookie"),Tg(Eg,this).add("host"),Tg(Eg,this).add("user-agent")},t=[{key:"performUpgrade",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var o;if(null==(o=e instanceof ig&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling performUpgrade");var i=kg({},t.hasOwnProperty("$dryrun")?{$dryrun:t.$dryrun}:{}),s={};Object.keys(r).forEach(function(e){Tg(Eg,n).has(e.toLowerCase())||(s[e]=r[e])});var a=kg({"X-Cluster-Id":t.xClusterId},s);lt.addEtagReferenceToHeader(e,a);var u=gg;return this.apiClient.callApi("/api/lifecycle/v4.1/operations/$actions/upgrade","POST",{},i,a,{},o,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&$g(e.prototype,t),n&&$g(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Cg(e){return Cg="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},Cg(e)}function Ig(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 Dg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ig(Object(n),!0).forEach(function(t){Ag(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ig(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ag(e,t,n){return(t=Rg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ug(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,Rg(r.key),r)}}function Rg(e){var t=function(e){if("object"!=Cg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cg(t)?t:t+""}var xg=new WeakSet,Ng=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,xg),this.$objectType="common.v1.config.IPAddress",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"getIpv6",value:function(){return this.ipv6}},{key:"setIpv6",value:function(e){this.ipv6=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:"hasIpv4",value:function(){return!(void 0===this.ipv4||null===this.ipv4)}},{key:"hasIpv6",value:function(){return!(void 0===this.ipv6||null===this.ipv6)}},{key:"isValid",value:function(){return this.hasIpv4()||this.hasIpv6()}},{key:"toJson",value:function(e){return Dg(Dg(Dg({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().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 F?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"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"$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("ipv6","undefined or null"):new R("ipv4","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("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(sc.constructFromObject(t.ipv4)),t.hasOwnProperty("ipv6")&&null!==t.ipv6&&void 0!==t.ipv6&&n.setIpv6(yc.constructFromObject(t.ipv6)),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=Dg({},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&&Ug(t.prototype,n),r&&Ug(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Mg(e){return Mg="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},Mg(e)}function Vg(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 _g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vg(Object(n),!0).forEach(function(t){Lg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Lg(e,t,n){return(t=Wg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jg(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,Wg(r.key),r)}}function Wg(e){var t=function(e){if("object"!=Mg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mg(t)?t:t+""}Ng.prototype.ipv4=void 0,Ng.prototype.ipv6=void 0,Ng.prototype.$reserved=void 0,Ng.prototype.$objectType=void 0,Ng.prototype.$unknownFields=void 0;var Bg=new WeakSet,zg=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,Bg),this.$objectType="clustermgmt.v4.config.NonMigratableVmInfo",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getVmName",value:function(){return this.vmName}},{key:"setVmName",value:function(e){this.vmName=e}},{key:"getVmUuid",value:function(){return this.vmUuid}},{key:"setVmUuid",value:function(e){this.vmUuid=e}},{key:"getNonMigratableVmReason",value:function(){return this.nonMigratableVmReason}},{key:"setNonMigratableVmReason",value:function(e){this.nonMigratableVmReason=e}},{key:"getHostIp",value:function(){return this.hostIp}},{key:"setHostIp",value:function(e){this.hostIp=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 _g(_g(_g(_g(_g({},void 0!==this.getVmName()&&null!==this.getVmName()?{vmName:this.getVmName()}:{}),void 0!==this.getVmUuid()&&null!==this.getVmUuid()?{vmUuid:this.getVmUuid()}:{}),void 0!==this.getNonMigratableVmReason()&&null!==this.getNonMigratableVmReason()?{nonMigratableVmReason:this.getNonMigratableVmReason()}:{}),void 0!==this.getHostIp()&&null!==this.getHostIp()?{hostIp:this.getHostIp().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 F?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("vmName"===t){if(void 0===this.vmName||null===this.vmName)return new R("vmName","undefined or null");if(!I.validateMaxLength(this.vmName,64))return new R("vmName","does not satisfy required maxLength constraint: 64")}if("vmUuid"===t){if(void 0===this.vmUuid||null===this.vmUuid)return new R("vmUuid","undefined or null");if(!I.validatePattern(this.vmUuid,/^[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("vmUuid","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"nonMigratableVmReason"!==t||void 0!==this.nonMigratableVmReason&&null!==this.nonMigratableVmReason?"hostIp"!==t||void 0!==this.hostIp&&null!==this.hostIp?"$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("hostIp","undefined or null"):new R("nonMigratableVmReason","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("vmName")&&null!==t.vmName&&void 0!==t.vmName&&n.setVmName(t.vmName),t.hasOwnProperty("vmUuid")&&null!==t.vmUuid&&void 0!==t.vmUuid&&n.setVmUuid(t.vmUuid),t.hasOwnProperty("nonMigratableVmReason")&&null!==t.nonMigratableVmReason&&void 0!==t.nonMigratableVmReason&&n.setNonMigratableVmReason(t.nonMigratableVmReason),t.hasOwnProperty("hostIp")&&null!==t.hostIp&&void 0!==t.hostIp&&n.setHostIp(Ng.constructFromObject(t.hostIp)),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=_g({},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&&Jg(t.prototype,n),r&&Jg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function qg(e){return qg="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},qg(e)}function Kg(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 Hg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kg(Object(n),!0).forEach(function(t){Gg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gg(e,t,n){return(t=Zg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xg(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,Zg(r.key),r)}}function Zg(e){var t=function(e){if("object"!=qg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qg(t)?t:t+""}zg.prototype.vmName=void 0,zg.prototype.vmUuid=void 0,zg.prototype.nonMigratableVmReason=void 0,zg.prototype.hostIp=void 0,zg.prototype.$reserved=void 0,zg.prototype.$objectType=void 0,zg.prototype.$unknownFields=void 0;var Qg=new WeakSet,Yg=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,Qg),this.$objectType="common.v1.config.KVStringPair",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 Hg(Hg(Hg({},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 F?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(!I.validateMaxLength(this.name,128))return new R("name","does not satisfy required maxLength constraint: 128");if(!I.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=Hg({},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&&Xg(t.prototype,n),r&&Xg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function em(e){return em="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},em(e)}function tm(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 nm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tm(Object(n),!0).forEach(function(t){rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rm(e,t,n){return(t=im(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function om(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,im(r.key),r)}}function im(e){var t=function(e){if("object"!=em(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=em(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==em(t)?t:t+""}Yg.prototype.name=void 0,Yg.prototype.value="",Yg.prototype.$reserved=void 0,Yg.prototype.$objectType=void 0,Yg.prototype.$unknownFields=void 0;var sm=new WeakSet,am=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,sm),this.entityDeploySpecs=t,this.$objectType="lifecycle.v4.common.DeploySpec",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getEntityDeploySpecs",value:function(){return this.entityDeploySpecs}},{key:"setEntityDeploySpecs",value:function(e){this.entityDeploySpecs=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 nm(nm({},void 0!==this.getEntityDeploySpecs()&&null!==this.getEntityDeploySpecs()?{entityDeploySpecs:this.getEntityDeploySpecs().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 F?r=["entityDeploySpecs"]: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("entityDeploySpecs"===t){if(void 0===this.entityDeploySpecs||null===this.entityDeploySpecs)return new R("entityDeploySpecs","undefined or null");if(!I.validateMaxItems(this.entityDeploySpecs,2048))return new R("entityDeploySpecs","does not satisfy required maxItems constraint: 2048")}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("entityDeploySpecs")&&null!==t.entityDeploySpecs&&void 0!==t.entityDeploySpecs){for(i=[],n=t.entityDeploySpecs,o=0;o<n.length;o++)r=mh.constructFromObject(n[o],void 0),i.push(r);s.setEntityDeploySpecs(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=nm({},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&&om(t.prototype,n),r&&om(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();am.prototype.entityDeploySpecs=void 0,am.prototype.$reserved=void 0,am.prototype.$objectType=void 0,am.prototype.$unknownFields=void 0;var um={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",UCS:"UCS",ISM:"ISM",VCENTER:"VCENTER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(um).find(function(t){return um[t]===e});return null==t?um.$UNKNOWN:um[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case um.$UNKNOWN:case um.$REDACTED:case um.UCS:case um.ISM:case um.VCENTER:return;default:throw new Error("Invalid : must be VendorManagementName.{ $UNKNOWN|$REDACTED|UCS|ISM|VCENTER }")}}};Object.freeze(um);const lm=um;function cm(e){return cm="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},cm(e)}function fm(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 dm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fm(Object(n),!0).forEach(function(t){pm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pm(e,t,n){return(t=hm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ym(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,hm(r.key),r)}}function hm(e){var t=function(e){if("object"!=cm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cm(t)?t:t+""}var vm=new WeakSet,bm=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,vm),this.$objectType="lifecycle.v4.common.OperationCredential",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getCredentialExtId",value:function(){return this.credentialExtId}},{key:"setCredentialExtId",value:function(e){this.credentialExtId=e}},{key:"getVendorManagementName",value:function(){return this.vendorManagementName}},{key:"setVendorManagementName",value:function(e){this.vendorManagementName=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 dm(dm(dm({},void 0!==this.getCredentialExtId()&&null!==this.getCredentialExtId()?{credentialExtId:this.getCredentialExtId()}:{}),void 0!==this.getVendorManagementName()&&null!==this.getVendorManagementName()?{vendorManagementName:this.getVendorManagementName()}:{}),{},{$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 F?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("credentialExtId"===t){if(void 0===this.credentialExtId||null===this.credentialExtId)return new R("credentialExtId","undefined or null");if(!I.validatePattern(this.credentialExtId,/^[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("credentialExtId","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"vendorManagementName"!==t||void 0!==this.vendorManagementName&&null!==this.vendorManagementName?"$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("vendorManagementName","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("credentialExtId")&&null!==t.credentialExtId&&void 0!==t.credentialExtId&&n.setCredentialExtId(t.credentialExtId),t.hasOwnProperty("vendorManagementName")&&null!==t.vendorManagementName&&void 0!==t.vendorManagementName&&n.setVendorManagementName(lm.constructFromObject(t.vendorManagementName)),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=dm({},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&&ym(t.prototype,n),r&&ym(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function gm(e){return gm="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},gm(e)}function mm(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 wm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mm(Object(n),!0).forEach(function(t){Om(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Om(e,t,n){return(t=jm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function km(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,jm(r.key),r)}}function jm(e){var t=function(e){if("object"!=gm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gm(t)?t:t+""}bm.prototype.credentialExtId=void 0,bm.prototype.vendorManagementName=void 0,bm.prototype.$reserved=void 0,bm.prototype.$objectType=void 0,bm.prototype.$unknownFields=void 0;var $m=new WeakSet,Pm=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="lifecycle.v4.svcmgr.BaseClientConfig",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getCertificate",value:function(){return this.certificate}},{key:"setCertificate",value:function(e){this.certificate=e}},{key:"getKey",value:function(){return this.key}},{key:"setKey",value:function(e){this.key=e}},{key:"getUsername",value:function(){return this.username}},{key:"setUsername",value:function(e){this.username=e}},{key:"getPassword",value:function(){return this.password}},{key:"setPassword",value:function(e){this.password=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 wm(wm(wm(wm(wm({},void 0!==this.getCertificate()&&null!==this.getCertificate()?{certificate:this.getCertificate()}:{}),void 0!==this.getKey()&&null!==this.getKey()?{key:this.getKey()}:{}),void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),{},{$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 F?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("certificate"===t&&(void 0===this.certificate||null===this.certificate))return new R("certificate","undefined or null");if("key"===t&&(void 0===this.key||null===this.key))return new R("key","undefined or null");if("username"===t){if(void 0===this.username||null===this.username)return new R("username","undefined or null");if(!I.validateMinLength(this.username,1))return new R("username","does not satisfy required minLength constraint: 1")}return"password"!==t||void 0!==this.password&&null!==this.password?"$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("password","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("certificate")&&null!==t.certificate&&void 0!==t.certificate&&n.setCertificate(t.certificate),t.hasOwnProperty("key")&&null!==t.key&&void 0!==t.key&&n.setKey(t.key),t.hasOwnProperty("username")&&null!==t.username&&void 0!==t.username&&n.setUsername(t.username),t.hasOwnProperty("password")&&null!==t.password&&void 0!==t.password&&n.setPassword(t.password),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=wm({},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&&km(t.prototype,n),r&&km(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Tm(e){return Tm="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},Tm(e)}function Fm(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 Em(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fm(Object(n),!0).forEach(function(t){Sm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sm(e,t,n){return(t=Im(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cm(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,Im(r.key),r)}}function Im(e){var t=function(e){if("object"!=Tm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Tm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tm(t)?t:t+""}function Dm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Dm=function(){return!!e})()}function Am(e){return Am=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Am(e)}function Um(e,t){return Um=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Um(e,t)}Pm.prototype.certificate=void 0,Pm.prototype.key=void 0,Pm.prototype.username=void 0,Pm.prototype.password=void 0,Pm.prototype.$reserved=void 0,Pm.prototype.$objectType=void 0,Pm.prototype.$unknownFields=void 0;var Rm=new WeakSet,xm=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=Am(t),function(e,t){if(t&&("object"==Tm(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,Dm()?Reflect.construct(t,n||[],Am(e).constructor):t.apply(e,n))}(this,t),Rm),e.$objectType="lifecycle.v4.svcmgr.AhvClientConfig",e.$reserved={$fv:"v4.r1"},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&&Um(e,t)}(t,e),n=t,r=[{key:"getPrismIp",value:function(){return this.prismIp}},{key:"setPrismIp",value:function(e){this.prismIp=e}},{key:"getPrismPort",value:function(){return this.prismPort}},{key:"setPrismPort",value:function(e){this.prismPort=e}},{key:"getServiceName",value:function(){return this.serviceName}},{key:"setServiceName",value:function(e){this.serviceName=e}},{key:"getCaChain",value:function(){return this.caChain}},{key:"setCaChain",value:function(e){this.caChain=e}},{key:"toJson",value:function(e){return Em(Em(Em(Em(Em(Em(Em(Em(Em({},void 0!==this.getPrismIp()&&null!==this.getPrismIp()?{prismIp:this.getPrismIp().toJson(!1)}:{}),void 0!==this.getPrismPort()&&null!==this.getPrismPort()?{prismPort:this.getPrismPort()}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getCaChain()&&null!==this.getCaChain()?{caChain:this.getCaChain()}:{}),void 0!==this.getCertificate()&&null!==this.getCertificate()?{certificate:this.getCertificate()}:{}),void 0!==this.getKey()&&null!==this.getKey()?{key:this.getKey()}:{}),void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),{},{$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 F?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"prismIp"!==t||void 0!==this.prismIp&&null!==this.prismIp?"prismPort"!==t||void 0!==this.prismPort&&null!==this.prismPort?"serviceName"!==t||void 0!==this.serviceName&&null!==this.serviceName?"caChain"!==t||void 0!==this.caChain&&null!==this.caChain?new R(t,"no such property exists"):new R("caChain","undefined or null"):new R("serviceName","undefined or null"):new R("prismPort","undefined or null"):new R("prismIp","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,Pm.constructFromObject(e,n,!0),e.hasOwnProperty("prismIp")&&null!==e.prismIp&&void 0!==e.prismIp&&n.setPrismIp(sc.constructFromObject(e.prismIp)),e.hasOwnProperty("prismPort")&&null!==e.prismPort&&void 0!==e.prismPort&&n.setPrismPort(e.prismPort),e.hasOwnProperty("serviceName")&&null!==e.serviceName&&void 0!==e.serviceName&&n.setServiceName(e.serviceName),e.hasOwnProperty("caChain")&&null!==e.caChain&&void 0!==e.caChain&&n.setCaChain(e.caChain),!r))for(var o in n.$unknownFields=Em({},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&&Cm(n.prototype,r),o&&Cm(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Pm);xm.prototype.prismIp=void 0,xm.prototype.prismPort=void 0,xm.prototype.serviceName=void 0,xm.prototype.caChain=void 0,Pm.prototype.certificate=void 0,Pm.prototype.key=void 0,Pm.prototype.username=void 0,Pm.prototype.password=void 0;var Nm={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NORMAL:"NORMAL",DIRECT:"DIRECT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Nm).find(function(t){return Nm[t]===e});return null==t?Nm.$UNKNOWN:Nm[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Nm.$UNKNOWN:case Nm.$REDACTED:case Nm.NORMAL:case Nm.DIRECT:return;default:throw new Error("Invalid : must be NicType.{ $UNKNOWN|$REDACTED|NORMAL|DIRECT }")}}};Object.freeze(Nm);const Mm=Nm;function Vm(e){return Vm="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},Vm(e)}function _m(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 Lm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_m(Object(n),!0).forEach(function(t){Jm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jm(e,t,n){return(t=Bm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wm(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,Bm(r.key),r)}}function Bm(e){var t=function(e){if("object"!=Vm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vm(t)?t:t+""}var zm=new WeakSet,qm=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,zm),this.network=t,this.$objectType="lifecycle.v4.svcmgr.VmNetworkResourceConfig",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getNetwork",value:function(){return this.network}},{key:"setNetwork",value:function(e){this.network=e}},{key:"getClusterId",value:function(){return this.clusterId}},{key:"setClusterId",value:function(e){this.clusterId=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 Lm(Lm(Lm({},void 0!==this.getNetwork()&&null!==this.getNetwork()?{network:this.getNetwork()}:{}),void 0!==this.getClusterId()&&null!==this.getClusterId()?{clusterId:this.getClusterId()}:{}),{},{$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 F?r=["network"]: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("network"===t){if(void 0===this.network||null===this.network)return new R("network","undefined or null");if(!I.validateMinLength(this.network,1))return new R("network","does not satisfy required minLength constraint: 1")}if("clusterId"===t){if(void 0===this.clusterId||null===this.clusterId)return new R("clusterId","undefined or null");if(!I.validatePattern(this.clusterId,/^[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("clusterId","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("network")&&null!==t.network&&void 0!==t.network&&n.setNetwork(t.network),t.hasOwnProperty("clusterId")&&null!==t.clusterId&&void 0!==t.clusterId&&n.setClusterId(t.clusterId),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=Lm({},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&&Wm(t.prototype,n),r&&Wm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Km(e){return Km="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},Km(e)}function Hm(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 Gm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hm(Object(n),!0).forEach(function(t){Xm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xm(e,t,n){return(t=Qm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zm(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,Qm(r.key),r)}}function Qm(e){var t=function(e){if("object"!=Km(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Km(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Km(t)?t:t+""}function Ym(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ym=function(){return!!e})()}function ew(e){return ew=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ew(e)}function tw(e,t){return tw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tw(e,t)}qm.prototype.network=void 0,qm.prototype.clusterId=void 0,qm.prototype.$reserved=void 0,qm.prototype.$objectType=void 0,qm.prototype.$unknownFields=void 0;var nw=new WeakSet,rw=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=ew(t),function(e,t){if(t&&("object"==Km(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,Ym()?Reflect.construct(t,n||[],ew(e).constructor):t.apply(e,n))}(this,t,[e]),nw),n.$objectType="lifecycle.v4.svcmgr.AhvNetworkResourceConfig",n.$reserved={$fv:"v4.r1"},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&&tw(e,t)}(t,e),n=t,r=[{key:"getNicType",value:function(){return this.nicType}},{key:"setNicType",value:function(e){this.nicType=e}},{key:"toJson",value:function(e){return Gm(Gm(Gm(Gm({},void 0!==this.getNicType()&&null!==this.getNicType()?{nicType:this.getNicType()}:{}),void 0!==this.getNetwork()&&null!==this.getNetwork()?{network:this.getNetwork()}:{}),void 0!==this.getClusterId()&&null!==this.getClusterId()?{clusterId:this.getClusterId()}:{}),{},{$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 F?r=["network"]: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"nicType"!==t||void 0!==this.nicType&&null!==this.nicType?new R(t,"no such property exists"):new R("nicType","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,qm.constructFromObject(e,n,!0),e.hasOwnProperty("nicType")&&null!==e.nicType&&void 0!==e.nicType&&n.setNicType(Mm.constructFromObject(e.nicType)),!r))for(var o in n.$unknownFields=Gm({},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&&Zm(n.prototype,r),o&&Zm(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(qm);function ow(e){return ow="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},ow(e)}function iw(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 sw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iw(Object(n),!0).forEach(function(t){aw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aw(e,t,n){return(t=lw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uw(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,lw(r.key),r)}}function lw(e){var t=function(e){if("object"!=ow(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ow(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ow(t)?t:t+""}rw.prototype.nicType=void 0,qm.prototype.network=void 0,qm.prototype.clusterId=void 0;var cw=new WeakSet,fw=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,cw),this.$objectType="lifecycle.v4.svcmgr.VmResourceConfig",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getCpu",value:function(){return this.cpu}},{key:"setCpu",value:function(e){this.cpu=e}},{key:"getDiskMib",value:function(){return this.diskMib}},{key:"setDiskMib",value:function(e){this.diskMib=e}},{key:"getMemoryMib",value:function(){return this.memoryMib}},{key:"setMemoryMib",value:function(e){this.memoryMib=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 sw(sw(sw(sw({},void 0!==this.getCpu()&&null!==this.getCpu()?{cpu:this.getCpu()}:{}),void 0!==this.getDiskMib()&&null!==this.getDiskMib()?{diskMib:this.getDiskMib()}:{}),void 0!==this.getMemoryMib()&&null!==this.getMemoryMib()?{memoryMib:this.getMemoryMib()}:{}),{},{$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 F?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("cpu"===t){if(void 0===this.cpu||null===this.cpu)return new R("cpu","undefined or null");if(!I.validateMinimum(this.cpu,1))return new R("cpu","does not satisfy required minimum constraint: 1")}return"diskMib"!==t||void 0!==this.diskMib&&null!==this.diskMib?"memoryMib"!==t||void 0!==this.memoryMib&&null!==this.memoryMib?"$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("memoryMib","undefined or null"):new R("diskMib","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("cpu")&&null!==t.cpu&&void 0!==t.cpu&&n.setCpu(t.cpu),t.hasOwnProperty("diskMib")&&null!==t.diskMib&&void 0!==t.diskMib&&n.setDiskMib(t.diskMib),t.hasOwnProperty("memoryMib")&&null!==t.memoryMib&&void 0!==t.memoryMib&&n.setMemoryMib(t.memoryMib),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=sw({},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&&uw(t.prototype,n),r&&uw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function dw(e){return dw="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},dw(e)}function pw(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 yw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pw(Object(n),!0).forEach(function(t){hw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hw(e,t,n){return(t=bw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vw(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,bw(r.key),r)}}function bw(e){var t=function(e){if("object"!=dw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dw(t)?t:t+""}fw.prototype.cpu=void 0,fw.prototype.diskMib=void 0,fw.prototype.memoryMib=void 0,fw.prototype.$reserved=void 0,fw.prototype.$objectType=void 0,fw.prototype.$unknownFields=void 0;var gw=new WeakSet,mw=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,gw),this.networkResource=t,this.$objectType="lifecycle.v4.svcmgr.AhvResourceConfig",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getVmResource",value:function(){return this.vmResource}},{key:"setVmResource",value:function(e){this.vmResource=e}},{key:"getNetworkResource",value:function(){return this.networkResource}},{key:"setNetworkResource",value:function(e){this.networkResource=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 yw(yw(yw({},void 0!==this.getVmResource()&&null!==this.getVmResource()?{vmResource:this.getVmResource().toJson(!1)}:{}),void 0!==this.getNetworkResource()&&null!==this.getNetworkResource()?{networkResource:this.getNetworkResource().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 F?r=["networkResource"]: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"vmResource"!==t||void 0!==this.vmResource&&null!==this.vmResource?"networkResource"!==t||void 0!==this.networkResource&&null!==this.networkResource?"$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("networkResource","undefined or null"):new R("vmResource","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("vmResource")&&null!==t.vmResource&&void 0!==t.vmResource&&n.setVmResource(fw.constructFromObject(t.vmResource)),t.hasOwnProperty("networkResource")&&null!==t.networkResource&&void 0!==t.networkResource&&n.setNetworkResource(rw.constructFromObject(t.networkResource)),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=yw({},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&&vw(t.prototype,n),r&&vw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ww(e){return ww="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},ww(e)}function Ow(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 kw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ow(Object(n),!0).forEach(function(t){jw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ow(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jw(e,t,n){return(t=Pw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $w(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,Pw(r.key),r)}}function Pw(e){var t=function(e){if("object"!=ww(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ww(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ww(t)?t:t+""}function Tw(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")}mw.prototype.vmResource=void 0,mw.prototype.networkResource=void 0,mw.prototype.$reserved=void 0,mw.prototype.$objectType=void 0,mw.prototype.$unknownFields=void 0;var Fw=new WeakSet,Ew=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,Fw),this.$objectType="lifecycle.v4.svcmgr.Service",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getVersion",value:function(){return this.version}},{key:"setVersion",value:function(e){this.version=e}},{key:"getApptype",value:function(){return this.apptype}},{key:"setApptype",value:function(e){this.apptype=e}},{key:"getUuid",value:function(){return this.uuid}},{key:"setUuid",value:function(e){this.uuid=e}},{key:"getClusterUuid",value:function(){return this.clusterUuid}},{key:"setClusterUuid",value:function(e){this.clusterUuid=e}},{key:"getAction",value:function(){return this.action}},{key:"setAction",value:function(e){this.action=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getCreatedTimestamp",value:function(){return this.createdTimestamp}},{key:"setCreatedTimestamp",value:function(e){this.createdTimestamp=e}},{key:"getLastUpdatedTimestamp",value:function(){return this.lastUpdatedTimestamp}},{key:"setLastUpdatedTimestamp",value:function(e){this.lastUpdatedTimestamp=e}},{key:"getIsInactive",value:function(){return this.isInactive}},{key:"setIsInactive",value:function(e){this.isInactive=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 kw(!1===e?kw(kw(kw(kw(kw(kw(kw(kw(kw(kw({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getApptype()&&null!==this.getApptype()?{apptype:this.getApptype()}:{}),void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{}),void 0!==this.getClusterUuid()&&null!==this.getClusterUuid()?{clusterUuid:this.getClusterUuid()}:{}),void 0!==this.getAction()&&null!==this.getAction()?{action:this.getAction()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getCreatedTimestamp()&&null!==this.getCreatedTimestamp()?{createdTimestamp:Tw(Fw,this,Sw).call(this,this.getCreatedTimestamp(),!1)}:{}),void 0!==this.getLastUpdatedTimestamp()&&null!==this.getLastUpdatedTimestamp()?{lastUpdatedTimestamp:Tw(Fw,this,Sw).call(this,this.getLastUpdatedTimestamp(),!1)}:{}),void 0!==this.getIsInactive()&&null!==this.getIsInactive()?{isInactive:this.getIsInactive()}:{}):kw(kw(kw(kw(kw(kw(kw(kw(kw({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getApptype()&&null!==this.getApptype()?{apptype:this.getApptype()}:{}),void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{}),void 0!==this.getClusterUuid()&&null!==this.getClusterUuid()?{clusterUuid:this.getClusterUuid()}:{}),void 0!==this.getAction()&&null!==this.getAction()?{action:this.getAction()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getCreatedTimestamp()&&null!==this.getCreatedTimestamp()?{createdTimestamp:Tw(Fw,this,Sw).call(this,this.getCreatedTimestamp(),!1)}:{}),void 0!==this.getLastUpdatedTimestamp()&&null!==this.getLastUpdatedTimestamp()?{lastUpdatedTimestamp:Tw(Fw,this,Sw).call(this,this.getLastUpdatedTimestamp(),!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 F?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&&(void 0===this.name||null===this.name))return new R("name","undefined or null");if("version"===t){if(void 0===this.version||null===this.version)return new R("version","undefined or null");if(!I.validatePattern(this.version,/^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$/))return new R("version","does not satisfy required pattern: /^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$/")}if("apptype"===t&&(void 0===this.apptype||null===this.apptype))return new R("apptype","undefined or null");if("uuid"===t){if(void 0===this.uuid||null===this.uuid)return new R("uuid","undefined or null");if(!I.validatePattern(this.uuid,/^[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("uuid","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("clusterUuid"===t){if(void 0===this.clusterUuid||null===this.clusterUuid)return new R("clusterUuid","undefined or null");if(!I.validatePattern(this.clusterUuid,/^[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("clusterUuid","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"action"!==t||void 0!==this.action&&null!==this.action?"status"!==t||void 0!==this.status&&null!==this.status?"createdTimestamp"!==t||void 0!==this.createdTimestamp&&null!==this.createdTimestamp?"lastUpdatedTimestamp"!==t||void 0!==this.lastUpdatedTimestamp&&null!==this.lastUpdatedTimestamp?"isInactive"!==t||void 0!==this.isInactive&&null!==this.isInactive?"$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("isInactive","undefined or null"):new R("lastUpdatedTimestamp","undefined or null"):new R("createdTimestamp","undefined or null"):new R("status","undefined or null"):new R("action","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("version")&&null!==t.version&&void 0!==t.version&&n.setVersion(t.version),t.hasOwnProperty("apptype")&&null!==t.apptype&&void 0!==t.apptype&&n.setApptype(t.apptype),t.hasOwnProperty("uuid")&&null!==t.uuid&&void 0!==t.uuid&&n.setUuid(t.uuid),t.hasOwnProperty("clusterUuid")&&null!==t.clusterUuid&&void 0!==t.clusterUuid&&n.setClusterUuid(t.clusterUuid),t.hasOwnProperty("action")&&null!==t.action&&void 0!==t.action&&n.setAction(t.action),t.hasOwnProperty("status")&&null!==t.status&&void 0!==t.status&&n.setStatus(t.status),t.hasOwnProperty("createdTimestamp")&&null!==t.createdTimestamp&&void 0!==t.createdTimestamp&&n.setCreatedTimestamp(t.createdTimestamp),t.hasOwnProperty("lastUpdatedTimestamp")&&null!==t.lastUpdatedTimestamp&&void 0!==t.lastUpdatedTimestamp&&n.setLastUpdatedTimestamp(t.lastUpdatedTimestamp),t.hasOwnProperty("isInactive")&&null!==t.isInactive&&void 0!==t.isInactive&&n.setIsInactive(t.isInactive),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=kw({},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&&$w(t.prototype,n),r&&$w(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Sw(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Cw(e){return Cw="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},Cw(e)}function Iw(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 Dw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iw(Object(n),!0).forEach(function(t){Aw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Aw(e,t,n){return(t=Rw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uw(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,Rw(r.key),r)}}function Rw(e){var t=function(e){if("object"!=Cw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cw(t)?t:t+""}function xw(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")}Ew.prototype.name=void 0,Ew.prototype.version=void 0,Ew.ApptypeEnum={SERVICE:"Service",APPLICATION:"Application"},Ew.prototype.apptype=void 0,Ew.prototype.uuid=void 0,Ew.prototype.clusterUuid=void 0,Ew.prototype.action=void 0,Ew.prototype.status=void 0,Ew.prototype.createdTimestamp=void 0,Ew.prototype.lastUpdatedTimestamp=void 0,Ew.prototype.isInactive=void 0,Ew.prototype.$reserved=void 0,Ew.prototype.$objectType=void 0,Ew.prototype.$unknownFields=void 0;var Nw=new WeakSet,Mw=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,Nw),this.$objectType="lifecycle.v4.svcmgr.Application",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getVersion",value:function(){return this.version}},{key:"setVersion",value:function(e){this.version=e}},{key:"getApptype",value:function(){return this.apptype}},{key:"setApptype",value:function(e){this.apptype=e}},{key:"getUuid",value:function(){return this.uuid}},{key:"setUuid",value:function(e){this.uuid=e}},{key:"getClusterUuid",value:function(){return this.clusterUuid}},{key:"setClusterUuid",value:function(e){this.clusterUuid=e}},{key:"getAction",value:function(){return this.action}},{key:"setAction",value:function(e){this.action=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getCreatedTimestamp",value:function(){return this.createdTimestamp}},{key:"setCreatedTimestamp",value:function(e){this.createdTimestamp=e}},{key:"getLastUpdatedTimestamp",value:function(){return this.lastUpdatedTimestamp}},{key:"setLastUpdatedTimestamp",value:function(e){this.lastUpdatedTimestamp=e}},{key:"getIsInactive",value:function(){return this.isInactive}},{key:"setIsInactive",value:function(e){this.isInactive=e}},{key:"getSubServices",value:function(){return this.subServices}},{key:"setSubServices",value:function(e){this.subServices=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 Dw(Dw(!1===e?Dw(Dw(Dw(Dw(Dw(Dw(Dw(Dw(Dw(Dw({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getApptype()&&null!==this.getApptype()?{apptype:this.getApptype()}:{}),void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{}),void 0!==this.getClusterUuid()&&null!==this.getClusterUuid()?{clusterUuid:this.getClusterUuid()}:{}),void 0!==this.getAction()&&null!==this.getAction()?{action:this.getAction()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getCreatedTimestamp()&&null!==this.getCreatedTimestamp()?{createdTimestamp:xw(Nw,this,Vw).call(this,this.getCreatedTimestamp(),!1)}:{}),void 0!==this.getLastUpdatedTimestamp()&&null!==this.getLastUpdatedTimestamp()?{lastUpdatedTimestamp:xw(Nw,this,Vw).call(this,this.getLastUpdatedTimestamp(),!1)}:{}),void 0!==this.getIsInactive()&&null!==this.getIsInactive()?{isInactive:this.getIsInactive()}:{}):Dw(Dw(Dw(Dw(Dw(Dw(Dw(Dw(Dw({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getApptype()&&null!==this.getApptype()?{apptype:this.getApptype()}:{}),void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{}),void 0!==this.getClusterUuid()&&null!==this.getClusterUuid()?{clusterUuid:this.getClusterUuid()}:{}),void 0!==this.getAction()&&null!==this.getAction()?{action:this.getAction()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getCreatedTimestamp()&&null!==this.getCreatedTimestamp()?{createdTimestamp:xw(Nw,this,Vw).call(this,this.getCreatedTimestamp(),!1)}:{}),void 0!==this.getLastUpdatedTimestamp()&&null!==this.getLastUpdatedTimestamp()?{lastUpdatedTimestamp:xw(Nw,this,Vw).call(this,this.getLastUpdatedTimestamp(),!1)}:{}),void 0!==this.getSubServices()&&null!==this.getSubServices()?{subServices:this.getSubServices().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 F?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&&(void 0===this.name||null===this.name))return new R("name","undefined or null");if("version"===t){if(void 0===this.version||null===this.version)return new R("version","undefined or null");if(!I.validatePattern(this.version,/^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$/))return new R("version","does not satisfy required pattern: /^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$/")}if("apptype"===t&&(void 0===this.apptype||null===this.apptype))return new R("apptype","undefined or null");if("uuid"===t){if(void 0===this.uuid||null===this.uuid)return new R("uuid","undefined or null");if(!I.validatePattern(this.uuid,/^[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("uuid","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("clusterUuid"===t){if(void 0===this.clusterUuid||null===this.clusterUuid)return new R("clusterUuid","undefined or null");if(!I.validatePattern(this.clusterUuid,/^[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("clusterUuid","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"action"!==t||void 0!==this.action&&null!==this.action?"status"!==t||void 0!==this.status&&null!==this.status?"createdTimestamp"!==t||void 0!==this.createdTimestamp&&null!==this.createdTimestamp?"lastUpdatedTimestamp"!==t||void 0!==this.lastUpdatedTimestamp&&null!==this.lastUpdatedTimestamp?"isInactive"!==t||void 0!==this.isInactive&&null!==this.isInactive?"subServices"!==t||void 0!==this.subServices&&null!==this.subServices?"$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("subServices","undefined or null"):new R("isInactive","undefined or null"):new R("lastUpdatedTimestamp","undefined or null"):new R("createdTimestamp","undefined or null"):new R("status","undefined or null"):new R("action","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("version")&&null!==t.version&&void 0!==t.version&&s.setVersion(t.version),t.hasOwnProperty("apptype")&&null!==t.apptype&&void 0!==t.apptype&&s.setApptype(t.apptype),t.hasOwnProperty("uuid")&&null!==t.uuid&&void 0!==t.uuid&&s.setUuid(t.uuid),t.hasOwnProperty("clusterUuid")&&null!==t.clusterUuid&&void 0!==t.clusterUuid&&s.setClusterUuid(t.clusterUuid),t.hasOwnProperty("action")&&null!==t.action&&void 0!==t.action&&s.setAction(t.action),t.hasOwnProperty("status")&&null!==t.status&&void 0!==t.status&&s.setStatus(t.status),t.hasOwnProperty("createdTimestamp")&&null!==t.createdTimestamp&&void 0!==t.createdTimestamp&&s.setCreatedTimestamp(t.createdTimestamp),t.hasOwnProperty("lastUpdatedTimestamp")&&null!==t.lastUpdatedTimestamp&&void 0!==t.lastUpdatedTimestamp&&s.setLastUpdatedTimestamp(t.lastUpdatedTimestamp),t.hasOwnProperty("isInactive")&&null!==t.isInactive&&void 0!==t.isInactive&&s.setIsInactive(t.isInactive),t.hasOwnProperty("subServices")&&null!==t.subServices&&void 0!==t.subServices){for(i=[],n=t.subServices,o=0;o<n.length;o++)r=Ew.constructFromObject(n[o],void 0),i.push(r);s.setSubServices(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=Dw({},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&&Uw(t.prototype,n),r&&Uw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Vw(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function _w(e){return _w="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},_w(e)}function Lw(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 Jw(e,t,n){return(t=Bw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ww(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,Bw(r.key),r)}}function Bw(e){var t=function(e){if("object"!=_w(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_w(t)?t:t+""}function zw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(zw=function(){return!!e})()}function qw(e){return qw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qw(e)}function Kw(e,t){return Kw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kw(e,t)}Mw.prototype.name=void 0,Mw.prototype.version=void 0,Mw.ApptypeEnum={SERVICE:"Service",APPLICATION:"Application"},Mw.prototype.apptype=void 0,Mw.prototype.uuid=void 0,Mw.prototype.clusterUuid=void 0,Mw.prototype.action=void 0,Mw.prototype.status=void 0,Mw.prototype.createdTimestamp=void 0,Mw.prototype.lastUpdatedTimestamp=void 0,Mw.prototype.isInactive=void 0,Mw.prototype.subServices=void 0,Mw.prototype.$reserved=void 0,Mw.prototype.$objectType=void 0,Mw.prototype.$unknownFields=void 0;var Hw=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=qw(t),function(e,t){if(t&&("object"==_w(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,zw()?Reflect.construct(t,n||[],qw(e).constructor):t.apply(e,n))}(this,t)).$objectType="lifecycle.v4.svcmgr.ApplicationProjection",e.$reserved={$fv:"v4.r1"},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&&Kw(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 F?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,Mw.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?Lw(Object(n),!0).forEach(function(t){Jw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lw(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&&Ww(n.prototype,r),o&&Ww(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Mw);function Gw(e){return Gw="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},Gw(e)}function Xw(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 Zw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xw(Object(n),!0).forEach(function(t){Qw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qw(e,t,n){return(t=eO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yw(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,eO(r.key),r)}}function eO(e){var t=function(e){if("object"!=Gw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gw(t)?t:t+""}function tO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(tO=function(){return!!e})()}function nO(e){return nO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nO(e)}function rO(e,t){return rO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rO(e,t)}var oO=new WeakSet,iO=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=nO(t),function(e,t){if(t&&("object"==Gw(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,tO()?Reflect.construct(t,n||[],nO(e).constructor):t.apply(e,n))}(this,t),oO),e.$objectType="lifecycle.v4.svcmgr.EsxClientConfig",e.$reserved={$fv:"v4.r1"},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&&rO(e,t)}(t,e),n=t,r=[{key:"getVcenterIp",value:function(){return this.vcenterIp}},{key:"setVcenterIp",value:function(e){this.vcenterIp=e}},{key:"getVcenterPort",value:function(){return this.vcenterPort}},{key:"setVcenterPort",value:function(e){this.vcenterPort=e}},{key:"getExtensionKey",value:function(){return this.extensionKey}},{key:"setExtensionKey",value:function(e){this.extensionKey=e}},{key:"getIsInsecure",value:function(){return this.isInsecure}},{key:"setIsInsecure",value:function(e){this.isInsecure=e}},{key:"getThumbPrint",value:function(){return this.thumbPrint}},{key:"setThumbPrint",value:function(e){this.thumbPrint=e}},{key:"toJson",value:function(e){return Zw(Zw(Zw(Zw(Zw(Zw(Zw(Zw(Zw(Zw({},void 0!==this.getVcenterIp()&&null!==this.getVcenterIp()?{vcenterIp:this.getVcenterIp().toJson(!1)}:{}),void 0!==this.getVcenterPort()&&null!==this.getVcenterPort()?{vcenterPort:this.getVcenterPort()}:{}),void 0!==this.getExtensionKey()&&null!==this.getExtensionKey()?{extensionKey:this.getExtensionKey()}:{}),void 0!==this.getIsInsecure()&&null!==this.getIsInsecure()?{isInsecure:this.getIsInsecure()}:{}),void 0!==this.getThumbPrint()&&null!==this.getThumbPrint()?{thumbPrint:this.getThumbPrint()}:{}),void 0!==this.getCertificate()&&null!==this.getCertificate()?{certificate:this.getCertificate()}:{}),void 0!==this.getKey()&&null!==this.getKey()?{key:this.getKey()}:{}),void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),{},{$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 F?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("vcenterIp"===t&&(void 0===this.vcenterIp||null===this.vcenterIp))return new R("vcenterIp","undefined or null");if("vcenterPort"===t&&(void 0===this.vcenterPort||null===this.vcenterPort))return new R("vcenterPort","undefined or null");if("extensionKey"===t){if(void 0===this.extensionKey||null===this.extensionKey)return new R("extensionKey","undefined or null");if(!I.validateMinLength(this.extensionKey,1))return new R("extensionKey","does not satisfy required minLength constraint: 1")}if("isInsecure"===t&&(void 0===this.isInsecure||null===this.isInsecure))return new R("isInsecure","undefined or null");if("thumbPrint"===t){if(void 0===this.thumbPrint||null===this.thumbPrint)return new R("thumbPrint","undefined or null");if(!I.validateMinLength(this.thumbPrint,1))return new R("thumbPrint","does not satisfy required minLength constraint: 1")}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,Pm.constructFromObject(e,n,!0),e.hasOwnProperty("vcenterIp")&&null!==e.vcenterIp&&void 0!==e.vcenterIp&&n.setVcenterIp(sc.constructFromObject(e.vcenterIp)),e.hasOwnProperty("vcenterPort")&&null!==e.vcenterPort&&void 0!==e.vcenterPort&&n.setVcenterPort(e.vcenterPort),e.hasOwnProperty("extensionKey")&&null!==e.extensionKey&&void 0!==e.extensionKey&&n.setExtensionKey(e.extensionKey),e.hasOwnProperty("isInsecure")&&null!==e.isInsecure&&void 0!==e.isInsecure&&n.setIsInsecure(e.isInsecure),e.hasOwnProperty("thumbPrint")&&null!==e.thumbPrint&&void 0!==e.thumbPrint&&n.setThumbPrint(e.thumbPrint),!r))for(var o in n.$unknownFields=Zw({},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&&Yw(n.prototype,r),o&&Yw(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Pm);function sO(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 aO(e){return aO="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},aO(e)}function uO(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 lO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uO(Object(n),!0).forEach(function(t){cO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cO(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 fO(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"!=aO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=aO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==aO(t)?t:t+""}function pO(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")}iO.prototype.vcenterIp=void 0,iO.prototype.vcenterPort=void 0,iO.prototype.extensionKey=void 0,iO.prototype.isInsecure=void 0,iO.prototype.thumbPrint=void 0,Pm.prototype.certificate=void 0,Pm.prototype.key=void 0,Pm.prototype.username=void 0,Pm.prototype.password=void 0;var yO=new WeakSet,hO=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,yO),this.name=t,this.type=n,this.config=r,this.$objectType="lifecycle.v4.svcmgr.ClientConfig",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getConfig",value:function(){return this.config}},{key:"setConfig",value:function(e){this.config=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 lO(lO(lO(lO({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),!1===e?void 0!==this.getConfig()&&null!==this.getConfig()?{config:void 0!==this.getConfig().toJson?this.getConfig().toJson(!1):Array.isArray(this.getConfig())?this.getConfig().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):pO(yO,this,vO).call(this,this.getConfig(),!1)}:{}:void 0!==this.getConfig()&&null!==this.getConfig()?{config:void 0!==this.getConfig().toJson?this.getConfig().toJson():Array.isArray(this.getConfig())?this.getConfig().map(function(e){return void 0!==e.toJson?e.toJson():e}):pO(yO,this,vO).call(this,this.getConfig())}:{}),{},{$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 F?r=["name","type","config"]: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(!I.validateMinLength(this.name,1))return new R("name","does not satisfy required minLength constraint: 1")}return"type"!==t||void 0!==this.type&&null!==this.type?"config"!==t||void 0!==this.config&&null!==this.config?"$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("config","undefined or null"):new R("type","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&r.setName(t.name),t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&r.setType(t.type),t.hasOwnProperty("config")&&null!==t.config&&void 0!==t.config)switch(n=t.config.hasOwnProperty("$objectType")?t.config.$objectType:aO(t.config)){case"lifecycle.v4.svcmgr.AhvClientConfig":r.setConfig(xm.constructFromObject(t.config,void 0));break;case"lifecycle.v4.svcmgr.EsxClientConfig":r.setConfig(iO.constructFromObject(t.config,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!o)for(var i in r.$unknownFields=lO({},t.$unknownFields),t)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=t[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&fO(t.prototype,n),r&&fO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 sO(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)?sO(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"===aO(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}hO.prototype.name=void 0,hO.TypeEnum={AHV:"AHV",ESX:"ESX"},hO.prototype.type=void 0,hO.prototype.config=void 0,hO.prototype.$reserved=void 0,hO.prototype.$objectType=void 0,hO.prototype.$unknownFields=void 0;var bO={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",COMBINED:"COMBINED",SCALE_OUT:"SCALE_OUT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(bO).find(function(t){return bO[t]===e});return null==t?bO.$UNKNOWN:bO[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case bO.$UNKNOWN:case bO.$REDACTED:case bO.COMBINED:case bO.SCALE_OUT:return;default:throw new Error("Invalid : must be ClusterDeploymentType.{ $UNKNOWN|$REDACTED|COMBINED|SCALE_OUT }")}}};Object.freeze(bO);const gO=bO;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 wO(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 OO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wO(Object(n),!0).forEach(function(t){kO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kO(e,t,n){return(t=$O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jO(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,$O(r.key),r)}}function $O(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+""}var PO=new WeakSet,TO=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,PO),this.$objectType="lifecycle.v4.svcmgr.ClusterManagementIps",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getMasterVip",value:function(){return this.masterVip}},{key:"setMasterVip",value:function(e){this.masterVip=e}},{key:"getMspDnsIp",value:function(){return this.mspDnsIp}},{key:"setMspDnsIp",value:function(e){this.mspDnsIp=e}},{key:"getNetwork",value:function(){return this.network}},{key:"setNetwork",value:function(e){this.network=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 OO(OO(OO(OO({},void 0!==this.getMasterVip()&&null!==this.getMasterVip()?{masterVip:this.getMasterVip().toJson(!1)}:{}),void 0!==this.getMspDnsIp()&&null!==this.getMspDnsIp()?{mspDnsIp:this.getMspDnsIp().toJson(!1)}:{}),void 0!==this.getNetwork()&&null!==this.getNetwork()?{network:this.getNetwork()}:{}),{},{$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 F?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("masterVip"===t&&(void 0===this.masterVip||null===this.masterVip))return new R("masterVip","undefined or null");if("mspDnsIp"===t&&(void 0===this.mspDnsIp||null===this.mspDnsIp))return new R("mspDnsIp","undefined or null");if("network"===t){if(void 0===this.network||null===this.network)return new R("network","undefined or null");if(!I.validateMinLength(this.network,1))return new R("network","does not satisfy required minLength constraint: 1")}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("masterVip")&&null!==t.masterVip&&void 0!==t.masterVip&&n.setMasterVip(sc.constructFromObject(t.masterVip)),t.hasOwnProperty("mspDnsIp")&&null!==t.mspDnsIp&&void 0!==t.mspDnsIp&&n.setMspDnsIp(sc.constructFromObject(t.mspDnsIp)),t.hasOwnProperty("network")&&null!==t.network&&void 0!==t.network&&n.setNetwork(t.network),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=OO({},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&&jO(t.prototype,n),r&&jO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function FO(e){return FO="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},FO(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 SO(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){CO(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 CO(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 IO(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"!=FO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=FO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==FO(t)?t:t+""}TO.prototype.masterVip=void 0,TO.prototype.mspDnsIp=void 0,TO.prototype.network=void 0,TO.prototype.$reserved=void 0,TO.prototype.$objectType=void 0,TO.prototype.$unknownFields=void 0;var AO=new WeakSet,UO=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,AO),this.startIp=t,this.endIp=n,this.$objectType="lifecycle.v4.svcmgr.IpRange",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getStartIp",value:function(){return this.startIp}},{key:"setStartIp",value:function(e){this.startIp=e}},{key:"getEndIp",value:function(){return this.endIp}},{key:"setEndIp",value:function(e){this.endIp=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 SO(SO(SO({},void 0!==this.getStartIp()&&null!==this.getStartIp()?{startIp:this.getStartIp().toJson(!1)}:{}),void 0!==this.getEndIp()&&null!==this.getEndIp()?{endIp:this.getEndIp().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 F?r=["startIp","endIp"]: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"startIp"!==t||void 0!==this.startIp&&null!==this.startIp?"endIp"!==t||void 0!==this.endIp&&null!==this.endIp?"$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("endIp","undefined or null"):new R("startIp","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("startIp")&&null!==t.startIp&&void 0!==t.startIp&&n.setStartIp(sc.constructFromObject(t.startIp)),t.hasOwnProperty("endIp")&&null!==t.endIp&&void 0!==t.endIp&&n.setEndIp(sc.constructFromObject(t.endIp)),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=SO({},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&&IO(t.prototype,n),r&&IO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function RO(e){return RO="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},RO(e)}function xO(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 NO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xO(Object(n),!0).forEach(function(t){MO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function MO(e,t,n){return(t=_O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VO(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,_O(r.key),r)}}function _O(e){var t=function(e){if("object"!=RO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=RO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==RO(t)?t:t+""}UO.prototype.startIp=void 0,UO.prototype.endIp=void 0,UO.prototype.$reserved=void 0,UO.prototype.$objectType=void 0,UO.prototype.$unknownFields=void 0;var LO=new WeakSet,JO=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,LO),this.$objectType="lifecycle.v4.svcmgr.VcenterLocation",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getClusterName",value:function(){return this.clusterName}},{key:"setClusterName",value:function(e){this.clusterName=e}},{key:"getDatacenter",value:function(){return this.datacenter}},{key:"setDatacenter",value:function(e){this.datacenter=e}},{key:"getVcenterIp",value:function(){return this.vcenterIp}},{key:"setVcenterIp",value:function(e){this.vcenterIp=e}},{key:"getVcenterPort",value:function(){return this.vcenterPort}},{key:"setVcenterPort",value:function(e){this.vcenterPort=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 NO(NO(NO(NO(NO({},void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{}),void 0!==this.getDatacenter()&&null!==this.getDatacenter()?{datacenter:this.getDatacenter()}:{}),void 0!==this.getVcenterIp()&&null!==this.getVcenterIp()?{vcenterIp:this.getVcenterIp().toJson(!1)}:{}),void 0!==this.getVcenterPort()&&null!==this.getVcenterPort()?{vcenterPort:this.getVcenterPort()}:{}),{},{$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 F?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("clusterName"===t){if(void 0===this.clusterName||null===this.clusterName)return new R("clusterName","undefined or null");if(!I.validateMinLength(this.clusterName,1))return new R("clusterName","does not satisfy required minLength constraint: 1")}if("datacenter"===t){if(void 0===this.datacenter||null===this.datacenter)return new R("datacenter","undefined or null");if(!I.validateMinLength(this.datacenter,1))return new R("datacenter","does not satisfy required minLength constraint: 1")}return"vcenterIp"!==t||void 0!==this.vcenterIp&&null!==this.vcenterIp?"vcenterPort"!==t||void 0!==this.vcenterPort&&null!==this.vcenterPort?"$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("vcenterPort","undefined or null"):new R("vcenterIp","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("clusterName")&&null!==t.clusterName&&void 0!==t.clusterName&&n.setClusterName(t.clusterName),t.hasOwnProperty("datacenter")&&null!==t.datacenter&&void 0!==t.datacenter&&n.setDatacenter(t.datacenter),t.hasOwnProperty("vcenterIp")&&null!==t.vcenterIp&&void 0!==t.vcenterIp&&n.setVcenterIp(sc.constructFromObject(t.vcenterIp)),t.hasOwnProperty("vcenterPort")&&null!==t.vcenterPort&&void 0!==t.vcenterPort&&n.setVcenterPort(t.vcenterPort),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=NO({},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&&VO(t.prototype,n),r&&VO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function WO(e){return WO="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},WO(e)}function BO(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 zO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BO(Object(n),!0).forEach(function(t){qO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qO(e,t,n){return(t=HO(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,HO(r.key),r)}}function HO(e){var t=function(e){if("object"!=WO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=WO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==WO(t)?t:t+""}JO.prototype.clusterName=void 0,JO.prototype.datacenter=void 0,JO.prototype.vcenterIp=void 0,JO.prototype.vcenterPort=void 0,JO.prototype.$reserved=void 0,JO.prototype.$objectType=void 0,JO.prototype.$unknownFields=void 0;var GO=new WeakSet,XO=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,GO),this.name=t,this.network=n,this.$objectType="lifecycle.v4.svcmgr.ClusterNetworkConfig",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDnsServers",value:function(){return this.dnsServers}},{key:"setDnsServers",value:function(e){this.dnsServers=e}},{key:"getGatewayIp",value:function(){return this.gatewayIp}},{key:"setGatewayIp",value:function(e){this.gatewayIp=e}},{key:"getIpRanges",value:function(){return this.ipRanges}},{key:"setIpRanges",value:function(e){this.ipRanges=e}},{key:"getEsxLocation",value:function(){return this.esxLocation}},{key:"setEsxLocation",value:function(e){this.esxLocation=e}},{key:"getNetmask",value:function(){return this.netmask}},{key:"setNetmask",value:function(e){this.netmask=e}},{key:"getNetwork",value:function(){return this.network}},{key:"setNetwork",value:function(e){this.network=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 zO(zO(zO(zO(zO(zO(zO(zO({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDnsServers()&&null!==this.getDnsServers()?{dnsServers:this.getDnsServers().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getGatewayIp()&&null!==this.getGatewayIp()?{gatewayIp:this.getGatewayIp().toJson(!1)}:{}),void 0!==this.getIpRanges()&&null!==this.getIpRanges()?{ipRanges:this.getIpRanges().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getEsxLocation()&&null!==this.getEsxLocation()?{esxLocation:this.getEsxLocation().toJson(!1)}:{}),void 0!==this.getNetmask()&&null!==this.getNetmask()?{netmask:this.getNetmask().toJson(!1)}:{}),void 0!==this.getNetwork()&&null!==this.getNetwork()?{network:this.getNetwork()}:{}),{},{$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 F?r=["name","network"]: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(!I.validateMinLength(this.name,1))return new R("name","does not satisfy required minLength constraint: 1")}if("dnsServers"===t&&(void 0===this.dnsServers||null===this.dnsServers))return new R("dnsServers","undefined or null");if("gatewayIp"===t&&(void 0===this.gatewayIp||null===this.gatewayIp))return new R("gatewayIp","undefined or null");if("ipRanges"===t&&(void 0===this.ipRanges||null===this.ipRanges))return new R("ipRanges","undefined or null");if("esxLocation"===t&&(void 0===this.esxLocation||null===this.esxLocation))return new R("esxLocation","undefined or null");if("netmask"===t&&(void 0===this.netmask||null===this.netmask))return new R("netmask","undefined or null");if("network"===t){if(void 0===this.network||null===this.network)return new R("network","undefined or null");if(!I.validateMinLength(this.network,1))return new R("network","does not satisfy required minLength constraint: 1")}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("dnsServers")&&null!==t.dnsServers&&void 0!==t.dnsServers){for(i=[],n=t.dnsServers,o=0;o<n.length;o++)r=sc.constructFromObject(n[o],void 0),i.push(r);s.setDnsServers(i)}if(t.hasOwnProperty("gatewayIp")&&null!==t.gatewayIp&&void 0!==t.gatewayIp&&s.setGatewayIp(sc.constructFromObject(t.gatewayIp)),t.hasOwnProperty("ipRanges")&&null!==t.ipRanges&&void 0!==t.ipRanges){for(i=[],n=t.ipRanges,o=0;o<n.length;o++)r=UO.constructFromObject(n[o],void 0),i.push(r);s.setIpRanges(i)}if(t.hasOwnProperty("esxLocation")&&null!==t.esxLocation&&void 0!==t.esxLocation&&s.setEsxLocation(JO.constructFromObject(t.esxLocation)),t.hasOwnProperty("netmask")&&null!==t.netmask&&void 0!==t.netmask&&s.setNetmask(sc.constructFromObject(t.netmask)),t.hasOwnProperty("network")&&null!==t.network&&void 0!==t.network&&s.setNetwork(t.network),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=zO({},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&&KO(t.prototype,n),r&&KO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ZO(e){return ZO="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},ZO(e)}function QO(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 YO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QO(Object(n),!0).forEach(function(t){ek(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ek(e,t,n){return(t=nk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tk(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,nk(r.key),r)}}function nk(e){var t=function(e){if("object"!=ZO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ZO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ZO(t)?t:t+""}function rk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rk=function(){return!!e})()}function ok(e){return ok=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ok(e)}function ik(e,t){return ik=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ik(e,t)}XO.prototype.name=void 0,XO.prototype.dnsServers=void 0,XO.prototype.gatewayIp=void 0,XO.prototype.ipRanges=void 0,XO.prototype.esxLocation=void 0,XO.prototype.netmask=void 0,XO.prototype.network=void 0,XO.prototype.$reserved=void 0,XO.prototype.$objectType=void 0,XO.prototype.$unknownFields=void 0;var sk=new WeakSet,ak=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=ok(t),function(e,t){if(t&&("object"==ZO(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,rk()?Reflect.construct(t,n||[],ok(e).constructor):t.apply(e,n))}(this,t,[e]),sk),n.$objectType="lifecycle.v4.svcmgr.EsxNetworkResourceConfig",n.$reserved={$fv:"v4.r1"},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&&ik(e,t)}(t,e),n=t,r=[{key:"getLocation",value:function(){return this.location}},{key:"setLocation",value:function(e){this.location=e}},{key:"toJson",value:function(e){return YO(YO(YO(YO({},void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation().toJson(!1)}:{}),void 0!==this.getNetwork()&&null!==this.getNetwork()?{network:this.getNetwork()}:{}),void 0!==this.getClusterId()&&null!==this.getClusterId()?{clusterId:this.getClusterId()}:{}),{},{$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 F?r=["network"]: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?new R(t,"no such property exists"):new R("location","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,qm.constructFromObject(e,n,!0),e.hasOwnProperty("location")&&null!==e.location&&void 0!==e.location&&n.setLocation(JO.constructFromObject(e.location)),!r))for(var o in n.$unknownFields=YO({},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&&tk(n.prototype,r),o&&tk(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(qm);function uk(e){return uk="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},uk(e)}function lk(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 ck(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lk(Object(n),!0).forEach(function(t){fk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fk(e,t,n){return(t=pk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dk(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,pk(r.key),r)}}function pk(e){var t=function(e){if("object"!=uk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==uk(t)?t:t+""}ak.prototype.location=void 0,qm.prototype.network=void 0,qm.prototype.clusterId=void 0;var yk=new WeakSet,hk=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,yk),this.networkResource=t,this.$objectType="lifecycle.v4.svcmgr.EsxResourceConfig",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getVmResource",value:function(){return this.vmResource}},{key:"setVmResource",value:function(e){this.vmResource=e}},{key:"getNetworkResource",value:function(){return this.networkResource}},{key:"setNetworkResource",value:function(e){this.networkResource=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 ck(ck(ck({},void 0!==this.getVmResource()&&null!==this.getVmResource()?{vmResource:this.getVmResource().toJson(!1)}:{}),void 0!==this.getNetworkResource()&&null!==this.getNetworkResource()?{networkResource:this.getNetworkResource().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 F?r=["networkResource"]: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"vmResource"!==t||void 0!==this.vmResource&&null!==this.vmResource?"networkResource"!==t||void 0!==this.networkResource&&null!==this.networkResource?"$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("networkResource","undefined or null"):new R("vmResource","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("vmResource")&&null!==t.vmResource&&void 0!==t.vmResource&&n.setVmResource(fw.constructFromObject(t.vmResource)),t.hasOwnProperty("networkResource")&&null!==t.networkResource&&void 0!==t.networkResource&&n.setNetworkResource(ak.constructFromObject(t.networkResource)),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=ck({},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&&dk(t.prototype,n),r&&dk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function vk(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 bk(e){return bk="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},bk(e)}function gk(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 mk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gk(Object(n),!0).forEach(function(t){wk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wk(e,t,n){return(t=kk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ok(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,kk(r.key),r)}}function kk(e){var t=function(e){if("object"!=bk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bk(t)?t:t+""}function jk(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")}hk.prototype.vmResource=void 0,hk.prototype.networkResource=void 0,hk.prototype.$reserved=void 0,hk.prototype.$objectType=void 0,hk.prototype.$unknownFields=void 0;var $k=new WeakSet,Pk=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,$k),this.name=t,this.$objectType="lifecycle.v4.svcmgr.ClusterResourceConfig",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getResourceConfig",value:function(){return this.resourceConfig}},{key:"setResourceConfig",value:function(e){this.resourceConfig=e}},{key:"getLabels",value:function(){return this.labels}},{key:"setLabels",value:function(e){this.labels=e}},{key:"getClient",value:function(){return this.client}},{key:"setClient",value:function(e){this.client=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 mk(mk(mk(mk(mk({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),!1===e?void 0!==this.getResourceConfig()&&null!==this.getResourceConfig()?{resourceConfig:void 0!==this.getResourceConfig().toJson?this.getResourceConfig().toJson(!1):Array.isArray(this.getResourceConfig())?this.getResourceConfig().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):jk($k,this,Tk).call(this,this.getResourceConfig(),!1)}:{}:void 0!==this.getResourceConfig()&&null!==this.getResourceConfig()?{resourceConfig:void 0!==this.getResourceConfig().toJson?this.getResourceConfig().toJson():Array.isArray(this.getResourceConfig())?this.getResourceConfig().map(function(e){return void 0!==e.toJson?e.toJson():e}):jk($k,this,Tk).call(this,this.getResourceConfig())}:{}),void 0!==this.getLabels()&&null!==this.getLabels()?{labels:this.getLabels().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getClient()&&null!==this.getClient()?{client:this.getClient()}:{}),{},{$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 F?r=["name"]: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(!I.validateMinLength(this.name,1))return new R("name","does not satisfy required minLength constraint: 1")}if("resourceConfig"===t&&(void 0===this.resourceConfig||null===this.resourceConfig))return new R("resourceConfig","undefined or null");if("labels"===t&&(void 0===this.labels||null===this.labels))return new R("labels","undefined or null");if("client"===t){if(void 0===this.client||null===this.client)return new R("client","undefined or null");if(!I.validateMinLength(this.client,1))return new R("client","does not satisfy required minLength constraint: 1")}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,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("resourceConfig")&&null!==t.resourceConfig&&void 0!==t.resourceConfig)switch(s=t.resourceConfig.hasOwnProperty("$objectType")?t.resourceConfig.$objectType:bk(t.resourceConfig)){case"lifecycle.v4.svcmgr.AhvResourceConfig":a.setResourceConfig(mw.constructFromObject(t.resourceConfig,void 0));break;case"lifecycle.v4.svcmgr.EsxResourceConfig":a.setResourceConfig(hk.constructFromObject(t.resourceConfig,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(t.hasOwnProperty("labels")&&null!==t.labels&&void 0!==t.labels){for(i=[],n=t.labels,o=0;o<n.length;o++)r=Yg.constructFromObject(n[o],void 0),i.push(r);a.setLabels(i)}if(t.hasOwnProperty("client")&&null!==t.client&&void 0!==t.client&&a.setClient(t.client),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=mk({},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&&Ok(t.prototype,n),r&&Ok(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Tk(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 vk(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)?vk(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"===bk(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 Fk(e){return Fk="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},Fk(e)}function Ek(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 Sk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ek(Object(n),!0).forEach(function(t){Ck(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ek(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ck(e,t,n){return(t=Dk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ik(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,Dk(r.key),r)}}function Dk(e){var t=function(e){if("object"!=Fk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Fk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fk(t)?t:t+""}Pk.prototype.name=void 0,Pk.prototype.resourceConfig=void 0,Pk.prototype.labels=void 0,Pk.prototype.client=void 0,Pk.prototype.$reserved=void 0,Pk.prototype.$objectType=void 0,Pk.prototype.$unknownFields=void 0;var Ak=new WeakSet,Uk=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,Ak),this.clusterRef=t,this.$objectType="lifecycle.v4.svcmgr.NutanixStorageClass",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getClusterRef",value:function(){return this.clusterRef}},{key:"setClusterRef",value:function(e){this.clusterRef=e}},{key:"getIsFlashMode",value:function(){return this.isFlashMode}},{key:"setIsFlashMode",value:function(e){this.isFlashMode=e}},{key:"getFileSystem",value:function(){return this.fileSystem}},{key:"setFileSystem",value:function(e){this.fileSystem=e}},{key:"getStorageContainer",value:function(){return this.storageContainer}},{key:"setStorageContainer",value:function(e){this.storageContainer=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 Sk(Sk(Sk(Sk(Sk({},void 0!==this.getClusterRef()&&null!==this.getClusterRef()?{clusterRef:this.getClusterRef()}:{}),void 0!==this.getIsFlashMode()&&null!==this.getIsFlashMode()?{isFlashMode:this.getIsFlashMode()}:{}),void 0!==this.getFileSystem()&&null!==this.getFileSystem()?{fileSystem:this.getFileSystem()}:{}),void 0!==this.getStorageContainer()&&null!==this.getStorageContainer()?{storageContainer:this.getStorageContainer()}:{}),{},{$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 F?r=["clusterRef"]: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("clusterRef"===t){if(void 0===this.clusterRef||null===this.clusterRef)return new R("clusterRef","undefined or null");if(!I.validatePattern(this.clusterRef,/^[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("clusterRef","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"isFlashMode"!==t||void 0!==this.isFlashMode&&null!==this.isFlashMode?"fileSystem"!==t||void 0!==this.fileSystem&&null!==this.fileSystem?"storageContainer"!==t||void 0!==this.storageContainer&&null!==this.storageContainer?"$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("storageContainer","undefined or null"):new R("fileSystem","undefined or null"):new R("isFlashMode","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("clusterRef")&&null!==t.clusterRef&&void 0!==t.clusterRef&&n.setClusterRef(t.clusterRef),t.hasOwnProperty("isFlashMode")&&null!==t.isFlashMode&&void 0!==t.isFlashMode&&n.setIsFlashMode(t.isFlashMode),t.hasOwnProperty("fileSystem")&&null!==t.fileSystem&&void 0!==t.fileSystem&&n.setFileSystem(t.fileSystem),t.hasOwnProperty("storageContainer")&&null!==t.storageContainer&&void 0!==t.storageContainer&&n.setStorageContainer(t.storageContainer),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=Sk({},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&&Ik(t.prototype,n),r&&Ik(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Rk(e){return Rk="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},Rk(e)}function xk(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 Nk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xk(Object(n),!0).forEach(function(t){Mk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mk(e,t,n){return(t=_k(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vk(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,_k(r.key),r)}}function _k(e){var t=function(e){if("object"!=Rk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rk(t)?t:t+""}Uk.prototype.clusterRef=void 0,Uk.prototype.isFlashMode=void 0,Uk.prototype.fileSystem=void 0,Uk.prototype.storageContainer=void 0,Uk.prototype.$reserved=void 0,Uk.prototype.$objectType=void 0,Uk.prototype.$unknownFields=void 0;var Lk=new WeakSet,Jk=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,Lk),this.name=t,this.$objectType="lifecycle.v4.svcmgr.ClusterStorageClass",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{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:"getMountOptions",value:function(){return this.mountOptions}},{key:"setMountOptions",value:function(e){this.mountOptions=e}},{key:"getReclaimPolicy",value:function(){return this.reclaimPolicy}},{key:"setReclaimPolicy",value:function(e){this.reclaimPolicy=e}},{key:"getStorageType",value:function(){return this.storageType}},{key:"setStorageType",value:function(e){this.storageType=e}},{key:"getIsDefaultStorageClass",value:function(){return this.isDefaultStorageClass}},{key:"setIsDefaultStorageClass",value:function(e){this.isDefaultStorageClass=e}},{key:"getNutanixStorageClass",value:function(){return this.nutanixStorageClass}},{key:"setNutanixStorageClass",value:function(e){this.nutanixStorageClass=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 Nk(Nk(Nk(Nk(Nk(Nk(Nk(Nk({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getMountOptions()&&null!==this.getMountOptions()?{mountOptions:this.getMountOptions()}:{}),void 0!==this.getReclaimPolicy()&&null!==this.getReclaimPolicy()?{reclaimPolicy:this.getReclaimPolicy()}:{}),void 0!==this.getStorageType()&&null!==this.getStorageType()?{storageType:this.getStorageType()}:{}),void 0!==this.getIsDefaultStorageClass()&&null!==this.getIsDefaultStorageClass()?{isDefaultStorageClass:this.getIsDefaultStorageClass()}:{}),void 0!==this.getNutanixStorageClass()&&null!==this.getNutanixStorageClass()?{nutanixStorageClass:this.getNutanixStorageClass().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 F?r=["name"]: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"name"!==t||void 0!==this.name&&null!==this.name?"description"!==t||void 0!==this.description&&null!==this.description?"mountOptions"!==t||void 0!==this.mountOptions&&null!==this.mountOptions?"reclaimPolicy"!==t||void 0!==this.reclaimPolicy&&null!==this.reclaimPolicy?"storageType"!==t||void 0!==this.storageType&&null!==this.storageType?"isDefaultStorageClass"!==t||void 0!==this.isDefaultStorageClass&&null!==this.isDefaultStorageClass?"nutanixStorageClass"!==t||void 0!==this.nutanixStorageClass&&null!==this.nutanixStorageClass?"$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("nutanixStorageClass","undefined or null"):new R("isDefaultStorageClass","undefined or null"):new R("storageType","undefined or null"):new R("reclaimPolicy","undefined or null"):new R("mountOptions","undefined or null"):new R("description","undefined or null"):new R("name","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("description")&&null!==t.description&&void 0!==t.description&&n.setDescription(t.description),t.hasOwnProperty("mountOptions")&&null!==t.mountOptions&&void 0!==t.mountOptions&&n.setMountOptions(t.mountOptions),t.hasOwnProperty("reclaimPolicy")&&null!==t.reclaimPolicy&&void 0!==t.reclaimPolicy&&n.setReclaimPolicy(t.reclaimPolicy),t.hasOwnProperty("storageType")&&null!==t.storageType&&void 0!==t.storageType&&n.setStorageType(t.storageType),t.hasOwnProperty("isDefaultStorageClass")&&null!==t.isDefaultStorageClass&&void 0!==t.isDefaultStorageClass&&n.setIsDefaultStorageClass(t.isDefaultStorageClass),t.hasOwnProperty("nutanixStorageClass")&&null!==t.nutanixStorageClass&&void 0!==t.nutanixStorageClass&&n.setNutanixStorageClass(Uk.constructFromObject(t.nutanixStorageClass)),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=Nk({},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&&Vk(t.prototype,n),r&&Vk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Jk.prototype.name=void 0,Jk.prototype.description=void 0,Jk.prototype.mountOptions=void 0,Jk.prototype.reclaimPolicy=void 0,Jk.prototype.storageType=void 0,Jk.prototype.isDefaultStorageClass=void 0,Jk.prototype.nutanixStorageClass=void 0,Jk.prototype.$reserved=void 0,Jk.prototype.$objectType=void 0,Jk.prototype.$unknownFields=void 0;var Wk={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CMSP:"CMSP",SMSP:"SMSP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Wk).find(function(t){return Wk[t]===e});return null==t?Wk.$UNKNOWN:Wk[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Wk.$UNKNOWN:case Wk.$REDACTED:case Wk.CMSP:case Wk.SMSP:return;default:throw new Error("Invalid : must be ClusterType.{ $UNKNOWN|$REDACTED|CMSP|SMSP }")}}};Object.freeze(Wk);const Bk=Wk;function zk(e){return zk="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},zk(e)}function qk(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 Kk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qk(Object(n),!0).forEach(function(t){Hk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hk(e,t,n){return(t=Xk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gk(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,Xk(r.key),r)}}function Xk(e){var t=function(e){if("object"!=zk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zk(t)?t:t+""}var Zk=new WeakSet,Qk=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,Zk),this.numInstances=t,this.resourceConfigName=n,this.$objectType="lifecycle.v4.svcmgr.Config",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getNumInstances",value:function(){return this.numInstances}},{key:"setNumInstances",value:function(e){this.numInstances=e}},{key:"getResourceConfigName",value:function(){return this.resourceConfigName}},{key:"setResourceConfigName",value:function(e){this.resourceConfigName=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 Kk(Kk(Kk({},void 0!==this.getNumInstances()&&null!==this.getNumInstances()?{numInstances:this.getNumInstances()}:{}),void 0!==this.getResourceConfigName()&&null!==this.getResourceConfigName()?{resourceConfigName:this.getResourceConfigName()}:{}),{},{$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 F?r=["numInstances","resourceConfigName"]: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("numInstances"===t){if(void 0===this.numInstances||null===this.numInstances)return new R("numInstances","undefined or null");if(!I.validateMaximum(this.numInstances,1024))return new R("numInstances","does not satisfy required maximum constraint: 1024");if(!I.validateMinimum(this.numInstances,1))return new R("numInstances","does not satisfy required minimum constraint: 1")}return"resourceConfigName"!==t||void 0!==this.resourceConfigName&&null!==this.resourceConfigName?"$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("resourceConfigName","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("numInstances")&&null!==t.numInstances&&void 0!==t.numInstances&&n.setNumInstances(t.numInstances),t.hasOwnProperty("resourceConfigName")&&null!==t.resourceConfigName&&void 0!==t.resourceConfigName&&n.setResourceConfigName(t.resourceConfigName),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=Kk({},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&&Gk(t.prototype,n),r&&Gk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Yk(e){return Yk="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},Yk(e)}function ej(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 tj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ej(Object(n),!0).forEach(function(t){nj(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ej(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nj(e,t,n){return(t=oj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rj(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,oj(r.key),r)}}function oj(e){var t=function(e){if("object"!=Yk(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yk(t)?t:t+""}Qk.prototype.numInstances=void 0,Qk.prototype.resourceConfigName=void 0,Qk.prototype.$reserved=void 0,Qk.prototype.$objectType=void 0,Qk.prototype.$unknownFields=void 0;var ij=new WeakSet,sj=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,ij),this.subnet=t,this.network=n,this.$objectType="lifecycle.v4.svcmgr.LoadBalancerAccessInterface",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getCidr",value:function(){return this.cidr}},{key:"setCidr",value:function(e){this.cidr=e}},{key:"getIps",value:function(){return this.ips}},{key:"setIps",value:function(e){this.ips=e}},{key:"getSubnet",value:function(){return this.subnet}},{key:"setSubnet",value:function(e){this.subnet=e}},{key:"getNetwork",value:function(){return this.network}},{key:"setNetwork",value:function(e){this.network=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 tj(tj(tj(tj(tj({},void 0!==this.getCidr()&&null!==this.getCidr()?{cidr:this.getCidr()}:{}),void 0!==this.getIps()&&null!==this.getIps()?{ips:this.getIps().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getSubnet()&&null!==this.getSubnet()?{subnet:this.getSubnet()}:{}),void 0!==this.getNetwork()&&null!==this.getNetwork()?{network:this.getNetwork()}:{}),{},{$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 F?r=["subnet","network"]: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("cidr"===t){if(void 0===this.cidr||null===this.cidr)return new R("cidr","undefined or null");if(!I.validatePattern(this.cidr,/^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/))return new R("cidr","does not satisfy required pattern: /^([0-9]{1,3}\\.){3}[0-9]{1,3}(/([0-9]|[1-2][0-9]|3[0-2]))?$/")}return"ips"!==t||void 0!==this.ips&&null!==this.ips?"subnet"!==t||void 0!==this.subnet&&null!==this.subnet?"network"!==t||void 0!==this.network&&null!==this.network?"$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("network","undefined or null"):new R("subnet","undefined or null"):new R("ips","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("cidr")&&null!==t.cidr&&void 0!==t.cidr&&s.setCidr(t.cidr),t.hasOwnProperty("ips")&&null!==t.ips&&void 0!==t.ips){for(i=[],n=t.ips,o=0;o<n.length;o++)r=sc.constructFromObject(n[o],void 0),i.push(r);s.setIps(i)}if(t.hasOwnProperty("subnet")&&null!==t.subnet&&void 0!==t.subnet&&s.setSubnet(t.subnet),t.hasOwnProperty("network")&&null!==t.network&&void 0!==t.network&&s.setNetwork(t.network),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=tj({},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&&rj(t.prototype,n),r&&rj(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function aj(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 uj(e){return uj="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},uj(e)}function lj(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 cj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lj(Object(n),!0).forEach(function(t){fj(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fj(e,t,n){return(t=pj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dj(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,pj(r.key),r)}}function pj(e){var t=function(e){if("object"!=uj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==uj(t)?t:t+""}function yj(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")}sj.prototype.cidr=void 0,sj.prototype.ips=void 0,sj.prototype.subnet=void 0,sj.prototype.network=void 0,sj.prototype.$reserved=void 0,sj.prototype.$objectType=void 0,sj.prototype.$unknownFields=void 0;var hj=new WeakSet,vj=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,hj),this.accessInterfaces=t,this.$objectType="lifecycle.v4.svcmgr.LoadBalancerNetworkConfig",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getVmNetworkConfig",value:function(){return this.vmNetworkConfig}},{key:"setVmNetworkConfig",value:function(e){this.vmNetworkConfig=e}},{key:"getAccessInterfaces",value:function(){return this.accessInterfaces}},{key:"setAccessInterfaces",value:function(e){this.accessInterfaces=e}},{key:"getClient",value:function(){return this.client}},{key:"setClient",value:function(e){this.client=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 cj(cj(cj(cj({},!1===e?void 0!==this.getVmNetworkConfig()&&null!==this.getVmNetworkConfig()?{vmNetworkConfig:void 0!==this.getVmNetworkConfig().toJson?this.getVmNetworkConfig().toJson(!1):Array.isArray(this.getVmNetworkConfig())?this.getVmNetworkConfig().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):yj(hj,this,bj).call(this,this.getVmNetworkConfig(),!1)}:{}:void 0!==this.getVmNetworkConfig()&&null!==this.getVmNetworkConfig()?{vmNetworkConfig:void 0!==this.getVmNetworkConfig().toJson?this.getVmNetworkConfig().toJson():Array.isArray(this.getVmNetworkConfig())?this.getVmNetworkConfig().map(function(e){return void 0!==e.toJson?e.toJson():e}):yj(hj,this,bj).call(this,this.getVmNetworkConfig())}:{}),void 0!==this.getAccessInterfaces()&&null!==this.getAccessInterfaces()?{accessInterfaces:this.getAccessInterfaces().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getClient()&&null!==this.getClient()?{client:this.getClient()}:{}),{},{$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 F?r=["accessInterfaces"]: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"vmNetworkConfig"!==t||void 0!==this.vmNetworkConfig&&null!==this.vmNetworkConfig?"accessInterfaces"!==t||void 0!==this.accessInterfaces&&null!==this.accessInterfaces?"client"!==t||void 0!==this.client&&null!==this.client?"$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("client","undefined or null"):new R("accessInterfaces","undefined or null"):new R("vmNetworkConfig","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("vmNetworkConfig")&&null!==t.vmNetworkConfig&&void 0!==t.vmNetworkConfig)switch(s=t.vmNetworkConfig.hasOwnProperty("$objectType")?t.vmNetworkConfig.$objectType:uj(t.vmNetworkConfig)){case"lifecycle.v4.svcmgr.AhvNetworkResourceConfig":a.setVmNetworkConfig(rw.constructFromObject(t.vmNetworkConfig,void 0));break;case"lifecycle.v4.svcmgr.EsxNetworkResourceConfig":a.setVmNetworkConfig(ak.constructFromObject(t.vmNetworkConfig,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(t.hasOwnProperty("accessInterfaces")&&null!==t.accessInterfaces&&void 0!==t.accessInterfaces){for(i=[],n=t.accessInterfaces,o=0;o<n.length;o++)r=sj.constructFromObject(n[o],void 0),i.push(r);a.setAccessInterfaces(i)}if(t.hasOwnProperty("client")&&null!==t.client&&void 0!==t.client&&a.setClient(t.client),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=cj({},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&&dj(t.prototype,n),r&&dj(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function bj(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 aj(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)?aj(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"===uj(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 gj(e){return gj="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},gj(e)}function mj(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 wj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mj(Object(n),!0).forEach(function(t){Oj(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Oj(e,t,n){return(t=jj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kj(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,jj(r.key),r)}}function jj(e){var t=function(e){if("object"!=gj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gj(t)?t:t+""}vj.prototype.vmNetworkConfig=void 0,vj.prototype.accessInterfaces=void 0,vj.prototype.client=void 0,vj.prototype.$reserved=void 0,vj.prototype.$objectType=void 0,vj.prototype.$unknownFields=void 0;var $j=new WeakSet,Pj=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,$j),this.$objectType="lifecycle.v4.svcmgr.LoadBalancer",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getNetworkConfig",value:function(){return this.networkConfig}},{key:"setNetworkConfig",value:function(e){this.networkConfig=e}},{key:"getId",value:function(){return this.id}},{key:"setId",value:function(e){this.id=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 wj(!1===e?wj(wj({},void 0!==this.getNetworkConfig()&&null!==this.getNetworkConfig()?{networkConfig:this.getNetworkConfig().toJson(!1)}:{}),void 0!==this.getId()&&null!==this.getId()?{id:this.getId()}:{}):wj({},void 0!==this.getNetworkConfig()&&null!==this.getNetworkConfig()?{networkConfig:this.getNetworkConfig().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 F?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"networkConfig"!==t||void 0!==this.networkConfig&&null!==this.networkConfig?"id"!==t||void 0!==this.id&&null!==this.id?"$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("id","undefined or null"):new R("networkConfig","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("networkConfig")&&null!==t.networkConfig&&void 0!==t.networkConfig&&n.setNetworkConfig(vj.constructFromObject(t.networkConfig)),t.hasOwnProperty("id")&&null!==t.id&&void 0!==t.id&&n.setId(t.id),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=wj({},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&&kj(t.prototype,n),r&&kj(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Pj.prototype.networkConfig=void 0,Pj.prototype.id=void 0,Pj.prototype.$reserved=void 0,Pj.prototype.$objectType=void 0,Pj.prototype.$unknownFields=void 0;var Tj={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",STATIC:"STATIC",DYNAMIC:"DYNAMIC",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Tj).find(function(t){return Tj[t]===e});return null==t?Tj.$UNKNOWN:Tj[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Tj.$UNKNOWN:case Tj.$REDACTED:case Tj.STATIC:case Tj.DYNAMIC:return;default:throw new Error("Invalid : must be LoadBalancerConfigType.{ $UNKNOWN|$REDACTED|STATIC|DYNAMIC }")}}};Object.freeze(Tj);const Fj=Tj;function Ej(e){return Ej="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},Ej(e)}function Sj(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 Cj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sj(Object(n),!0).forEach(function(t){Ij(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ij(e,t,n){return(t=Aj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dj(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,Aj(r.key),r)}}function Aj(e){var t=function(e){if("object"!=Ej(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ej(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ej(t)?t:t+""}function Uj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Uj=function(){return!!e})()}function Rj(e){return Rj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rj(e)}function xj(e,t){return xj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xj(e,t)}var Nj=new WeakSet,Mj=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=Rj(t),function(e,t){if(t&&("object"==Ej(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,Uj()?Reflect.construct(t,n||[],Rj(e).constructor):t.apply(e,n))}(this,t),Nj),e.$objectType="lifecycle.v4.svcmgr.LoadBalancerResourceConfig",e.$reserved={$fv:"v4.r1"},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&&xj(e,t)}(t,e),n=t,r=[{key:"getGoldImageRef",value:function(){return this.goldImageRef}},{key:"setGoldImageRef",value:function(e){this.goldImageRef=e}},{key:"getGoldImageVersion",value:function(){return this.goldImageVersion}},{key:"setGoldImageVersion",value:function(e){this.goldImageVersion=e}},{key:"getLabels",value:function(){return this.labels}},{key:"setLabels",value:function(e){this.labels=e}},{key:"toJson",value:function(e){return Cj(Cj(Cj(Cj(Cj(Cj(Cj({},void 0!==this.getGoldImageRef()&&null!==this.getGoldImageRef()?{goldImageRef:this.getGoldImageRef()}:{}),void 0!==this.getGoldImageVersion()&&null!==this.getGoldImageVersion()?{goldImageVersion:this.getGoldImageVersion()}:{}),void 0!==this.getLabels()&&null!==this.getLabels()?{labels:this.getLabels().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getCpu()&&null!==this.getCpu()?{cpu:this.getCpu()}:{}),void 0!==this.getDiskMib()&&null!==this.getDiskMib()?{diskMib:this.getDiskMib()}:{}),void 0!==this.getMemoryMib()&&null!==this.getMemoryMib()?{memoryMib:this.getMemoryMib()}:{}),{},{$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 F?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"goldImageRef"!==t||void 0!==this.goldImageRef&&null!==this.goldImageRef?"goldImageVersion"!==t||void 0!==this.goldImageVersion&&null!==this.goldImageVersion?"labels"!==t||void 0!==this.labels&&null!==this.labels?new R(t,"no such property exists"):new R("labels","undefined or null"):new R("goldImageVersion","undefined or null"):new R("goldImageRef","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,fw.constructFromObject(e,s,!0),e.hasOwnProperty("goldImageRef")&&null!==e.goldImageRef&&void 0!==e.goldImageRef&&s.setGoldImageRef(e.goldImageRef),e.hasOwnProperty("goldImageVersion")&&null!==e.goldImageVersion&&void 0!==e.goldImageVersion&&s.setGoldImageVersion(e.goldImageVersion),e.hasOwnProperty("labels")&&null!==e.labels&&void 0!==e.labels){for(i=[],n=e.labels,o=0;o<n.length;o++)r=Yg.constructFromObject(n[o],void 0),i.push(r);s.setLabels(i)}if(!a)for(var u in s.$unknownFields=Cj({},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&&Dj(n.prototype,r),o&&Dj(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(fw);Mj.prototype.goldImageRef=void 0,Mj.prototype.goldImageVersion=void 0,Mj.prototype.labels=void 0,fw.prototype.cpu=void 0,fw.prototype.diskMib=void 0,fw.prototype.memoryMib=void 0;var Vj={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VM:"VM",CONTAINER_MASTERS:"CONTAINER_MASTERS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Vj).find(function(t){return Vj[t]===e});return null==t?Vj.$UNKNOWN:Vj[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Vj.$UNKNOWN:case Vj.$REDACTED:case Vj.VM:case Vj.CONTAINER_MASTERS:return;default:throw new Error("Invalid : must be LoadBalancerType.{ $UNKNOWN|$REDACTED|VM|CONTAINER_MASTERS }")}}};Object.freeze(Vj);const _j=Vj;function Lj(e){return Lj="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},Lj(e)}function Jj(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 Wj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jj(Object(n),!0).forEach(function(t){Bj(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bj(e,t,n){return(t=qj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zj(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,qj(r.key),r)}}function qj(e){var t=function(e){if("object"!=Lj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lj(t)?t:t+""}var Kj=new WeakSet,Hj=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,Kj),this.name=t,this.instances=n,this.$objectType="lifecycle.v4.svcmgr.LoadBalancerConfigObject",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getInstances",value:function(){return this.instances}},{key:"setInstances",value:function(e){this.instances=e}},{key:"getConfigType",value:function(){return this.configType}},{key:"setConfigType",value:function(e){this.configType=e}},{key:"getResourceConfig",value:function(){return this.resourceConfig}},{key:"setResourceConfig",value:function(e){this.resourceConfig=e}},{key:"getMspUuid",value:function(){return this.mspUuid}},{key:"setMspUuid",value:function(e){this.mspUuid=e}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getAction",value:function(){return this.action}},{key:"setAction",value:function(e){this.action=e}},{key:"getKind",value:function(){return this.kind}},{key:"setKind",value:function(e){this.kind=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 Wj(Wj(Wj(Wj(Wj(Wj(Wj(Wj(Wj({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getInstances()&&null!==this.getInstances()?{instances:this.getInstances().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getConfigType()&&null!==this.getConfigType()?{configType:this.getConfigType()}:{}),void 0!==this.getResourceConfig()&&null!==this.getResourceConfig()?{resourceConfig:this.getResourceConfig().toJson(!1)}:{}),void 0!==this.getMspUuid()&&null!==this.getMspUuid()?{mspUuid:this.getMspUuid()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getAction()&&null!==this.getAction()?{Action:this.getAction()}:{}),void 0!==this.getKind()&&null!==this.getKind()?{Kind:this.getKind()}:{}),{},{$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 F?r=["name","instances"]: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(!I.validateMaxLength(this.name,16))return new R("name","does not satisfy required maxLength constraint: 16");if(!I.validateMinLength(this.name,1))return new R("name","does not satisfy required minLength constraint: 1");if(!I.validatePattern(this.name,/^(([a-z]|[a-z][a-z0-9-]*[a-z0-9]))*([a-z]|[a-z][a-z0-9-]*[a-z0-9])$/))return new R("name","does not satisfy required pattern: /^(([a-z]|[a-z][a-z0-9-]*[a-z0-9]))*([a-z]|[a-z][a-z0-9-]*[a-z0-9])$/")}if("instances"===t){if(void 0===this.instances||null===this.instances)return new R("instances","undefined or null");if(!I.validateMaxItems(this.instances,16))return new R("instances","does not satisfy required maxItems constraint: 16");if(!I.validateMinItems(this.instances,1))return new R("instances","does not satisfy required minItems constraint: 1")}if("configType"===t&&(void 0===this.configType||null===this.configType))return new R("configType","undefined or null");if("resourceConfig"===t&&(void 0===this.resourceConfig||null===this.resourceConfig))return new R("resourceConfig","undefined or null");if("mspUuid"===t){if(void 0===this.mspUuid||null===this.mspUuid)return new R("mspUuid","undefined or null");if(!I.validatePattern(this.mspUuid,/^[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("mspUuid","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"type"!==t||void 0!==this.type&&null!==this.type?"action"!==t||void 0!==this.action&&null!==this.action?"kind"!==t||void 0!==this.kind&&null!==this.kind?"$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("kind","undefined or null"):new R("action","undefined or null"):new R("type","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("instances")&&null!==t.instances&&void 0!==t.instances){for(i=[],n=t.instances,o=0;o<n.length;o++)r=Pj.constructFromObject(n[o],void 0),i.push(r);s.setInstances(i)}if(t.hasOwnProperty("configType")&&null!==t.configType&&void 0!==t.configType&&s.setConfigType(Fj.constructFromObject(t.configType)),t.hasOwnProperty("resourceConfig")&&null!==t.resourceConfig&&void 0!==t.resourceConfig&&s.setResourceConfig(Mj.constructFromObject(t.resourceConfig)),t.hasOwnProperty("mspUuid")&&null!==t.mspUuid&&void 0!==t.mspUuid&&s.setMspUuid(t.mspUuid),t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&s.setType(_j.constructFromObject(t.type)),t.hasOwnProperty("Action")&&null!==t.Action&&void 0!==t.Action&&s.setAction(t.Action),t.hasOwnProperty("Kind")&&null!==t.Kind&&void 0!==t.Kind&&s.setKind(t.Kind),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=Wj({},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&&zj(t.prototype,n),r&&zj(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Gj(e){return Gj="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},Gj(e)}function Xj(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 Zj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xj(Object(n),!0).forEach(function(t){Qj(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qj(e,t,n){return(t=e$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yj(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,e$(r.key),r)}}function e$(e){var t=function(e){if("object"!=Gj(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gj(t)?t:t+""}Hj.prototype.name=void 0,Hj.prototype.instances=void 0,Hj.prototype.configType=void 0,Hj.prototype.resourceConfig=void 0,Hj.prototype.mspUuid=void 0,Hj.prototype.type=void 0,Hj.ActionEnum={DEPLOY:"deploy"},Hj.prototype.action=void 0,Hj.KindEnum={ENVOYPROXY:"envoyproxy"},Hj.prototype.kind=void 0,Hj.prototype.$reserved=void 0,Hj.prototype.$objectType=void 0,Hj.prototype.$unknownFields=void 0;var t$=new WeakSet,n$=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,t$),this.loadBalancerConfigItems=t,this.$objectType="lifecycle.v4.svcmgr.LoadBalancerConfig",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getLoadBalancerConfigItems",value:function(){return this.loadBalancerConfigItems}},{key:"setLoadBalancerConfigItems",value:function(e){this.loadBalancerConfigItems=e}},{key:"getVersion",value:function(){return this.version}},{key:"setVersion",value:function(e){this.version=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 Zj(Zj(Zj({},void 0!==this.getLoadBalancerConfigItems()&&null!==this.getLoadBalancerConfigItems()?{loadBalancerConfigItems:this.getLoadBalancerConfigItems().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),{},{$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 F?r=["loadBalancerConfigItems"]: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"loadBalancerConfigItems"!==t||void 0!==this.loadBalancerConfigItems&&null!==this.loadBalancerConfigItems?"version"!==t||void 0!==this.version&&null!==this.version?"$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("version","undefined or null"):new R("loadBalancerConfigItems","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("loadBalancerConfigItems")&&null!==t.loadBalancerConfigItems&&void 0!==t.loadBalancerConfigItems){for(i=[],n=t.loadBalancerConfigItems,o=0;o<n.length;o++)r=Hj.constructFromObject(n[o],void 0),i.push(r);s.setLoadBalancerConfigItems(i)}if(t.hasOwnProperty("version")&&null!==t.version&&void 0!==t.version&&s.setVersion(t.version),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=Zj({},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&&Yj(t.prototype,n),r&&Yj(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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)}function o$(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 i$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o$(Object(n),!0).forEach(function(t){s$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s$(e,t,n){return(t=u$(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,u$(r.key),r)}}function u$(e){var t=function(e){if("object"!=r$(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r$(t)?t:t+""}n$.prototype.loadBalancerConfigItems=void 0,n$.prototype.version=void 0,n$.prototype.$reserved=void 0,n$.prototype.$objectType=void 0,n$.prototype.$unknownFields=void 0;var l$=new WeakSet,c$=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,l$),this.mountPath=t,this.sizeMb=n,this.storageConfigName=r,this.$objectType="lifecycle.v4.svcmgr.LoggingVolumeConfig",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getMountPath",value:function(){return this.mountPath}},{key:"setMountPath",value:function(e){this.mountPath=e}},{key:"getSizeMb",value:function(){return this.sizeMb}},{key:"setSizeMb",value:function(e){this.sizeMb=e}},{key:"getStorageConfigName",value:function(){return this.storageConfigName}},{key:"setStorageConfigName",value:function(e){this.storageConfigName=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 i$(i$(i$(i$({},void 0!==this.getMountPath()&&null!==this.getMountPath()?{mountPath:this.getMountPath()}:{}),void 0!==this.getSizeMb()&&null!==this.getSizeMb()?{sizeMb:this.getSizeMb()}:{}),void 0!==this.getStorageConfigName()&&null!==this.getStorageConfigName()?{storageConfigName:this.getStorageConfigName()}:{}),{},{$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 F?r=["mountPath","sizeMb","storageConfigName"]: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("mountPath"===t&&(void 0===this.mountPath||null===this.mountPath))return new R("mountPath","undefined or null");if("sizeMb"===t&&(void 0===this.sizeMb||null===this.sizeMb))return new R("sizeMb","undefined or null");if("storageConfigName"===t){if(void 0===this.storageConfigName||null===this.storageConfigName)return new R("storageConfigName","undefined or null");if(!I.validateMaxLength(this.storageConfigName,64))return new R("storageConfigName","does not satisfy required maxLength constraint: 64");if(!I.validateMinLength(this.storageConfigName,1))return new R("storageConfigName","does not satisfy required minLength constraint: 1")}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("mountPath")&&null!==t.mountPath&&void 0!==t.mountPath&&n.setMountPath(t.mountPath),t.hasOwnProperty("sizeMb")&&null!==t.sizeMb&&void 0!==t.sizeMb&&n.setSizeMb(t.sizeMb),t.hasOwnProperty("storageConfigName")&&null!==t.storageConfigName&&void 0!==t.storageConfigName&&n.setStorageConfigName(t.storageConfigName),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=i$({},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&&a$(t.prototype,n),r&&a$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 d$(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 p$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d$(Object(n),!0).forEach(function(t){y$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y$(e,t,n){return(t=v$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h$(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,v$(r.key),r)}}function v$(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 b$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b$=function(){return!!e})()}function g$(e){return g$=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g$(e)}function m$(e,t){return m$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m$(e,t)}c$.prototype.mountPath=void 0,c$.prototype.sizeMb=void 0,c$.prototype.storageConfigName=void 0,c$.prototype.$reserved=void 0,c$.prototype.$objectType=void 0,c$.prototype.$unknownFields=void 0;var w$=new WeakSet,O$=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=g$(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,b$()?Reflect.construct(t,n||[],g$(e).constructor):t.apply(e,n))}(this,t),w$),r.name=e,r.controlPlaneConfig=n,r.$objectType="lifecycle.v4.svcmgr.Cluster",r.$reserved={$fv:"v4.r1"},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&&m$(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:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getClusterType",value:function(){return this.clusterType}},{key:"setClusterType",value:function(e){this.clusterType=e}},{key:"getDomain",value:function(){return this.domain}},{key:"setDomain",value:function(e){this.domain=e}},{key:"getDeploymentType",value:function(){return this.deploymentType}},{key:"setDeploymentType",value:function(e){this.deploymentType=e}},{key:"getManagementIps",value:function(){return this.managementIps}},{key:"setManagementIps",value:function(e){this.managementIps=e}},{key:"getWorkerConfigs",value:function(){return this.workerConfigs}},{key:"setWorkerConfigs",value:function(e){this.workerConfigs=e}},{key:"getControlPlaneConfig",value:function(){return this.controlPlaneConfig}},{key:"setControlPlaneConfig",value:function(e){this.controlPlaneConfig=e}},{key:"getLoadBalancerConfigs",value:function(){return this.loadBalancerConfigs}},{key:"setLoadBalancerConfigs",value:function(e){this.loadBalancerConfigs=e}},{key:"getStorageClasses",value:function(){return this.storageClasses}},{key:"setStorageClasses",value:function(e){this.storageClasses=e}},{key:"getLoggingVolumeConfig",value:function(){return this.loggingVolumeConfig}},{key:"setLoggingVolumeConfig",value:function(e){this.loggingVolumeConfig=e}},{key:"getClientConfigs",value:function(){return this.clientConfigs}},{key:"setClientConfigs",value:function(e){this.clientConfigs=e}},{key:"getResourceConfigs",value:function(){return this.resourceConfigs}},{key:"setResourceConfigs",value:function(e){this.resourceConfigs=e}},{key:"getNetworkConfigs",value:function(){return this.networkConfigs}},{key:"setNetworkConfigs",value:function(e){this.networkConfigs=e}},{key:"getAnnotations",value:function(){return this.annotations}},{key:"setAnnotations",value:function(e){this.annotations=e}},{key:"getControllerVersion",value:function(){return this.controllerVersion}},{key:"setControllerVersion",value:function(e){this.controllerVersion=e}},{key:"getEnvoyIps",value:function(){return this.envoyIps}},{key:"setEnvoyIps",value:function(e){this.envoyIps=e}},{key:"getEtcdIps",value:function(){return this.etcdIps}},{key:"setEtcdIps",value:function(e){this.etcdIps=e}},{key:"getExternalMasterIp",value:function(){return this.externalMasterIp}},{key:"setExternalMasterIp",value:function(e){this.externalMasterIp=e}},{key:"getIsLockedDown",value:function(){return this.isLockedDown}},{key:"setIsLockedDown",value:function(e){this.isLockedDown=e}},{key:"getMasterIps",value:function(){return this.masterIps}},{key:"setMasterIps",value:function(e){this.masterIps=e}},{key:"getWorkerIps",value:function(){return this.workerIps}},{key:"setWorkerIps",value:function(e){this.workerIps=e}},{key:"getVersion",value:function(){return this.version}},{key:"setVersion",value:function(e){this.version=e}},{key:"toJson",value:function(e){return p$(!1===e?p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getClusterType()&&null!==this.getClusterType()?{clusterType:this.getClusterType()}:{}),void 0!==this.getDomain()&&null!==this.getDomain()?{domain:this.getDomain().toJson(!1)}:{}),void 0!==this.getDeploymentType()&&null!==this.getDeploymentType()?{deploymentType:this.getDeploymentType()}:{}),void 0!==this.getManagementIps()&&null!==this.getManagementIps()?{managementIps:this.getManagementIps().toJson(!1)}:{}),void 0!==this.getWorkerConfigs()&&null!==this.getWorkerConfigs()?{workerConfigs:this.getWorkerConfigs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControlPlaneConfig()&&null!==this.getControlPlaneConfig()?{ControlPlaneConfig:this.getControlPlaneConfig().toJson(!1)}:{}),void 0!==this.getLoadBalancerConfigs()&&null!==this.getLoadBalancerConfigs()?{loadBalancerConfigs:this.getLoadBalancerConfigs().toJson(!1)}:{}),void 0!==this.getStorageClasses()&&null!==this.getStorageClasses()?{storageClasses:this.getStorageClasses().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getLoggingVolumeConfig()&&null!==this.getLoggingVolumeConfig()?{loggingVolumeConfig:this.getLoggingVolumeConfig().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getClientConfigs()&&null!==this.getClientConfigs()?{clientConfigs:this.getClientConfigs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getResourceConfigs()&&null!==this.getResourceConfigs()?{resourceConfigs:this.getResourceConfigs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getNetworkConfigs()&&null!==this.getNetworkConfigs()?{networkConfigs:this.getNetworkConfigs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getAnnotations()&&null!==this.getAnnotations()?{annotations:this.getAnnotations().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerVersion()&&null!==this.getControllerVersion()?{controllerVersion:this.getControllerVersion()}:{}),void 0!==this.getEnvoyIps()&&null!==this.getEnvoyIps()?{envoyIps:this.getEnvoyIps()}:{}),void 0!==this.getEtcdIps()&&null!==this.getEtcdIps()?{etcdIps:this.getEtcdIps()}:{}),void 0!==this.getExternalMasterIp()&&null!==this.getExternalMasterIp()?{externalMasterIp:this.getExternalMasterIp()}:{}),void 0!==this.getIsLockedDown()&&null!==this.getIsLockedDown()?{isLockedDown:this.getIsLockedDown()}:{}),void 0!==this.getMasterIps()&&null!==this.getMasterIps()?{masterIps:this.getMasterIps()}:{}),void 0!==this.getWorkerIps()&&null!==this.getWorkerIps()?{workerIps:this.getWorkerIps()}:{}),void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),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()}:{}):p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$(p$({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getClusterType()&&null!==this.getClusterType()?{clusterType:this.getClusterType()}:{}),void 0!==this.getDomain()&&null!==this.getDomain()?{domain:this.getDomain().toJson(!1)}:{}),void 0!==this.getDeploymentType()&&null!==this.getDeploymentType()?{deploymentType:this.getDeploymentType()}:{}),void 0!==this.getManagementIps()&&null!==this.getManagementIps()?{managementIps:this.getManagementIps().toJson(!1)}:{}),void 0!==this.getWorkerConfigs()&&null!==this.getWorkerConfigs()?{workerConfigs:this.getWorkerConfigs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControlPlaneConfig()&&null!==this.getControlPlaneConfig()?{ControlPlaneConfig:this.getControlPlaneConfig().toJson(!1)}:{}),void 0!==this.getLoadBalancerConfigs()&&null!==this.getLoadBalancerConfigs()?{loadBalancerConfigs:this.getLoadBalancerConfigs().toJson(!1)}:{}),void 0!==this.getStorageClasses()&&null!==this.getStorageClasses()?{storageClasses:this.getStorageClasses().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getLoggingVolumeConfig()&&null!==this.getLoggingVolumeConfig()?{loggingVolumeConfig:this.getLoggingVolumeConfig().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getClientConfigs()&&null!==this.getClientConfigs()?{clientConfigs:this.getClientConfigs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getResourceConfigs()&&null!==this.getResourceConfigs()?{resourceConfigs:this.getResourceConfigs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getNetworkConfigs()&&null!==this.getNetworkConfigs()?{networkConfigs:this.getNetworkConfigs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getAnnotations()&&null!==this.getAnnotations()?{annotations:this.getAnnotations().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),{},{$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 F?r=["name","controlPlaneConfig"]: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(!I.validateMaxLength(this.name,32))return new R("name","does not satisfy required maxLength constraint: 32");if(!I.validateMinLength(this.name,1))return new R("name","does not satisfy required minLength constraint: 1");if(!I.validatePattern(this.name,/^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]))*([A-Za-z]|[A-Za-z][A-Za-z0-9-]*[A-Za-z0-9])$/))return new R("name","does not satisfy required pattern: /^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]))*([A-Za-z]|[A-Za-z][A-Za-z0-9-]*[A-Za-z0-9])$/")}if("description"===t&&(void 0===this.description||null===this.description))return new R("description","undefined or null");if("status"===t&&(void 0===this.status||null===this.status))return new R("status","undefined or null");if("clusterType"===t&&(void 0===this.clusterType||null===this.clusterType))return new R("clusterType","undefined or null");if("domain"===t&&(void 0===this.domain||null===this.domain))return new R("domain","undefined or null");if("deploymentType"===t&&(void 0===this.deploymentType||null===this.deploymentType))return new R("deploymentType","undefined or null");if("managementIps"===t&&(void 0===this.managementIps||null===this.managementIps))return new R("managementIps","undefined or null");if("workerConfigs"===t&&(void 0===this.workerConfigs||null===this.workerConfigs))return new R("workerConfigs","undefined or null");if("controlPlaneConfig"===t&&(void 0===this.controlPlaneConfig||null===this.controlPlaneConfig))return new R("controlPlaneConfig","undefined or null");if("loadBalancerConfigs"===t&&(void 0===this.loadBalancerConfigs||null===this.loadBalancerConfigs))return new R("loadBalancerConfigs","undefined or null");if("storageClasses"===t&&(void 0===this.storageClasses||null===this.storageClasses))return new R("storageClasses","undefined or null");if("loggingVolumeConfig"===t&&(void 0===this.loggingVolumeConfig||null===this.loggingVolumeConfig))return new R("loggingVolumeConfig","undefined or null");if("clientConfigs"===t&&(void 0===this.clientConfigs||null===this.clientConfigs))return new R("clientConfigs","undefined or null");if("resourceConfigs"===t&&(void 0===this.resourceConfigs||null===this.resourceConfigs))return new R("resourceConfigs","undefined or null");if("networkConfigs"===t&&(void 0===this.networkConfigs||null===this.networkConfigs))return new R("networkConfigs","undefined or null");if("annotations"===t&&(void 0===this.annotations||null===this.annotations))return new R("annotations","undefined or null");if("controllerVersion"===t&&(void 0===this.controllerVersion||null===this.controllerVersion))return new R("controllerVersion","undefined or null");if("envoyIps"===t&&(void 0===this.envoyIps||null===this.envoyIps))return new R("envoyIps","undefined or null");if("etcdIps"===t&&(void 0===this.etcdIps||null===this.etcdIps))return new R("etcdIps","undefined or null");if("externalMasterIp"===t&&(void 0===this.externalMasterIp||null===this.externalMasterIp))return new R("externalMasterIp","undefined or null");if("isLockedDown"===t&&(void 0===this.isLockedDown||null===this.isLockedDown))return new R("isLockedDown","undefined or null");if("masterIps"===t&&(void 0===this.masterIps||null===this.masterIps))return new R("masterIps","undefined or null");if("workerIps"===t&&(void 0===this.workerIps||null===this.workerIps))return new R("workerIps","undefined or null");if("version"===t){if(void 0===this.version||null===this.version)return new R("version","undefined or null");if(!I.validatePattern(this.version,/^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(-(0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(\\.(0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\\+[0-9a-zA-Z-]+(\\.[0-9a-zA-Z-]+)*)?$/))return new R("version","does not satisfy required pattern: /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(-(0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(\\.(0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\\+[0-9a-zA-Z-]+(\\.[0-9a-zA-Z-]+)*)?$/")}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,Yn.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("status")&&null!==e.status&&void 0!==e.status&&s.setStatus(e.status),e.hasOwnProperty("clusterType")&&null!==e.clusterType&&void 0!==e.clusterType&&s.setClusterType(Bk.constructFromObject(e.clusterType)),e.hasOwnProperty("domain")&&null!==e.domain&&void 0!==e.domain&&s.setDomain(Ql.constructFromObject(e.domain)),e.hasOwnProperty("deploymentType")&&null!==e.deploymentType&&void 0!==e.deploymentType&&s.setDeploymentType(gO.constructFromObject(e.deploymentType)),e.hasOwnProperty("managementIps")&&null!==e.managementIps&&void 0!==e.managementIps&&s.setManagementIps(TO.constructFromObject(e.managementIps)),e.hasOwnProperty("workerConfigs")&&null!==e.workerConfigs&&void 0!==e.workerConfigs){for(i=[],n=e.workerConfigs,o=0;o<n.length;o++)r=Qk.constructFromObject(n[o],void 0),i.push(r);s.setWorkerConfigs(i)}if(e.hasOwnProperty("ControlPlaneConfig")&&null!==e.ControlPlaneConfig&&void 0!==e.ControlPlaneConfig&&s.setControlPlaneConfig(Qk.constructFromObject(e.ControlPlaneConfig)),e.hasOwnProperty("loadBalancerConfigs")&&null!==e.loadBalancerConfigs&&void 0!==e.loadBalancerConfigs&&s.setLoadBalancerConfigs(n$.constructFromObject(e.loadBalancerConfigs)),e.hasOwnProperty("storageClasses")&&null!==e.storageClasses&&void 0!==e.storageClasses){for(i=[],n=e.storageClasses,o=0;o<n.length;o++)r=Jk.constructFromObject(n[o],void 0),i.push(r);s.setStorageClasses(i)}if(e.hasOwnProperty("loggingVolumeConfig")&&null!==e.loggingVolumeConfig&&void 0!==e.loggingVolumeConfig){for(i=[],n=e.loggingVolumeConfig,o=0;o<n.length;o++)r=c$.constructFromObject(n[o],void 0),i.push(r);s.setLoggingVolumeConfig(i)}if(e.hasOwnProperty("clientConfigs")&&null!==e.clientConfigs&&void 0!==e.clientConfigs){for(i=[],n=e.clientConfigs,o=0;o<n.length;o++)r=hO.constructFromObject(n[o],void 0),i.push(r);s.setClientConfigs(i)}if(e.hasOwnProperty("resourceConfigs")&&null!==e.resourceConfigs&&void 0!==e.resourceConfigs){for(i=[],n=e.resourceConfigs,o=0;o<n.length;o++)r=Pk.constructFromObject(n[o],void 0),i.push(r);s.setResourceConfigs(i)}if(e.hasOwnProperty("networkConfigs")&&null!==e.networkConfigs&&void 0!==e.networkConfigs){for(i=[],n=e.networkConfigs,o=0;o<n.length;o++)r=XO.constructFromObject(n[o],void 0),i.push(r);s.setNetworkConfigs(i)}if(e.hasOwnProperty("annotations")&&null!==e.annotations&&void 0!==e.annotations){for(i=[],n=e.annotations,o=0;o<n.length;o++)r=Yg.constructFromObject(n[o],void 0),i.push(r);s.setAnnotations(i)}if(e.hasOwnProperty("controllerVersion")&&null!==e.controllerVersion&&void 0!==e.controllerVersion&&s.setControllerVersion(e.controllerVersion),e.hasOwnProperty("envoyIps")&&null!==e.envoyIps&&void 0!==e.envoyIps){for(i=[],n=e.envoyIps,o=0;o<n.length;o++)i.push(n[o]);s.setEnvoyIps(i)}if(e.hasOwnProperty("etcdIps")&&null!==e.etcdIps&&void 0!==e.etcdIps){for(i=[],n=e.etcdIps,o=0;o<n.length;o++)i.push(n[o]);s.setEtcdIps(i)}if(e.hasOwnProperty("externalMasterIp")&&null!==e.externalMasterIp&&void 0!==e.externalMasterIp&&s.setExternalMasterIp(e.externalMasterIp),e.hasOwnProperty("isLockedDown")&&null!==e.isLockedDown&&void 0!==e.isLockedDown&&s.setIsLockedDown(e.isLockedDown),e.hasOwnProperty("masterIps")&&null!==e.masterIps&&void 0!==e.masterIps){for(i=[],n=e.masterIps,o=0;o<n.length;o++)i.push(n[o]);s.setMasterIps(i)}if(e.hasOwnProperty("workerIps")&&null!==e.workerIps&&void 0!==e.workerIps){for(i=[],n=e.workerIps,o=0;o<n.length;o++)i.push(n[o]);s.setWorkerIps(i)}if(e.hasOwnProperty("version")&&null!==e.version&&void 0!==e.version&&s.setVersion(e.version),!a)for(var u in s.$unknownFields=p$({},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&&h$(n.prototype,r),o&&h$(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Yn);function k$(e){return k$="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},k$(e)}function j$(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 $$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j$(Object(n),!0).forEach(function(t){P$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P$(e,t,n){return(t=F$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T$(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"!=k$(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=k$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k$(t)?t:t+""}O$.prototype.name=void 0,O$.prototype.description=void 0,O$.prototype.status=void 0,O$.prototype.clusterType=void 0,O$.prototype.domain=void 0,O$.prototype.deploymentType=void 0,O$.prototype.managementIps=void 0,O$.prototype.workerConfigs=void 0,O$.prototype.controlPlaneConfig=void 0,O$.prototype.loadBalancerConfigs=void 0,O$.prototype.storageClasses=void 0,O$.prototype.loggingVolumeConfig=void 0,O$.prototype.clientConfigs=void 0,O$.prototype.resourceConfigs=void 0,O$.prototype.networkConfigs=void 0,O$.prototype.annotations=void 0,O$.prototype.controllerVersion=void 0,O$.prototype.envoyIps=void 0,O$.prototype.etcdIps=void 0,O$.prototype.externalMasterIp=void 0,O$.prototype.isLockedDown=void 0,O$.prototype.masterIps=void 0,O$.prototype.workerIps=void 0,O$.prototype.version=void 0,Yn.prototype.extId=void 0,Yn.prototype.links=void 0,Jn.prototype.tenantId=void 0;var E$=new WeakSet,S$=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,E$),this.clusterExtId=t,this.currentVersion=n,this.compatibleVersions=r,this.$objectType="lifecycle.v4.svcmgr.ClusterUpgradeInfo",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getCurrentVersion",value:function(){return this.currentVersion}},{key:"setCurrentVersion",value:function(e){this.currentVersion=e}},{key:"getCompatibleVersions",value:function(){return this.compatibleVersions}},{key:"setCompatibleVersions",value:function(e){this.compatibleVersions=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 $$($$($$($$({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getCurrentVersion()&&null!==this.getCurrentVersion()?{currentVersion:this.getCurrentVersion()}:{}),void 0!==this.getCompatibleVersions()&&null!==this.getCompatibleVersions()?{compatibleVersions:this.getCompatibleVersions()}:{}),{},{$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 F?r=["clusterExtId","currentVersion","compatibleVersions"]: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(!I.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"currentVersion"!==t||void 0!==this.currentVersion&&null!==this.currentVersion?"compatibleVersions"!==t||void 0!==this.compatibleVersions&&null!==this.compatibleVersions?"$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("compatibleVersions","undefined or null"):new R("currentVersion","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){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(t){if(i=i||new e,t.hasOwnProperty("clusterExtId")&&null!==t.clusterExtId&&void 0!==t.clusterExtId&&i.setClusterExtId(t.clusterExtId),t.hasOwnProperty("currentVersion")&&null!==t.currentVersion&&void 0!==t.currentVersion&&i.setCurrentVersion(t.currentVersion),t.hasOwnProperty("compatibleVersions")&&null!==t.compatibleVersions&&void 0!==t.compatibleVersions){for(o=[],n=t.compatibleVersions,r=0;r<n.length;r++)o.push(n[r]);i.setCompatibleVersions(o)}if(t.hasOwnProperty("$reserved")&&(i.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(i.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(i.$unknownFields=t.$unknownFields),!s)for(var a in i.$unknownFields=$$({},t.$unknownFields),t)Object.keys(i).includes(a)||Object.keys(i).includes(this.snakeToCamel(a))||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(i.$unknownFields[a]=t[a])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&T$(t.prototype,n),r&&T$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 I$(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 D$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I$(Object(n),!0).forEach(function(t){A$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function A$(e,t,n){return(t=R$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U$(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,R$(r.key),r)}}function R$(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 x$(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")}S$.prototype.clusterExtId=void 0,S$.prototype.currentVersion=void 0,S$.prototype.compatibleVersions=void 0,S$.prototype.$reserved=void 0,S$.prototype.$objectType=void 0,S$.prototype.$unknownFields=void 0;var N$=new WeakSet,M$=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,N$),this.$objectType="lifecycle.v4.svcmgr.ComponentDetails",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getMessages",value:function(){return this.messages}},{key:"setMessages",value:function(e){this.messages=e}},{key:"getErrorMessage",value:function(){return this.errorMessage}},{key:"setErrorMessage",value:function(e){this.errorMessage=e}},{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"getNumFailures",value:function(){return this.numFailures}},{key:"setNumFailures",value:function(e){this.numFailures=e}},{key:"getFirstFailureTime",value:function(){return this.firstFailureTime}},{key:"setFirstFailureTime",value:function(e){this.firstFailureTime=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 D$(D$(D$(D$(D$(D$({},void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages()}:{}),void 0!==this.getErrorMessage()&&null!==this.getErrorMessage()?{errorMessage:this.getErrorMessage()}:{}),void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:x$(N$,this,V$).call(this,this.getTimestamp(),!1)}:{}),void 0!==this.getNumFailures()&&null!==this.getNumFailures()?{numFailures:this.getNumFailures()}:{}),void 0!==this.getFirstFailureTime()&&null!==this.getFirstFailureTime()?{firstFailureTime:x$(N$,this,V$).call(this,this.getFirstFailureTime(),!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 F?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"messages"!==t||void 0!==this.messages&&null!==this.messages?"errorMessage"!==t||void 0!==this.errorMessage&&null!==this.errorMessage?"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"numFailures"!==t||void 0!==this.numFailures&&null!==this.numFailures?"firstFailureTime"!==t||void 0!==this.firstFailureTime&&null!==this.firstFailureTime?"$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("firstFailureTime","undefined or null"):new R("numFailures","undefined or null"):new R("timestamp","undefined or null"):new R("errorMessage","undefined or null"):new R("messages","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){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(t){if(i=i||new e,t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(o=[],n=t.messages,r=0;r<n.length;r++)o.push(n[r]);i.setMessages(o)}if(t.hasOwnProperty("errorMessage")&&null!==t.errorMessage&&void 0!==t.errorMessage&&i.setErrorMessage(t.errorMessage),t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&i.setTimestamp(t.timestamp),t.hasOwnProperty("numFailures")&&null!==t.numFailures&&void 0!==t.numFailures&&i.setNumFailures(t.numFailures),t.hasOwnProperty("firstFailureTime")&&null!==t.firstFailureTime&&void 0!==t.firstFailureTime&&i.setFirstFailureTime(t.firstFailureTime),t.hasOwnProperty("$reserved")&&(i.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(i.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(i.$unknownFields=t.$unknownFields),!s)for(var a in i.$unknownFields=D$({},t.$unknownFields),t)Object.keys(i).includes(a)||Object.keys(i).includes(this.snakeToCamel(a))||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(i.$unknownFields[a]=t[a])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&U$(t.prototype,n),r&&U$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function V$(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function _$(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 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 J$(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 W$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J$(Object(n),!0).forEach(function(t){B$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function B$(e,t,n){return(t=q$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z$(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,q$(r.key),r)}}function q$(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 K$(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")}M$.prototype.messages=void 0,M$.prototype.errorMessage=void 0,M$.prototype.timestamp=void 0,M$.prototype.numFailures=void 0,M$.prototype.firstFailureTime=void 0,M$.prototype.$reserved=void 0,M$.prototype.$objectType=void 0,M$.prototype.$unknownFields=void 0;var H$=new WeakSet,G$=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,H$),this.$objectType="lifecycle.v4.svcmgr.CustomValueItem",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getKey",value:function(){return this.key}},{key:"setKey",value:function(e){this.key=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 W$(W$(W$({},void 0!==this.getKey()&&null!==this.getKey()?{key:this.getKey()}:{}),!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}):K$(H$,this,X$).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}):K$(H$,this,X$).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 F?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"key"!==t||void 0!==this.key&&null!==this.key?"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"):new R("key","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("key")&&null!==t.key&&void 0!==t.key&&s.setKey(t.key),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)if(Array.isArray(t.value))if(0===t.value.length)s.setValue([]);else{for(o=[],i=(n=t.value)[0].hasOwnProperty("$objectType")?n[0].$objectType:L$(n[0]),r=0;r<n.length;r++){if("string"!==i)throw"Unknown list of type "+i+" in data";o.push(n[r])}s.setValue(o)}else{if("string"!==(i=t.value.hasOwnProperty("$objectType")?t.value.$objectType:L$(t.value)))throw"Unknown datatype "+i+" in data";s.setValue(t.value)}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=W$({},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&&z$(t.prototype,n),r&&z$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function X$(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 _$(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)?_$(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"===L$(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 Z$(e){return Z$="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},Z$(e)}function Q$(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 Y$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q$(Object(n),!0).forEach(function(t){eP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eP(e,t,n){return(t=nP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tP(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,nP(r.key),r)}}function nP(e){var t=function(e){if("object"!=Z$(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Z$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Z$(t)?t:t+""}G$.prototype.key=void 0,G$.prototype.value=void 0,G$.prototype.$reserved=void 0,G$.prototype.$objectType=void 0,G$.prototype.$unknownFields=void 0;var rP=new WeakSet,oP=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,rP),this.$objectType="lifecycle.v4.svcmgr.CustomValue",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getService",value:function(){return this.service}},{key:"setService",value:function(e){this.service=e}},{key:"getValues",value:function(){return this.values}},{key:"setValues",value:function(e){this.values=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 Y$(Y$(Y$({},void 0!==this.getService()&&null!==this.getService()?{service:this.getService()}:{}),void 0!==this.getValues()&&null!==this.getValues()?{values:this.getValues().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 F?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"service"!==t||void 0!==this.service&&null!==this.service?"values"!==t||void 0!==this.values&&null!==this.values?"$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("values","undefined or null"):new R("service","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("service")&&null!==t.service&&void 0!==t.service&&s.setService(t.service),t.hasOwnProperty("values")&&null!==t.values&&void 0!==t.values){for(i=[],n=t.values,o=0;o<n.length;o++)r=G$.constructFromObject(n[o],void 0),i.push(r);s.setValues(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=Y$({},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&&tP(t.prototype,n),r&&tP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();oP.prototype.service=void 0,oP.prototype.values=void 0,oP.prototype.$reserved=void 0,oP.prototype.$objectType=void 0,oP.prototype.$unknownFields=void 0;var iP={ONPREM:"ONPREM",AZURE:"AZURE",AWS:"AWS",$UNKNOWN:"$UNKNOWN",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(iP).find(function(t){return iP[t]===e});return null==t?iP.$UNKNOWN:iP[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case iP.ONPREM:case iP.AZURE:case iP.AWS:case iP.$UNKNOWN:return;default:throw new Error("Invalid : must be Deployment.{ ONPREM|AZURE|AWS|$UNKNOWN }")}}};Object.freeze(iP);const sP=iP;function aP(e){return aP="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},aP(e)}function uP(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 lP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uP(Object(n),!0).forEach(function(t){cP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cP(e,t,n){return(t=dP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fP(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,dP(r.key),r)}}function dP(e){var t=function(e){if("object"!=aP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=aP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==aP(t)?t:t+""}var pP=new WeakSet,yP=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,pP),this.$objectType="lifecycle.v4.svcmgr.EntityReference",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=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!1===e?lP(lP(lP({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{}),{},{$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 F?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"extId"!==t||void 0!==this.extId&&null!==this.extId?"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("extId","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("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=lP({},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&&fP(t.prototype,n),r&&fP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();yP.prototype.extId=void 0,yP.prototype.rel=void 0,yP.prototype.$reserved=void 0,yP.prototype.$objectType=void 0,yP.prototype.$unknownFields=void 0;var hP={DEV:"DEV",STAGING:"STAGING",RELEASE:"RELEASE",$UNKNOWN:"$UNKNOWN",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(hP).find(function(t){return hP[t]===e});return null==t?hP.$UNKNOWN:hP[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case hP.DEV:case hP.STAGING:case hP.RELEASE:case hP.$UNKNOWN:return;default:throw new Error("Invalid : must be Environment.{ DEV|STAGING|RELEASE|$UNKNOWN }")}}};Object.freeze(hP);const vP=hP;var bP={UP:"UP",DOWN:"DOWN",$UNKNOWN:"$UNKNOWN",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(bP).find(function(t){return bP[t]===e});return null==t?bP.$UNKNOWN:bP[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case bP.UP:case bP.DOWN:case bP.$UNKNOWN:return;default:throw new Error("Invalid : must be Status.{ UP|DOWN|$UNKNOWN }")}}};Object.freeze(bP);const gP=bP;function mP(e){return mP="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},mP(e)}function wP(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 OP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wP(Object(n),!0).forEach(function(t){kP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kP(e,t,n){return(t=$P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jP(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,$P(r.key),r)}}function $P(e){var t=function(e){if("object"!=mP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mP(t)?t:t+""}var PP=new WeakSet,TP=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,PP),this.$objectType="lifecycle.v4.svcmgr.HealthComponent",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getDetails",value:function(){return this.details}},{key:"setDetails",value:function(e){this.details=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 OP(OP(OP(OP({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getDetails()&&null!==this.getDetails()?{details:this.getDetails().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 F?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"name"!==t||void 0!==this.name&&null!==this.name?"status"!==t||void 0!==this.status&&null!==this.status?"details"!==t||void 0!==this.details&&null!==this.details?"$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("details","undefined or null"):new R("status","undefined or null"):new R("name","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("status")&&null!==t.status&&void 0!==t.status&&n.setStatus(gP.constructFromObject(t.status)),t.hasOwnProperty("details")&&null!==t.details&&void 0!==t.details&&n.setDetails(M$.constructFromObject(t.details)),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=OP({},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&&jP(t.prototype,n),r&&jP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function FP(e){return FP="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},FP(e)}function EP(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 SP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EP(Object(n),!0).forEach(function(t){CP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function CP(e,t,n){return(t=DP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IP(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,DP(r.key),r)}}function DP(e){var t=function(e){if("object"!=FP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=FP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==FP(t)?t:t+""}TP.prototype.name=void 0,TP.prototype.status=void 0,TP.prototype.details=void 0,TP.prototype.$reserved=void 0,TP.prototype.$objectType=void 0,TP.prototype.$unknownFields=void 0;var AP=new WeakSet,UP=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,AP),this.$objectType="lifecycle.v4.svcmgr.Health",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getHealthComponents",value:function(){return this.healthComponents}},{key:"setHealthComponents",value:function(e){this.healthComponents=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 SP(SP(SP({},void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getHealthComponents()&&null!==this.getHealthComponents()?{healthComponents:this.getHealthComponents().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 F?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"status"!==t||void 0!==this.status&&null!==this.status?"healthComponents"!==t||void 0!==this.healthComponents&&null!==this.healthComponents?"$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("healthComponents","undefined or null"):new R("status","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("status")&&null!==t.status&&void 0!==t.status&&s.setStatus(gP.constructFromObject(t.status)),t.hasOwnProperty("healthComponents")&&null!==t.healthComponents&&void 0!==t.healthComponents){for(i=[],n=t.healthComponents,o=0;o<n.length;o++)r=TP.constructFromObject(n[o],void 0),i.push(r);s.setHealthComponents(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=SP({},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&&IP(t.prototype,n),r&&IP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function RP(e){return RP="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},RP(e)}function xP(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 NP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xP(Object(n),!0).forEach(function(t){MP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function MP(e,t,n){return(t=_P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VP(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,_P(r.key),r)}}function _P(e){var t=function(e){if("object"!=RP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=RP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==RP(t)?t:t+""}function LP(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")}UP.prototype.status=void 0,UP.prototype.healthComponents=void 0,UP.prototype.$reserved=void 0,UP.prototype.$objectType=void 0,UP.prototype.$unknownFields=void 0;var JP=new WeakSet,WP=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,JP),this.$objectType="lifecycle.v4.svcmgr.History",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getVersion",value:function(){return this.version}},{key:"setVersion",value:function(e){this.version=e}},{key:"getApptype",value:function(){return this.apptype}},{key:"setApptype",value:function(e){this.apptype=e}},{key:"getClusterUuid",value:function(){return this.clusterUuid}},{key:"setClusterUuid",value:function(e){this.clusterUuid=e}},{key:"getUuid",value:function(){return this.uuid}},{key:"setUuid",value:function(e){this.uuid=e}},{key:"getParentAppUuid",value:function(){return this.parentAppUuid}},{key:"setParentAppUuid",value:function(e){this.parentAppUuid=e}},{key:"getAction",value:function(){return this.action}},{key:"setAction",value:function(e){this.action=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getTaskUuid",value:function(){return this.taskUuid}},{key:"setTaskUuid",value:function(e){this.taskUuid=e}},{key:"getCreatedTimestamp",value:function(){return this.createdTimestamp}},{key:"setCreatedTimestamp",value:function(e){this.createdTimestamp=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 NP(NP(NP(NP(NP(NP(NP(NP(NP(NP(NP(NP({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getApptype()&&null!==this.getApptype()?{apptype:this.getApptype()}:{}),void 0!==this.getClusterUuid()&&null!==this.getClusterUuid()?{clusterUuid:this.getClusterUuid()}:{}),void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{}),void 0!==this.getParentAppUuid()&&null!==this.getParentAppUuid()?{parentAppUuid:this.getParentAppUuid()}:{}),void 0!==this.getAction()&&null!==this.getAction()?{action:this.getAction()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getTaskUuid()&&null!==this.getTaskUuid()?{taskUuid:this.getTaskUuid()}:{}),void 0!==this.getCreatedTimestamp()&&null!==this.getCreatedTimestamp()?{createdTimestamp:LP(JP,this,BP).call(this,this.getCreatedTimestamp(),!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 F?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&&(void 0===this.name||null===this.name))return new R("name","undefined or null");if("version"===t){if(void 0===this.version||null===this.version)return new R("version","undefined or null");if(!I.validatePattern(this.version,/^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$/))return new R("version","does not satisfy required pattern: /^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$/")}if("apptype"===t&&(void 0===this.apptype||null===this.apptype))return new R("apptype","undefined or null");if("clusterUuid"===t){if(void 0===this.clusterUuid||null===this.clusterUuid)return new R("clusterUuid","undefined or null");if(!I.validatePattern(this.clusterUuid,/^[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("clusterUuid","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("uuid"===t){if(void 0===this.uuid||null===this.uuid)return new R("uuid","undefined or null");if(!I.validatePattern(this.uuid,/^[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("uuid","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("parentAppUuid"===t){if(void 0===this.parentAppUuid||null===this.parentAppUuid)return new R("parentAppUuid","undefined or null");if(!I.validatePattern(this.parentAppUuid,/^[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("parentAppUuid","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("action"===t&&(void 0===this.action||null===this.action))return new R("action","undefined or null");if("status"===t&&(void 0===this.status||null===this.status))return new R("status","undefined or null");if("message"===t&&(void 0===this.message||null===this.message))return new R("message","undefined or null");if("taskUuid"===t){if(void 0===this.taskUuid||null===this.taskUuid)return new R("taskUuid","undefined or null");if(!I.validatePattern(this.taskUuid,/^[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("taskUuid","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"createdTimestamp"!==t||void 0!==this.createdTimestamp&&null!==this.createdTimestamp?"$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("createdTimestamp","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("version")&&null!==t.version&&void 0!==t.version&&n.setVersion(t.version),t.hasOwnProperty("apptype")&&null!==t.apptype&&void 0!==t.apptype&&n.setApptype(t.apptype),t.hasOwnProperty("clusterUuid")&&null!==t.clusterUuid&&void 0!==t.clusterUuid&&n.setClusterUuid(t.clusterUuid),t.hasOwnProperty("uuid")&&null!==t.uuid&&void 0!==t.uuid&&n.setUuid(t.uuid),t.hasOwnProperty("parentAppUuid")&&null!==t.parentAppUuid&&void 0!==t.parentAppUuid&&n.setParentAppUuid(t.parentAppUuid),t.hasOwnProperty("action")&&null!==t.action&&void 0!==t.action&&n.setAction(t.action),t.hasOwnProperty("status")&&null!==t.status&&void 0!==t.status&&n.setStatus(t.status),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("taskUuid")&&null!==t.taskUuid&&void 0!==t.taskUuid&&n.setTaskUuid(t.taskUuid),t.hasOwnProperty("createdTimestamp")&&null!==t.createdTimestamp&&void 0!==t.createdTimestamp&&n.setCreatedTimestamp(t.createdTimestamp),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=NP({},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&&VP(t.prototype,n),r&&VP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function BP(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function zP(e){return zP="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},zP(e)}function qP(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 KP(e,t,n){return(t=GP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HP(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,GP(r.key),r)}}function GP(e){var t=function(e){if("object"!=zP(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zP(t)?t:t+""}function XP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(XP=function(){return!!e})()}function ZP(e){return ZP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZP(e)}function QP(e,t){return QP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QP(e,t)}WP.prototype.name=void 0,WP.prototype.version=void 0,WP.ApptypeEnum={SERVICE:"Service",APPLICATION:"Application"},WP.prototype.apptype=void 0,WP.prototype.clusterUuid=void 0,WP.prototype.uuid=void 0,WP.prototype.parentAppUuid=void 0,WP.prototype.action=void 0,WP.prototype.status=void 0,WP.prototype.message=void 0,WP.prototype.taskUuid=void 0,WP.prototype.createdTimestamp=void 0,WP.prototype.$reserved=void 0,WP.prototype.$objectType=void 0,WP.prototype.$unknownFields=void 0;var YP=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=ZP(t),function(e,t){if(t&&("object"==zP(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,XP()?Reflect.construct(t,n||[],ZP(e).constructor):t.apply(e,n))}(this,t)).$objectType="lifecycle.v4.svcmgr.HistoryProjection",e.$reserved={$fv:"v4.r1"},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&&QP(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 F?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,WP.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?qP(Object(n),!0).forEach(function(t){KP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qP(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&&HP(n.prototype,r),o&&HP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(WP);function eT(e){return eT="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},eT(e)}function tT(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 nT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tT(Object(n),!0).forEach(function(t){rT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rT(e,t,n){return(t=iT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oT(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,iT(r.key),r)}}function iT(e){var t=function(e){if("object"!=eT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=eT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==eT(t)?t:t+""}var sT=new WeakSet,aT=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,sT),this.$objectType="lifecycle.v4.svcmgr.Info",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getEnvironment",value:function(){return this.environment}},{key:"setEnvironment",value:function(e){this.environment=e}},{key:"getChartRepositoryUri",value:function(){return this.chartRepositoryUri}},{key:"setChartRepositoryUri",value:function(e){this.chartRepositoryUri=e}},{key:"getDeployment",value:function(){return this.deployment}},{key:"setDeployment",value:function(e){this.deployment=e}},{key:"getIsAirGapEnabled",value:function(){return this.isAirGapEnabled}},{key:"setIsAirGapEnabled",value:function(e){this.isAirGapEnabled=e}},{key:"getAirGapServerUri",value:function(){return this.airGapServerUri}},{key:"setAirGapServerUri",value:function(e){this.airGapServerUri=e}},{key:"getVersion",value:function(){return this.version}},{key:"setVersion",value:function(e){this.version=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 nT(nT(nT(nT(nT(nT(nT({},void 0!==this.getEnvironment()&&null!==this.getEnvironment()?{environment:this.getEnvironment()}:{}),void 0!==this.getChartRepositoryUri()&&null!==this.getChartRepositoryUri()?{chartRepositoryUri:this.getChartRepositoryUri()}:{}),void 0!==this.getDeployment()&&null!==this.getDeployment()?{deployment:this.getDeployment()}:{}),void 0!==this.getIsAirGapEnabled()&&null!==this.getIsAirGapEnabled()?{isAirGapEnabled:this.getIsAirGapEnabled()}:{}),void 0!==this.getAirGapServerUri()&&null!==this.getAirGapServerUri()?{airGapServerUri:this.getAirGapServerUri()}:{}),void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),{},{$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 F?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("environment"===t&&(void 0===this.environment||null===this.environment))return new R("environment","undefined or null");if("chartRepositoryUri"===t){if(void 0===this.chartRepositoryUri||null===this.chartRepositoryUri)return new R("chartRepositoryUri","undefined or null");if(!I.validatePattern(this.chartRepositoryUri,/^((http[s]?):\/)?\/?([^:\/\\s]*)((\/\\w+)*(:[0-9]+)*?\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/))return new R("chartRepositoryUri","does not satisfy required pattern: /^((http[s]?):/)?/?([^:/\\s]*)((/\\w+)*(:[0-9]+)*?/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/")}if("deployment"===t&&(void 0===this.deployment||null===this.deployment))return new R("deployment","undefined or null");if("isAirGapEnabled"===t&&(void 0===this.isAirGapEnabled||null===this.isAirGapEnabled))return new R("isAirGapEnabled","undefined or null");if("airGapServerUri"===t){if(void 0===this.airGapServerUri||null===this.airGapServerUri)return new R("airGapServerUri","undefined or null");if(!I.validatePattern(this.airGapServerUri,/^((http[s]?):\/)?\/?([^:\/\\s]*)((\/\\w+)*(:[0-9]+)*?\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/))return new R("airGapServerUri","does not satisfy required pattern: /^((http[s]?):/)?/?([^:/\\s]*)((/\\w+)*(:[0-9]+)*?/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/")}if("version"===t){if(void 0===this.version||null===this.version)return new R("version","undefined or null");if(!I.validatePattern(this.version,/^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$/))return new R("version","does not satisfy required pattern: /^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$/")}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("environment")&&null!==t.environment&&void 0!==t.environment&&n.setEnvironment(vP.constructFromObject(t.environment)),t.hasOwnProperty("chartRepositoryUri")&&null!==t.chartRepositoryUri&&void 0!==t.chartRepositoryUri&&n.setChartRepositoryUri(t.chartRepositoryUri),t.hasOwnProperty("deployment")&&null!==t.deployment&&void 0!==t.deployment&&n.setDeployment(sP.constructFromObject(t.deployment)),t.hasOwnProperty("isAirGapEnabled")&&null!==t.isAirGapEnabled&&void 0!==t.isAirGapEnabled&&n.setIsAirGapEnabled(t.isAirGapEnabled),t.hasOwnProperty("airGapServerUri")&&null!==t.airGapServerUri&&void 0!==t.airGapServerUri&&n.setAirGapServerUri(t.airGapServerUri),t.hasOwnProperty("version")&&null!==t.version&&void 0!==t.version&&n.setVersion(t.version),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=nT({},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&&oT(t.prototype,n),r&&oT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function uT(e){return uT="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},uT(e)}function lT(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 cT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lT(Object(n),!0).forEach(function(t){fT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fT(e,t,n){return(t=pT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dT(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,pT(r.key),r)}}function pT(e){var t=function(e){if("object"!=uT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==uT(t)?t:t+""}aT.prototype.environment=void 0,aT.prototype.chartRepositoryUri=void 0,aT.prototype.deployment=void 0,aT.prototype.isAirGapEnabled=void 0,aT.prototype.airGapServerUri=void 0,aT.prototype.version=void 0,aT.prototype.$reserved=void 0,aT.prototype.$objectType=void 0,aT.prototype.$unknownFields=void 0;var yT=new WeakSet,hT=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,yT),this.name=t,this.version=n,this.$objectType="lifecycle.v4.svcmgr.Install",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getVersion",value:function(){return this.version}},{key:"setVersion",value:function(e){this.version=e}},{key:"getClusterID",value:function(){return this.clusterID}},{key:"setClusterID",value:function(e){this.clusterID=e}},{key:"getCustomValues",value:function(){return this.customValues}},{key:"setCustomValues",value:function(e){this.customValues=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 cT(cT(cT(cT(cT({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getVersion()&&null!==this.getVersion()?{version:this.getVersion()}:{}),void 0!==this.getClusterID()&&null!==this.getClusterID()?{clusterID:this.getClusterID()}:{}),void 0!==this.getCustomValues()&&null!==this.getCustomValues()?{customValues:this.getCustomValues().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 F?r=["name","version"]: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&&(void 0===this.name||null===this.name))return new R("name","undefined or null");if("version"===t){if(void 0===this.version||null===this.version)return new R("version","undefined or null");if(!I.validatePattern(this.version,/^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$/))return new R("version","does not satisfy required pattern: /^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$/")}return"clusterID"!==t||void 0!==this.clusterID&&null!==this.clusterID?"customValues"!==t||void 0!==this.customValues&&null!==this.customValues?"$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("customValues","undefined or null"):new R("clusterID","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("version")&&null!==t.version&&void 0!==t.version&&s.setVersion(t.version),t.hasOwnProperty("clusterID")&&null!==t.clusterID&&void 0!==t.clusterID&&s.setClusterID(t.clusterID),t.hasOwnProperty("customValues")&&null!==t.customValues&&void 0!==t.customValues){for(i=[],n=t.customValues,o=0;o<n.length;o++)r=oP.constructFromObject(n[o],void 0),i.push(r);s.setCustomValues(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=cT({},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&&dT(t.prototype,n),r&&dT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function vT(e){return vT="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},vT(e)}function bT(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 gT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bT(Object(n),!0).forEach(function(t){mT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mT(e,t,n){return(t=OT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wT(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,OT(r.key),r)}}function OT(e){var t=function(e){if("object"!=vT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vT(t)?t:t+""}hT.prototype.name=void 0,hT.prototype.version=void 0,hT.prototype.clusterID=void 0,hT.prototype.customValues=void 0,hT.prototype.$reserved=void 0,hT.prototype.$objectType=void 0,hT.prototype.$unknownFields=void 0;var kT=new WeakSet,jT=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,kT),this.$objectType="lifecycle.v4.svcmgr.OwnerReference",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=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?gT(gT(gT({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),{},{$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 F?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(!I.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}$/")}return"name"!==t||void 0!==this.name&&null!==this.name?"$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("name","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("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),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=gT({},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&&wT(t.prototype,n),r&&wT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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)}function PT(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 TT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PT(Object(n),!0).forEach(function(t){FT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function FT(e,t,n){return(t=ST(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ET(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,ST(r.key),r)}}function ST(e){var t=function(e){if("object"!=$T(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$T(t)?t:t+""}jT.prototype.extId=void 0,jT.prototype.name=void 0,jT.prototype.$reserved=void 0,jT.prototype.$objectType=void 0,jT.prototype.$unknownFields=void 0;var CT=new WeakSet,IT=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,CT),this.$objectType="lifecycle.v4.svcmgr.PostAppResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getAppUUID",value:function(){return this.appUUID}},{key:"setAppUUID",value:function(e){this.appUUID=e}},{key:"getTaskUuid",value:function(){return this.taskUuid}},{key:"setTaskUuid",value:function(e){this.taskUuid=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 TT(TT(TT({},void 0!==this.getAppUUID()&&null!==this.getAppUUID()?{appUUID:this.getAppUUID()}:{}),void 0!==this.getTaskUuid()&&null!==this.getTaskUuid()?{taskUuid:this.getTaskUuid()}:{}),{},{$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 F?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("appUUID"===t){if(void 0===this.appUUID||null===this.appUUID)return new R("appUUID","undefined or null");if(!I.validatePattern(this.appUUID,/^[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("appUUID","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("taskUuid"===t){if(void 0===this.taskUuid||null===this.taskUuid)return new R("taskUuid","undefined or null");if(!I.validatePattern(this.taskUuid,/^[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("taskUuid","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("appUUID")&&null!==t.appUUID&&void 0!==t.appUUID&&n.setAppUUID(t.appUUID),t.hasOwnProperty("taskUuid")&&null!==t.taskUuid&&void 0!==t.taskUuid&&n.setTaskUuid(t.taskUuid),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=TT({},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&&ET(t.prototype,n),r&&ET(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function DT(e){return DT="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},DT(e)}function AT(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?AT(Object(n),!0).forEach(function(t){RT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function RT(e,t,n){return(t=NT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xT(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,NT(r.key),r)}}function NT(e){var t=function(e){if("object"!=DT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=DT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==DT(t)?t:t+""}IT.prototype.appUUID=void 0,IT.prototype.taskUuid=void 0,IT.prototype.$reserved=void 0,IT.prototype.$objectType=void 0,IT.prototype.$unknownFields=void 0;var MT=new WeakSet,VT=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,MT),this.$objectType="lifecycle.v4.svcmgr.PostServiceResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getServiceUUID",value:function(){return this.serviceUUID}},{key:"setServiceUUID",value:function(e){this.serviceUUID=e}},{key:"getTaskUuid",value:function(){return this.taskUuid}},{key:"setTaskUuid",value:function(e){this.taskUuid=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({},void 0!==this.getServiceUUID()&&null!==this.getServiceUUID()?{serviceUUID:this.getServiceUUID()}:{}),void 0!==this.getTaskUuid()&&null!==this.getTaskUuid()?{taskUuid:this.getTaskUuid()}:{}),{},{$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 F?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("serviceUUID"===t){if(void 0===this.serviceUUID||null===this.serviceUUID)return new R("serviceUUID","undefined or null");if(!I.validatePattern(this.serviceUUID,/^[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("serviceUUID","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("taskUuid"===t){if(void 0===this.taskUuid||null===this.taskUuid)return new R("taskUuid","undefined or null");if(!I.validatePattern(this.taskUuid,/^[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("taskUuid","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("serviceUUID")&&null!==t.serviceUUID&&void 0!==t.serviceUUID&&n.setServiceUUID(t.serviceUUID),t.hasOwnProperty("taskUuid")&&null!==t.taskUuid&&void 0!==t.taskUuid&&n.setTaskUuid(t.taskUuid),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&&xT(t.prototype,n),r&&xT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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)}function LT(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 JT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LT(Object(n),!0).forEach(function(t){WT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WT(e,t,n){return(t=zT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BT(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,zT(r.key),r)}}function zT(e){var t=function(e){if("object"!=_T(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_T(t)?t:t+""}VT.prototype.serviceUUID=void 0,VT.prototype.taskUuid=void 0,VT.prototype.$reserved=void 0,VT.prototype.$objectType=void 0,VT.prototype.$unknownFields=void 0;var qT=new WeakSet,KT=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,qT),this.filepath=t,this.$objectType="lifecycle.v4.svcmgr.RegistryBundle",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getFilepath",value:function(){return this.filepath}},{key:"setFilepath",value:function(e){this.filepath=e}},{key:"getClusterUuid",value:function(){return this.clusterUuid}},{key:"setClusterUuid",value:function(e){this.clusterUuid=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 JT(JT(JT({},void 0!==this.getFilepath()&&null!==this.getFilepath()?{filepath:this.getFilepath()}:{}),void 0!==this.getClusterUuid()&&null!==this.getClusterUuid()?{clusterUuid:this.getClusterUuid()}:{}),{},{$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 F?r=["filepath"]: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("filepath"===t&&(void 0===this.filepath||null===this.filepath))return new R("filepath","undefined or null");if("clusterUuid"===t){if(void 0===this.clusterUuid||null===this.clusterUuid)return new R("clusterUuid","undefined or null");if(!I.validatePattern(this.clusterUuid,/^[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("clusterUuid","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("filepath")&&null!==t.filepath&&void 0!==t.filepath&&n.setFilepath(t.filepath),t.hasOwnProperty("clusterUuid")&&null!==t.clusterUuid&&void 0!==t.clusterUuid&&n.setClusterUuid(t.clusterUuid),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=JT({},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&&BT(t.prototype,n),r&&BT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function HT(e){return HT="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},HT(e)}function GT(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 XT(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 ZT(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"!=HT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=HT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==HT(t)?t:t+""}function YT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(YT=function(){return!!e})()}function eF(e){return eF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eF(e)}function tF(e,t){return tF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tF(e,t)}KT.prototype.filepath=void 0,KT.prototype.clusterUuid=void 0,KT.prototype.$reserved=void 0,KT.prototype.$objectType=void 0,KT.prototype.$unknownFields=void 0;var nF=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=eF(t),function(e,t){if(t&&("object"==HT(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,YT()?Reflect.construct(t,n||[],eF(e).constructor):t.apply(e,n))}(this,t)).$objectType="lifecycle.v4.svcmgr.ServiceProjection",e.$reserved={$fv:"v4.r1"},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&&tF(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 F?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,Ew.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?GT(Object(n),!0).forEach(function(t){XT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GT(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&&ZT(n.prototype,r),o&&ZT(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ew);function rF(e){return rF="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},rF(e)}function oF(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 iF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oF(Object(n),!0).forEach(function(t){sF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sF(e,t,n){return(t=uF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aF(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,uF(r.key),r)}}function uF(e){var t=function(e){if("object"!=rF(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rF(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rF(t)?t:t+""}function lF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(lF=function(){return!!e})()}function cF(e){return cF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cF(e)}function fF(e,t){return fF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fF(e,t)}var dF=new WeakSet,pF=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=cF(t),function(e,t){if(t&&("object"==rF(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,lF()?Reflect.construct(t,n||[],cF(e).constructor):t.apply(e,n))}(this,t),dF),e.$objectType="lifecycle.v4.svcmgr.TaskReferenceInternal",e.$reserved={$fv:"v4.r1"},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&&fF(e,t)}(t,e),n=t,r=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"toJson",value:function(e){return iF(iF(iF(!1===e?iF({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}):{},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 F?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"extId"!==t||void 0!==this.extId&&null!==this.extId?new R(t,"no such property exists"):new R("extId","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,Se.constructFromObject(e,n,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&n.setExtId(e.extId),!r))for(var o in n.$unknownFields=iF({},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&&aF(n.prototype,r),o&&aF(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Se);pF.prototype.extId=void 0,Se.prototype.href=void 0,Se.prototype.rel=void 0;var yF={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",QUEUED:"QUEUED",RUNNING:"RUNNING",CANCELING:"CANCELING",SUCCEEDED:"SUCCEEDED",FAILED:"FAILED",CANCELED:"CANCELED",SKIPPED:"SKIPPED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(yF).find(function(t){return yF[t]===e});return null==t?yF.$UNKNOWN:yF[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case yF.$UNKNOWN:case yF.$REDACTED:case yF.QUEUED:case yF.RUNNING:case yF.CANCELING:case yF.SUCCEEDED:case yF.FAILED:case yF.CANCELED:case yF.SKIPPED:return;default:throw new Error("Invalid : must be TaskStatus.{ $UNKNOWN|$REDACTED|QUEUED|RUNNING|CANCELING|SUCCEEDED|FAILED|CANCELED|SKIPPED }")}}};Object.freeze(yF);const hF=yF;function vF(e){return vF="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},vF(e)}function bF(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 gF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bF(Object(n),!0).forEach(function(t){mF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mF(e,t,n){return(t=OF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wF(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,OF(r.key),r)}}function OF(e){var t=function(e){if("object"!=vF(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vF(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vF(t)?t:t+""}var kF=new WeakSet,jF=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,kF),this.$objectType="lifecycle.v4.svcmgr.TaskStep",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=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?gF(gF({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),{},{$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 F?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"name"!==t||void 0!==this.name&&null!==this.name?"$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("name","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("$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=gF({},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&&wF(t.prototype,n),r&&wF(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 PF(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 TF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PF(Object(n),!0).forEach(function(t){FF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function FF(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 EF(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"!=$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+""}jF.prototype.name=void 0,jF.prototype.$reserved=void 0,jF.prototype.$objectType=void 0,jF.prototype.$unknownFields=void 0;var CF=new WeakSet,IF=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,CF),this.$objectType="lifecycle.v4.svcmgr.TaskV2",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getMspUuid",value:function(){return this.mspUuid}},{key:"setMspUuid",value:function(e){this.mspUuid=e}},{key:"getOperation",value:function(){return this.operation}},{key:"setOperation",value:function(e){this.operation=e}},{key:"getOperationDescription",value:function(){return this.operationDescription}},{key:"setOperationDescription",value:function(e){this.operationDescription=e}},{key:"getParentTask",value:function(){return this.parentTask}},{key:"setParentTask",value:function(e){this.parentTask=e}},{key:"getCreatedTime",value:function(){return this.createdTime}},{key:"setCreatedTime",value:function(e){this.createdTime=e}},{key:"getStartedTime",value:function(){return this.startedTime}},{key:"setStartedTime",value:function(e){this.startedTime=e}},{key:"getCompletedTime",value:function(){return this.completedTime}},{key:"setCompletedTime",value:function(e){this.completedTime=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getProgressPercentage",value:function(){return this.progressPercentage}},{key:"setProgressPercentage",value:function(e){this.progressPercentage=e}},{key:"getEntitiesAffected",value:function(){return this.entitiesAffected}},{key:"setEntitiesAffected",value:function(e){this.entitiesAffected=e}},{key:"getSubTasks",value:function(){return this.subTasks}},{key:"setSubTasks",value:function(e){this.subTasks=e}},{key:"getSubSteps",value:function(){return this.subSteps}},{key:"setSubSteps",value:function(e){this.subSteps=e}},{key:"getIsCancelable",value:function(){return this.isCancelable}},{key:"setIsCancelable",value:function(e){this.isCancelable=e}},{key:"getOwnedBy",value:function(){return this.ownedBy}},{key:"setOwnedBy",value:function(e){this.ownedBy=e}},{key:"getCompletionDetails",value:function(){return this.completionDetails}},{key:"setCompletionDetails",value:function(e){this.completionDetails=e}},{key:"getErrorMessages",value:function(){return this.errorMessages}},{key:"setErrorMessages",value:function(e){this.errorMessages=e}},{key:"getLegacyErrorMessage",value:function(){return this.legacyErrorMessage}},{key:"setLegacyErrorMessage",value:function(e){this.legacyErrorMessage=e}},{key:"getWarnings",value:function(){return this.warnings}},{key:"setWarnings",value:function(e){this.warnings=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"getClusterExtIds",value:function(){return this.clusterExtIds}},{key:"setClusterExtIds",value:function(e){this.clusterExtIds=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 TF(!1===e?TF(TF(TF(TF(TF(TF(TF(TF(TF(TF(TF(TF(TF(TF(TF(TF(TF(TF(TF(TF(TF(TF(TF({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getMspUuid()&&null!==this.getMspUuid()?{mspUuid:this.getMspUuid()}:{}),void 0!==this.getOperation()&&null!==this.getOperation()?{operation:this.getOperation()}:{}),void 0!==this.getOperationDescription()&&null!==this.getOperationDescription()?{operationDescription:this.getOperationDescription()}:{}),void 0!==this.getParentTask()&&null!==this.getParentTask()?{parentTask:this.getParentTask().toJson(!1)}:{}),void 0!==this.getCreatedTime()&&null!==this.getCreatedTime()?{createdTime:this.getCreatedTime()}:{}),void 0!==this.getStartedTime()&&null!==this.getStartedTime()?{startedTime:this.getStartedTime()}:{}),void 0!==this.getCompletedTime()&&null!==this.getCompletedTime()?{completedTime:this.getCompletedTime()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getProgressPercentage()&&null!==this.getProgressPercentage()?{progressPercentage:this.getProgressPercentage()}:{}),void 0!==this.getEntitiesAffected()&&null!==this.getEntitiesAffected()?{entitiesAffected:this.getEntitiesAffected().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getSubTasks()&&null!==this.getSubTasks()?{subTasks:this.getSubTasks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getSubSteps()&&null!==this.getSubSteps()?{subSteps:this.getSubSteps().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getIsCancelable()&&null!==this.getIsCancelable()?{isCancelable:this.getIsCancelable()}:{}),void 0!==this.getOwnedBy()&&null!==this.getOwnedBy()?{ownedBy:this.getOwnedBy().toJson(!1)}:{}),void 0!==this.getCompletionDetails()&&null!==this.getCompletionDetails()?{completionDetails:this.getCompletionDetails().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getErrorMessages()&&null!==this.getErrorMessages()?{errorMessages:this.getErrorMessages().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getLegacyErrorMessage()&&null!==this.getLegacyErrorMessage()?{legacyErrorMessage:this.getLegacyErrorMessage()}:{}),void 0!==this.getWarnings()&&null!==this.getWarnings()?{warnings:this.getWarnings().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),void 0!==this.getClusterExtIds()&&null!==this.getClusterExtIds()?{clusterExtIds:this.getClusterExtIds()}:{}):TF(TF(TF(TF(TF(TF(TF(TF(TF(TF({},void 0!==this.getMspUuid()&&null!==this.getMspUuid()?{mspUuid:this.getMspUuid()}:{}),void 0!==this.getParentTask()&&null!==this.getParentTask()?{parentTask:this.getParentTask().toJson(!1)}:{}),void 0!==this.getCreatedTime()&&null!==this.getCreatedTime()?{createdTime:this.getCreatedTime()}:{}),void 0!==this.getStartedTime()&&null!==this.getStartedTime()?{startedTime:this.getStartedTime()}:{}),void 0!==this.getCompletedTime()&&null!==this.getCompletedTime()?{completedTime:this.getCompletedTime()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getOwnedBy()&&null!==this.getOwnedBy()?{ownedBy:this.getOwnedBy().toJson(!1)}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),{},{$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 F?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(!I.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}$/")}if("mspUuid"===t&&(void 0===this.mspUuid||null===this.mspUuid))return new R("mspUuid","undefined or null");if("operation"===t&&(void 0===this.operation||null===this.operation))return new R("operation","undefined or null");if("operationDescription"===t&&(void 0===this.operationDescription||null===this.operationDescription))return new R("operationDescription","undefined or null");if("parentTask"===t&&(void 0===this.parentTask||null===this.parentTask))return new R("parentTask","undefined or null");if("createdTime"===t&&(void 0===this.createdTime||null===this.createdTime))return new R("createdTime","undefined or null");if("startedTime"===t&&(void 0===this.startedTime||null===this.startedTime))return new R("startedTime","undefined or null");if("completedTime"===t&&(void 0===this.completedTime||null===this.completedTime))return new R("completedTime","undefined or null");if("status"===t&&(void 0===this.status||null===this.status))return new R("status","undefined or null");if("name"===t&&(void 0===this.name||null===this.name))return new R("name","undefined or null");if("type"===t&&(void 0===this.type||null===this.type))return new R("type","undefined or null");if("progressPercentage"===t){if(void 0===this.progressPercentage||null===this.progressPercentage)return new R("progressPercentage","undefined or null");if(!I.validateMaximum(this.progressPercentage,100))return new R("progressPercentage","does not satisfy required maximum constraint: 100");if(!I.validateMinimum(this.progressPercentage,0))return new R("progressPercentage","does not satisfy required minimum constraint: 0")}if("entitiesAffected"===t){if(void 0===this.entitiesAffected||null===this.entitiesAffected)return new R("entitiesAffected","undefined or null");if(!I.validateMaxItems(this.entitiesAffected,1e3))return new R("entitiesAffected","does not satisfy required maxItems constraint: 1000")}if("subTasks"===t){if(void 0===this.subTasks||null===this.subTasks)return new R("subTasks","undefined or null");if(!I.validateMaxItems(this.subTasks,1e3))return new R("subTasks","does not satisfy required maxItems constraint: 1000")}if("subSteps"===t){if(void 0===this.subSteps||null===this.subSteps)return new R("subSteps","undefined or null");if(!I.validateMaxItems(this.subSteps,50))return new R("subSteps","does not satisfy required maxItems constraint: 50")}if("isCancelable"===t&&(void 0===this.isCancelable||null===this.isCancelable))return new R("isCancelable","undefined or null");if("ownedBy"===t&&(void 0===this.ownedBy||null===this.ownedBy))return new R("ownedBy","undefined or null");if("completionDetails"===t){if(void 0===this.completionDetails||null===this.completionDetails)return new R("completionDetails","undefined or null");if(!I.validateMaxItems(this.completionDetails,50))return new R("completionDetails","does not satisfy required maxItems constraint: 50")}if("errorMessages"===t){if(void 0===this.errorMessages||null===this.errorMessages)return new R("errorMessages","undefined or null");if(!I.validateMaxItems(this.errorMessages,100))return new R("errorMessages","does not satisfy required maxItems constraint: 100")}if("legacyErrorMessage"===t&&(void 0===this.legacyErrorMessage||null===this.legacyErrorMessage))return new R("legacyErrorMessage","undefined or null");if("warnings"===t){if(void 0===this.warnings||null===this.warnings)return new R("warnings","undefined or null");if(!I.validateMaxItems(this.warnings,50))return new R("warnings","does not satisfy required maxItems constraint: 50")}if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new R("lastUpdatedTime","undefined or null");if("clusterExtIds"===t){if(void 0===this.clusterExtIds||null===this.clusterExtIds)return new R("clusterExtIds","undefined or null");if(!I.validateMaxItems(this.clusterExtIds,500))return new R("clusterExtIds","does not satisfy required maxItems constraint: 500")}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("extId")&&null!==t.extId&&void 0!==t.extId&&s.setExtId(t.extId),t.hasOwnProperty("mspUuid")&&null!==t.mspUuid&&void 0!==t.mspUuid&&s.setMspUuid(t.mspUuid),t.hasOwnProperty("operation")&&null!==t.operation&&void 0!==t.operation&&s.setOperation(t.operation),t.hasOwnProperty("operationDescription")&&null!==t.operationDescription&&void 0!==t.operationDescription&&s.setOperationDescription(t.operationDescription),t.hasOwnProperty("parentTask")&&null!==t.parentTask&&void 0!==t.parentTask&&s.setParentTask(pF.constructFromObject(t.parentTask)),t.hasOwnProperty("createdTime")&&null!==t.createdTime&&void 0!==t.createdTime&&s.setCreatedTime(t.createdTime),t.hasOwnProperty("startedTime")&&null!==t.startedTime&&void 0!==t.startedTime&&s.setStartedTime(t.startedTime),t.hasOwnProperty("completedTime")&&null!==t.completedTime&&void 0!==t.completedTime&&s.setCompletedTime(t.completedTime),t.hasOwnProperty("status")&&null!==t.status&&void 0!==t.status&&s.setStatus(hF.constructFromObject(t.status)),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&s.setName(t.name),t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&s.setType(t.type),t.hasOwnProperty("progressPercentage")&&null!==t.progressPercentage&&void 0!==t.progressPercentage&&s.setProgressPercentage(t.progressPercentage),t.hasOwnProperty("entitiesAffected")&&null!==t.entitiesAffected&&void 0!==t.entitiesAffected){for(i=[],n=t.entitiesAffected,o=0;o<n.length;o++)r=yP.constructFromObject(n[o],void 0),i.push(r);s.setEntitiesAffected(i)}if(t.hasOwnProperty("subTasks")&&null!==t.subTasks&&void 0!==t.subTasks){for(i=[],n=t.subTasks,o=0;o<n.length;o++)r=pF.constructFromObject(n[o],void 0),i.push(r);s.setSubTasks(i)}if(t.hasOwnProperty("subSteps")&&null!==t.subSteps&&void 0!==t.subSteps){for(i=[],n=t.subSteps,o=0;o<n.length;o++)r=jF.constructFromObject(n[o],void 0),i.push(r);s.setSubSteps(i)}if(t.hasOwnProperty("isCancelable")&&null!==t.isCancelable&&void 0!==t.isCancelable&&s.setIsCancelable(t.isCancelable),t.hasOwnProperty("ownedBy")&&null!==t.ownedBy&&void 0!==t.ownedBy&&s.setOwnedBy(jT.constructFromObject(t.ownedBy)),t.hasOwnProperty("completionDetails")&&null!==t.completionDetails&&void 0!==t.completionDetails){for(i=[],n=t.completionDetails,o=0;o<n.length;o++)r=ce.constructFromObject(n[o],void 0),i.push(r);s.setCompletionDetails(i)}if(t.hasOwnProperty("errorMessages")&&null!==t.errorMessages&&void 0!==t.errorMessages){for(i=[],n=t.errorMessages,o=0;o<n.length;o++)r=Rt.constructFromObject(n[o],void 0),i.push(r);s.setErrorMessages(i)}if(t.hasOwnProperty("legacyErrorMessage")&&null!==t.legacyErrorMessage&&void 0!==t.legacyErrorMessage&&s.setLegacyErrorMessage(t.legacyErrorMessage),t.hasOwnProperty("warnings")&&null!==t.warnings&&void 0!==t.warnings){for(i=[],n=t.warnings,o=0;o<n.length;o++)r=Rt.constructFromObject(n[o],void 0),i.push(r);s.setWarnings(i)}if(t.hasOwnProperty("lastUpdatedTime")&&null!==t.lastUpdatedTime&&void 0!==t.lastUpdatedTime&&s.setLastUpdatedTime(t.lastUpdatedTime),t.hasOwnProperty("clusterExtIds")&&null!==t.clusterExtIds&&void 0!==t.clusterExtIds){for(i=[],n=t.clusterExtIds,o=0;o<n.length;o++)i.push(n[o]);s.setClusterExtIds(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=TF({},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&&EF(t.prototype,n),r&&EF(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 AF(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 UF(e,t,n){return(t=xF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RF(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,xF(r.key),r)}}function xF(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 NF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(NF=function(){return!!e})()}function MF(e){return MF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MF(e)}function VF(e,t){return VF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VF(e,t)}IF.prototype.extId=void 0,IF.prototype.mspUuid=void 0,IF.prototype.operation=void 0,IF.prototype.operationDescription=void 0,IF.prototype.parentTask=void 0,IF.prototype.createdTime=void 0,IF.prototype.startedTime=void 0,IF.prototype.completedTime=void 0,IF.prototype.status=void 0,IF.prototype.name=void 0,IF.TypeEnum={SERVICE:"Service",APPLICATION:"Application",CLUSTER:"Cluster"},IF.prototype.type=void 0,IF.prototype.progressPercentage=void 0,IF.prototype.entitiesAffected=void 0,IF.prototype.subTasks=void 0,IF.prototype.subSteps=void 0,IF.prototype.isCancelable=void 0,IF.prototype.ownedBy=void 0,IF.prototype.completionDetails=void 0,IF.prototype.errorMessages=void 0,IF.prototype.legacyErrorMessage=void 0,IF.prototype.warnings=void 0,IF.prototype.lastUpdatedTime=void 0,IF.prototype.clusterExtIds=void 0,IF.prototype.$reserved=void 0,IF.prototype.$objectType=void 0,IF.prototype.$unknownFields=void 0;var _F=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=MF(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,NF()?Reflect.construct(t,n||[],MF(e).constructor):t.apply(e,n))}(this,t)).$objectType="lifecycle.v4.svcmgr.TaskV2Projection",e.$reserved={$fv:"v4.r1"},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&&VF(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 F?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,IF.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?AF(Object(n),!0).forEach(function(t){UF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AF(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&&RF(n.prototype,r),o&&RF(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(IF);const LF={ApiClient:lt,BundlesApi:yi,ConfigApi:fs,EntitiesApi:hu,ImagesApi:Vu,InventoryApi:Ef,LcmSummariesApi:Rd,NotificationsApi:ly,PrechecksApi:Zy,RecommendationsApi:Qv,StatusApi:Hb,UpgradesApi:Sg,NonMigratableVmInfo:zg,BasicAuth:Bl,FQDN:Ql,Flag:W,IPAddress:Ng,IPAddressOrFQDN:kc,IPv4Address:sc,IPv6Address:yc,KVPair:ce,KVStringPair:Yg,MapOfStringWrapper:Y,Message:Oe,MessageSeverity:pe,TenantAwareModel:Jn,ApiLink:Se,ApiResponseMetadata:Me,ExternalizableAbstractModel:Yn,AvailableVersionStatus:Or,CheckSumType:xr,Credential:lf,CredentialReference:al,DeploySpec:am,EntityBaseModel:Ur,EntityDeploySpec:mh,EntityType:jr,EntityUpdateSpec:ms,HypervisorType:Nd,InProgressOpDetails:Mf,LcmMd5Sum:ar,LcmSha256Sum:hr,LocationInfo:Ns,LocationType:Ss,ManagementServer:by,NotificationType:Vd,OperationCredential:bm,OperationType:Cf,PrechecksSpec:Fy,PreloadSpec:Fs,SystemAutoMgmtFlag:my,UpgradeSpec:ig,VendorManagementCredential:Zc,VendorManagementName:lm,AppMessage:Rt,ErrorResponse:fn,SchemaValidationError:Yt,SchemaValidationErrorMessage:Bt,ComputeNotificationsApiResponse:Bp,ComputeRecommendationsApiResponse:ch,InventoryApiResponse:Qu,InventorySpec:gf,PrechecksApiResponse:_y,PreloadArtifactsApiResponse:Ba,UpgradeApiResponse:gg,AvailableVersion:ra,Bundle:ho,BundleType:br,BundleVendor:mr,Capability:_f,ResourcesConfig:Fi,ConnectivityType:vi,CreateBundleApiResponse:Wo,DeleteBundleByIdApiResponse:An,DependentEntity:Hs,DeployableVersion:Qh,Entity:va,FrameworkVersionInfo:sb,GetBundleByIdApiResponse:ri,GetConfigApiResponse:_i,GetEntityByIdApiResponse:Ca,GetLcmSummaryByIdApiResponse:cd,GetNotificationsByIdApiResponse:Cp,GetRecommendationByIdApiResponse:Lv,GetStatusApiResponse:Mb,Image:to,ImageFile:Br,InProgressOpInfo:yb,LcmSummary:Zf,ListBundlesApiResponse:So,ListEntitiesApiResponse:ou,ListImagesApiResponse:Eu,ListLcmSummariesApiResponse:$d,Notification:bp,NotificationDetail:Gd,NotificationItem:sp,NotificationsSpec:Yp,RecommendationResult:Ev,RecommendationSpec:_h,SeverityLevel:Ld,StatusInfo:Pb,TargetEntity:Ch,UpdateConfigApiResponse:es,UpdatedTargetEntity:lv,UpdatedTargetEntityResult:bv,AhvClientConfig:xm,AhvNetworkResourceConfig:rw,AhvResourceConfig:mw,Application:Mw,ApplicationProjection:Hw,BaseClientConfig:Pm,ClientConfig:hO,Cluster:O$,ClusterDeploymentType:gO,ClusterManagementIps:TO,ClusterNetworkConfig:XO,ClusterResourceConfig:Pk,ClusterStorageClass:Jk,ClusterType:Bk,ClusterUpgradeInfo:S$,ComponentDetails:M$,SvcmgrConfig:Qk,CustomValue:oP,CustomValueItem:G$,Deployment:sP,EntityReference:yP,Environment:vP,EsxClientConfig:iO,EsxNetworkResourceConfig:ak,EsxResourceConfig:hk,Health:UP,HealthComponent:TP,History:WP,HistoryProjection:YP,Info:aT,Install:hT,IpRange:UO,LoadBalancer:Pj,LoadBalancerAccessInterface:sj,LoadBalancerConfig:n$,LoadBalancerConfigObject:Hj,LoadBalancerConfigType:Fj,LoadBalancerNetworkConfig:vj,LoadBalancerResourceConfig:Mj,LoadBalancerType:_j,LoggingVolumeConfig:c$,NicType:Mm,NutanixStorageClass:Uk,OwnerReference:jT,PostAppResponse:IT,PostServiceResponse:VT,RegistryBundle:KT,Service:Ew,ServiceProjection:nF,Status:gP,TaskReferenceInternal:pF,TaskStatus:hF,TaskStep:jF,TaskV2:IF,TaskV2Projection:_F,VcenterLocation:JO,VmNetworkResourceConfig:qm,VmResourceConfig:fw,TaskReference:wn,BasicAuthCredential:Cc,IntersightConnectionType:ll,IntersightCredential:xl,KeyBasedAuth:bl,KeyBasedAuthCredential:Pl,VcenterCredential:Lc}})(),r.default})());
|