@nutanix-scratch/lifecycle-js-client 4.0.1-beta.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/LICENSE.txt +202 -49
- package/README.md +53 -36
- package/dist/Ntnx-Lifecycle-js-client-prod.js +1 -1
- package/dist/Ntnx-Lifecycle-js-client.js +1195 -106
- package/dist/es/ApiClient.d.ts +14 -1
- package/dist/es/ApiClient.js +254 -208
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +10 -10
- package/dist/es/apis/bundles-endpoints.d.ts +74 -0
- package/dist/es/apis/bundles-endpoints.js +233 -0
- package/dist/es/apis/config-endpoints.d.ts +4 -6
- package/dist/es/apis/config-endpoints.js +22 -19
- package/dist/es/apis/entities-endpoints.d.ts +17 -16
- package/dist/es/apis/entities-endpoints.js +65 -30
- package/dist/es/apis/images-endpoints.d.ts +3 -16
- package/dist/es/apis/images-endpoints.js +16 -28
- package/dist/es/apis/inventory-endpoints.d.ts +9 -2
- package/dist/es/apis/inventory-endpoints.js +31 -19
- package/dist/es/apis/lcmsummaries-endpoints.d.ts +55 -0
- package/dist/es/apis/lcmsummaries-endpoints.js +154 -0
- package/dist/es/apis/notifications-endpoints.d.ts +6 -7
- package/dist/es/apis/notifications-endpoints.js +25 -22
- package/dist/es/apis/prechecks-endpoints.d.ts +4 -3
- package/dist/es/apis/prechecks-endpoints.js +23 -17
- package/dist/es/apis/recommendations-endpoints.d.ts +4 -6
- package/dist/es/apis/recommendations-endpoints.js +23 -20
- package/dist/es/apis/status-endpoints.d.ts +1 -1
- package/dist/es/apis/status-endpoints.js +14 -14
- package/dist/es/apis/upgrades-endpoints.d.ts +4 -3
- package/dist/es/apis/upgrades-endpoints.js +23 -17
- package/dist/es/index.d.ts +203 -5
- package/dist/es/index.js +803 -11
- 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 +32 -26
- package/dist/es/models/common/v1/config/Flag.js +66 -22
- 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 +35 -26
- package/dist/es/models/common/v1/config/KVPair.js +71 -25
- 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 +58 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/es/models/common/v1/config/Message.d.ts +41 -38
- package/dist/es/models/common/v1/config/Message.js +58 -26
- package/dist/es/models/common/v1/config/MessageSeverity.js +8 -8
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +24 -22
- package/dist/es/models/common/v1/config/TenantAwareModel.js +55 -23
- package/dist/es/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/es/models/common/v1/response/ApiLink.js +54 -22
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +72 -28
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
- package/dist/es/models/lifecycle/v4/common/AvailableVersionStatus.js +18 -12
- package/dist/es/models/lifecycle/v4/common/CheckSumType.js +9 -9
- 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 +86 -0
- package/dist/es/models/lifecycle/v4/common/DeploySpec.js +293 -0
- package/dist/es/models/lifecycle/v4/common/EntityBaseModel.d.ts +44 -38
- package/dist/es/models/lifecycle/v4/common/EntityBaseModel.js +109 -37
- package/dist/es/models/lifecycle/v4/common/EntityDeploySpec.d.ts +39 -19
- package/dist/es/models/lifecycle/v4/common/EntityDeploySpec.js +52 -20
- package/dist/es/models/lifecycle/v4/common/EntityType.js +8 -8
- package/dist/es/models/lifecycle/v4/common/EntityUpdateSpec.d.ts +30 -28
- package/dist/es/models/lifecycle/v4/common/EntityUpdateSpec.js +64 -26
- package/dist/es/models/lifecycle/v4/common/HypervisorType.js +8 -8
- package/dist/es/models/lifecycle/v4/common/InProgressOpDetails.d.ts +63 -0
- package/dist/es/models/lifecycle/v4/common/InProgressOpDetails.js +313 -0
- package/dist/es/models/lifecycle/v4/common/LcmMd5Sum.d.ts +62 -0
- package/dist/es/models/lifecycle/v4/common/LcmMd5Sum.js +284 -0
- package/dist/es/models/lifecycle/v4/common/LcmSha256Sum.d.ts +62 -0
- package/dist/es/models/lifecycle/v4/common/LcmSha256Sum.js +284 -0
- package/dist/es/models/lifecycle/v4/common/LocationInfo.d.ts +31 -26
- package/dist/es/models/lifecycle/v4/common/LocationInfo.js +57 -22
- package/dist/es/models/lifecycle/v4/common/LocationType.js +9 -9
- package/dist/es/models/lifecycle/v4/common/ManagementServer.d.ts +44 -42
- package/dist/es/models/lifecycle/v4/common/ManagementServer.js +77 -33
- package/dist/es/models/lifecycle/v4/common/NotificationType.js +8 -8
- 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 +8 -8
- package/dist/es/models/lifecycle/v4/common/PrechecksSpec.d.ts +71 -35
- package/dist/es/models/lifecycle/v4/common/PrechecksSpec.js +112 -28
- package/dist/es/models/lifecycle/v4/common/PreloadSpec.d.ts +69 -0
- package/dist/es/models/lifecycle/v4/common/PreloadSpec.js +293 -0
- package/dist/es/models/lifecycle/v4/common/SystemAutoMgmtFlag.js +16 -10
- package/dist/es/models/lifecycle/v4/common/UpgradeSpec.d.ts +41 -21
- package/dist/es/models/lifecycle/v4/common/UpgradeSpec.js +93 -32
- 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 +59 -50
- package/dist/es/models/lifecycle/v4/error/AppMessage.js +65 -33
- package/dist/es/models/lifecycle/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/es/models/lifecycle/v4/error/ErrorResponse.js +65 -26
- package/dist/es/models/lifecycle/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/es/models/lifecycle/v4/error/SchemaValidationError.js +63 -30
- package/dist/es/models/lifecycle/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/es/models/lifecycle/v4/error/SchemaValidationErrorMessage.js +56 -24
- package/dist/es/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/operations/InventoryApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/operations/InventoryApiResponse.js +60 -28
- 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 +65 -25
- package/dist/es/models/lifecycle/v4/operations/PrechecksApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/operations/PreloadArtifactsApiResponse.d.ts +99 -0
- package/dist/es/models/lifecycle/v4/operations/PreloadArtifactsApiResponse.js +343 -0
- package/dist/es/models/lifecycle/v4/operations/UpgradeApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/operations/UpgradeApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/AvailableVersion.d.ts +114 -85
- package/dist/es/models/lifecycle/v4/resources/AvailableVersion.js +89 -44
- package/dist/es/models/lifecycle/v4/resources/Bundle.d.ts +159 -0
- package/dist/es/models/lifecycle/v4/resources/Bundle.js +551 -0
- package/dist/es/models/lifecycle/v4/resources/BundleType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/resources/BundleType.js +97 -0
- package/dist/es/models/lifecycle/v4/resources/BundleVendor.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/resources/BundleVendor.js +85 -0
- package/dist/es/models/lifecycle/v4/resources/Capability.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/resources/Capability.js +85 -0
- package/dist/es/models/lifecycle/v4/resources/Config.d.ts +80 -74
- package/dist/es/models/lifecycle/v4/resources/Config.js +101 -48
- package/dist/es/models/lifecycle/v4/resources/ConnectivityType.js +8 -8
- package/dist/es/models/lifecycle/v4/resources/CreateBundleApiResponse.d.ts +102 -0
- package/dist/es/models/lifecycle/v4/resources/CreateBundleApiResponse.js +343 -0
- package/dist/es/models/lifecycle/v4/resources/DeleteBundleByIdApiResponse.d.ts +99 -0
- package/dist/es/models/lifecycle/v4/resources/DeleteBundleByIdApiResponse.js +343 -0
- package/dist/es/models/lifecycle/v4/resources/DependentEntity.d.ts +31 -19
- package/dist/es/models/lifecycle/v4/resources/DependentEntity.js +102 -29
- package/dist/es/models/lifecycle/v4/resources/DeployableVersion.d.ts +37 -25
- package/dist/es/models/lifecycle/v4/resources/DeployableVersion.js +107 -31
- package/dist/es/models/lifecycle/v4/resources/Entity.d.ts +169 -78
- package/dist/es/models/lifecycle/v4/resources/Entity.js +181 -49
- package/dist/es/models/lifecycle/v4/resources/FrameworkVersionInfo.d.ts +34 -32
- package/dist/es/models/lifecycle/v4/resources/FrameworkVersionInfo.js +62 -24
- package/dist/es/models/lifecycle/v4/resources/GetBundleByIdApiResponse.d.ts +99 -0
- package/dist/es/models/lifecycle/v4/resources/GetBundleByIdApiResponse.js +343 -0
- package/dist/es/models/lifecycle/v4/resources/GetConfigApiResponse.d.ts +63 -24
- package/dist/es/models/lifecycle/v4/resources/GetConfigApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/GetEntityByIdApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/GetLcmSummaryByIdApiResponse.d.ts +99 -0
- package/dist/es/models/lifecycle/v4/resources/GetLcmSummaryByIdApiResponse.js +343 -0
- package/dist/es/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.d.ts +68 -25
- package/dist/es/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/GetStatusApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/resources/GetStatusApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/Image.d.ts +69 -55
- package/dist/es/models/lifecycle/v4/resources/Image.js +122 -54
- package/dist/es/models/lifecycle/v4/resources/ImageFile.d.ts +52 -50
- package/dist/es/models/lifecycle/v4/resources/ImageFile.js +73 -32
- package/dist/es/models/lifecycle/v4/resources/InProgressOpInfo.d.ts +29 -26
- package/dist/es/models/lifecycle/v4/resources/InProgressOpInfo.js +54 -22
- package/dist/es/models/lifecycle/v4/resources/LcmSummary.d.ts +115 -0
- package/dist/es/models/lifecycle/v4/resources/LcmSummary.js +532 -0
- package/dist/es/models/lifecycle/v4/resources/ListBundlesApiResponse.d.ts +99 -0
- package/dist/es/models/lifecycle/v4/resources/ListBundlesApiResponse.js +365 -0
- package/dist/es/models/lifecycle/v4/resources/ListEntitiesApiResponse.d.ts +69 -25
- package/dist/es/models/lifecycle/v4/resources/ListEntitiesApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/ListImagesApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/resources/ListImagesApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/ListLcmSummariesApiResponse.d.ts +99 -0
- package/dist/es/models/lifecycle/v4/resources/ListLcmSummariesApiResponse.js +365 -0
- package/dist/es/models/lifecycle/v4/resources/Notification.d.ts +61 -20
- package/dist/es/models/lifecycle/v4/resources/Notification.js +77 -30
- package/dist/es/models/lifecycle/v4/resources/NotificationDetail.d.ts +29 -26
- package/dist/es/models/lifecycle/v4/resources/NotificationDetail.js +57 -22
- package/dist/es/models/lifecycle/v4/resources/NotificationItem.d.ts +64 -43
- package/dist/es/models/lifecycle/v4/resources/NotificationItem.js +116 -37
- package/dist/es/models/lifecycle/v4/resources/NotificationsSpec.d.ts +87 -0
- package/dist/es/models/lifecycle/v4/resources/NotificationsSpec.js +345 -0
- package/dist/es/models/lifecycle/v4/resources/RecommendationResult.d.ts +177 -44
- package/dist/es/models/lifecycle/v4/resources/RecommendationResult.js +85 -38
- package/dist/es/models/lifecycle/v4/resources/RecommendationSpec.d.ts +25 -21
- package/dist/es/models/lifecycle/v4/resources/RecommendationSpec.js +57 -22
- package/dist/es/models/lifecycle/v4/resources/SeverityLevel.js +8 -8
- package/dist/es/models/lifecycle/v4/resources/StatusInfo.d.ts +69 -52
- package/dist/es/models/lifecycle/v4/resources/StatusInfo.js +140 -71
- package/dist/es/models/lifecycle/v4/resources/TargetEntity.d.ts +44 -32
- package/dist/es/models/lifecycle/v4/resources/TargetEntity.js +114 -35
- package/dist/es/models/lifecycle/v4/resources/UpdateConfigApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/resources/UpdateConfigApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntity.d.ts +31 -19
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntity.js +102 -29
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntityResult.d.ts +55 -27
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js +59 -24
- 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/svcmgr/ClientConfig.js +403 -0
- 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 +24 -22
- package/dist/es/models/prism/v4/config/TaskReference.js +61 -26
- 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 +6 -6
- package/dist/es/utils/ValidationUtils.js +6 -6
- package/dist/lib/ApiClient.d.ts +14 -1
- package/dist/lib/ApiClient.js +254 -208
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +10 -10
- package/dist/lib/apis/bundles-endpoints.d.ts +74 -0
- package/dist/lib/apis/bundles-endpoints.js +233 -0
- package/dist/lib/apis/config-endpoints.d.ts +4 -6
- package/dist/lib/apis/config-endpoints.js +22 -19
- package/dist/lib/apis/entities-endpoints.d.ts +17 -16
- package/dist/lib/apis/entities-endpoints.js +65 -30
- package/dist/lib/apis/images-endpoints.d.ts +3 -16
- package/dist/lib/apis/images-endpoints.js +16 -28
- package/dist/lib/apis/inventory-endpoints.d.ts +9 -2
- package/dist/lib/apis/inventory-endpoints.js +31 -19
- package/dist/lib/apis/lcmsummaries-endpoints.d.ts +55 -0
- package/dist/lib/apis/lcmsummaries-endpoints.js +154 -0
- package/dist/lib/apis/notifications-endpoints.d.ts +6 -7
- package/dist/lib/apis/notifications-endpoints.js +25 -22
- package/dist/lib/apis/prechecks-endpoints.d.ts +4 -3
- package/dist/lib/apis/prechecks-endpoints.js +23 -17
- package/dist/lib/apis/recommendations-endpoints.d.ts +4 -6
- package/dist/lib/apis/recommendations-endpoints.js +23 -20
- package/dist/lib/apis/status-endpoints.d.ts +1 -1
- package/dist/lib/apis/status-endpoints.js +14 -14
- package/dist/lib/apis/upgrades-endpoints.d.ts +4 -3
- package/dist/lib/apis/upgrades-endpoints.js +23 -17
- package/dist/lib/index.d.ts +203 -5
- package/dist/lib/index.js +803 -11
- 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 +32 -26
- package/dist/lib/models/common/v1/config/Flag.js +66 -22
- 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 +35 -26
- package/dist/lib/models/common/v1/config/KVPair.js +71 -25
- 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 +58 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +41 -38
- package/dist/lib/models/common/v1/config/Message.js +58 -26
- package/dist/lib/models/common/v1/config/MessageSeverity.js +8 -8
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +24 -22
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +55 -23
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/lib/models/common/v1/response/ApiLink.js +54 -22
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +72 -28
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
- package/dist/lib/models/lifecycle/v4/common/AvailableVersionStatus.js +18 -12
- package/dist/lib/models/lifecycle/v4/common/CheckSumType.js +9 -9
- 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 +86 -0
- package/dist/lib/models/lifecycle/v4/common/DeploySpec.js +293 -0
- package/dist/lib/models/lifecycle/v4/common/EntityBaseModel.d.ts +44 -38
- package/dist/lib/models/lifecycle/v4/common/EntityBaseModel.js +109 -37
- package/dist/lib/models/lifecycle/v4/common/EntityDeploySpec.d.ts +39 -19
- package/dist/lib/models/lifecycle/v4/common/EntityDeploySpec.js +52 -20
- package/dist/lib/models/lifecycle/v4/common/EntityType.js +8 -8
- package/dist/lib/models/lifecycle/v4/common/EntityUpdateSpec.d.ts +30 -28
- package/dist/lib/models/lifecycle/v4/common/EntityUpdateSpec.js +64 -26
- package/dist/lib/models/lifecycle/v4/common/HypervisorType.js +8 -8
- package/dist/lib/models/lifecycle/v4/common/InProgressOpDetails.d.ts +63 -0
- package/dist/lib/models/lifecycle/v4/common/InProgressOpDetails.js +313 -0
- package/dist/lib/models/lifecycle/v4/common/LcmMd5Sum.d.ts +62 -0
- package/dist/lib/models/lifecycle/v4/common/LcmMd5Sum.js +284 -0
- package/dist/lib/models/lifecycle/v4/common/LcmSha256Sum.d.ts +62 -0
- package/dist/lib/models/lifecycle/v4/common/LcmSha256Sum.js +284 -0
- package/dist/lib/models/lifecycle/v4/common/LocationInfo.d.ts +31 -26
- package/dist/lib/models/lifecycle/v4/common/LocationInfo.js +57 -22
- package/dist/lib/models/lifecycle/v4/common/LocationType.js +9 -9
- package/dist/lib/models/lifecycle/v4/common/ManagementServer.d.ts +44 -42
- package/dist/lib/models/lifecycle/v4/common/ManagementServer.js +77 -33
- package/dist/lib/models/lifecycle/v4/common/NotificationType.js +8 -8
- 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 +8 -8
- package/dist/lib/models/lifecycle/v4/common/PrechecksSpec.d.ts +71 -35
- package/dist/lib/models/lifecycle/v4/common/PrechecksSpec.js +112 -28
- package/dist/lib/models/lifecycle/v4/common/PreloadSpec.d.ts +69 -0
- package/dist/lib/models/lifecycle/v4/common/PreloadSpec.js +293 -0
- package/dist/lib/models/lifecycle/v4/common/SystemAutoMgmtFlag.js +16 -10
- package/dist/lib/models/lifecycle/v4/common/UpgradeSpec.d.ts +41 -21
- package/dist/lib/models/lifecycle/v4/common/UpgradeSpec.js +93 -32
- 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 +59 -50
- package/dist/lib/models/lifecycle/v4/error/AppMessage.js +65 -33
- package/dist/lib/models/lifecycle/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/lib/models/lifecycle/v4/error/ErrorResponse.js +65 -26
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationError.js +63 -30
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationErrorMessage.js +56 -24
- package/dist/lib/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/operations/InventoryApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/operations/InventoryApiResponse.js +60 -28
- 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 +65 -25
- package/dist/lib/models/lifecycle/v4/operations/PrechecksApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/operations/PreloadArtifactsApiResponse.d.ts +99 -0
- package/dist/lib/models/lifecycle/v4/operations/PreloadArtifactsApiResponse.js +343 -0
- package/dist/lib/models/lifecycle/v4/operations/UpgradeApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/operations/UpgradeApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/AvailableVersion.d.ts +114 -85
- package/dist/lib/models/lifecycle/v4/resources/AvailableVersion.js +89 -44
- package/dist/lib/models/lifecycle/v4/resources/Bundle.d.ts +159 -0
- package/dist/lib/models/lifecycle/v4/resources/Bundle.js +551 -0
- package/dist/lib/models/lifecycle/v4/resources/BundleType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/resources/BundleType.js +97 -0
- package/dist/lib/models/lifecycle/v4/resources/BundleVendor.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/resources/BundleVendor.js +85 -0
- package/dist/lib/models/lifecycle/v4/resources/Capability.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/resources/Capability.js +85 -0
- package/dist/lib/models/lifecycle/v4/resources/Config.d.ts +80 -74
- package/dist/lib/models/lifecycle/v4/resources/Config.js +101 -48
- package/dist/lib/models/lifecycle/v4/resources/ConnectivityType.js +8 -8
- package/dist/lib/models/lifecycle/v4/resources/CreateBundleApiResponse.d.ts +102 -0
- package/dist/lib/models/lifecycle/v4/resources/CreateBundleApiResponse.js +343 -0
- package/dist/lib/models/lifecycle/v4/resources/DeleteBundleByIdApiResponse.d.ts +99 -0
- package/dist/lib/models/lifecycle/v4/resources/DeleteBundleByIdApiResponse.js +343 -0
- package/dist/lib/models/lifecycle/v4/resources/DependentEntity.d.ts +31 -19
- package/dist/lib/models/lifecycle/v4/resources/DependentEntity.js +102 -29
- package/dist/lib/models/lifecycle/v4/resources/DeployableVersion.d.ts +37 -25
- package/dist/lib/models/lifecycle/v4/resources/DeployableVersion.js +107 -31
- package/dist/lib/models/lifecycle/v4/resources/Entity.d.ts +169 -78
- package/dist/lib/models/lifecycle/v4/resources/Entity.js +181 -49
- package/dist/lib/models/lifecycle/v4/resources/FrameworkVersionInfo.d.ts +34 -32
- package/dist/lib/models/lifecycle/v4/resources/FrameworkVersionInfo.js +62 -24
- package/dist/lib/models/lifecycle/v4/resources/GetBundleByIdApiResponse.d.ts +99 -0
- package/dist/lib/models/lifecycle/v4/resources/GetBundleByIdApiResponse.js +343 -0
- package/dist/lib/models/lifecycle/v4/resources/GetConfigApiResponse.d.ts +63 -24
- package/dist/lib/models/lifecycle/v4/resources/GetConfigApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/GetEntityByIdApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/GetLcmSummaryByIdApiResponse.d.ts +99 -0
- package/dist/lib/models/lifecycle/v4/resources/GetLcmSummaryByIdApiResponse.js +343 -0
- package/dist/lib/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.d.ts +68 -25
- package/dist/lib/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/GetStatusApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/resources/GetStatusApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/Image.d.ts +69 -55
- package/dist/lib/models/lifecycle/v4/resources/Image.js +122 -54
- package/dist/lib/models/lifecycle/v4/resources/ImageFile.d.ts +52 -50
- package/dist/lib/models/lifecycle/v4/resources/ImageFile.js +73 -32
- package/dist/lib/models/lifecycle/v4/resources/InProgressOpInfo.d.ts +29 -26
- package/dist/lib/models/lifecycle/v4/resources/InProgressOpInfo.js +54 -22
- package/dist/lib/models/lifecycle/v4/resources/LcmSummary.d.ts +115 -0
- package/dist/lib/models/lifecycle/v4/resources/LcmSummary.js +532 -0
- package/dist/lib/models/lifecycle/v4/resources/ListBundlesApiResponse.d.ts +99 -0
- package/dist/lib/models/lifecycle/v4/resources/ListBundlesApiResponse.js +365 -0
- package/dist/lib/models/lifecycle/v4/resources/ListEntitiesApiResponse.d.ts +69 -25
- package/dist/lib/models/lifecycle/v4/resources/ListEntitiesApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/ListImagesApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/resources/ListImagesApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/ListLcmSummariesApiResponse.d.ts +99 -0
- package/dist/lib/models/lifecycle/v4/resources/ListLcmSummariesApiResponse.js +365 -0
- package/dist/lib/models/lifecycle/v4/resources/Notification.d.ts +61 -20
- package/dist/lib/models/lifecycle/v4/resources/Notification.js +77 -30
- package/dist/lib/models/lifecycle/v4/resources/NotificationDetail.d.ts +29 -26
- package/dist/lib/models/lifecycle/v4/resources/NotificationDetail.js +57 -22
- package/dist/lib/models/lifecycle/v4/resources/NotificationItem.d.ts +64 -43
- package/dist/lib/models/lifecycle/v4/resources/NotificationItem.js +116 -37
- package/dist/lib/models/lifecycle/v4/resources/NotificationsSpec.d.ts +87 -0
- package/dist/lib/models/lifecycle/v4/resources/NotificationsSpec.js +345 -0
- package/dist/lib/models/lifecycle/v4/resources/RecommendationResult.d.ts +177 -44
- package/dist/lib/models/lifecycle/v4/resources/RecommendationResult.js +85 -38
- package/dist/lib/models/lifecycle/v4/resources/RecommendationSpec.d.ts +25 -21
- package/dist/lib/models/lifecycle/v4/resources/RecommendationSpec.js +57 -22
- package/dist/lib/models/lifecycle/v4/resources/SeverityLevel.js +8 -8
- package/dist/lib/models/lifecycle/v4/resources/StatusInfo.d.ts +69 -52
- package/dist/lib/models/lifecycle/v4/resources/StatusInfo.js +140 -71
- package/dist/lib/models/lifecycle/v4/resources/TargetEntity.d.ts +44 -32
- package/dist/lib/models/lifecycle/v4/resources/TargetEntity.js +114 -35
- package/dist/lib/models/lifecycle/v4/resources/UpdateConfigApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/resources/UpdateConfigApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntity.d.ts +31 -19
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntity.js +102 -29
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntityResult.d.ts +55 -27
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js +59 -24
- 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/svcmgr/ClientConfig.js +403 -0
- 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 +24 -22
- package/dist/lib/models/prism/v4/config/TaskReference.js +61 -26
- 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 +6 -6
- package/dist/lib/utils/ValidationUtils.js +6 -6
- package/package.json +4 -4
|
@@ -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=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)}}},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},540:e=>{function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,r){if(r)return r(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){var o=t.status;if(o>=500)return!0;if((o>=400||o<200)&&-1===n.indexOf(o))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){var n;n=this._retries?this._retryDelays[this._retries-1]:0;var r=this;return setTimeout((function(){return r._retry()}),n)}var o=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),o(e,t)}function n(e,t,n,r){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);var o=t.length,i=e-o;if(0!==i){if(i<0)throw new Error("Cannot have more delays than retries");for(var s=t[o-1],a=0;a<i+1;a++)t.push(s)}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=r,this}e.exports=function(e){var r=e.Request;return r.prototype.oldRetry=r.prototype.retry,r.prototype.retry=n,r.prototype.callback=t,e}},619:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}})),n.prototype._setDefaults=function(e){this._defaults.forEach((function(n){var r;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(r=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}))},e.exports=n},585:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var i=n(960),s=n(340),a=n(695),u=n(388),l=n(19),c=n(619);function 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}},388:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},695:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(388);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(e){return this._parser=e,this},i.prototype.responseType=function(e){return this._responseType=e,this},i.prototype.serialize=function(e){return this._serializer=e,this},i.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},i.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var s=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];i.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&s.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},i.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=o(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},19:(e,t,n)=>{"use strict";var r=n(897);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},897:(e,t)=>{"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce((function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e}),{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},597:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},98:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return e&&"object"===t(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},818:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),u=r[n];n<i;u=r[++n])h(u)||!w(u)?s+=" "+u:s+=" "+a(u);return s},t.deprecate=function(e,r){if(g(n.g.process))return function(){return t.deprecate(e,r).apply(this,arguments)};if(!0===process.noDeprecation)return e;var o=!1;return function(){if(!o){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),o=!0}return e.apply(this,arguments)}};var i,s={};function a(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),c(r,e,r.depth)}function u(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function l(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&k(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=c(e,o,r)),o}var i=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):h(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),j(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(k(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(m(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(j(n))return f(n)}var l,w="",$=!1,E=["{","}"];return p(n)&&($=!0,E=["[","]"]),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!==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)T(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,E)):E[0]+w+E[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")),T(r,o)||(s="["+o+"]"),a||(e.seen.indexOf(u.value)<0?(a=h(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),g(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function p(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function h(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function g(e){return void 0===e}function m(e){return w(e)&&"[object RegExp]"===$(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 E(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(g(i)&&(i=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=process.pid;s[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=y,t.isNull=h,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=g,t.isRegExp=m,t.isObject=w,t.isDate=O,t.isError=j,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=n(98);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[E((e=new Date).getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":"),[e.getDate(),P[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:()=>Uf});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=new 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,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=o(r))return r;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,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=Object.prototype.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=[{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=X.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}])&&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,g=n(540),m=n.n(g),w=n(545),O=n.n(w),j=n(799),k=n.n(j),$=n(784),E=n.n($),P=n(548);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 S(){S=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)),F(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&&F(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=T(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,s)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},S.apply(this,arguments)}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}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){var r,o,i;r=e,o=t,i=n[t],(o=x(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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){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 R(e,t);var n=Object.prototype.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)?R(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 R(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 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,t){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==T(t)?t:t+""}function U(e,t,n){M(e,t),t.set(e,n)}function M(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _(e,t){return e.get(N(e,t))}function V(e,t,n){return e.set(N(e,t),n),n}function N(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()(t());var J=new WeakMap,L=new WeakMap,W=new WeakMap,H=new WeakMap,B=new WeakMap,z=new WeakMap,q=new WeakMap,G=new WeakMap,K=new WeakSet,X=function(){function e(){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),M(this,n=K),n.add(this),U(this,J,void 0),U(this,L,void 0),U(this,W,void 0),U(this,H,void 0),U(this,B,void 0),U(this,z,void 0),U(this,q,void 0),U(this,G,void 0),V(G,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={apiKeyPath:{type:"apiKey",in:"header",name:"X_NTNX_AUTHN"},basicAuthScheme:{type:"basic"}},this.defaultHeaders={},V(B,this,3e4),V(z,this,3e4),V(q,this,18e5),this.readTimeout=_(z,this),this.connectTimeout=_(B,this),this.cache=!0,V(L,this,null),this.maxRetryAttempts=5,this.retryInterval=3e3,"undefined"==typeof self&&(this.agent=new(t().agent)),this.requestAgent=null,this.debug=!1,V(W,this,null),this.username=null,this.password=null,V(H,this,!0),this.downloadDestination=null,this.loggerFile=null}return r=e,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"===T(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=[{key:"verifySsl",get:function(){return _(H,this)},set:function(e){this.requestAgent=e?null:new(O().Agent)({rejectUnauthorized:!1}),V(H,this,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=k().createWriteStream(e,{flags:"a"})),V(W,this,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&V(L,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),V(J,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==_(J,this)&&""!==this.host&&""!==this.port?r=_(J,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:"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=A(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;n>=400&&401!==n&&408!==n&&503!==n&&504!==n&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1)}this.oldCallback(e,t)},N(K,this,te).call(this,h,l),"GET"===r.toUpperCase()&&!1===this.cache&&(i._=(new Date).getTime()),h.query(N(K,this,ee).call(this,i)),h.set(this.defaultHeaders).set(N(K,this,ee).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(N(K,this,ee).call(this,{"NTNX-Request-Id":b}))}var g="undefined"!=typeof window&&void 0!==window.document;g||h.set(N(K,this,ee).call(this,{"User-Agent":"Nutanix-lifecycle-js-client/4.0.1-beta.1"})),this.requestAgent&&h.agent(this.requestAgent);var m={};m.response=N(K,this,ie).call(this,this.connectTimeout,_(B,this)),m.deadline=N(K,this,ie).call(this,this.readTimeout,_(z,this)),h.timeout(m);var w=s.hasOwnProperty("Content-Type")?s["Content-Type"]:N(K,this,Y).call(this,c);if(w?"multipart/form-data"!=w&&h.type(w):h.header["Content-Type"]||h.type("application/json"),N(K,this,ue).call(this,_(G,this).INFO,null,"Request URL :",r,y),N(K,this,ue).call(this,_(G,this).DEBUG,N(K,this,fe),"Request Headers :",void 0===h.header?"":h.header),"application/x-www-form-urlencoded"===w)h.send(N(K,this,ee).call(this,a));else if("multipart/form-data"==w){var O=N(K,this,ee).call(this,a);for(var j in O)O.hasOwnProperty(j)&&(N(K,this,Z).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(N(K,this,ue).call(this,_(G,this).INFO,null,"Piping octet-stream request"),"function"==typeof u.pipe)u.pipe(h);else{var $;try{$=n(965)}catch(e){N(K,this,ue).call(this,_(G,this).ERROR,null,"Error fetching steam/web")}u instanceof $.ReadableStream?u.pipeTo(new $.WritableStream({write:function(e){h.write(e)},close:function(){N(K,this,ue).call(this,_(G,this).INFO,null,"READABLE STREAM CLOSED")},abort:function(e){N(K,this,ue).call(this,_(G,this).ERROR,null,"READABLE STREAM ABORTED")}})):h.send(u)}return new Promise((function(t,n){h.on("error",(function(e){N(K,p,ue).call(p,_(G,p).DEBUG,null,"Caught the following error :",e),n(e)})).on("response",(function(r){N(K,p,de).call(p,r,e,i,d,t,n)}))}))}u&&h.send(u)}"Blob"==typeof d?h.responseType("blob"):"String"===d&&h.responseType("string"),N(K,this,ae).call(this,h),N(K,this,ue).call(this,_(G,this).DEBUG,null,"Request Body :",void 0===h._data?"":h._data);var P=s.hasOwnProperty("Accept")?s.Accept:N(K,this,Y).call(this,f);return s.hasOwnProperty("Accept")&&"application/octet-stream"===s.Accept||1==f.length&&"application/octet-stream"===f[0]?(h.accept("application/octet-stream"),h.buffer(!1),new Promise((function(e,t){var r=null;if(g){var o;try{o=n(965)}catch(e){N(K,p,ue).call(p,_(G,p).ERROR,null,"Error fetching steam/web")}if(p.downloadDestination instanceof o.WritableStream){var i=p.downloadDestination.getWriter();try{h.on("data",(function(e){i.write(e)}))}catch(e){N(K,p,ue).call(p,_(G,p).ERROR,null,"Issue while downloading file",e)}h.on("response",(function(t){N(K,p,ue).call(p,_(G,p).INFO,null,"Response Status :",t.status),N(K,p,ue).call(p,_(G,p).DEBUG,N(K,p,fe),"Response Headers :",t.headers);var n=N(K,p,re).call(p,t,d);e({data:n,response:t})})).on("error",(function(e){N(K,p,ue).call(p,_(G,p).ERROR,null,"Caught the following error :",e),t(e)}))}else{var s="Incompatible downloadDestination for Browser Environment, must be WritableStream";N(K,p,ue).call(p,_(G,p).ERROR,null,s),t(s)}}else{null!==p.downloadDestination&&void 0!==p.downloadDestination&&"string"==typeof p.downloadDestination||(N(K,p,ue).call(p,_(G,p).ERROR,null,"Incompatible downloadDestination must be string, is",p.downloadDestination),N(K,p,ue).call(p,_(G,p).ERROR,null,"Downloading file to base directory"),p.downloadDestination="."),r=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt";var a=k().createWriteStream(r);N(K,p,ue).call(p,_(G,p).INFO,null,"Streaming response to : ",r),h.pipe(a),h.on("response",(function(n){N(K,p,ue).call(p,_(G,p).INFO,null,"Response Status :",n.status),N(K,p,ue).call(p,_(G,p).DEBUG,N(K,p,fe),"Response Headers :",n.headers);var o=N(K,p,re).call(p,n,d);n.ok||(N(K,p,ue).call(p,_(G,p).ERROR,null,o),t(D(D({},n.error),{},{data:o})));var i="";if(void 0!==n.headers["content-disposition"]&&null!==n.headers["content-disposition"]){var s=n.headers["content-disposition"].match(S(/.*filename="(.*)".*/,{filename:1})),u=E().parse(s.groups.filename);i=p.downloadDestination+"/"+u.name+"_"+Date.now()+u.ext,void 0===o&&((o=new d).data={path:E().parse(i),$objectType:"Path"})}a.on("finish",(function(){N(K,p,ue).call(p,_(G,p).INFO,null,"Finished streaming response"),0!==i.length?(N(K,p,ue).call(p,_(G,p).INFO,null,"Content-Disposition header found [",i,"] is final filename"),a.close(),k().rename(r,i,(function(){e({data:o,response:n})}))):(N(K,p,ue).call(p,_(G,p).ERROR,null,"Content-Disposition header not found [",r,"] is final filename"),e({data:o,response:n}))})).on("error",(function(e){N(K,p,ue).call(p,_(G,p).ERROR,null,"Caught the following error :",e),error.data=N(K,p,ne).call(p,error),t(e)}))})).on("error",(function(e){N(K,p,ue).call(p,_(G,p).ERROR,null,"Caught the following error :",err),null!==e.response&&void 0!==e.response?e.data=N(K,p,re).call(p,e.response,d):e.data=N(K,p,ne).call(p,e),t(e)}))}}))):(P&&h.accept(P),new Promise((function(t,n){h.on("error",(function(e){N(K,p,ue).call(p,_(G,p).DEBUG,null,"Caught the following error :",e)})).retry(p.maxRetryAttempts,p.retryInterval,[]).then((function(r){N(K,p,de).call(p,r,e,i,d,t,n)})).catch((function(e){N(K,p,ue).call(p,_(G,p).DEBUG,null,"Caught error during the request!"),N(K,p,ue).call(p,_(G,p).ERROR,null,e),null!==e.response&&void 0!==e.response?e.data=N(K,p,re).call(p,e.response,d):e.data=N(K,p,ne).call(p,e),n(e)}))})))}}])&&C(r.prototype,o),i&&C(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}();function Q(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function Y(e){for(var t=0;t<e.length;t++)if(N(K,this,Q).call(this,e[t]))return e[t];return e[0]}function Z(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 ee(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];N(K,this,Z).call(this,r)||Array.isArray(r)?t[n]=r:t[n]=this.paramToString(r)}return t}function te(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||""),N(K,n,ue).call(n,_(G,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)}N(K,n,ue).call(n,_(G,n).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),N(K,n,ue).call(n,_(G,n).DEBUG,null,"oauth2 applied to request");break;default:throw N(K,n,ue).call(n,_(G,n).ERROR,null,"Unknown authentication type:",r.type),new Error("Unknown authentication type: "+r.type)}}))}function ne(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function re(e,t){if(null==e||null==t||204==e.status)return null;var n=e.body;return(null==n||"object"===T(n)&&void 0===n.length&&!Object.keys(n).length)&&(n=e.text),b.convertToType(n,t)}function oe(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 ie(e,t){return e<=0?e=t:e>_(q,this)&&(e=_(q,this)),e}function se(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",n=e.headers["set-cookie"];if(n.length>0){var r,o=A(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))}V(L,this,t),N(K,this,ue).call(this,_(G,this).DEBUG,null,"Retained cookie :",t)}else V(L,this,null)}function ae(e){null!=_(L,this)&&e.set(N(K,this,ee).call(this,{Cookie:_(L,this)}))}function ue(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"===T(e)&&"key"in e&&"value"in e&&"symbol"===T(e.value)||(e=_(G,this).INFO),!N(K,this,le).call(this,e)){r=r.map((function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)}));var i=r.join(" ");i=N(K,this,ce).call(this)+" "+e.key+" - "+i,void 0!==_(W,this)&&null!==_(W,this)&&"function"==typeof _(W,this).log?_(W,this).log(i):console.log(i)}}function le(e){return!this.debug&&e===_(G,this).DEBUG}function ce(){var e=Date.now(),t=(new Date).getTimezoneOffset();return new Date(e-60*t*1e3).toISOString().slice(0,23)}function fe(e){if("object"!==T(e))return e;var t="\n";return e&&Object.keys(e).forEach((function(n){t+=n+"=["+e[n]+"]\n"})),"\n"===t?e:t}function de(e,t,n,r,o,i){try{N(K,this,ue).call(this,_(G,this).INFO,null,"Response Status :",e.status),N(K,this,ue).call(this,_(G,this).DEBUG,N(K,this,fe),"Response Headers :",e.headers),N(K,this,se).call(this,e||{});var s=N(K,this,re).call(this,e,r);N(K,this,ue).call(this,_(G,this).DEBUG,null,"Response Body :",s),e.ok?(this.addEtagToReservedMap(e,s),N(K,this,oe).call(this,s,t,n),o({data:s,response:e})):(N(K,this,ue).call(this,_(G,this).ERROR,null,s),i(D(D({},e.error),{},{data:s})))}catch(e){N(K,this,ue).call(this,_(G,this).DEBUG,null,"Caught error while processing response!"),N(K,this,ue).call(this,_(G,this).ERROR,null,e),e.data=N(K,this,ne).call(this,e),i(e)}}b=X,X.instance=new X;var pe={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return pe[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===pe.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(pe);const ye=pe;function he(e){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he(e)}function ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,be(r.key),r)}}function be(e){var t=function(e,t){if("object"!=he(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==he(t)?t:t+""}var ge=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()}}}])&&ve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function me(e){return me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},me(e)}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?we(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=ke(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(e,t){for(var n=0;n<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,t){if("object"!=me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==me(t)?t:t+""}var $e=new WeakSet,Ee=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=$e),n.add(t),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0.b1"},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()}:{}),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 ye?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?"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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("value","undefined or null"):new ge("name","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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=Oe({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&je(t.prototype,n),r&&je(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Pe(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 Te(e){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Te(e)}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=De(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,De(r.key),r)}}function De(e){var t=function(e,t){if("object"!=Te(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Te(t)?t:t+""}function Ae(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")}Ee.prototype.name=void 0,Ee.prototype.value=!1,Ee.prototype.$reserved=void 0,Ee.prototype.$objectType=void 0,Ee.prototype.$unknownFields=void 0;var Re=new WeakSet,Ce=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Re),n.add(t),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0.b1"},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 Fe(Fe(Fe({},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})):Ae(Re,this,xe).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})):Ae(Re,this,xe).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 ye?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?"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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("value","undefined or null"):new ge("name","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(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)if(Array.isArray(t.value))if(0===t.value.length)n.setValue([]);else{for(i=[],s=(r=t.value)[0].hasOwnProperty("$objectType")?r[0].$objectType:Te(r[0]),o=0;o<r.length;o++)switch(s){case"string":case"number":i.push(r[o]);break;default:throw"Unknown list of type "+s+" in data"}n.setValue(i)}else switch(s=t.value.hasOwnProperty("$objectType")?t.value.$objectType:Te(t.value)){case"string":case"boolean":case"number":n.setValue(t.value);break;case"object":n.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+s+" in data"}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Fe({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&Ie(t.prototype,n),r&&Ie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xe(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pe(e,t);var n=Object.prototype.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)?Pe(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Te(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 Ue={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ue).find((function(t){return Ue[t]===e}));return null==t?Ue.$UNKNOWN:Ue[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ue.$UNKNOWN:case Ue.$REDACTED:case Ue.INFO:case Ue.WARNING:case Ue.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(Ue);const Me=Ue;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 Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Le(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Le(r.key),r)}}function Le(e){var t=function(e,t){if("object"!=_e(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=_e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_e(t)?t:t+""}var We=new WeakSet,He=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=We),n.add(t),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0.b1"},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 Ne(Ne(Ne(Ne(Ne({},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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("severity","undefined or null"):new ge("locale","undefined or null"):new ge("message","undefined or null"):new ge("code","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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(Me.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=Ne({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Je(t.prototype,n),r&&Je(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ke(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,Ke(r.key),r)}}function Ke(e){var t=function(e,t){if("object"!=Be(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Be(t)?t:t+""}He.prototype.code=void 0,He.prototype.message=void 0,He.prototype.locale="en_US",He.prototype.severity=void 0,He.prototype.$reserved=void 0,He.prototype.$objectType=void 0,He.prototype.$unknownFields=void 0;var Xe=new WeakSet,Qe=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Xe),n.add(t),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0.b1"},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 qe(qe(qe({},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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("rel","undefined or null"):new ge("href","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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=qe({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Ge(t.prototype,n),r&&Ge(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=nt(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tt(e,t){for(var n=0;n<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,t){if("object"!=Ye(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ye(t)?t:t+""}Qe.prototype.href=void 0,Qe.prototype.rel=void 0,Qe.prototype.$reserved=void 0,Qe.prototype.$objectType=void 0,Qe.prototype.$unknownFields=void 0;var rt=new WeakSet,ot=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=rt),n.add(t),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0.b1"},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 et(et(et(et(et(et({},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 ye?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"flags"!==t||void 0!==this.flags&&null!==this.flags?"links"!==t||void 0!==this.links&&null!==this.links?"totalAvailableResults"!==t||void 0!==this.totalAvailableResults&&null!==this.totalAvailableResults?"messages"!==t||void 0!==this.messages&&null!==this.messages?"extraInfo"!==t||void 0!==this.extraInfo&&null!==this.extraInfo?"$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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("extraInfo","undefined or null"):new ge("messages","undefined or null"):new ge("totalAvailableResults","undefined or null"):new ge("links","undefined or null"):new ge("flags","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(s=[],r=t.flags,i=0;i<r.length;i++)o=Ee.constructFromObject(r[i],void 0),s.push(o);n.setFlags(s)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(s=[],r=t.links,i=0;i<r.length;i++)o=Qe.constructFromObject(r[i],void 0),s.push(o);n.setLinks(s)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&n.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(s=[],r=t.messages,i=0;i<r.length;i++)o=He.constructFromObject(r[i],void 0),s.push(o);n.setMessages(s)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(s=[],r=t.extraInfo,i=0;i<r.length;i++)o=Ce.constructFromObject(r[i],void 0),s.push(o);n.setExtraInfo(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=et({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&tt(t.prototype,n),r&&tt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function st(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 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){var r,o,i;r=e,o=t,i=n[t],(o=ct(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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 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,ct(r.key),r)}}function ct(e){var t=function(e,t){if("object"!=it(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==it(t)?t:t+""}function ft(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")}ot.prototype.flags=void 0,ot.prototype.links=void 0,ot.prototype.totalAvailableResults=void 0,ot.prototype.messages=void 0,ot.prototype.extraInfo=void 0,ot.prototype.$reserved=void 0,ot.prototype.$objectType=void 0,ot.prototype.$unknownFields=void 0;var dt=new WeakSet,pt=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=dt),n.add(t),this.$objectType="lifecycle.v4.error.AppMessage",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getErrorGroup",value:function(){return this.errorGroup}},{key:"setErrorGroup",value:function(e){this.errorGroup=e}},{key:"getArgumentsMap",value:function(){return this.argumentsMap}},{key:"setArgumentsMap",value:function(e){this.argumentsMap=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ut(ut(ut(ut(ut(ut(ut({},void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{}),!1===e?void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:ft(dt,this,yt).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:ft(dt,this,yt).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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("argumentsMap","undefined or null"):new ge("errorGroup","undefined or null"):new ge("locale","undefined or null"):new ge("code","undefined or null"):new ge("severity","undefined or null"):new ge("message","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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(Me.constructFromObject(t.severity)),t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("errorGroup")&&null!==t.errorGroup&&void 0!==t.errorGroup&&n.setErrorGroup(t.errorGroup),t.hasOwnProperty("argumentsMap")&&null!==t.argumentsMap&&void 0!==t.argumentsMap&&n.setArgumentsMap(t.argumentsMap),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ut({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&<(t.prototype,n),r&<(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function yt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return st(e,t);var n=Object.prototype.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}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===it(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 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 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 bt(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){var r,o,i;r=e,o=t,i=n[t],(o=mt(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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 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,mt(r.key),r)}}function mt(e){var t=function(e,t){if("object"!=ht(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ht(t)?t:t+""}pt.prototype.message=void 0,pt.prototype.severity=void 0,pt.prototype.code=void 0,pt.prototype.locale="en_US",pt.prototype.errorGroup=void 0,pt.prototype.argumentsMap=void 0,pt.prototype.$reserved=void 0,pt.prototype.$objectType=void 0,pt.prototype.$unknownFields=void 0;var wt=new WeakSet,Ot=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=wt),n.add(t),this.$objectType="lifecycle.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getLocation",value:function(){return this.location}},{key:"setLocation",value:function(e){this.location=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributePath",value:function(){return this.attributePath}},{key:"setAttributePath",value:function(e){this.attributePath=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return bt(bt(bt(bt({},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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("attributePath","undefined or null"):new ge("message","undefined or null"):new ge("location","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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=bt({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&>(t.prototype,n),r&>(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function jt(e){return jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(e)}function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Pt(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,Pt(r.key),r)}}function Pt(e){var t=function(e,t){if("object"!=jt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jt(t)?t:t+""}Ot.prototype.location=void 0,Ot.prototype.message=void 0,Ot.prototype.attributePath=void 0,Ot.prototype.$reserved=void 0,Ot.prototype.$objectType=void 0,Ot.prototype.$unknownFields=void 0;var Tt=new WeakSet,St=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Tt),n.add(t),this.$objectType="lifecycle.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"getStatusCode",value:function(){return this.statusCode}},{key:"setStatusCode",value:function(e){this.statusCode=e}},{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"getValidationErrorMessages",value:function(){return this.validationErrorMessages}},{key:"setValidationErrorMessages",value:function(e){this.validationErrorMessages=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return $t($t($t($t($t($t({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:this.getTimestamp()}:{}),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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("validationErrorMessages","undefined or null"):new ge("path","undefined or null"):new ge("error","undefined or null"):new ge("statusCode","undefined or null"):new ge("timestamp","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&n.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&n.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&n.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&n.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(s=[],r=t.validationErrorMessages,i=0;i<r.length;i++)o=Ot.constructFromObject(r[i],void 0),s.push(o);n.setValidationErrorMessages(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=$t({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&Et(t.prototype,n),r&&Et(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ft(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 It(e){return It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},It(e)}function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ct(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rt(e,t){for(var n=0;n<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,t){if("object"!=It(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=It(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==It(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")}St.prototype.timestamp=void 0,St.prototype.statusCode=void 0,St.prototype.error=void 0,St.prototype.path=void 0,St.prototype.validationErrorMessages=void 0,St.prototype.$reserved=void 0,St.prototype.$objectType=void 0,St.prototype.$unknownFields=void 0;var Ut=new WeakSet,Mt=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Ut),n.add(t),this.$objectType="lifecycle.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return At(At({},!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})):xt(Ut,this,_t).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})):xt(Ut,this,_t).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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("error","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)n.setError([]);else{for(s=[],a=(r=t.error)[0].hasOwnProperty("$objectType")?r[0].$objectType:It(r[0]),i=0;i<r.length;i++){if("lifecycle.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";o=pt.constructFromObject(r[i],void 0),s.push(o)}n.setError(s)}else{if("lifecycle.v4.error.SchemaValidationError"!==(a=t.error.hasOwnProperty("$objectType")?t.error.$objectType:It(t.error)))throw"Unknown datatype "+a+" in data";n.setError(St.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!u)for(var l in n.$unknownFields=At({},t.$unknownFields),t)Object.keys(n).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(n.$unknownFields[l]=t[l])}return n}}],n&&Rt(t.prototype,n),r&&Rt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function _t(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ft(e,t);var n=Object.prototype.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}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===It(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 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 Nt(e,t){for(var n=0;n<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,t){if("object"!=Vt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Vt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vt(t)?t:t+""}Mt.prototype.error=void 0,Mt.prototype.$reserved=void 0,Mt.prototype.$objectType=void 0,Mt.prototype.$unknownFields=void 0;var Lt=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&&Nt(e.prototype,null),t&&Nt(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Wt(e){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wt(e)}function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=qt(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,t){if("object"!=Wt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Wt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wt(t)?t:t+""}var Gt=new WeakSet,Kt=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Gt),n.add(t),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0.b1"},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?Bt(Bt({},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 ye?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 ge("tenantId","undefined or null");if(!Lt.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 ge("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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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=Bt({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&zt(t.prototype,n),r&&zt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xt(e){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(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 Yt(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){var r,o,i;r=e,o=t,i=n[t],(o=en(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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 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,en(r.key),r)}}function en(e){var t=function(e,t){if("object"!=Xt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xt(t)?t:t+""}function tn(e,t,n){return t=rn(t),function(e,t){if(t&&("object"===Xt(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,nn()?Reflect.construct(t,n||[],rn(e).constructor):t.apply(e,n))}function nn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nn=function(){return!!e})()}function rn(e){return rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rn(e)}function on(e,t){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},on(e,t)}Kt.prototype.tenantId=void 0,Kt.prototype.$reserved=void 0,Kt.prototype.$objectType=void 0,Kt.prototype.$unknownFields=void 0;var sn=new WeakSet,an=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=tn(this,t),r=sn),r.add(n),e.$objectType="common.v1.response.ExternalizableAbstractModel",e.$reserved={$fv:"v1.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&on(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 Yt(!1===e?Yt(Yt(Yt({},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()}:{}):Yt({},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 ye?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 ge("extId","undefined or null");if(null==e){if(!Lt.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 ge("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===ye.update&&!Lt.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 ge("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}$/")}return"links"!==t||void 0!==this.links&&null!==this.links?new ge(t,"no such property exists"):new ge("links","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,Kt.constructFromObject(e,n,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&n.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(s=[],r=e.links,i=0;i<r.length;i++)o=Qe.constructFromObject(r[i],void 0),s.push(o);n.setLinks(s)}if(!a)for(var u in n.$unknownFields=Yt({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Zt(n.prototype,r),o&&Zt(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Kt);an.prototype.extId=void 0,an.prototype.links=void 0;var un={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SOFTWARE:"SOFTWARE",FIRMWARE:"FIRMWARE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(un).find((function(t){return un[t]===e}));return null==t?un.$UNKNOWN:un[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case un.$UNKNOWN:case un.$REDACTED:case un.SOFTWARE:case un.FIRMWARE:return;default:throw new Error("Invalid : must be EntityType.{ $UNKNOWN|$REDACTED|SOFTWARE|FIRMWARE }")}}};Object.freeze(un);const ln=un;function cn(e){return cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cn(e)}function fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fn(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=yn(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yn(r.key),r)}}function yn(e){var t=function(e,t){if("object"!=cn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=cn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cn(t)?t:t+""}function hn(e,t,n){return t=bn(t),function(e,t){if(t&&("object"===cn(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,vn()?Reflect.construct(t,n||[],bn(e).constructor):t.apply(e,n))}function vn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vn=function(){return!!e})()}function bn(e){return bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bn(e)}function gn(e,t){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gn(e,t)}var mn=new WeakSet,wn=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=hn(this,t),r=mn),r.add(n),e.$objectType="lifecycle.v4.common.EntityBaseModel",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gn(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 dn(!1===e?dn(dn(dn(dn(dn(dn(dn(dn({},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()}:{}):dn(dn(dn(dn(dn(dn({},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()}:{}),{},{$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 ye?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"entityClass"!==t||void 0!==this.entityClass&&null!==this.entityClass?"entityModel"!==t||void 0!==this.entityModel&&null!==this.entityModel?"entityType"!==t||void 0!==this.entityType&&null!==this.entityType?"entityVersion"!==t||void 0!==this.entityVersion&&null!==this.entityVersion?"hardwareFamily"!==t||void 0!==this.hardwareFamily&&null!==this.hardwareFamily?new ge(t,"no such property exists"):new ge("hardwareFamily","undefined or null"):new ge("entityVersion","undefined or null"):new ge("entityType","undefined or null"):new ge("entityModel","undefined or null"):new ge("entityClass","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,an.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(ln.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=dn({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}}],r&&pn(n.prototype,r),o&&pn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(an);wn.prototype.entityClass=void 0,wn.prototype.entityModel=void 0,wn.prototype.entityType=void 0,wn.prototype.entityVersion=void 0,wn.prototype.hardwareFamily=void 0;var On={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NODE:"NODE",CLUSTER:"CLUSTER",PC:"PC",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(On).find((function(t){return On[t]===e}));return null==t?On.$UNKNOWN:On[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case On.$UNKNOWN:case On.$REDACTED:case On.NODE:case On.CLUSTER:case On.PC:return;default:throw new Error("Invalid : must be LocationType.{ $UNKNOWN|$REDACTED|NODE|CLUSTER|PC }")}}};Object.freeze(On);const jn=On;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 En(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){var r,o,i;r=e,o=t,i=n[t],(o=Tn(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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 Pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tn(r.key),r)}}function Tn(e){var t=function(e,t){if("object"!=kn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=kn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kn(t)?t:t+""}var Sn=new WeakSet,Fn=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Sn),n.add(t),this.$objectType="lifecycle.v4.common.LocationInfo",this.$reserved={$fv:"v4.r0.b1"},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 En(En(!1===e?En({},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 ye?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 ge("uuid","undefined or null");if(!Lt.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 ge("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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("locationType","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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(jn.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=En({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Pn(t.prototype,n),r&&Pn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Fn.prototype.uuid=void 0,Fn.prototype.locationType=void 0,Fn.prototype.$reserved=void 0,Fn.prototype.$objectType=void 0,Fn.prototype.$unknownFields=void 0;var In={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RECOMMENDED:"RECOMMENDED",CRITICAL:"CRITICAL",LATEST:"LATEST",DEPRECATED:"DEPRECATED",EMERGENCY:"EMERGENCY",AVAILABLE:"AVAILABLE",LTS:"LTS",STS:"STS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(In).find((function(t){return In[t]===e}));return null==t?In.$UNKNOWN:In[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case In.$UNKNOWN:case In.$REDACTED:case In.RECOMMENDED:case In.CRITICAL:case In.LATEST:case In.DEPRECATED:case In.EMERGENCY:case In.AVAILABLE:case In.LTS:case In.STS:return;default:throw new Error("Invalid : must be AvailableVersionStatus.{ $UNKNOWN|$REDACTED|RECOMMENDED|CRITICAL|LATEST|DEPRECATED|EMERGENCY|AVAILABLE|LTS|STS }")}}};Object.freeze(In);const Dn=In;function An(e){return An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},An(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 Cn(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){var r,o,i;r=e,o=t,i=n[t],(o=Un(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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 xn(e,t){for(var n=0;n<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,t){if("object"!=An(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=An(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==An(t)?t:t+""}function Mn(e,t,n){return t=Vn(t),function(e,t){if(t&&("object"===An(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,_n()?Reflect.construct(t,n||[],Vn(e).constructor):t.apply(e,n))}function _n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_n=function(){return!!e})()}function Vn(e){return Vn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vn(e)}function Nn(e,t){return Nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nn(e,t)}var Jn=new WeakSet,Ln=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Mn(this,t),r=Jn),r.add(n),e.$objectType="lifecycle.v4.resources.DependentEntity",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nn(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 Cn(!1===e?Cn(Cn(Cn(Cn(Cn(Cn(Cn(Cn(Cn({},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()}:{}):Cn(Cn(Cn(Cn(Cn(Cn({},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()}:{}),{},{$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 ye?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 ge("dependentVersions","undefined or null");if(!Lt.validateMaxItems(this.dependentVersions,100))return new ge("dependentVersions","does not satisfy required maxItems constraint: 100")}return new ge(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,wn.constructFromObject(e,n,!0),e.hasOwnProperty("dependentVersions")&&null!==e.dependentVersions&&void 0!==e.dependentVersions){for(s=[],r=e.dependentVersions,i=0;i<r.length;i++)o=Ce.constructFromObject(r[i],void 0),s.push(o);n.setDependentVersions(s)}if(!a)for(var u in n.$unknownFields=Cn({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&xn(n.prototype,r),o&&xn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wn);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 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 Bn(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){var r,o,i;r=e,o=t,i=n[t],(o=qn(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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 zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qn(r.key),r)}}function qn(e){var t=function(e,t){if("object"!=Wn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Wn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wn(t)?t:t+""}Ln.prototype.dependentVersions=void 0;var Gn=new WeakSet,Kn=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Gn),n.add(t),this.$objectType="lifecycle.v4.resources.AvailableVersion",this.$reserved={$fv:"v4.r0.b1"},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 Bn(Bn(Bn(!1===e?Bn(Bn(Bn(Bn(Bn(Bn(Bn(Bn(Bn(Bn({},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:this.getReleaseDate()}:{}),void 0!==this.getCustomMessage()&&null!==this.getCustomMessage()?{customMessage:this.getCustomMessage()}:{}),void 0!==this.getChildEntities()&&null!==this.getChildEntities()?{childEntities:this.getChildEntities()}:{}):Bn(Bn(Bn(Bn(Bn(Bn(Bn(Bn(Bn({},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:this.getReleaseDate()}:{}),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 ye?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 ge("version","undefined or null");if(!Lt.validateMaxLength(this.version,128))return new ge("version","does not satisfy required maxLength constraint: 128")}if("status"===t&&(void 0===this.status||null===this.status))return new ge("status","undefined or null");if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new ge("isEnabled","undefined or null");if("availableVersionUuid"===t){if(void 0===this.availableVersionUuid||null===this.availableVersionUuid)return new ge("availableVersionUuid","undefined or null");if(!Lt.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 ge("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 ge("order","undefined or null");if(!Lt.validateMaximum(this.order,1e4))return new ge("order","does not satisfy required maximum constraint: 10000");if(!Lt.validateMinimum(this.order,1))return new ge("order","does not satisfy required minimum constraint: 1")}if("disablementReason"===t){if(void 0===this.disablementReason||null===this.disablementReason)return new ge("disablementReason","undefined or null");if(!Lt.validateMaxLength(this.disablementReason,512))return new ge("disablementReason","does not satisfy required maxLength constraint: 512")}if("releaseNotes"===t){if(void 0===this.releaseNotes||null===this.releaseNotes)return new ge("releaseNotes","undefined or null");if(!Lt.validateMaxLength(this.releaseNotes,1024))return new ge("releaseNotes","does not satisfy required maxLength constraint: 1024")}if("releaseDate"===t&&(void 0===this.releaseDate||null===this.releaseDate))return new ge("releaseDate","undefined or null");if("customMessage"===t){if(void 0===this.customMessage||null===this.customMessage)return new ge("customMessage","undefined or null");if(!Lt.validateMaxLength(this.customMessage,512))return new ge("customMessage","does not satisfy required maxLength constraint: 512")}if("childEntities"===t){if(void 0===this.childEntities||null===this.childEntities)return new ge("childEntities","undefined or null");if(!Lt.validateMaxItems(this.childEntities,100))return new ge("childEntities","does not satisfy required maxItems constraint: 100")}if("groupUuid"===t){if(void 0===this.groupUuid||null===this.groupUuid)return new ge("groupUuid","undefined or null");if(!Lt.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 ge("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 ge("dependencies","undefined or null");if(!Lt.validateMaxItems(this.dependencies,100))return new ge("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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("version")&&null!==t.version&&void 0!==t.version&&n.setVersion(t.version),t.hasOwnProperty("status")&&null!==t.status&&void 0!==t.status&&n.setStatus(Dn.constructFromObject(t.status)),t.hasOwnProperty("isEnabled")&&null!==t.isEnabled&&void 0!==t.isEnabled&&n.setIsEnabled(t.isEnabled),t.hasOwnProperty("availableVersionUuid")&&null!==t.availableVersionUuid&&void 0!==t.availableVersionUuid&&n.setAvailableVersionUuid(t.availableVersionUuid),t.hasOwnProperty("order")&&null!==t.order&&void 0!==t.order&&n.setOrder(t.order),t.hasOwnProperty("disablementReason")&&null!==t.disablementReason&&void 0!==t.disablementReason&&n.setDisablementReason(t.disablementReason),t.hasOwnProperty("releaseNotes")&&null!==t.releaseNotes&&void 0!==t.releaseNotes&&n.setReleaseNotes(t.releaseNotes),t.hasOwnProperty("releaseDate")&&null!==t.releaseDate&&void 0!==t.releaseDate&&n.setReleaseDate(t.releaseDate),t.hasOwnProperty("customMessage")&&null!==t.customMessage&&void 0!==t.customMessage&&n.setCustomMessage(t.customMessage),t.hasOwnProperty("childEntities")&&null!==t.childEntities&&void 0!==t.childEntities){for(s=[],r=t.childEntities,i=0;i<r.length;i++)s.push(r[i]);n.setChildEntities(s)}if(t.hasOwnProperty("groupUuid")&&null!==t.groupUuid&&void 0!==t.groupUuid&&n.setGroupUuid(t.groupUuid),t.hasOwnProperty("dependencies")&&null!==t.dependencies&&void 0!==t.dependencies){for(s=[],r=t.dependencies,i=0;i<r.length;i++)o=Ln.constructFromObject(r[i],void 0),s.push(o);n.setDependencies(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Bn({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&zn(t.prototype,n),r&&zn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xn(e){return Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xn(e)}function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qn(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=er(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,er(r.key),r)}}function er(e){var t=function(e,t){if("object"!=Xn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Xn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xn(t)?t:t+""}function tr(e,t,n){return t=rr(t),function(e,t){if(t&&("object"===Xn(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,nr()?Reflect.construct(t,n||[],rr(e).constructor):t.apply(e,n))}function nr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nr=function(){return!!e})()}function rr(e){return rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rr(e)}function or(e,t){return or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},or(e,t)}Kn.prototype.version=void 0,Kn.prototype.status=void 0,Kn.prototype.isEnabled=!0,Kn.prototype.availableVersionUuid=void 0,Kn.prototype.order=void 0,Kn.prototype.disablementReason=void 0,Kn.prototype.releaseNotes=void 0,Kn.prototype.releaseDate=void 0,Kn.prototype.customMessage=void 0,Kn.prototype.childEntities=void 0,Kn.prototype.groupUuid=void 0,Kn.prototype.dependencies=void 0,Kn.prototype.$reserved=void 0,Kn.prototype.$objectType=void 0,Kn.prototype.$unknownFields=void 0;var ir=new WeakSet,sr=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=tr(this,t),r=ir),r.add(n),e.$objectType="lifecycle.v4.resources.Entity",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&or(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:"toJson",value:function(e){return Yn(!1===e?Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn({},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:this.getLastUpdatedTime()}:{}),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.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()}:{}):Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn({},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.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()}:{}),{},{$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 ye?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 ge("entityDescription","undefined or null");if(!Lt.validateMaxLength(this.entityDescription,256))return new ge("entityDescription","does not satisfy required maxLength constraint: 256")}if("locationInfo"===t&&(void 0===this.locationInfo||null===this.locationInfo))return new ge("locationInfo","undefined or null");if("targetVersion"===t&&(void 0===this.targetVersion||null===this.targetVersion))return new ge("targetVersion","undefined or null");if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new ge("lastUpdatedTime","undefined or null");if("deviceId"===t&&(void 0===this.deviceId||null===this.deviceId))return new ge("deviceId","undefined or null");if("groupUuid"===t){if(void 0===this.groupUuid||null===this.groupUuid)return new ge("groupUuid","undefined or null");if(!Lt.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 ge("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 ge("entityDetails","undefined or null");if(!Lt.validateMaxItems(this.entityDetails,100))return new ge("entityDetails","does not satisfy required maxItems constraint: 100")}if("childEntities"===t){if(void 0===this.childEntities||null===this.childEntities)return new ge("childEntities","undefined or null");if(!Lt.validateMaxItems(this.childEntities,100))return new ge("childEntities","does not satisfy required maxItems constraint: 100")}if("availableVersions"===t){if(void 0===this.availableVersions||null===this.availableVersions)return new ge("availableVersions","undefined or null");if(!Lt.validateMaxItems(this.availableVersions,100))return new ge("availableVersions","does not satisfy required maxItems constraint: 100")}if("subEntities"===t){if(void 0===this.subEntities||null===this.subEntities)return new ge("subEntities","undefined or null");if(!Lt.validateMaxItems(this.subEntities,100))return new ge("subEntities","does not satisfy required maxItems constraint: 100")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new ge("clusterExtId","undefined or null");if(!Lt.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 ge("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 ge(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,wn.constructFromObject(e,n,!0),e.hasOwnProperty("entityDescription")&&null!==e.entityDescription&&void 0!==e.entityDescription&&n.setEntityDescription(e.entityDescription),e.hasOwnProperty("locationInfo")&&null!==e.locationInfo&&void 0!==e.locationInfo&&n.setLocationInfo(Fn.constructFromObject(e.locationInfo)),e.hasOwnProperty("targetVersion")&&null!==e.targetVersion&&void 0!==e.targetVersion&&n.setTargetVersion(e.targetVersion),e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&n.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("deviceId")&&null!==e.deviceId&&void 0!==e.deviceId&&n.setDeviceId(e.deviceId),e.hasOwnProperty("groupUuid")&&null!==e.groupUuid&&void 0!==e.groupUuid&&n.setGroupUuid(e.groupUuid),e.hasOwnProperty("entityDetails")&&null!==e.entityDetails&&void 0!==e.entityDetails){for(s=[],r=e.entityDetails,i=0;i<r.length;i++)o=Ce.constructFromObject(r[i],void 0),s.push(o);n.setEntityDetails(s)}if(e.hasOwnProperty("childEntities")&&null!==e.childEntities&&void 0!==e.childEntities){for(s=[],r=e.childEntities,i=0;i<r.length;i++)s.push(r[i]);n.setChildEntities(s)}if(e.hasOwnProperty("availableVersions")&&null!==e.availableVersions&&void 0!==e.availableVersions){for(s=[],r=e.availableVersions,i=0;i<r.length;i++)o=Kn.constructFromObject(r[i],void 0),s.push(o);n.setAvailableVersions(s)}if(e.hasOwnProperty("subEntities")&&null!==e.subEntities&&void 0!==e.subEntities){for(s=[],r=e.subEntities,i=0;i<r.length;i++)o=wn.constructFromObject(r[i],void 0),s.push(o);n.setSubEntities(s)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&n.setClusterExtId(e.clusterExtId),!a)for(var u in n.$unknownFields=Yn({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Zn(n.prototype,r),o&&Zn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wn);function ar(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 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){var r,o,i;r=e,o=t,i=n[t],(o=dr(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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){for(var n=0;n<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,t){if("object"!=ur(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ur(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ur(t)?t:t+""}function pr(e,t,n){return t=hr(t),function(e,t){if(t&&("object"===ur(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||[],hr(e).constructor):t.apply(e,n))}function yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yr=function(){return!!e})()}function hr(e){return hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hr(e)}function vr(e,t){return vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vr(e,t)}function br(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")}sr.prototype.entityDescription=void 0,sr.prototype.locationInfo=void 0,sr.prototype.targetVersion=void 0,sr.prototype.lastUpdatedTime=void 0,sr.prototype.deviceId=void 0,sr.prototype.groupUuid=void 0,sr.prototype.entityDetails=void 0,sr.prototype.childEntities=void 0,sr.prototype.availableVersions=void 0,sr.prototype.subEntities=void 0,sr.prototype.clusterExtId=void 0;var gr=new WeakSet,mr=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=pr(this,t),r=gr),r.add(n),e.$objectType="lifecycle.v4.resources.GetEntityByIdApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vr(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 cr(cr(cr({},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})):br(gr,this,wr).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})):br(gr,this,wr).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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ur(e.data)){case"lifecycle.v4.resources.Entity":n.setData(sr.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=cr({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&fr(n.prototype,r),o&&fr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function wr(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ar(e,t);var n=Object.prototype.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)?ar(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===ur(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 Or(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 jr(e){return jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jr(e)}function kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Pr(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function 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,Pr(r.key),r)}}function Pr(e){var t=function(e,t){if("object"!=jr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=jr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jr(t)?t:t+""}function Tr(e,t,n){return t=Fr(t),function(e,t){if(t&&("object"===jr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sr()?Reflect.construct(t,n||[],Fr(e).constructor):t.apply(e,n))}function Sr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sr=function(){return!!e})()}function Fr(e){return Fr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fr(e)}function Ir(e,t){return Ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ir(e,t)}function Dr(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")}mr.prototype.metadata=void 0,mr.prototype.data=void 0,mr.prototype.$reserved=void 0,mr.prototype.$objectType=void 0,mr.prototype.$unknownFields=void 0;var Ar=new WeakSet,Rr=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Tr(this,t),r=Ar),r.add(n),e.$objectType="lifecycle.v4.resources.ListEntitiesApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ir(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 $r($r($r({},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})):Dr(Ar,this,Cr).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})):Dr(Ar,this,Cr).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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)n.setData([]);else{for(s=[],a=(r=e.data)[0].hasOwnProperty("$objectType")?r[0].$objectType:jr(r[0]),i=0;i<r.length;i++){if("lifecycle.v4.resources.Entity"!==a)throw"Unknown list of type "+a+" in data";o=sr.constructFromObject(r[i],void 0),s.push(o)}n.setData(s)}else{if("lifecycle.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:jr(e.data)))throw"Unknown datatype "+a+" in data";n.setData(Mt.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!u)for(var c in n.$unknownFields=$r({},e.$unknownFields),e)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=e[c])}return n}}],r&&Er(n.prototype,r),o&&Er(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Cr(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Or(e,t);var n=Object.prototype.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)?Or(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===jr(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 xr(e){return xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xr(e)}function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Vr(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vr(r.key),r)}}function Vr(e){var t=function(e,t){if("object"!=xr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=xr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xr(t)?t:t+""}function Nr(e,t){return e.get(Jr(e,t))}function Jr(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")}Rr.prototype.metadata=void 0,Rr.prototype.data=void 0,Rr.prototype.$reserved=void 0,Rr.prototype.$objectType=void 0,Rr.prototype.$unknownFields=void 0;var Lr=new WeakMap,Wr=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=Lr),i.set(o,s),this.apiClient=t||X.instance,n=Lr,r=new Set,n.set(Jr(n,this),r),Nr(Lr,this).add("authorization"),Nr(Lr,this).add("cookie"),Nr(Lr,this).add("host"),Nr(Lr,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){Nr(Lr,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Mr({},o),s=mr;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/resources/entities/{extId}","GET",r,{},i,{},null,["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=Mr(Mr(Mr(Mr(Mr({},(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){Nr(Lr,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Mr({},o),s=Rr;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/resources/entities","GET",{},r,i,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&_r(e.prototype,t),n&&_r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),Hr={$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(Hr).find((function(t){return Hr[t]===e}));return null==t?Hr.$UNKNOWN:Hr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Hr.$UNKNOWN:case Hr.$REDACTED:case Hr.CONNECTED_SITE:case Hr.DARKSITE_WEB_SERVER:case Hr.DARKSITE_DIRECT_UPLOAD:return;default:throw new Error("Invalid : must be ConnectivityType.{ $UNKNOWN|$REDACTED|CONNECTED_SITE|DARKSITE_WEB_SERVER|DARKSITE_DIRECT_UPLOAD }")}}};Object.freeze(Hr);const Br=Hr;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 Gr(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){var r,o,i;r=e,o=t,i=n[t],(o=Xr(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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 Kr(e,t){for(var n=0;n<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,t){if("object"!=zr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=zr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zr(t)?t:t+""}function Qr(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))}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)}var to=new WeakSet,no=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Qr(this,t),r=to),r.add(n),e.$objectType="lifecycle.v4.resources.Config",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eo(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 Gr(!1===e?Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr({},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()}:{}):Gr(Gr(Gr(Gr(Gr(Gr(Gr({},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()}:{}),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 ye?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 ge("url","undefined or null");if(!Lt.validatePattern(this.url,/^((http[s]?|nfs):\/)?\/?([^:\/\\s]*)((\/\\w+)*(:[0-9]+)*?\/)([\\w\\-\\.]+[^#?\\s]+)(.*)?(#[\\w\\-]+)?$/))return new ge("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 ge("isAutoInventoryEnabled","undefined or null");if("autoInventorySchedule"===t){if(void 0===this.autoInventorySchedule||null===this.autoInventorySchedule)return new ge("autoInventorySchedule","undefined or null");if(!Lt.validatePattern(this.autoInventorySchedule,/^([01]\\d|2[0-3]):([0-5]\\d)$/))return new ge("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 ge("version","undefined or null");if(!Lt.validateMaxLength(this.version,128))return new ge("version","does not satisfy required maxLength constraint: 128")}if("displayVersion"===t){if(void 0===this.displayVersion||null===this.displayVersion)return new ge("displayVersion","undefined or null");if(!Lt.validateMaxLength(this.displayVersion,128))return new ge("displayVersion","does not satisfy required maxLength constraint: 128")}if("connectivityType"===t&&(void 0===this.connectivityType||null===this.connectivityType))return new ge("connectivityType","undefined or null");if("isHttpsEnabled"===t&&(void 0===this.isHttpsEnabled||null===this.isHttpsEnabled))return new ge("isHttpsEnabled","undefined or null");if("supportedSoftwareEntities"===t){if(void 0===this.supportedSoftwareEntities||null===this.supportedSoftwareEntities)return new ge("supportedSoftwareEntities","undefined or null");if(!Lt.validateMaxItems(this.supportedSoftwareEntities,100))return new ge("supportedSoftwareEntities","does not satisfy required maxItems constraint: 100")}if("deprecatedSoftwareEntities"===t){if(void 0===this.deprecatedSoftwareEntities||null===this.deprecatedSoftwareEntities)return new ge("deprecatedSoftwareEntities","undefined or null");if(!Lt.validateMaxItems(this.deprecatedSoftwareEntities,100))return new ge("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 ge(t,"no such property exists"):new ge("hasModuleAutoUpgradeEnabled","undefined or null"):new ge("isFrameworkBundleUploaded","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("url")&&null!==e.url&&void 0!==e.url&&n.setUrl(e.url),e.hasOwnProperty("isAutoInventoryEnabled")&&null!==e.isAutoInventoryEnabled&&void 0!==e.isAutoInventoryEnabled&&n.setIsAutoInventoryEnabled(e.isAutoInventoryEnabled),e.hasOwnProperty("autoInventorySchedule")&&null!==e.autoInventorySchedule&&void 0!==e.autoInventorySchedule&&n.setAutoInventorySchedule(e.autoInventorySchedule),e.hasOwnProperty("version")&&null!==e.version&&void 0!==e.version&&n.setVersion(e.version),e.hasOwnProperty("displayVersion")&&null!==e.displayVersion&&void 0!==e.displayVersion&&n.setDisplayVersion(e.displayVersion),e.hasOwnProperty("connectivityType")&&null!==e.connectivityType&&void 0!==e.connectivityType&&n.setConnectivityType(Br.constructFromObject(e.connectivityType)),e.hasOwnProperty("isHttpsEnabled")&&null!==e.isHttpsEnabled&&void 0!==e.isHttpsEnabled&&n.setIsHttpsEnabled(e.isHttpsEnabled),e.hasOwnProperty("supportedSoftwareEntities")&&null!==e.supportedSoftwareEntities&&void 0!==e.supportedSoftwareEntities){for(i=[],r=e.supportedSoftwareEntities,o=0;o<r.length;o++)i.push(r[o]);n.setSupportedSoftwareEntities(i)}if(e.hasOwnProperty("deprecatedSoftwareEntities")&&null!==e.deprecatedSoftwareEntities&&void 0!==e.deprecatedSoftwareEntities){for(i=[],r=e.deprecatedSoftwareEntities,o=0;o<r.length;o++)i.push(r[o]);n.setDeprecatedSoftwareEntities(i)}if(e.hasOwnProperty("isFrameworkBundleUploaded")&&null!==e.isFrameworkBundleUploaded&&void 0!==e.isFrameworkBundleUploaded&&n.setIsFrameworkBundleUploaded(e.isFrameworkBundleUploaded),e.hasOwnProperty("hasModuleAutoUpgradeEnabled")&&null!==e.hasModuleAutoUpgradeEnabled&&void 0!==e.hasModuleAutoUpgradeEnabled&&n.setHasModuleAutoUpgradeEnabled(e.hasModuleAutoUpgradeEnabled),!s)for(var a in n.$unknownFields=Gr({},e.$unknownFields),e)Object.keys(n).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(n.$unknownFields[a]=e[a])}return n}}],r&&Kr(n.prototype,r),o&&Kr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(an);function ro(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 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 so(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){var r,o,i;r=e,o=t,i=n[t],(o=uo(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ao(e,t){for(var n=0;n<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,t){if("object"!=oo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=oo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oo(t)?t:t+""}function lo(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))}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.url=void 0,no.prototype.isAutoInventoryEnabled=!1,no.prototype.autoInventorySchedule=void 0,no.prototype.version=void 0,no.prototype.displayVersion=void 0,no.prototype.connectivityType=void 0,no.prototype.isHttpsEnabled=!1,no.prototype.supportedSoftwareEntities=void 0,no.prototype.deprecatedSoftwareEntities=void 0,no.prototype.isFrameworkBundleUploaded=!1,no.prototype.hasModuleAutoUpgradeEnabled=!1;var ho=new WeakSet,vo=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=lo(this,t),r=ho),r.add(n),e.$objectType="lifecycle.v4.resources.GetConfigApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&po(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 so(so(so({},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})):yo(ho,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})):yo(ho,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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:oo(e.data)){case"lifecycle.v4.resources.Config":n.setData(no.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=so({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&ao(n.prototype,r),o&&ao(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=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ro(e,t);var n=Object.prototype.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}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"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){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){var r,o,i;r=e,o=t,i=n[t],(o=jo(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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){for(var n=0;n<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,t){if("object"!=go(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=go(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==go(t)?t:t+""}vo.prototype.metadata=void 0,vo.prototype.data=void 0,vo.prototype.$reserved=void 0,vo.prototype.$objectType=void 0,vo.prototype.$unknownFields=void 0;var ko=new WeakSet,$o=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=ko),n.add(t),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r0.b1"},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 wo(wo({},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 ye?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 ge("extId","undefined or null");if(!Lt.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 ge("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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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=wo({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Oo(t.prototype,n),r&&Oo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Eo(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 Po(e){return Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Po(e)}function To(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?To(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Io(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,Io(r.key),r)}}function Io(e){var t=function(e,t){if("object"!=Po(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Po(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Po(t)?t:t+""}function Do(e,t,n){return t=Ro(t),function(e,t){if(t&&("object"===Po(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,Ao()?Reflect.construct(t,n||[],Ro(e).constructor):t.apply(e,n))}function Ao(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ao=function(){return!!e})()}function Ro(e){return Ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ro(e)}function Co(e,t){return Co=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Co(e,t)}function xo(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}$o.prototype.extId=void 0,$o.prototype.$reserved=void 0,$o.prototype.$objectType=void 0,$o.prototype.$unknownFields=void 0;var Uo=new WeakSet,Mo=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Do(this,t),r=Uo),r.add(n),e.$objectType="lifecycle.v4.resources.UpdateConfigApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Co(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 So(So(So({},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})):xo(Uo,this,_o).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})):xo(Uo,this,_o).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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Po(e.data)){case"prism.v4.config.TaskReference":n.setData($o.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=So({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&Fo(n.prototype,r),o&&Fo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function _o(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Eo(e,t);var n=Object.prototype.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)?Eo(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Po(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 Vo(e){return Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vo(e)}function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?No(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Wo(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):No(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wo(r.key),r)}}function Wo(e){var t=function(e,t){if("object"!=Vo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Vo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vo(t)?t:t+""}function Ho(e,t){return e.get(Bo(e,t))}function Bo(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")}Mo.prototype.metadata=void 0,Mo.prototype.data=void 0,Mo.prototype.$reserved=void 0,Mo.prototype.$objectType=void 0,Mo.prototype.$unknownFields=void 0;var zo=new WeakMap,qo=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=zo),i.set(o,s),this.apiClient=t||X.instance,n=zo,r=new Set,n.set(Bo(n,this),r),Ho(zo,this).add("authorization"),Ho(zo,this).add("cookie"),Ho(zo,this).add("host"),Ho(zo,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){Ho(zo,t).has(e.toLowerCase())||(r[e]=n[e])}));var o=Jo({"X-Cluster-Id":e["X-Cluster-Id"]},r),i=vo;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/resources/config","GET",{},{},o,{},null,["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;o=e instanceof no&&"function"==typeof e.toJson?e.toJson():e;var i={};Object.keys(r).forEach((function(e){Ho(zo,n).has(e.toLowerCase())||(i[e]=r[e])}));var s=Jo({"X-Cluster-Id":t["X-Cluster-Id"]},i);X.addEtagReferenceToHeader(e,s);var a=Mo;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/resources/config","PUT",{},{},s,{},o,["basicAuthScheme"],["application/json"],["application/json"],a)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&Lo(e.prototype,t),n&&Lo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),Go={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SHASUM:"SHASUM",HEX_MD5:"HEX_MD5",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Go).find((function(t){return Go[t]===e}));return null==t?Go.$UNKNOWN:Go[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Go.$UNKNOWN:case Go.$REDACTED:case Go.SHASUM:case Go.HEX_MD5:return;default:throw new Error("Invalid : must be CheckSumType.{ $UNKNOWN|$REDACTED|SHASUM|HEX_MD5 }")}}};Object.freeze(Go);const Ko=Go;function Xo(e){return Xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xo(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){var r,o,i;r=e,o=t,i=n[t],(o=ei(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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 Zo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ei(r.key),r)}}function ei(e){var t=function(e,t){if("object"!=Xo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Xo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xo(t)?t:t+""}var ti=new WeakSet,ni=function(){function e(t,n,r){var o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=ti),i.add(o),this.sizeBytes=t,this.checksumType=n,this.checksum=r,this.$objectType="lifecycle.v4.resources.ImageFile",this.$reserved={$fv:"v4.r0.b1"},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 Yo(Yo(Yo(!1===e?Yo(Yo(Yo(Yo({},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()}:{}):Yo(Yo({},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 ye?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 ge("fileLocationId","undefined or null");if(!Lt.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 ge("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 ge("name","undefined or null");if(!Lt.validateMaxLength(this.name,128))return new ge("name","does not satisfy required maxLength constraint: 128")}if("sizeBytes"===t&&(void 0===this.sizeBytes||null===this.sizeBytes))return new ge("sizeBytes","undefined or null");if("filePath"===t){if(void 0===this.filePath||null===this.filePath)return new ge("filePath","undefined or null");if(!Lt.validateMaxLength(this.filePath,256))return new ge("filePath","does not satisfy required maxLength constraint: 256")}if("checksumType"===t&&(void 0===this.checksumType||null===this.checksumType))return new ge("checksumType","undefined or null");if("checksum"===t){if(void 0===this.checksum||null===this.checksum)return new ge("checksum","undefined or null");if(!Lt.validateMaxLength(this.checksum,128))return new ge("checksum","does not satisfy required maxLength constraint: 128")}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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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(Ko.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=Yo({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Zo(t.prototype,n),r&&Zo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ri(e){return ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ri(e)}function oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?oi(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=ai(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function si(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ai(r.key),r)}}function ai(e){var t=function(e,t){if("object"!=ri(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ri(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ri(t)?t:t+""}function ui(e,t,n){return t=ci(t),function(e,t){if(t&&("object"===ri(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,li()?Reflect.construct(t,n||[],ci(e).constructor):t.apply(e,n))}function li(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(li=function(){return!!e})()}function ci(e){return ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ci(e)}function fi(e,t){return fi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fi(e,t)}ni.prototype.fileLocationId=void 0,ni.prototype.name=void 0,ni.prototype.sizeBytes=void 0,ni.prototype.filePath=void 0,ni.prototype.checksumType=void 0,ni.prototype.checksum=void 0,ni.prototype.$reserved=void 0,ni.prototype.$objectType=void 0,ni.prototype.$unknownFields=void 0;var di=new WeakSet,pi=function(e){function t(e,n){var r,o,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=r=ui(this,t),i=di),i.add(o),r.specVersion=e,r.files=n,r.$objectType="lifecycle.v4.resources.Image",r.$reserved={$fv:"v4.r0.b1"},r.$unknownFields={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fi(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 ii(!1===e?ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii({},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()}:{}):ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii(ii({},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()}:{}),{},{$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 ye?r=["specVersion","files"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=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 ge("releaseNotes","undefined or null");if(!Lt.validateMaxLength(this.releaseNotes,1024))return new ge("releaseNotes","does not satisfy required maxLength constraint: 1024")}if("specVersion"===t){if(void 0===this.specVersion||null===this.specVersion)return new ge("specVersion","undefined or null");if(!Lt.validateMaxLength(this.specVersion,128))return new ge("specVersion","does not satisfy required maxLength constraint: 128")}if("isQualified"===t&&(void 0===this.isQualified||null===this.isQualified))return new ge("isQualified","undefined or null");if("status"===t&&(void 0===this.status||null===this.status))return new ge("status","undefined or null");if("files"===t){if(void 0===this.files||null===this.files)return new ge("files","undefined or null");if(!Lt.validateMaxItems(this.files,100))return new ge("files","does not satisfy required maxItems constraint: 100")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new ge("clusterExtId","undefined or null");if(!Lt.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 ge("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 ge(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,wn.constructFromObject(e,n,!0),e.hasOwnProperty("releaseNotes")&&null!==e.releaseNotes&&void 0!==e.releaseNotes&&n.setReleaseNotes(e.releaseNotes),e.hasOwnProperty("specVersion")&&null!==e.specVersion&&void 0!==e.specVersion&&n.setSpecVersion(e.specVersion),e.hasOwnProperty("isQualified")&&null!==e.isQualified&&void 0!==e.isQualified&&n.setIsQualified(e.isQualified),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&n.setStatus(Dn.constructFromObject(e.status)),e.hasOwnProperty("files")&&null!==e.files&&void 0!==e.files){for(s=[],r=e.files,i=0;i<r.length;i++)o=ni.constructFromObject(r[i],void 0),s.push(o);n.setFiles(s)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&n.setClusterExtId(e.clusterExtId),!a)for(var u in n.$unknownFields=ii({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&si(n.prototype,r),o&&si(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wn);function yi(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 hi(e){return hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hi(e)}function vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vi(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=mi(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mi(r.key),r)}}function mi(e){var t=function(e,t){if("object"!=hi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=hi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hi(t)?t:t+""}function wi(e,t,n){return t=ji(t),function(e,t){if(t&&("object"===hi(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,Oi()?Reflect.construct(t,n||[],ji(e).constructor):t.apply(e,n))}function Oi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Oi=function(){return!!e})()}function ji(e){return ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ji(e)}function ki(e,t){return ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ki(e,t)}function $i(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}pi.prototype.releaseNotes=void 0,pi.prototype.specVersion=void 0,pi.prototype.isQualified=!1,pi.prototype.status=void 0,pi.prototype.files=void 0,pi.prototype.clusterExtId=void 0;var Ei=new WeakSet,Pi=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=wi(this,t),r=Ei),r.add(n),e.$objectType="lifecycle.v4.resources.ListImagesApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ki(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 bi(bi(bi({},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})):$i(Ei,this,Ti).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})):$i(Ei,this,Ti).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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)n.setData([]);else{for(s=[],a=(r=e.data)[0].hasOwnProperty("$objectType")?r[0].$objectType:hi(r[0]),i=0;i<r.length;i++){if("lifecycle.v4.resources.Image"!==a)throw"Unknown list of type "+a+" in data";o=pi.constructFromObject(r[i],void 0),s.push(o)}n.setData(s)}else{if("lifecycle.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:hi(e.data)))throw"Unknown datatype "+a+" in data";n.setData(Mt.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!u)for(var c in n.$unknownFields=bi({},e.$unknownFields),e)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=e[c])}return n}}],r&&gi(n.prototype,r),o&&gi(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ti(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yi(e,t);var n=Object.prototype.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)?yi(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===hi(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 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 Fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fi(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ai(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Di(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ai(r.key),r)}}function Ai(e){var t=function(e,t){if("object"!=Si(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Si(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Si(t)?t:t+""}function Ri(e,t){return e.get(Ci(e,t))}function Ci(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Pi.prototype.metadata=void 0,Pi.prototype.data=void 0,Pi.prototype.$reserved=void 0,Pi.prototype.$objectType=void 0,Pi.prototype.$unknownFields=void 0;var xi=new WeakMap,Ui=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=xi),i.set(o,s),this.apiClient=t||X.instance,n=xi,r=new Set,n.set(Ci(n,this),r),Ri(xi,this).add("authorization"),Ri(xi,this).add("cookie"),Ri(xi,this).add("host"),Ri(xi,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=Ii(Ii(Ii(Ii(Ii({},(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){Ri(xi,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Ii({},o),s=Pi;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/resources/images","GET",{},r,i,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&Di(e.prototype,t),n&&Di(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Mi(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 _i(e){return _i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_i(e)}function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Li(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function 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,Li(r.key),r)}}function Li(e){var t=function(e,t){if("object"!=_i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=_i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_i(t)?t:t+""}function Wi(e,t,n){return t=Bi(t),function(e,t){if(t&&("object"===_i(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,Hi()?Reflect.construct(t,n||[],Bi(e).constructor):t.apply(e,n))}function Hi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hi=function(){return!!e})()}function Bi(e){return Bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bi(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")}var Gi=new WeakSet,Ki=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Wi(this,t),r=Gi),r.add(n),e.$objectType="lifecycle.v4.operations.InventoryApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 Ni(Ni(Ni({},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(Gi,this,Xi).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(Gi,this,Xi).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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:_i(e.data)){case"prism.v4.config.TaskReference":n.setData($o.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=Ni({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&Ji(n.prototype,r),o&&Ji(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Xi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mi(e,t);var n=Object.prototype.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)?Mi(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===_i(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 Qi(e){return Qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qi(e)}function Yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,es(r.key),r)}}function es(e){var t=function(e,t){if("object"!=Qi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Qi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qi(t)?t:t+""}function ts(e,t){return e.get(ns(e,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")}Ki.prototype.metadata=void 0,Ki.prototype.data=void 0,Ki.prototype.$reserved=void 0,Ki.prototype.$objectType=void 0,Ki.prototype.$unknownFields=void 0;var rs=new WeakMap,os=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=rs),i.set(o,s),this.apiClient=t||X.instance,n=rs,r=new Set,n.set(ns(n,this),r),ts(rs,this).add("authorization"),ts(rs,this).add("cookie"),ts(rs,this).add("host"),ts(rs,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){ts(rs,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?Yi(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=es(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"X-Cluster-Id":e["X-Cluster-Id"]},r),i=Ki;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/operations/$actions/inventory","POST",{},{},o,{},null,["basicAuthScheme"],[],["application/json"],i)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&Zi(e.prototype,t),n&&Zi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),is={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ESX:"ESX",AHV:"AHV",HYPERV:"HYPERV",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(is).find((function(t){return is[t]===e}));return null==t?is.$UNKNOWN:is[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case is.$UNKNOWN:case is.$REDACTED:case is.ESX:case is.AHV:case is.HYPERV:return;default:throw new Error("Invalid : must be HypervisorType.{ $UNKNOWN|$REDACTED|ESX|AHV|HYPERV }")}}};Object.freeze(is);const ss=is;var as={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ENTITY:"ENTITY",LOCATION:"LOCATION",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(as).find((function(t){return as[t]===e}));return null==t?as.$UNKNOWN:as[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case as.$UNKNOWN:case as.$REDACTED:case as.ENTITY:case as.LOCATION:return;default:throw new Error("Invalid : must be NotificationType.{ $UNKNOWN|$REDACTED|ENTITY|LOCATION }")}}};Object.freeze(as);const us=as;var ls={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",WARNING:"WARNING",NOTICE:"NOTICE",INFO:"INFO",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ls).find((function(t){return ls[t]===e}));return null==t?ls.$UNKNOWN:ls[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ls.$UNKNOWN:case ls.$REDACTED:case ls.WARNING:case ls.NOTICE:case ls.INFO:return;default:throw new Error("Invalid : must be SeverityLevel.{ $UNKNOWN|$REDACTED|WARNING|NOTICE|INFO }")}}};Object.freeze(ls);const cs=ls;function fs(e){return fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fs(e)}function ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=hs(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,hs(r.key),r)}}function hs(e){var t=function(e,t){if("object"!=fs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=fs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fs(t)?t:t+""}var vs=new WeakSet,bs=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=vs),n.add(t),this.$objectType="lifecycle.v4.resources.NotificationDetail",this.$reserved={$fv:"v4.r0.b1"},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 ps(ps(ps({},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 ye?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 ge("severityLevel","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new ge("message","undefined or null");if(!Lt.validateMaxLength(this.message,512))return new ge("message","does not satisfy required maxLength constraint: 512")}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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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(cs.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=ps({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&ys(t.prototype,n),r&&ys(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function gs(e){return gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gs(e)}function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=js(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,js(r.key),r)}}function js(e){var t=function(e,t){if("object"!=gs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=gs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gs(t)?t:t+""}function ks(e,t,n){return t=Es(t),function(e,t){if(t&&("object"===gs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$s()?Reflect.construct(t,n||[],Es(e).constructor):t.apply(e,n))}function $s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($s=function(){return!!e})()}function Es(e){return Es=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Es(e)}function Ps(e,t){return Ps=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ps(e,t)}bs.prototype.severityLevel=void 0,bs.prototype.message=void 0,bs.prototype.$reserved=void 0,bs.prototype.$objectType=void 0,bs.prototype.$unknownFields=void 0;var Ts=new WeakSet,Ss=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=ks(this,t),r=Ts),r.add(n),e.$objectType="lifecycle.v4.resources.NotificationItem",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ps(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 ws(!1===e?ws(ws(ws(ws(ws(ws(ws(ws(ws(ws(ws(ws(ws({},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()}:{}):ws(ws(ws(ws(ws(ws(ws(ws(ws(ws(ws({},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()}:{}),{},{$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 ye?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 ge("notificationType","undefined or null");if("details"===t&&(void 0===this.details||null===this.details))return new ge("details","undefined or null");if("toVersion"===t){if(void 0===this.toVersion||null===this.toVersion)return new ge("toVersion","undefined or null");if(!Lt.validateMaxLength(this.toVersion,128))return new ge("toVersion","does not satisfy required maxLength constraint: 128")}return"locationInfo"!==t||void 0!==this.locationInfo&&null!==this.locationInfo?"hypervisorType"!==t||void 0!==this.hypervisorType&&null!==this.hypervisorType?new ge(t,"no such property exists"):new ge("hypervisorType","undefined or null"):new ge("locationInfo","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,wn.constructFromObject(e,n,!0),e.hasOwnProperty("notificationType")&&null!==e.notificationType&&void 0!==e.notificationType&&n.setNotificationType(us.constructFromObject(e.notificationType)),e.hasOwnProperty("details")&&null!==e.details&&void 0!==e.details){for(s=[],r=e.details,i=0;i<r.length;i++)o=bs.constructFromObject(r[i],void 0),s.push(o);n.setDetails(s)}if(e.hasOwnProperty("toVersion")&&null!==e.toVersion&&void 0!==e.toVersion&&n.setToVersion(e.toVersion),e.hasOwnProperty("locationInfo")&&null!==e.locationInfo&&void 0!==e.locationInfo&&n.setLocationInfo(Fn.constructFromObject(e.locationInfo)),e.hasOwnProperty("hypervisorType")&&null!==e.hypervisorType&&void 0!==e.hypervisorType&&n.setHypervisorType(ss.constructFromObject(e.hypervisorType)),!a)for(var u in n.$unknownFields=ws({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Os(n.prototype,r),o&&Os(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wn);function Fs(e){return Fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fs(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){var r,o,i;r=e,o=t,i=n[t],(o=Rs(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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){for(var n=0;n<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,t){if("object"!=Fs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Fs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fs(t)?t:t+""}function Cs(e,t,n){return t=Us(t),function(e,t){if(t&&("object"===Fs(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,xs()?Reflect.construct(t,n||[],Us(e).constructor):t.apply(e,n))}function xs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xs=function(){return!!e})()}function Us(e){return Us=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Us(e)}function Ms(e,t){return Ms=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ms(e,t)}Ss.prototype.notificationType=void 0,Ss.prototype.details=void 0,Ss.prototype.toVersion=void 0,Ss.prototype.locationInfo=void 0,Ss.prototype.hypervisorType=void 0;var _s=new WeakSet,Vs=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Cs(this,t),r=_s),r.add(n),e.$objectType="lifecycle.v4.resources.Notification",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ms(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 Ds(!1===e?Ds(Ds(Ds(Ds(Ds({},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()}:{}):Ds(Ds(Ds({},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()}:{}),{},{$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 ye?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 ge("notifications","undefined or null");if(!Lt.validateMaxItems(this.notifications,2048))return new ge("notifications","does not satisfy required maxItems constraint: 2048")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new ge("clusterExtId","undefined or null");if(!Lt.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 ge("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 ge(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("notifications")&&null!==e.notifications&&void 0!==e.notifications){for(s=[],r=e.notifications,i=0;i<r.length;i++)o=Ss.constructFromObject(r[i],void 0),s.push(o);n.setNotifications(s)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&n.setClusterExtId(e.clusterExtId),!a)for(var u in n.$unknownFields=Ds({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&As(n.prototype,r),o&&As(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(an);function Ns(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 Js(e){return Js="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Js(e)}function Ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ls(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Bs(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hs(e,t){for(var n=0;n<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,t){if("object"!=Js(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Js(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Js(t)?t:t+""}function zs(e,t,n){return t=Gs(t),function(e,t){if(t&&("object"===Js(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,qs()?Reflect.construct(t,n||[],Gs(e).constructor):t.apply(e,n))}function qs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qs=function(){return!!e})()}function Gs(e){return Gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gs(e)}function Ks(e,t){return Ks=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ks(e,t)}function Xs(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")}Vs.prototype.notifications=void 0,Vs.prototype.clusterExtId=void 0;var Qs=new WeakSet,Ys=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=zs(this,t),r=Qs),r.add(n),e.$objectType="lifecycle.v4.resources.GetNotificationsByIdApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ks(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 Ws(Ws(Ws({},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})):Xs(Qs,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})):Xs(Qs,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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Js(e.data)){case"lifecycle.v4.resources.Notification":n.setData(Vs.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=Ws({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&Hs(n.prototype,r),o&&Hs(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=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ns(e,t);var n=Object.prototype.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)?Ns(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Js(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 ea(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 ta(e){return ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ta(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 ra(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){var r,o,i;r=e,o=t,i=n[t],(o=ia(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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 oa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ia(r.key),r)}}function ia(e){var t=function(e,t){if("object"!=ta(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ta(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ta(t)?t:t+""}function sa(e,t,n){return t=ua(t),function(e,t){if(t&&("object"===ta(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,aa()?Reflect.construct(t,n||[],ua(e).constructor):t.apply(e,n))}function aa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aa=function(){return!!e})()}function ua(e){return ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ua(e)}function la(e,t){return la=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},la(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")}Ys.prototype.metadata=void 0,Ys.prototype.data=void 0,Ys.prototype.$reserved=void 0,Ys.prototype.$objectType=void 0,Ys.prototype.$unknownFields=void 0;var fa=new WeakSet,da=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=sa(this,t),r=fa),r.add(n),e.$objectType="lifecycle.v4.operations.ComputeNotificationsApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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})):ca(fa,this,pa).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})):ca(fa,this,pa).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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ta(e.data)){case"prism.v4.config.TaskReference":n.setData($o.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=ra({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&oa(n.prototype,r),o&&oa(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function pa(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ea(e,t);var n=Object.prototype.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)?ea(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===ta(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 ya(e){return ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ya(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 va(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){var r,o,i;r=e,o=t,i=n[t],(o=ga(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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 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,t){if("object"!=ya(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ya(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ya(t)?t:t+""}da.prototype.metadata=void 0,da.prototype.data=void 0,da.prototype.$reserved=void 0,da.prototype.$objectType=void 0,da.prototype.$unknownFields=void 0;var ma=new WeakSet,wa=function(){function e(t,n){var r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=this,o=ma),o.add(r),this.entityUuid=t,this.toVersion=n,this.$objectType="lifecycle.v4.common.EntityUpdateSpec",this.$reserved={$fv:"v4.r0.b1"},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 va(va(va({},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 ye?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 ge("entityUuid","undefined or null");if(!Lt.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 ge("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}$/")}return"toVersion"!==t||void 0!==this.toVersion&&null!==this.toVersion?"$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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("toVersion","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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=va({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],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){var r,o,i;r=e,o=t,i=n[t],(o=Ea(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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){for(var n=0;n<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,t){if("object"!=Oa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Oa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oa(t)?t:t+""}function Pa(e,t){return e.get(Ta(e,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")}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 Sa=new WeakMap,Fa=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=Sa),i.set(o,s),this.apiClient=t||X.instance,n=Sa,r=new Set,n.set(Ta(n,this),r),Pa(Sa,this).add("authorization"),Pa(Sa,this).add("cookie"),Pa(Sa,this).add("host"),Pa(Sa,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;o=e instanceof Array&&"function"==typeof e.toJson?e.toJson():e;var i={};Object.keys(r).forEach((function(e){Pa(Sa,n).has(e.toLowerCase())||(i[e]=r[e])}));var s=ka({"X-Cluster-Id":t["X-Cluster-Id"]},i);X.addEtagReferenceToHeader(e,s);var a=da;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/operations/$actions/compute-notifications","POST",{},{},s,{},o,["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){Pa(Sa,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=ka({},o),s=Ys;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/resources/notifications/{extId}","GET",r,{},i,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&$a(e.prototype,t),n&&$a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();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 Da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Da(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ca(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Da(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,Ca(r.key),r)}}function Ca(e){var t=function(e,t){if("object"!=Ia(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Ia(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ia(t)?t:t+""}var xa=new WeakSet,Ua=function(){function e(t,n,r,o){var i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,s=xa),s.add(i),this.hypervisorType=t,this.ip=n,this.username=r,this.password=o,this.$objectType="lifecycle.v4.common.ManagementServer",this.$reserved={$fv:"v4.r0.b1"},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 Aa(Aa(Aa(Aa(Aa({},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 ye?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 ge("hypervisorType","undefined or null");if("ip"===t){if(void 0===this.ip||null===this.ip)return new ge("ip","undefined or null");if(!Lt.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 ge("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]?)$/")}return"username"!==t||void 0!==this.username&&null!==this.username?"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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("password","undefined or null"):new ge("username","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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(ss.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=Aa({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Ra(t.prototype,n),r&&Ra(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Ua.prototype.hypervisorType=void 0,Ua.prototype.ip=void 0,Ua.prototype.username=void 0,Ua.prototype.password=void 0,Ua.prototype.$reserved=void 0,Ua.prototype.$objectType=void 0,Ua.prototype.$unknownFields=void 0;var Ma={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",POWER_OFF_UVMS:"POWER_OFF_UVMS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ma).find((function(t){return Ma[t]===e}));return null==t?Ma.$UNKNOWN:Ma[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ma.$UNKNOWN:case Ma.$REDACTED:case Ma.POWER_OFF_UVMS:return;default:throw new Error("Invalid : must be SystemAutoMgmtFlag.{ $UNKNOWN|$REDACTED|POWER_OFF_UVMS }")}}};Object.freeze(Ma);const _a=Ma;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){var r,o,i;r=e,o=t,i=n[t],(o=Wa(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wa(r.key),r)}}function Wa(e){var t=function(e,t){if("object"!=Va(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Va(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Va(t)?t:t+""}var Ha=new WeakSet,Ba=function(){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){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=Ha),r.add(n),this.entityUpdateSpecs=t,this.$objectType="lifecycle.v4.common.PrechecksSpec",this.$reserved={$fv:"v4.r0.b1"},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 Ja(Ja(Ja(Ja({},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 ye?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 ge("managementServer","undefined or null");if("entityUpdateSpecs"===t){if(void 0===this.entityUpdateSpecs||null===this.entityUpdateSpecs)return new ge("entityUpdateSpecs","undefined or null");if(!Lt.validateMaxItems(this.entityUpdateSpecs,2048))return new ge("entityUpdateSpecs","does not satisfy required maxItems constraint: 2048")}if("skippedPrecheckFlags"===t){if(void 0===this.skippedPrecheckFlags||null===this.skippedPrecheckFlags)return new ge("skippedPrecheckFlags","undefined or null");if(!Lt.validateMaxItems(this.skippedPrecheckFlags,20))return new ge("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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("managementServer")&&null!==t.managementServer&&void 0!==t.managementServer&&n.setManagementServer(Ua.constructFromObject(t.managementServer)),t.hasOwnProperty("entityUpdateSpecs")&&null!==t.entityUpdateSpecs&&void 0!==t.entityUpdateSpecs){for(s=[],r=t.entityUpdateSpecs,i=0;i<r.length;i++)o=wa.constructFromObject(r[i],void 0),s.push(o);n.setEntityUpdateSpecs(s)}if(t.hasOwnProperty("skippedPrecheckFlags")&&null!==t.skippedPrecheckFlags&&void 0!==t.skippedPrecheckFlags){for(s=[],r=t.skippedPrecheckFlags,i=0;i<r.length;i++)o=_a.constructFromObject(r[i],void 0),s.push(o);n.setSkippedPrecheckFlags(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Ja({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&La(t.prototype,n),r&&La(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function za(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 qa(e){return qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qa(e)}function Ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Ga(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Qa(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ga(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xa(e,t){for(var n=0;n<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,t){if("object"!=qa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=qa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qa(t)?t:t+""}function Ya(e,t,n){return t=eu(t),function(e,t){if(t&&("object"===qa(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,Za()?Reflect.construct(t,n||[],eu(e).constructor):t.apply(e,n))}function Za(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Za=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.managementServer=void 0,Ba.prototype.entityUpdateSpecs=void 0,Ba.prototype.skippedPrecheckFlags=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,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Ya(this,t),r=ru),r.add(n),e.$objectType="lifecycle.v4.operations.PrechecksApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 Ka(Ka(Ka({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:qa(e.data)){case"prism.v4.config.TaskReference":n.setData($o.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=Ka({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&Xa(n.prototype,r),o&&Xa(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=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return za(e,t);var n=Object.prototype.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)?za(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===qa(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,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lu(r.key),r)}}function lu(e){var t=function(e,t){if("object"!=su(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=su(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==su(t)?t:t+""}function cu(e,t){return e.get(fu(e,t))}function fu(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}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 du=new WeakMap,pu=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=du),i.set(o,s),this.apiClient=t||X.instance,n=du,r=new Set,n.set(fu(n,this),r),cu(du,this).add("authorization"),cu(du,this).add("cookie"),cu(du,this).add("host"),cu(du,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;o=e instanceof Ba&&"function"==typeof e.toJson?e.toJson():e;var i={};Object.keys(r).forEach((function(e){cu(du,n).has(e.toLowerCase())||(i[e]=r[e])}));var s=function(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){var r,o,i;r=e,o=t,i=n[t],(o=lu(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):au(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"X-Cluster-Id":t["X-Cluster-Id"]},i);X.addEtagReferenceToHeader(e,s);var a=ou;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/operations/$actions/prechecks","POST",{},{},s,{},o,["basicAuthScheme"],["application/json"],["application/json"],a)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&uu(e.prototype,t),n&&uu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function yu(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 hu(e){return hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hu(e)}function vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?vu(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=mu(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mu(r.key),r)}}function mu(e){var t=function(e,t){if("object"!=hu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=hu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hu(t)?t:t+""}function wu(e,t,n){return t=ju(t),function(e,t){if(t&&("object"===hu(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,Ou()?Reflect.construct(t,n||[],ju(e).constructor):t.apply(e,n))}function Ou(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ou=function(){return!!e})()}function ju(e){return ju=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ju(e)}function ku(e,t){return ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ku(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")}var Eu=new WeakSet,Pu=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=wu(this,t),r=Eu),r.add(n),e.$objectType="lifecycle.v4.operations.ComputeRecommendationsApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ku(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})):$u(Eu,this,Tu).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):$u(Eu,this,Tu).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:hu(e.data)){case"prism.v4.config.TaskReference":n.setData($o.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=bu({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&gu(n.prototype,r),o&&gu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Tu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yu(e,t);var n=Object.prototype.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)?yu(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===hu(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 Fu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fu(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Au(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Du(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Au(r.key),r)}}function Au(e){var t=function(e,t){if("object"!=Su(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Su(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Su(t)?t:t+""}Pu.prototype.metadata=void 0,Pu.prototype.data=void 0,Pu.prototype.$reserved=void 0,Pu.prototype.$objectType=void 0,Pu.prototype.$unknownFields=void 0;var Ru=new WeakSet,Cu=function(){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){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=Ru),r.add(n),this.entityIdentifier=t,this.$objectType="lifecycle.v4.common.EntityDeploySpec",this.$reserved={$fv:"v4.r0.b1"},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 Iu(Iu({},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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("entityIdentifier","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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(wn.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=Iu({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Du(t.prototype,n),r&&Du(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xu(e){return xu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xu(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 Mu(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){var r,o,i;r=e,o=t,i=n[t],(o=Vu(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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 _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,Vu(r.key),r)}}function Vu(e){var t=function(e,t){if("object"!=xu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=xu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xu(t)?t:t+""}function Nu(e,t,n){return t=Lu(t),function(e,t){if(t&&("object"===xu(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||[],Lu(e).constructor):t.apply(e,n))}function Ju(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ju=function(){return!!e})()}function Lu(e){return Lu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lu(e)}function Wu(e,t){return Wu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wu(e,t)}Cu.prototype.entityIdentifier=void 0,Cu.prototype.$reserved=void 0,Cu.prototype.$objectType=void 0,Cu.prototype.$unknownFields=void 0;var Hu=new WeakSet,Bu=function(e){function t(e){var n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=n=Nu(this,t),o=Hu),o.add(r),n.version=e,n.$objectType="lifecycle.v4.resources.TargetEntity",n.$reserved={$fv:"v4.r0.b1"},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&&Wu(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 Mu(!1===e?Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu({},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()}:{}):Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu(Mu({},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()}:{}),{},{$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 ye?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 ge("version","undefined or null");if(!Lt.validateMaxLength(this.version,128))return new ge("version","does not satisfy required maxLength constraint: 128")}if("locationInfo"===t&&(void 0===this.locationInfo||null===this.locationInfo))return new ge("locationInfo","undefined or null");if("deviceId"===t){if(void 0===this.deviceId||null===this.deviceId)return new ge("deviceId","undefined or null");if(!Lt.validateMaxLength(this.deviceId,128))return new ge("deviceId","does not satisfy required maxLength constraint: 128")}return new ge(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,wn.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(Fn.constructFromObject(e.locationInfo)),e.hasOwnProperty("deviceId")&&null!==e.deviceId&&void 0!==e.deviceId&&n.setDeviceId(e.deviceId),!r))for(var o in n.$unknownFields=Mu({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}}],r&&_u(n.prototype,r),o&&_u(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wn);function zu(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 qu(e){return qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qu(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 Ku(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){var r,o,i;r=e,o=t,i=n[t],(o=Qu(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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 Xu(e,t){for(var n=0;n<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,t){if("object"!=qu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=qu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qu(t)?t: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")}Bu.prototype.version=void 0,Bu.prototype.locationInfo=void 0,Bu.prototype.deviceId=void 0;var Zu=new WeakSet,el=function(){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){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=Zu),r.add(n),this.recommendationSpec=t,this.$objectType="lifecycle.v4.resources.RecommendationSpec",this.$reserved={$fv:"v4.r0.b1"},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 Ku(Ku({},!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})):Yu(Zu,this,tl).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})):Yu(Zu,this,tl).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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("recommendationSpec","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||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:qu(t.recommendationSpec))+" in data";if(0===t.recommendationSpec.length)n.setRecommendationSpec([]);else{if(s=[],(r=t.recommendationSpec)[0].hasOwnProperty("$objectType"))a=r[0].$objectType;else{a=qu(r[0]);try{Object.keys(ln).find((function(e){return ln[e]===r[0]}))&&(a="lifecycle.v4.common.EntityType")}catch(e){}}for(i=0;i<r.length;i++)switch(a){case"lifecycle.v4.common.EntityType":o=ln.constructFromObject(r[i],void 0),s.push(o);break;case"lifecycle.v4.resources.TargetEntity":o=Bu.constructFromObject(r[i],void 0),s.push(o);break;case"lifecycle.v4.common.EntityUpdateSpec":o=wa.constructFromObject(r[i],void 0),s.push(o);break;case"lifecycle.v4.common.EntityDeploySpec":o=Cu.constructFromObject(r[i],void 0),s.push(o);break;default:throw"Unknown list of type "+a+" in data"}n.setRecommendationSpec(s)}}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!u)for(var l in n.$unknownFields=Ku({},t.$unknownFields),t)Object.keys(n).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(n.$unknownFields[l]=t[l])}return n}}],n&&Xu(t.prototype,n),r&&Xu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function tl(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zu(e,t);var n=Object.prototype.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)?zu(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===qu(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 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 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 ol(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){var r,o,i;r=e,o=t,i=n[t],(o=sl(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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 il(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sl(r.key),r)}}function sl(e){var t=function(e,t){if("object"!=nl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=nl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nl(t)?t:t+""}function al(e,t,n){return t=ll(t),function(e,t){if(t&&("object"===nl(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,ul()?Reflect.construct(t,n||[],ll(e).constructor):t.apply(e,n))}function ul(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ul=function(){return!!e})()}function ll(e){return ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ll(e)}function cl(e,t){return cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cl(e,t)}el.prototype.recommendationSpec=void 0,el.prototype.$reserved=void 0,el.prototype.$objectType=void 0,el.prototype.$unknownFields=void 0;var fl=new WeakSet,dl=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=al(this,t),r=fl),r.add(n),e.$objectType="lifecycle.v4.resources.DeployableVersion",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cl(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 ol(!1===e?ol(ol(ol(ol(ol(ol(ol(ol(ol(ol({},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()}:{}):ol(ol(ol(ol(ol(ol(ol(ol({},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()}:{}),{},{$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 ye?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 ge("targetVersion","undefined or null");if(!Lt.validateMaxLength(this.targetVersion,128))return new ge("targetVersion","does not satisfy required maxLength constraint: 128")}if("updateDependencies"===t){if(void 0===this.updateDependencies||null===this.updateDependencies)return new ge("updateDependencies","undefined or null");if(!Lt.validateMaxItems(this.updateDependencies,2048))return new ge("updateDependencies","does not satisfy required maxItems constraint: 2048")}return new ge(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,wn.constructFromObject(e,n,!0),e.hasOwnProperty("targetVersion")&&null!==e.targetVersion&&void 0!==e.targetVersion&&n.setTargetVersion(e.targetVersion),e.hasOwnProperty("updateDependencies")&&null!==e.updateDependencies&&void 0!==e.updateDependencies){for(s=[],r=e.updateDependencies,i=0;i<r.length;i++)o=wa.constructFromObject(r[i],void 0),s.push(o);n.setUpdateDependencies(s)}if(!a)for(var u in n.$unknownFields=ol({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&il(n.prototype,r),o&&il(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wn);function pl(e){return pl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pl(e)}function yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yl(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=bl(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,t){if("object"!=pl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=pl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pl(t)?t:t+""}function gl(e,t,n){return t=wl(t),function(e,t){if(t&&("object"===pl(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,ml()?Reflect.construct(t,n||[],wl(e).constructor):t.apply(e,n))}function ml(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ml=function(){return!!e})()}function wl(e){return wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wl(e)}function Ol(e,t){return Ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ol(e,t)}dl.prototype.targetVersion=void 0,dl.prototype.updateDependencies=void 0;var jl=new WeakSet,kl=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=gl(this,t),r=jl),r.add(n),e.$objectType="lifecycle.v4.resources.UpdatedTargetEntity",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ol(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 hl(!1===e?hl(hl(hl(hl(hl(hl(hl(hl(hl({},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()}:{}):hl(hl(hl(hl(hl(hl(hl({},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()}:{}),{},{$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 ye?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 ge(t,"no such property exists"):new ge("locationInfo","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,wn.constructFromObject(e,n,!0),e.hasOwnProperty("locationInfo")&&null!==e.locationInfo&&void 0!==e.locationInfo&&n.setLocationInfo(Fn.constructFromObject(e.locationInfo)),!r))for(var o in n.$unknownFields=hl({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}}],r&&vl(n.prototype,r),o&&vl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wn);function $l(e){return $l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$l(e)}function El(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?El(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Sl(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):El(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function 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,Sl(r.key),r)}}function Sl(e){var t=function(e,t){if("object"!=$l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=$l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$l(t)?t:t+""}kl.prototype.locationInfo=void 0;var Fl=new WeakSet,Il=function(){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){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=Fl),r.add(n),this.message=t,this.$objectType="lifecycle.v4.resources.UpdatedTargetEntityResult",this.$reserved={$fv:"v4.r0.b1"},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 Pl(Pl(Pl({},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 ye?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 ge("targetEntity","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new ge("message","undefined or null");if(!Lt.validateMaxLength(this.message,512))return new ge("message","does not satisfy required maxLength constraint: 512")}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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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(kl.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=Pl({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Tl(t.prototype,n),r&&Tl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 Al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Al(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=xl(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,xl(r.key),r)}}function xl(e){var t=function(e,t){if("object"!=Dl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Dl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dl(t)?t:t+""}function Ul(e,t,n){return t=_l(t),function(e,t){if(t&&("object"===Dl(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,Ml()?Reflect.construct(t,n||[],_l(e).constructor):t.apply(e,n))}function Ml(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ml=function(){return!!e})()}function _l(e){return _l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_l(e)}function Vl(e,t){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vl(e,t)}Il.prototype.targetEntity=void 0,Il.prototype.message=void 0,Il.prototype.$reserved=void 0,Il.prototype.$objectType=void 0,Il.prototype.$unknownFields=void 0;var Nl=new WeakSet,Jl=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Ul(this,t),r=Nl),r.add(n),e.$objectType="lifecycle.v4.resources.RecommendationResult",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vl(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 Rl(!1===e?Rl(Rl(Rl(Rl(Rl(Rl(Rl(Rl(Rl({},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()}:{}):Rl(Rl(Rl(Rl(Rl(Rl(Rl({},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()}:{}),{},{$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 ye?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 ge("entityUpdateSpecs","undefined or null");if(!Lt.validateMaxItems(this.entityUpdateSpecs,2048))return new ge("entityUpdateSpecs","does not satisfy required maxItems constraint: 2048")}if("skippedEntities"===t){if(void 0===this.skippedEntities||null===this.skippedEntities)return new ge("skippedEntities","undefined or null");if(!Lt.validateMaxItems(this.skippedEntities,2048))return new ge("skippedEntities","does not satisfy required maxItems constraint: 2048")}if("modifiableEntities"===t){if(void 0===this.modifiableEntities||null===this.modifiableEntities)return new ge("modifiableEntities","undefined or null");if(!Lt.validateMaxItems(this.modifiableEntities,2048))return new ge("modifiableEntities","does not satisfy required maxItems constraint: 2048")}if("addableEntities"===t){if(void 0===this.addableEntities||null===this.addableEntities)return new ge("addableEntities","undefined or null");if(!Lt.validateMaxItems(this.addableEntities,2048))return new ge("addableEntities","does not satisfy required maxItems constraint: 2048")}if("deployableVersions"===t){if(void 0===this.deployableVersions||null===this.deployableVersions)return new ge("deployableVersions","undefined or null");if(!Lt.validateMaxItems(this.deployableVersions,2048))return new ge("deployableVersions","does not satisfy required maxItems constraint: 2048")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new ge("clusterExtId","undefined or null");if(!Lt.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 ge("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 ge(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("entityUpdateSpecs")&&null!==e.entityUpdateSpecs&&void 0!==e.entityUpdateSpecs){for(s=[],r=e.entityUpdateSpecs,i=0;i<r.length;i++)o=wa.constructFromObject(r[i],void 0),s.push(o);n.setEntityUpdateSpecs(s)}if(e.hasOwnProperty("skippedEntities")&&null!==e.skippedEntities&&void 0!==e.skippedEntities){for(s=[],r=e.skippedEntities,i=0;i<r.length;i++)o=Il.constructFromObject(r[i],void 0),s.push(o);n.setSkippedEntities(s)}if(e.hasOwnProperty("modifiableEntities")&&null!==e.modifiableEntities&&void 0!==e.modifiableEntities){for(s=[],r=e.modifiableEntities,i=0;i<r.length;i++)o=Il.constructFromObject(r[i],void 0),s.push(o);n.setModifiableEntities(s)}if(e.hasOwnProperty("addableEntities")&&null!==e.addableEntities&&void 0!==e.addableEntities){for(s=[],r=e.addableEntities,i=0;i<r.length;i++)o=Il.constructFromObject(r[i],void 0),s.push(o);n.setAddableEntities(s)}if(e.hasOwnProperty("deployableVersions")&&null!==e.deployableVersions&&void 0!==e.deployableVersions){for(s=[],r=e.deployableVersions,i=0;i<r.length;i++)o=dl.constructFromObject(r[i],void 0),s.push(o);n.setDeployableVersions(s)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&n.setClusterExtId(e.clusterExtId),!a)for(var u in n.$unknownFields=Rl({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Cl(n.prototype,r),o&&Cl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(an);function Ll(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 Wl(e){return Wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wl(e)}function Hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hl(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=ql(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ql(r.key),r)}}function ql(e){var t=function(e,t){if("object"!=Wl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Wl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wl(t)?t:t+""}function Gl(e,t,n){return t=Xl(t),function(e,t){if(t&&("object"===Wl(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,Kl()?Reflect.construct(t,n||[],Xl(e).constructor):t.apply(e,n))}function Kl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kl=function(){return!!e})()}function Xl(e){return Xl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xl(e)}function Ql(e,t){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ql(e,t)}function Yl(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")}Jl.prototype.entityUpdateSpecs=void 0,Jl.prototype.skippedEntities=void 0,Jl.prototype.modifiableEntities=void 0,Jl.prototype.addableEntities=void 0,Jl.prototype.deployableVersions=void 0,Jl.prototype.clusterExtId=void 0;var Zl=new WeakSet,ec=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Gl(this,t),r=Zl),r.add(n),e.$objectType="lifecycle.v4.resources.GetRecommendationByIdApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ql(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 Bl(Bl(Bl({},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})):Yl(Zl,this,tc).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})):Yl(Zl,this,tc).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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Wl(e.data)){case"lifecycle.v4.resources.RecommendationResult":n.setData(Jl.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=Bl({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&zl(n.prototype,r),o&&zl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function tc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ll(e,t);var n=Object.prototype.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)?Ll(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Wl(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 nc(e){return nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nc(e)}function rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rc(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=sc(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ic(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sc(r.key),r)}}function sc(e){var t=function(e,t){if("object"!=nc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=nc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nc(t)?t:t+""}function ac(e,t){return e.get(uc(e,t))}function uc(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")}ec.prototype.metadata=void 0,ec.prototype.data=void 0,ec.prototype.$reserved=void 0,ec.prototype.$objectType=void 0,ec.prototype.$unknownFields=void 0;var lc=new WeakMap,cc=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=lc),i.set(o,s),this.apiClient=t||X.instance,n=lc,r=new Set,n.set(uc(n,this),r),ac(lc,this).add("authorization"),ac(lc,this).add("cookie"),ac(lc,this).add("host"),ac(lc,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;o=e instanceof el&&"function"==typeof e.toJson?e.toJson():e;var i={};Object.keys(r).forEach((function(e){ac(lc,n).has(e.toLowerCase())||(i[e]=r[e])}));var s=oc({"X-Cluster-Id":t["X-Cluster-Id"]},i);X.addEtagReferenceToHeader(e,s);var a=Pu;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/operations/$actions/compute-recommendations","POST",{},{},s,{},o,["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){ac(lc,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=oc({},o),s=ec;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/resources/recommendations/{extId}","GET",r,{},i,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&ic(e.prototype,t),n&&ic(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function fc(e){return fc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fc(e)}function 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 pc(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){var r,o,i;r=e,o=t,i=n[t],(o=hc(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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 yc(e,t){for(var n=0;n<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,t){if("object"!=fc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=fc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fc(t)?t:t+""}var vc=new WeakSet,bc=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=vc),n.add(t),this.$objectType="lifecycle.v4.resources.FrameworkVersionInfo",this.$reserved={$fv:"v4.r0.b1"},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 pc(pc(pc(pc({},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 ye?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 ge("currentVersion","undefined or null");if(!Lt.validateMaxLength(this.currentVersion,128))return new ge("currentVersion","does not satisfy required maxLength constraint: 128")}if("availableVersion"===t){if(void 0===this.availableVersion||null===this.availableVersion)return new ge("availableVersion","undefined or null");if(!Lt.validateMaxLength(this.availableVersion,128))return new ge("availableVersion","does not satisfy required maxLength constraint: 128")}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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("isUpdateNeeded","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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=pc({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&yc(t.prototype,n),r&&yc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();bc.prototype.currentVersion=void 0,bc.prototype.availableVersion=void 0,bc.prototype.isUpdateNeeded=!1,bc.prototype.$reserved=void 0,bc.prototype.$objectType=void 0,bc.prototype.$unknownFields=void 0;var gc={$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(gc).find((function(t){return gc[t]===e}));return null==t?gc.$UNKNOWN:gc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case gc.$UNKNOWN:case gc.$REDACTED:case gc.INVENTORY:case gc.PRECHECKS:case gc.UPGRADE:case gc.NONE:return;default:throw new Error("Invalid : must be OperationType.{ $UNKNOWN|$REDACTED|INVENTORY|PRECHECKS|UPGRADE|NONE }")}}};Object.freeze(gc);const mc=gc;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 Oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oc(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=$c(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,$c(r.key),r)}}function $c(e){var t=function(e,t){if("object"!=wc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=wc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wc(t)?t:t+""}var Ec=new WeakSet,Pc=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Ec),n.add(t),this.$objectType="lifecycle.v4.resources.InProgressOpInfo",this.$reserved={$fv:"v4.r0.b1"},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 jc(jc(jc({},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 ye?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 ge("operationId","undefined or null");if(!Lt.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 ge("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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("operationType","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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(mc.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=jc({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&kc(t.prototype,n),r&&kc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Tc(e){return Tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tc(e)}function Sc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sc(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Dc(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ic(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dc(r.key),r)}}function Dc(e){var t=function(e,t){if("object"!=Tc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Tc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tc(t)?t:t+""}Pc.prototype.operationId=void 0,Pc.prototype.operationType=void 0,Pc.prototype.$reserved=void 0,Pc.prototype.$objectType=void 0,Pc.prototype.$unknownFields=void 0;var Ac=new WeakSet,Rc=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Ac),n.add(t),this.$objectType="lifecycle.v4.resources.StatusInfo",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{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:"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 Fc(Fc(Fc(Fc(Fc({},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 ye?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 ge("frameworkVersion","undefined or null");if("inProgressOperation"===t&&(void 0===this.inProgressOperation||null===this.inProgressOperation))return new ge("inProgressOperation","undefined or null");if("isCancelIntentSet"===t&&(void 0===this.isCancelIntentSet||null===this.isCancelIntentSet))return new ge("isCancelIntentSet","undefined or null");if("uploadTaskUuid"===t){if(void 0===this.uploadTaskUuid||null===this.uploadTaskUuid)return new ge("uploadTaskUuid","undefined or null");if(!Lt.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 ge("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"$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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("frameworkVersion")&&null!==t.frameworkVersion&&void 0!==t.frameworkVersion&&n.setFrameworkVersion(bc.constructFromObject(t.frameworkVersion)),t.hasOwnProperty("inProgressOperation")&&null!==t.inProgressOperation&&void 0!==t.inProgressOperation&&n.setInProgressOperation(Pc.constructFromObject(t.inProgressOperation)),t.hasOwnProperty("isCancelIntentSet")&&null!==t.isCancelIntentSet&&void 0!==t.isCancelIntentSet&&n.setIsCancelIntentSet(t.isCancelIntentSet),t.hasOwnProperty("uploadTaskUuid")&&null!==t.uploadTaskUuid&&void 0!==t.uploadTaskUuid&&n.setUploadTaskUuid(t.uploadTaskUuid),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=Fc({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],n&&Ic(t.prototype,n),r&&Ic(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Cc(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 xc(e){return xc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xc(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 Mc(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){var r,o,i;r=e,o=t,i=n[t],(o=Vc(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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 _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,Vc(r.key),r)}}function Vc(e){var t=function(e,t){if("object"!=xc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=xc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xc(t)?t:t+""}function Nc(e,t,n){return t=Lc(t),function(e,t){if(t&&("object"===xc(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,Jc()?Reflect.construct(t,n||[],Lc(e).constructor):t.apply(e,n))}function Jc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jc=function(){return!!e})()}function Lc(e){return Lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lc(e)}function Wc(e,t){return Wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wc(e,t)}function Hc(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")}Rc.prototype.frameworkVersion=void 0,Rc.prototype.inProgressOperation=void 0,Rc.prototype.isCancelIntentSet=!1,Rc.prototype.uploadTaskUuid=void 0,Rc.prototype.$reserved=void 0,Rc.prototype.$objectType=void 0,Rc.prototype.$unknownFields=void 0;var Bc=new WeakSet,zc=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Nc(this,t),r=Bc),r.add(n),e.$objectType="lifecycle.v4.resources.GetStatusApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wc(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Mc(Mc(Mc({},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})):Hc(Bc,this,qc).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})):Hc(Bc,this,qc).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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:xc(e.data)){case"lifecycle.v4.resources.StatusInfo":n.setData(Rc.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=Mc({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&_c(n.prototype,r),o&&_c(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function qc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cc(e,t);var n=Object.prototype.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)?Cc(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===xc(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 Gc(e){return Gc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gc(e)}function Kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xc(e,t){for(var n=0;n<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,t){if("object"!=Gc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Gc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gc(t)?t:t+""}function Yc(e,t){return e.get(Zc(e,t))}function Zc(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.metadata=void 0,zc.prototype.data=void 0,zc.prototype.$reserved=void 0,zc.prototype.$objectType=void 0,zc.prototype.$unknownFields=void 0;var ef=new WeakMap,tf=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=ef),i.set(o,s),this.apiClient=t||X.instance,n=ef,r=new Set,n.set(Zc(n,this),r),Yc(ef,this).add("authorization"),Yc(ef,this).add("cookie"),Yc(ef,this).add("host"),Yc(ef,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){Yc(ef,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?Kc(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Qc(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"X-Cluster-Id":e["X-Cluster-Id"]},r),i=zc;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/resources/status","GET",{},{},o,{},null,["basicAuthScheme"],[],["application/json"],i)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&Xc(e.prototype,t),n&&Xc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function nf(e){return nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nf(e)}function rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?rf(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=af(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,af(r.key),r)}}function af(e){var t=function(e,t){if("object"!=nf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=nf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nf(t)?t:t+""}function uf(e,t,n){return t=cf(t),function(e,t){if(t&&("object"===nf(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))}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(e){var n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=n=uf(this,t,[e]),o=df),o.add(r),n.$objectType="lifecycle.v4.common.UpgradeSpec",n.$reserved={$fv:"v4.r0.b1"},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&&ff(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 of(of(of(of(of(of({},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 ye?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 ge("autoHandleFlags","undefined or null");if(!Lt.validateMaxItems(this.autoHandleFlags,20))return new ge("autoHandleFlags","does not satisfy required maxItems constraint: 20")}if("maxWaitTimeInSecs"===t){if(void 0===this.maxWaitTimeInSecs||null===this.maxWaitTimeInSecs)return new ge("maxWaitTimeInSecs","undefined or null");if(!Lt.validateMaximum(this.maxWaitTimeInSecs,86400))return new ge("maxWaitTimeInSecs","does not satisfy required maximum constraint: 86400");if(!Lt.validateMinimum(this.maxWaitTimeInSecs,60))return new ge("maxWaitTimeInSecs","does not satisfy required minimum constraint: 60")}return new ge(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,Ba.constructFromObject(e,n,!0),e.hasOwnProperty("autoHandleFlags")&&null!==e.autoHandleFlags&&void 0!==e.autoHandleFlags){for(s=[],r=e.autoHandleFlags,i=0;i<r.length;i++)o=_a.constructFromObject(r[i],void 0),s.push(o);n.setAutoHandleFlags(s)}if(e.hasOwnProperty("maxWaitTimeInSecs")&&null!==e.maxWaitTimeInSecs&&void 0!==e.maxWaitTimeInSecs&&n.setMaxWaitTimeInSecs(e.maxWaitTimeInSecs),!a)for(var u in n.$unknownFields=of({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&sf(n.prototype,r),o&&sf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ba);function yf(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 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){var r,o,i;r=e,o=t,i=n[t],(o=mf(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):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){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mf(r.key),r)}}function mf(e){var t=function(e,t){if("object"!=hf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=hf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hf(t)?t:t+""}function wf(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))}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")}pf.prototype.autoHandleFlags=void 0,pf.prototype.maxWaitTimeInSecs=void 0;var Ef=new WeakSet,Pf=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=wf(this,t),r=Ef),r.add(n),e.$objectType="lifecycle.v4.operations.UpgradeApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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(Ef,this,Tf).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(Ef,this,Tf).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 ye?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 ge(t,"no such property exists"):new ge("$unknownFields","undefined or null"):new ge("$objectType","undefined or null"):new ge("$reserved","undefined or null"):new ge("data","undefined or null"):new ge("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:hf(e.data)){case"prism.v4.config.TaskReference":n.setData($o.constructFromObject(e.data,void 0));break;case"lifecycle.v4.error.ErrorResponse":n.setData(Mt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!o)for(var i in n.$unknownFields=bf({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i])}return n}}],r&&gf(n.prototype,r),o&&gf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Tf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yf(e,t);var n=Object.prototype.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}}(e,t)||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.")}()}(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"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 If(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Df(r.key),r)}}function Df(e){var t=function(e,t){if("object"!=Sf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Sf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sf(t)?t:t+""}function Af(e,t){return e.get(Rf(e,t))}function Rf(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")}Pf.prototype.metadata=void 0,Pf.prototype.data=void 0,Pf.prototype.$reserved=void 0,Pf.prototype.$objectType=void 0,Pf.prototype.$unknownFields=void 0;var Cf=new WeakMap,xf=function(){return e=function e(t){var n,r,o,i,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=this,i=Cf),i.set(o,s),this.apiClient=t||X.instance,n=Cf,r=new Set,n.set(Rf(n,this),r),Af(Cf,this).add("authorization"),Af(Cf,this).add("cookie"),Af(Cf,this).add("host"),Af(Cf,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;o=e instanceof pf&&"function"==typeof e.toJson?e.toJson():e;var i={};Object.keys(r).forEach((function(e){Af(Cf,n).has(e.toLowerCase())||(i[e]=r[e])}));var s=function(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){var r,o,i;r=e,o=t,i=n[t],(o=Df(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ff(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"X-Cluster-Id":t["X-Cluster-Id"]},i);X.addEtagReferenceToHeader(e,s);var a=Pf;return this.apiClient.callApi("/api/lifecycle/v4.0.b1/operations/$actions/upgrade","POST",{},{},s,{},o,["basicAuthScheme"],["application/json"],["application/json"],a)}}],n=[{key:"ApiClient",get:function(){return X}}],t&&If(e.prototype,t),n&&If(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();const Uf={ApiClient:X,EntitiesApi:Wr,ConfigApi:qo,ImagesApi:Ui,InventoryApi:os,NotificationsApi:Fa,PrechecksApi:pu,RecommendationsApi:cc,StatusApi:tf,UpgradesApi:xf,Flag:Ee,KVPair:Ce,Message:He,MessageSeverity:Me,TenantAwareModel:Kt,ApiLink:Qe,ApiResponseMetadata:ot,ExternalizableAbstractModel:an,AvailableVersionStatus:Dn,CheckSumType:Ko,EntityBaseModel:wn,EntityDeploySpec:Cu,EntityType:ln,EntityUpdateSpec:wa,HypervisorType:ss,LocationInfo:Fn,LocationType:jn,ManagementServer:Ua,NotificationType:us,OperationType:mc,PrechecksSpec:Ba,SystemAutoMgmtFlag:_a,UpgradeSpec:pf,AppMessage:pt,ErrorResponse:Mt,SchemaValidationError:St,SchemaValidationErrorMessage:Ot,ComputeNotificationsApiResponse:da,ComputeRecommendationsApiResponse:Pu,InventoryApiResponse:Ki,PrechecksApiResponse:ou,UpgradeApiResponse:Pf,AvailableVersion:Kn,Config:no,ConnectivityType:Br,DependentEntity:Ln,DeployableVersion:dl,Entity:sr,FrameworkVersionInfo:bc,GetConfigApiResponse:vo,GetEntityByIdApiResponse:mr,GetNotificationsByIdApiResponse:Ys,GetRecommendationByIdApiResponse:ec,GetStatusApiResponse:zc,Image:pi,ImageFile:ni,InProgressOpInfo:Pc,ListEntitiesApiResponse:Rr,ListImagesApiResponse:Pi,Notification:Vs,NotificationDetail:bs,NotificationItem:Ss,RecommendationResult:Jl,RecommendationSpec:el,SeverityLevel:cs,StatusInfo:Rc,TargetEntity:Bu,UpdateConfigApiResponse:Mo,UpdatedTargetEntity:kl,UpdatedTargetEntityResult:Il,TaskReference:$o}})(),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})());
|