@nutanix-scratch/lifecycle-js-client 4.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +49 -0
- package/README.md +197 -0
- package/dist/Ntnx-Lifecycle-js-client-prod.js +1 -0
- package/dist/Ntnx-Lifecycle-js-client.js +1180 -0
- package/dist/es/ApiClient.d.ts +159 -0
- package/dist/es/ApiClient.js +1216 -0
- package/dist/es/Paginable.d.ts +95 -0
- package/dist/es/Paginable.js +287 -0
- package/dist/es/apis/config-endpoints.d.ts +51 -0
- package/dist/es/apis/config-endpoints.js +148 -0
- package/dist/es/apis/entities-endpoints.d.ts +68 -0
- package/dist/es/apis/entities-endpoints.js +166 -0
- package/dist/es/apis/images-endpoints.d.ts +59 -0
- package/dist/es/apis/images-endpoints.js +129 -0
- package/dist/es/apis/inventory-endpoints.d.ts +35 -0
- package/dist/es/apis/inventory-endpoints.js +104 -0
- package/dist/es/apis/notifications-endpoints.d.ts +47 -0
- package/dist/es/apis/notifications-endpoints.js +150 -0
- package/dist/es/apis/prechecks-endpoints.d.ts +39 -0
- package/dist/es/apis/prechecks-endpoints.js +113 -0
- package/dist/es/apis/recommendations-endpoints.d.ts +48 -0
- package/dist/es/apis/recommendations-endpoints.js +150 -0
- package/dist/es/apis/status-endpoints.d.ts +35 -0
- package/dist/es/apis/status-endpoints.js +104 -0
- package/dist/es/apis/upgrades-endpoints.d.ts +39 -0
- package/dist/es/apis/upgrades-endpoints.js +113 -0
- package/dist/es/index.d.ts +146 -0
- package/dist/es/index.js +580 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/es/models/common/v1/config/Flag.js +275 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +62 -0
- package/dist/es/models/common/v1/config/KVPair.js +332 -0
- package/dist/es/models/common/v1/config/Message.d.ts +84 -0
- package/dist/es/models/common/v1/config/Message.js +354 -0
- package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/es/models/common/v1/config/MessageSeverity.js +91 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +50 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.js +243 -0
- package/dist/es/models/common/v1/response/ApiLink.d.ts +62 -0
- package/dist/es/models/common/v1/response/ApiLink.js +280 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +438 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
- package/dist/es/models/lifecycle/v4/common/AvailableVersionStatus.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/AvailableVersionStatus.js +121 -0
- package/dist/es/models/lifecycle/v4/common/CheckSumType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/CheckSumType.js +85 -0
- package/dist/es/models/lifecycle/v4/common/EntityBaseModel.d.ts +78 -0
- package/dist/es/models/lifecycle/v4/common/EntityBaseModel.js +375 -0
- package/dist/es/models/lifecycle/v4/common/EntityDeploySpec.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/common/EntityDeploySpec.js +245 -0
- package/dist/es/models/lifecycle/v4/common/EntityType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/EntityType.js +85 -0
- package/dist/es/models/lifecycle/v4/common/EntityUpdateSpec.d.ts +76 -0
- package/dist/es/models/lifecycle/v4/common/EntityUpdateSpec.js +293 -0
- package/dist/es/models/lifecycle/v4/common/HypervisorType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/HypervisorType.js +91 -0
- package/dist/es/models/lifecycle/v4/common/LocationInfo.d.ts +58 -0
- package/dist/es/models/lifecycle/v4/common/LocationInfo.js +276 -0
- package/dist/es/models/lifecycle/v4/common/LocationType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/LocationType.js +91 -0
- package/dist/es/models/lifecycle/v4/common/ManagementServer.d.ts +107 -0
- package/dist/es/models/lifecycle/v4/common/ManagementServer.js +377 -0
- package/dist/es/models/lifecycle/v4/common/NotificationType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/NotificationType.js +85 -0
- package/dist/es/models/lifecycle/v4/common/OperationType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/OperationType.js +97 -0
- package/dist/es/models/lifecycle/v4/common/PrechecksSpec.d.ts +81 -0
- package/dist/es/models/lifecycle/v4/common/PrechecksSpec.js +342 -0
- package/dist/es/models/lifecycle/v4/common/SystemAutoMgmtFlag.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/common/SystemAutoMgmtFlag.js +79 -0
- package/dist/es/models/lifecycle/v4/common/UpgradeSpec.d.ts +48 -0
- package/dist/es/models/lifecycle/v4/common/UpgradeSpec.js +292 -0
- package/dist/es/models/lifecycle/v4/error/AppMessage.d.ts +108 -0
- package/dist/es/models/lifecycle/v4/error/AppMessage.js +432 -0
- package/dist/es/models/lifecycle/v4/error/ErrorResponse.d.ts +48 -0
- package/dist/es/models/lifecycle/v4/error/ErrorResponse.js +296 -0
- package/dist/es/models/lifecycle/v4/error/SchemaValidationError.d.ts +98 -0
- package/dist/es/models/lifecycle/v4/error/SchemaValidationError.js +407 -0
- package/dist/es/models/lifecycle/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
- package/dist/es/models/lifecycle/v4/error/SchemaValidationErrorMessage.js +318 -0
- package/dist/es/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/operations/InventoryApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/operations/InventoryApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/operations/PrechecksApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/operations/PrechecksApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/operations/UpgradeApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/operations/UpgradeApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/resources/AvailableVersion.d.ts +182 -0
- package/dist/es/models/lifecycle/v4/resources/AvailableVersion.js +705 -0
- package/dist/es/models/lifecycle/v4/resources/Config.d.ts +150 -0
- package/dist/es/models/lifecycle/v4/resources/Config.js +627 -0
- package/dist/es/models/lifecycle/v4/resources/ConnectivityType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/resources/ConnectivityType.js +91 -0
- package/dist/es/models/lifecycle/v4/resources/DependentEntity.d.ts +37 -0
- package/dist/es/models/lifecycle/v4/resources/DependentEntity.js +255 -0
- package/dist/es/models/lifecycle/v4/resources/DeployableVersion.d.ts +47 -0
- package/dist/es/models/lifecycle/v4/resources/DeployableVersion.js +297 -0
- package/dist/es/models/lifecycle/v4/resources/Entity.d.ts +155 -0
- package/dist/es/models/lifecycle/v4/resources/Entity.js +663 -0
- package/dist/es/models/lifecycle/v4/resources/FrameworkVersionInfo.d.ts +74 -0
- package/dist/es/models/lifecycle/v4/resources/FrameworkVersionInfo.js +325 -0
- package/dist/es/models/lifecycle/v4/resources/GetConfigApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/resources/GetConfigApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/resources/GetEntityByIdApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/resources/GetStatusApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/resources/GetStatusApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/resources/Image.d.ts +109 -0
- package/dist/es/models/lifecycle/v4/resources/Image.js +464 -0
- package/dist/es/models/lifecycle/v4/resources/ImageFile.d.ts +127 -0
- package/dist/es/models/lifecycle/v4/resources/ImageFile.js +453 -0
- package/dist/es/models/lifecycle/v4/resources/InProgressOpInfo.d.ts +60 -0
- package/dist/es/models/lifecycle/v4/resources/InProgressOpInfo.js +281 -0
- package/dist/es/models/lifecycle/v4/resources/ListEntitiesApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/resources/ListEntitiesApiResponse.js +333 -0
- package/dist/es/models/lifecycle/v4/resources/ListImagesApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/resources/ListImagesApiResponse.js +333 -0
- package/dist/es/models/lifecycle/v4/resources/Notification.d.ts +42 -0
- package/dist/es/models/lifecycle/v4/resources/Notification.js +279 -0
- package/dist/es/models/lifecycle/v4/resources/NotificationDetail.d.ts +60 -0
- package/dist/es/models/lifecycle/v4/resources/NotificationDetail.js +281 -0
- package/dist/es/models/lifecycle/v4/resources/NotificationItem.d.ts +79 -0
- package/dist/es/models/lifecycle/v4/resources/NotificationItem.js +405 -0
- package/dist/es/models/lifecycle/v4/resources/RecommendationResult.d.ts +92 -0
- package/dist/es/models/lifecycle/v4/resources/RecommendationResult.js +488 -0
- package/dist/es/models/lifecycle/v4/resources/RecommendationSpec.d.ts +62 -0
- package/dist/es/models/lifecycle/v4/resources/RecommendationSpec.js +305 -0
- package/dist/es/models/lifecycle/v4/resources/SeverityLevel.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/resources/SeverityLevel.js +91 -0
- package/dist/es/models/lifecycle/v4/resources/StatusInfo.d.ts +82 -0
- package/dist/es/models/lifecycle/v4/resources/StatusInfo.js +358 -0
- package/dist/es/models/lifecycle/v4/resources/TargetEntity.d.ts +70 -0
- package/dist/es/models/lifecycle/v4/resources/TargetEntity.js +330 -0
- package/dist/es/models/lifecycle/v4/resources/UpdateConfigApiResponse.d.ts +59 -0
- package/dist/es/models/lifecycle/v4/resources/UpdateConfigApiResponse.js +311 -0
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntity.d.ts +35 -0
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntity.js +243 -0
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntityResult.d.ts +70 -0
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js +286 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +50 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +252 -0
- package/dist/es/models/validation/ValidationError.d.ts +13 -0
- package/dist/es/models/validation/ValidationError.js +60 -0
- package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/es/models/validation/ValidationScopes.js +38 -0
- package/dist/es/utils/ValidationUtils.d.ts +13 -0
- package/dist/es/utils/ValidationUtils.js +85 -0
- package/dist/lib/ApiClient.d.ts +159 -0
- package/dist/lib/ApiClient.js +1216 -0
- package/dist/lib/Paginable.d.ts +95 -0
- package/dist/lib/Paginable.js +287 -0
- package/dist/lib/apis/config-endpoints.d.ts +51 -0
- package/dist/lib/apis/config-endpoints.js +148 -0
- package/dist/lib/apis/entities-endpoints.d.ts +68 -0
- package/dist/lib/apis/entities-endpoints.js +166 -0
- package/dist/lib/apis/images-endpoints.d.ts +59 -0
- package/dist/lib/apis/images-endpoints.js +129 -0
- package/dist/lib/apis/inventory-endpoints.d.ts +35 -0
- package/dist/lib/apis/inventory-endpoints.js +104 -0
- package/dist/lib/apis/notifications-endpoints.d.ts +47 -0
- package/dist/lib/apis/notifications-endpoints.js +150 -0
- package/dist/lib/apis/prechecks-endpoints.d.ts +39 -0
- package/dist/lib/apis/prechecks-endpoints.js +113 -0
- package/dist/lib/apis/recommendations-endpoints.d.ts +48 -0
- package/dist/lib/apis/recommendations-endpoints.js +150 -0
- package/dist/lib/apis/status-endpoints.d.ts +35 -0
- package/dist/lib/apis/status-endpoints.js +104 -0
- package/dist/lib/apis/upgrades-endpoints.d.ts +39 -0
- package/dist/lib/apis/upgrades-endpoints.js +113 -0
- package/dist/lib/index.d.ts +146 -0
- package/dist/lib/index.js +580 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/lib/models/common/v1/config/Flag.js +275 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +62 -0
- package/dist/lib/models/common/v1/config/KVPair.js +332 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +84 -0
- package/dist/lib/models/common/v1/config/Message.js +354 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.js +91 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +50 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +243 -0
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +62 -0
- package/dist/lib/models/common/v1/response/ApiLink.js +280 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +438 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
- package/dist/lib/models/lifecycle/v4/common/AvailableVersionStatus.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/AvailableVersionStatus.js +121 -0
- package/dist/lib/models/lifecycle/v4/common/CheckSumType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/CheckSumType.js +85 -0
- package/dist/lib/models/lifecycle/v4/common/EntityBaseModel.d.ts +78 -0
- package/dist/lib/models/lifecycle/v4/common/EntityBaseModel.js +375 -0
- package/dist/lib/models/lifecycle/v4/common/EntityDeploySpec.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/common/EntityDeploySpec.js +245 -0
- package/dist/lib/models/lifecycle/v4/common/EntityType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/EntityType.js +85 -0
- package/dist/lib/models/lifecycle/v4/common/EntityUpdateSpec.d.ts +76 -0
- package/dist/lib/models/lifecycle/v4/common/EntityUpdateSpec.js +293 -0
- package/dist/lib/models/lifecycle/v4/common/HypervisorType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/HypervisorType.js +91 -0
- package/dist/lib/models/lifecycle/v4/common/LocationInfo.d.ts +58 -0
- package/dist/lib/models/lifecycle/v4/common/LocationInfo.js +276 -0
- package/dist/lib/models/lifecycle/v4/common/LocationType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/LocationType.js +91 -0
- package/dist/lib/models/lifecycle/v4/common/ManagementServer.d.ts +107 -0
- package/dist/lib/models/lifecycle/v4/common/ManagementServer.js +377 -0
- package/dist/lib/models/lifecycle/v4/common/NotificationType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/NotificationType.js +85 -0
- package/dist/lib/models/lifecycle/v4/common/OperationType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/OperationType.js +97 -0
- package/dist/lib/models/lifecycle/v4/common/PrechecksSpec.d.ts +81 -0
- package/dist/lib/models/lifecycle/v4/common/PrechecksSpec.js +342 -0
- package/dist/lib/models/lifecycle/v4/common/SystemAutoMgmtFlag.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/common/SystemAutoMgmtFlag.js +79 -0
- package/dist/lib/models/lifecycle/v4/common/UpgradeSpec.d.ts +48 -0
- package/dist/lib/models/lifecycle/v4/common/UpgradeSpec.js +292 -0
- package/dist/lib/models/lifecycle/v4/error/AppMessage.d.ts +108 -0
- package/dist/lib/models/lifecycle/v4/error/AppMessage.js +432 -0
- package/dist/lib/models/lifecycle/v4/error/ErrorResponse.d.ts +48 -0
- package/dist/lib/models/lifecycle/v4/error/ErrorResponse.js +296 -0
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationError.d.ts +98 -0
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationError.js +407 -0
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationErrorMessage.js +318 -0
- package/dist/lib/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/operations/InventoryApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/operations/InventoryApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/operations/PrechecksApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/operations/PrechecksApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/operations/UpgradeApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/operations/UpgradeApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/resources/AvailableVersion.d.ts +182 -0
- package/dist/lib/models/lifecycle/v4/resources/AvailableVersion.js +705 -0
- package/dist/lib/models/lifecycle/v4/resources/Config.d.ts +150 -0
- package/dist/lib/models/lifecycle/v4/resources/Config.js +627 -0
- package/dist/lib/models/lifecycle/v4/resources/ConnectivityType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/resources/ConnectivityType.js +91 -0
- package/dist/lib/models/lifecycle/v4/resources/DependentEntity.d.ts +37 -0
- package/dist/lib/models/lifecycle/v4/resources/DependentEntity.js +255 -0
- package/dist/lib/models/lifecycle/v4/resources/DeployableVersion.d.ts +47 -0
- package/dist/lib/models/lifecycle/v4/resources/DeployableVersion.js +297 -0
- package/dist/lib/models/lifecycle/v4/resources/Entity.d.ts +155 -0
- package/dist/lib/models/lifecycle/v4/resources/Entity.js +663 -0
- package/dist/lib/models/lifecycle/v4/resources/FrameworkVersionInfo.d.ts +74 -0
- package/dist/lib/models/lifecycle/v4/resources/FrameworkVersionInfo.js +325 -0
- package/dist/lib/models/lifecycle/v4/resources/GetConfigApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/resources/GetConfigApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/resources/GetEntityByIdApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/resources/GetStatusApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/resources/GetStatusApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/resources/Image.d.ts +109 -0
- package/dist/lib/models/lifecycle/v4/resources/Image.js +464 -0
- package/dist/lib/models/lifecycle/v4/resources/ImageFile.d.ts +127 -0
- package/dist/lib/models/lifecycle/v4/resources/ImageFile.js +453 -0
- package/dist/lib/models/lifecycle/v4/resources/InProgressOpInfo.d.ts +60 -0
- package/dist/lib/models/lifecycle/v4/resources/InProgressOpInfo.js +281 -0
- package/dist/lib/models/lifecycle/v4/resources/ListEntitiesApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/resources/ListEntitiesApiResponse.js +333 -0
- package/dist/lib/models/lifecycle/v4/resources/ListImagesApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/resources/ListImagesApiResponse.js +333 -0
- package/dist/lib/models/lifecycle/v4/resources/Notification.d.ts +42 -0
- package/dist/lib/models/lifecycle/v4/resources/Notification.js +279 -0
- package/dist/lib/models/lifecycle/v4/resources/NotificationDetail.d.ts +60 -0
- package/dist/lib/models/lifecycle/v4/resources/NotificationDetail.js +281 -0
- package/dist/lib/models/lifecycle/v4/resources/NotificationItem.d.ts +79 -0
- package/dist/lib/models/lifecycle/v4/resources/NotificationItem.js +405 -0
- package/dist/lib/models/lifecycle/v4/resources/RecommendationResult.d.ts +92 -0
- package/dist/lib/models/lifecycle/v4/resources/RecommendationResult.js +488 -0
- package/dist/lib/models/lifecycle/v4/resources/RecommendationSpec.d.ts +62 -0
- package/dist/lib/models/lifecycle/v4/resources/RecommendationSpec.js +305 -0
- package/dist/lib/models/lifecycle/v4/resources/SeverityLevel.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/resources/SeverityLevel.js +91 -0
- package/dist/lib/models/lifecycle/v4/resources/StatusInfo.d.ts +82 -0
- package/dist/lib/models/lifecycle/v4/resources/StatusInfo.js +358 -0
- package/dist/lib/models/lifecycle/v4/resources/TargetEntity.d.ts +70 -0
- package/dist/lib/models/lifecycle/v4/resources/TargetEntity.js +330 -0
- package/dist/lib/models/lifecycle/v4/resources/UpdateConfigApiResponse.d.ts +59 -0
- package/dist/lib/models/lifecycle/v4/resources/UpdateConfigApiResponse.js +311 -0
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntity.d.ts +35 -0
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntity.js +243 -0
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntityResult.d.ts +70 -0
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js +286 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +50 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +252 -0
- package/dist/lib/models/validation/ValidationError.d.ts +13 -0
- package/dist/lib/models/validation/ValidationError.js +60 -0
- package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/lib/models/validation/ValidationScopes.js +38 -0
- package/dist/lib/utils/ValidationUtils.d.ts +13 -0
- package/dist/lib/utils/ValidationUtils.js +85 -0
- package/package.json +53 -0
|
@@ -0,0 +1,1180 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
3
|
+
* This devtool is neither made for production nor for readable output files.
|
|
4
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
5
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
6
|
+
* or disable the default devtool with "devtool: false".
|
|
7
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
8
|
+
*/
|
|
9
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
11
|
+
module.exports = factory();
|
|
12
|
+
else if(typeof define === 'function' && define.amd)
|
|
13
|
+
define([], factory);
|
|
14
|
+
else if(typeof exports === 'object')
|
|
15
|
+
exports["Ntnx"] = factory();
|
|
16
|
+
else
|
|
17
|
+
root["Ntnx"] = root["Ntnx"] || {}, root["Ntnx"]["Lifecycle"] = factory();
|
|
18
|
+
})(typeof self === 'undefined' ? this : self, () => {
|
|
19
|
+
return /******/ (() => { // webpackBootstrap
|
|
20
|
+
/******/ var __webpack_modules__ = ({
|
|
21
|
+
|
|
22
|
+
/***/ "./node_modules/component-emitter/index.js":
|
|
23
|
+
/*!*************************************************!*\
|
|
24
|
+
!*** ./node_modules/component-emitter/index.js ***!
|
|
25
|
+
\*************************************************/
|
|
26
|
+
/***/ ((module) => {
|
|
27
|
+
|
|
28
|
+
eval("/**\n * Expose `Emitter`.\n */\n\nif (true) {\n module.exports = Emitter;\n}\n\n/**\n * Initialize a new `Emitter`.\n *\n * @api public\n */\n\nfunction Emitter(obj) {\n if (obj) return mixin(obj);\n}\n;\n\n/**\n * Mixin the emitter properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in Emitter.prototype) {\n obj[key] = Emitter.prototype[key];\n }\n return obj;\n}\n\n/**\n * Listen on the given `event` with `fn`.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.on = Emitter.prototype.addEventListener = function (event, fn) {\n this._callbacks = this._callbacks || {};\n (this._callbacks['$' + event] = this._callbacks['$' + event] || []).push(fn);\n return this;\n};\n\n/**\n * Adds an `event` listener that will be invoked a single\n * time then automatically removed.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.once = function (event, fn) {\n function on() {\n this.off(event, on);\n fn.apply(this, arguments);\n }\n on.fn = fn;\n this.on(event, on);\n return this;\n};\n\n/**\n * Remove the given callback for `event` or all\n * registered callbacks.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.off = Emitter.prototype.removeListener = Emitter.prototype.removeAllListeners = Emitter.prototype.removeEventListener = function (event, fn) {\n this._callbacks = this._callbacks || {};\n\n // all\n if (0 == arguments.length) {\n this._callbacks = {};\n return this;\n }\n\n // specific event\n var callbacks = this._callbacks['$' + event];\n if (!callbacks) return this;\n\n // remove all handlers\n if (1 == arguments.length) {\n delete this._callbacks['$' + event];\n return this;\n }\n\n // remove specific handler\n var cb;\n for (var i = 0; i < callbacks.length; i++) {\n cb = callbacks[i];\n if (cb === fn || cb.fn === fn) {\n callbacks.splice(i, 1);\n break;\n }\n }\n\n // Remove event specific arrays for event types that no\n // one is subscribed for to avoid memory leak.\n if (callbacks.length === 0) {\n delete this._callbacks['$' + event];\n }\n return this;\n};\n\n/**\n * Emit `event` with the given args.\n *\n * @param {String} event\n * @param {Mixed} ...\n * @return {Emitter}\n */\n\nEmitter.prototype.emit = function (event) {\n this._callbacks = this._callbacks || {};\n var args = new Array(arguments.length - 1),\n callbacks = this._callbacks['$' + event];\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n if (callbacks) {\n callbacks = callbacks.slice(0);\n for (var i = 0, len = callbacks.length; i < len; ++i) {\n callbacks[i].apply(this, args);\n }\n }\n return this;\n};\n\n/**\n * Return array of callbacks for `event`.\n *\n * @param {String} event\n * @return {Array}\n * @api public\n */\n\nEmitter.prototype.listeners = function (event) {\n this._callbacks = this._callbacks || {};\n return this._callbacks['$' + event] || [];\n};\n\n/**\n * Check if this emitter has `event` handlers.\n *\n * @param {String} event\n * @return {Boolean}\n * @api public\n */\n\nEmitter.prototype.hasListeners = function (event) {\n return !!this.listeners(event).length;\n};\n\n//# sourceURL=webpack://Ntnx/./node_modules/component-emitter/index.js?");
|
|
29
|
+
|
|
30
|
+
/***/ }),
|
|
31
|
+
|
|
32
|
+
/***/ "./node_modules/fast-safe-stringify/index.js":
|
|
33
|
+
/*!***************************************************!*\
|
|
34
|
+
!*** ./node_modules/fast-safe-stringify/index.js ***!
|
|
35
|
+
\***************************************************/
|
|
36
|
+
/***/ ((module) => {
|
|
37
|
+
|
|
38
|
+
eval("function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nmodule.exports = stringify;\nstringify[\"default\"] = stringify;\nstringify.stable = deterministicStringify;\nstringify.stableStringify = deterministicStringify;\nvar LIMIT_REPLACE_NODE = '[...]';\nvar CIRCULAR_REPLACE_NODE = '[Circular]';\nvar arr = [];\nvar replacerStack = [];\nfunction defaultOptions() {\n return {\n depthLimit: Number.MAX_SAFE_INTEGER,\n edgesLimit: Number.MAX_SAFE_INTEGER\n };\n}\n\n// Regular stringify\nfunction stringify(obj, replacer, spacer, options) {\n if (typeof options === 'undefined') {\n options = defaultOptions();\n }\n decirc(obj, '', 0, [], undefined, 0, options);\n var res;\n try {\n if (replacerStack.length === 0) {\n res = JSON.stringify(obj, replacer, spacer);\n } else {\n res = JSON.stringify(obj, replaceGetterValues(replacer), spacer);\n }\n } catch (_) {\n return JSON.stringify('[unable to serialize, circular reference is too complex to analyze]');\n } finally {\n while (arr.length !== 0) {\n var part = arr.pop();\n if (part.length === 4) {\n Object.defineProperty(part[0], part[1], part[3]);\n } else {\n part[0][part[1]] = part[2];\n }\n }\n }\n return res;\n}\nfunction setReplace(replace, val, k, parent) {\n var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k);\n if (propertyDescriptor.get !== undefined) {\n if (propertyDescriptor.configurable) {\n Object.defineProperty(parent, k, {\n value: replace\n });\n arr.push([parent, k, val, propertyDescriptor]);\n } else {\n replacerStack.push([val, k, replace]);\n }\n } else {\n parent[k] = replace;\n arr.push([parent, k, val]);\n }\n}\nfunction decirc(val, k, edgeIndex, stack, parent, depth, options) {\n depth += 1;\n var i;\n if (_typeof(val) === 'object' && val !== null) {\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === val) {\n setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);\n return;\n }\n }\n if (typeof options.depthLimit !== 'undefined' && depth > options.depthLimit) {\n setReplace(LIMIT_REPLACE_NODE, val, k, parent);\n return;\n }\n if (typeof options.edgesLimit !== 'undefined' && edgeIndex + 1 > options.edgesLimit) {\n setReplace(LIMIT_REPLACE_NODE, val, k, parent);\n return;\n }\n stack.push(val);\n // Optimize for Arrays. Big arrays could kill the performance otherwise!\n if (Array.isArray(val)) {\n for (i = 0; i < val.length; i++) {\n decirc(val[i], i, i, stack, val, depth, options);\n }\n } else {\n var keys = Object.keys(val);\n for (i = 0; i < keys.length; i++) {\n var key = keys[i];\n decirc(val[key], key, i, stack, val, depth, options);\n }\n }\n stack.pop();\n }\n}\n\n// Stable-stringify\nfunction compareFunction(a, b) {\n if (a < b) {\n return -1;\n }\n if (a > b) {\n return 1;\n }\n return 0;\n}\nfunction deterministicStringify(obj, replacer, spacer, options) {\n if (typeof options === 'undefined') {\n options = defaultOptions();\n }\n var tmp = deterministicDecirc(obj, '', 0, [], undefined, 0, options) || obj;\n var res;\n try {\n if (replacerStack.length === 0) {\n res = JSON.stringify(tmp, replacer, spacer);\n } else {\n res = JSON.stringify(tmp, replaceGetterValues(replacer), spacer);\n }\n } catch (_) {\n return JSON.stringify('[unable to serialize, circular reference is too complex to analyze]');\n } finally {\n // Ensure that we restore the object as it was.\n while (arr.length !== 0) {\n var part = arr.pop();\n if (part.length === 4) {\n Object.defineProperty(part[0], part[1], part[3]);\n } else {\n part[0][part[1]] = part[2];\n }\n }\n }\n return res;\n}\nfunction deterministicDecirc(val, k, edgeIndex, stack, parent, depth, options) {\n depth += 1;\n var i;\n if (_typeof(val) === 'object' && val !== null) {\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === val) {\n setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);\n return;\n }\n }\n try {\n if (typeof val.toJSON === 'function') {\n return;\n }\n } catch (_) {\n return;\n }\n if (typeof options.depthLimit !== 'undefined' && depth > options.depthLimit) {\n setReplace(LIMIT_REPLACE_NODE, val, k, parent);\n return;\n }\n if (typeof options.edgesLimit !== 'undefined' && edgeIndex + 1 > options.edgesLimit) {\n setReplace(LIMIT_REPLACE_NODE, val, k, parent);\n return;\n }\n stack.push(val);\n // Optimize for Arrays. Big arrays could kill the performance otherwise!\n if (Array.isArray(val)) {\n for (i = 0; i < val.length; i++) {\n deterministicDecirc(val[i], i, i, stack, val, depth, options);\n }\n } else {\n // Create a temporary object in the required way\n var tmp = {};\n var keys = Object.keys(val).sort(compareFunction);\n for (i = 0; i < keys.length; i++) {\n var key = keys[i];\n deterministicDecirc(val[key], key, i, stack, val, depth, options);\n tmp[key] = val[key];\n }\n if (typeof parent !== 'undefined') {\n arr.push([parent, k, val]);\n parent[k] = tmp;\n } else {\n return tmp;\n }\n }\n stack.pop();\n }\n}\n\n// wraps replacer function to handle values we couldn't replace\n// and mark them as replaced value\nfunction replaceGetterValues(replacer) {\n replacer = typeof replacer !== 'undefined' ? replacer : function (k, v) {\n return v;\n };\n return function (key, val) {\n if (replacerStack.length > 0) {\n for (var i = 0; i < replacerStack.length; i++) {\n var part = replacerStack[i];\n if (part[1] === key && part[0] === val) {\n val = part[2];\n replacerStack.splice(i, 1);\n break;\n }\n }\n }\n return replacer.call(this, key, val);\n };\n}\n\n//# sourceURL=webpack://Ntnx/./node_modules/fast-safe-stringify/index.js?");
|
|
39
|
+
|
|
40
|
+
/***/ }),
|
|
41
|
+
|
|
42
|
+
/***/ "./node_modules/path/path.js":
|
|
43
|
+
/*!***********************************!*\
|
|
44
|
+
!*** ./node_modules/path/path.js ***!
|
|
45
|
+
\***********************************/
|
|
46
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
47
|
+
|
|
48
|
+
"use strict";
|
|
49
|
+
eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nvar isWindows = process.platform === 'win32';\nvar util = __webpack_require__(/*! util */ \"./node_modules/util/util.js\");\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n var res = [];\n for (var i = 0; i < parts.length; i++) {\n var p = parts[i];\n\n // ignore empty parts\n if (!p || p === '.') continue;\n if (p === '..') {\n if (res.length && res[res.length - 1] !== '..') {\n res.pop();\n } else if (allowAboveRoot) {\n res.push('..');\n }\n } else {\n res.push(p);\n }\n }\n return res;\n}\n\n// returns an array with empty elements removed from either end of the input\n// array or the original array if no elements need to be removed\nfunction trimArray(arr) {\n var lastIndex = arr.length - 1;\n var start = 0;\n for (; start <= lastIndex; start++) {\n if (arr[start]) break;\n }\n var end = lastIndex;\n for (; end >= 0; end--) {\n if (arr[end]) break;\n }\n if (start === 0 && end === lastIndex) return arr;\n if (start > end) return [];\n return arr.slice(start, end + 1);\n}\n\n// Regex to split a windows path into three parts: [*, device, slash,\n// tail] windows-only\nvar splitDeviceRe = /^([a-zA-Z]:|[\\\\\\/]{2}[^\\\\\\/]+[\\\\\\/]+[^\\\\\\/]+)?([\\\\\\/])?([\\s\\S]*?)$/;\n\n// Regex to split the tail part of the above into [*, dir, basename, ext]\nvar splitTailRe = /^([\\s\\S]*?)((?:\\.{1,2}|[^\\\\\\/]+?|)(\\.[^.\\/\\\\]*|))(?:[\\\\\\/]*)$/;\nvar win32 = {};\n\n// Function to split a filename into [root, dir, basename, ext]\nfunction win32SplitPath(filename) {\n // Separate device+slash from tail\n var result = splitDeviceRe.exec(filename),\n device = (result[1] || '') + (result[2] || ''),\n tail = result[3] || '';\n // Split the tail into dir, basename and extension\n var result2 = splitTailRe.exec(tail),\n dir = result2[1],\n basename = result2[2],\n ext = result2[3];\n return [device, dir, basename, ext];\n}\nfunction win32StatPath(path) {\n var result = splitDeviceRe.exec(path),\n device = result[1] || '',\n isUnc = !!device && device[1] !== ':';\n return {\n device: device,\n isUnc: isUnc,\n isAbsolute: isUnc || !!result[2],\n // UNC paths are always absolute\n tail: result[3]\n };\n}\nfunction normalizeUNCRoot(device) {\n return '\\\\\\\\' + device.replace(/^[\\\\\\/]+/, '').replace(/[\\\\\\/]+/g, '\\\\');\n}\n\n// path.resolve([from ...], to)\nwin32.resolve = function () {\n var resolvedDevice = '',\n resolvedTail = '',\n resolvedAbsolute = false;\n for (var i = arguments.length - 1; i >= -1; i--) {\n var path;\n if (i >= 0) {\n path = arguments[i];\n } else if (!resolvedDevice) {\n path = process.cwd();\n } else {\n // Windows has the concept of drive-specific current working\n // directories. If we've resolved a drive letter but not yet an\n // absolute path, get cwd for that drive. We're sure the device is not\n // an unc path at this points, because unc paths are always absolute.\n path = process.env['=' + resolvedDevice];\n // Verify that a drive-local cwd was found and that it actually points\n // to our drive. If not, default to the drive's root.\n if (!path || path.substr(0, 3).toLowerCase() !== resolvedDevice.toLowerCase() + '\\\\') {\n path = resolvedDevice + '\\\\';\n }\n }\n\n // Skip empty and invalid entries\n if (!util.isString(path)) {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n var result = win32StatPath(path),\n device = result.device,\n isUnc = result.isUnc,\n isAbsolute = result.isAbsolute,\n tail = result.tail;\n if (device && resolvedDevice && device.toLowerCase() !== resolvedDevice.toLowerCase()) {\n // This path points to another device so it is not applicable\n continue;\n }\n if (!resolvedDevice) {\n resolvedDevice = device;\n }\n if (!resolvedAbsolute) {\n resolvedTail = tail + '\\\\' + resolvedTail;\n resolvedAbsolute = isAbsolute;\n }\n if (resolvedDevice && resolvedAbsolute) {\n break;\n }\n }\n\n // Convert slashes to backslashes when `resolvedDevice` points to an UNC\n // root. Also squash multiple slashes into a single one where appropriate.\n if (isUnc) {\n resolvedDevice = normalizeUNCRoot(resolvedDevice);\n }\n\n // At this point the path should be resolved to a full absolute path,\n // but handle relative paths to be safe (might happen when process.cwd()\n // fails)\n\n // Normalize the tail path\n resolvedTail = normalizeArray(resolvedTail.split(/[\\\\\\/]+/), !resolvedAbsolute).join('\\\\');\n return resolvedDevice + (resolvedAbsolute ? '\\\\' : '') + resolvedTail || '.';\n};\nwin32.normalize = function (path) {\n var result = win32StatPath(path),\n device = result.device,\n isUnc = result.isUnc,\n isAbsolute = result.isAbsolute,\n tail = result.tail,\n trailingSlash = /[\\\\\\/]$/.test(tail);\n\n // Normalize the tail path\n tail = normalizeArray(tail.split(/[\\\\\\/]+/), !isAbsolute).join('\\\\');\n if (!tail && !isAbsolute) {\n tail = '.';\n }\n if (tail && trailingSlash) {\n tail += '\\\\';\n }\n\n // Convert slashes to backslashes when `device` points to an UNC root.\n // Also squash multiple slashes into a single one where appropriate.\n if (isUnc) {\n device = normalizeUNCRoot(device);\n }\n return device + (isAbsolute ? '\\\\' : '') + tail;\n};\nwin32.isAbsolute = function (path) {\n return win32StatPath(path).isAbsolute;\n};\nwin32.join = function () {\n var paths = [];\n for (var i = 0; i < arguments.length; i++) {\n var arg = arguments[i];\n if (!util.isString(arg)) {\n throw new TypeError('Arguments to path.join must be strings');\n }\n if (arg) {\n paths.push(arg);\n }\n }\n var joined = paths.join('\\\\');\n\n // Make sure that the joined path doesn't start with two slashes, because\n // normalize() will mistake it for an UNC path then.\n //\n // This step is skipped when it is very clear that the user actually\n // intended to point at an UNC path. This is assumed when the first\n // non-empty string arguments starts with exactly two slashes followed by\n // at least one more non-slash character.\n //\n // Note that for normalize() to treat a path as an UNC path it needs to\n // have at least 2 components, so we don't filter for that here.\n // This means that the user can use join to construct UNC paths from\n // a server name and a share name; for example:\n // path.join('//server', 'share') -> '\\\\\\\\server\\\\share\\')\n if (!/^[\\\\\\/]{2}[^\\\\\\/]/.test(paths[0])) {\n joined = joined.replace(/^[\\\\\\/]{2,}/, '\\\\');\n }\n return win32.normalize(joined);\n};\n\n// path.relative(from, to)\n// it will solve the relative path from 'from' to 'to', for instance:\n// from = 'C:\\\\orandea\\\\test\\\\aaa'\n// to = 'C:\\\\orandea\\\\impl\\\\bbb'\n// The output of the function should be: '..\\\\..\\\\impl\\\\bbb'\nwin32.relative = function (from, to) {\n from = win32.resolve(from);\n to = win32.resolve(to);\n\n // windows is not case sensitive\n var lowerFrom = from.toLowerCase();\n var lowerTo = to.toLowerCase();\n var toParts = trimArray(to.split('\\\\'));\n var lowerFromParts = trimArray(lowerFrom.split('\\\\'));\n var lowerToParts = trimArray(lowerTo.split('\\\\'));\n var length = Math.min(lowerFromParts.length, lowerToParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (lowerFromParts[i] !== lowerToParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n if (samePartsLength == 0) {\n return to;\n }\n var outputParts = [];\n for (var i = samePartsLength; i < lowerFromParts.length; i++) {\n outputParts.push('..');\n }\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n return outputParts.join('\\\\');\n};\nwin32._makeLong = function (path) {\n // Note: this will *probably* throw somewhere.\n if (!util.isString(path)) return path;\n if (!path) {\n return '';\n }\n var resolvedPath = win32.resolve(path);\n if (/^[a-zA-Z]\\:\\\\/.test(resolvedPath)) {\n // path is local filesystem path, which needs to be converted\n // to long UNC path.\n return '\\\\\\\\?\\\\' + resolvedPath;\n } else if (/^\\\\\\\\[^?.]/.test(resolvedPath)) {\n // path is network UNC path, which needs to be converted\n // to long UNC path.\n return \"\\\\\\\\?\\\\UNC\\\\\" + resolvedPath.substring(2);\n }\n return path;\n};\nwin32.dirname = function (path) {\n var result = win32SplitPath(path),\n root = result[0],\n dir = result[1];\n if (!root && !dir) {\n // No dirname whatsoever\n return '.';\n }\n if (dir) {\n // It has a dirname, strip trailing slash\n dir = dir.substr(0, dir.length - 1);\n }\n return root + dir;\n};\nwin32.basename = function (path, ext) {\n var f = win32SplitPath(path)[2];\n // TODO: make this comparison case-insensitive on windows?\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\nwin32.extname = function (path) {\n return win32SplitPath(path)[3];\n};\nwin32.format = function (pathObject) {\n if (!util.isObject(pathObject)) {\n throw new TypeError(\"Parameter 'pathObject' must be an object, not \" + _typeof(pathObject));\n }\n var root = pathObject.root || '';\n if (!util.isString(root)) {\n throw new TypeError(\"'pathObject.root' must be a string or undefined, not \" + _typeof(pathObject.root));\n }\n var dir = pathObject.dir;\n var base = pathObject.base || '';\n if (!dir) {\n return base;\n }\n if (dir[dir.length - 1] === win32.sep) {\n return dir + base;\n }\n return dir + win32.sep + base;\n};\nwin32.parse = function (pathString) {\n if (!util.isString(pathString)) {\n throw new TypeError(\"Parameter 'pathString' must be a string, not \" + _typeof(pathString));\n }\n var allParts = win32SplitPath(pathString);\n if (!allParts || allParts.length !== 4) {\n throw new TypeError(\"Invalid path '\" + pathString + \"'\");\n }\n return {\n root: allParts[0],\n dir: allParts[0] + allParts[1].slice(0, -1),\n base: allParts[2],\n ext: allParts[3],\n name: allParts[2].slice(0, allParts[2].length - allParts[3].length)\n };\n};\nwin32.sep = '\\\\';\nwin32.delimiter = ';';\n\n// Split a filename into [root, dir, basename, ext], unix version\n// 'root' is just a slash, or nothing.\nvar splitPathRe = /^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/;\nvar posix = {};\nfunction posixSplitPath(filename) {\n return splitPathRe.exec(filename).slice(1);\n}\n\n// path.resolve([from ...], to)\n// posix version\nposix.resolve = function () {\n var resolvedPath = '',\n resolvedAbsolute = false;\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = i >= 0 ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (!util.isString(path)) {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path[0] === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(resolvedPath.split('/'), !resolvedAbsolute).join('/');\n return (resolvedAbsolute ? '/' : '') + resolvedPath || '.';\n};\n\n// path.normalize(path)\n// posix version\nposix.normalize = function (path) {\n var isAbsolute = posix.isAbsolute(path),\n trailingSlash = path && path[path.length - 1] === '/';\n\n // Normalize the path\n path = normalizeArray(path.split('/'), !isAbsolute).join('/');\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nposix.isAbsolute = function (path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nposix.join = function () {\n var path = '';\n for (var i = 0; i < arguments.length; i++) {\n var segment = arguments[i];\n if (!util.isString(segment)) {\n throw new TypeError('Arguments to path.join must be strings');\n }\n if (segment) {\n if (!path) {\n path += segment;\n } else {\n path += '/' + segment;\n }\n }\n }\n return posix.normalize(path);\n};\n\n// path.relative(from, to)\n// posix version\nposix.relative = function (from, to) {\n from = posix.resolve(from).substr(1);\n to = posix.resolve(to).substr(1);\n var fromParts = trimArray(from.split('/'));\n var toParts = trimArray(to.split('/'));\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n return outputParts.join('/');\n};\nposix._makeLong = function (path) {\n return path;\n};\nposix.dirname = function (path) {\n var result = posixSplitPath(path),\n root = result[0],\n dir = result[1];\n if (!root && !dir) {\n // No dirname whatsoever\n return '.';\n }\n if (dir) {\n // It has a dirname, strip trailing slash\n dir = dir.substr(0, dir.length - 1);\n }\n return root + dir;\n};\nposix.basename = function (path, ext) {\n var f = posixSplitPath(path)[2];\n // TODO: make this comparison case-insensitive on windows?\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\nposix.extname = function (path) {\n return posixSplitPath(path)[3];\n};\nposix.format = function (pathObject) {\n if (!util.isObject(pathObject)) {\n throw new TypeError(\"Parameter 'pathObject' must be an object, not \" + _typeof(pathObject));\n }\n var root = pathObject.root || '';\n if (!util.isString(root)) {\n throw new TypeError(\"'pathObject.root' must be a string or undefined, not \" + _typeof(pathObject.root));\n }\n var dir = pathObject.dir ? pathObject.dir + posix.sep : '';\n var base = pathObject.base || '';\n return dir + base;\n};\nposix.parse = function (pathString) {\n if (!util.isString(pathString)) {\n throw new TypeError(\"Parameter 'pathString' must be a string, not \" + _typeof(pathString));\n }\n var allParts = posixSplitPath(pathString);\n if (!allParts || allParts.length !== 4) {\n throw new TypeError(\"Invalid path '\" + pathString + \"'\");\n }\n allParts[1] = allParts[1] || '';\n allParts[2] = allParts[2] || '';\n allParts[3] = allParts[3] || '';\n return {\n root: allParts[0],\n dir: allParts[0] + allParts[1].slice(0, -1),\n base: allParts[2],\n ext: allParts[3],\n name: allParts[2].slice(0, allParts[2].length - allParts[3].length)\n };\n};\nposix.sep = '/';\nposix.delimiter = ':';\nif (isWindows) module.exports = win32;else /* posix */\n module.exports = posix;\nmodule.exports.posix = posix;\nmodule.exports.win32 = win32;\n\n//# sourceURL=webpack://Ntnx/./node_modules/path/path.js?");
|
|
50
|
+
|
|
51
|
+
/***/ }),
|
|
52
|
+
|
|
53
|
+
/***/ "./node_modules/superagent-retry-delay/src/index.js":
|
|
54
|
+
/*!**********************************************************!*\
|
|
55
|
+
!*** ./node_modules/superagent-retry-delay/src/index.js ***!
|
|
56
|
+
\**********************************************************/
|
|
57
|
+
/***/ ((module) => {
|
|
58
|
+
|
|
59
|
+
eval("/**\n * Add to the request prototype.\n */\n\nmodule.exports = function (superagent) {\n var Request = superagent.Request;\n Request.prototype.oldRetry = Request.prototype.retry;\n Request.prototype.retry = retry;\n Request.prototype.callback = callback;\n return superagent;\n};\n\n/**\n * Works out whether we should retry, based on the number of retries, on any passed\n * errors and response and compared against a list of allowed error statuses.\n *\n * @param {Error} err\n * @param {Response} res\n * @param {Number[]} allowedStatuses\n * @param {retryCallback} retryCallback\n * @callback retryCallback\n */\nfunction shouldRetry(err, res, allowedStatuses, retryCallback) {\n if (retryCallback) {\n return retryCallback(err, res);\n }\n var ERROR_CODES = [\"ECONNRESET\", \"ETIMEDOUT\", \"EADDRINFO\", \"ESOCKETTIMEDOUT\", \"ENOTFOUND\", \"ECONNREFUSED\"];\n if (err && err.code && ~ERROR_CODES.indexOf(err.code)) {\n return true;\n }\n if (res && res.status) {\n var status = res.status;\n if (status >= 500) {\n return true;\n }\n if ((status >= 400 || status < 200) && allowedStatuses.indexOf(status) === -1) {\n return true;\n }\n }\n\n // Superagent timeout\n if (err && \"timeout\" in err && err.code === \"ECONNABORTED\") {\n return true;\n }\n return err && \"crossDomain\" in err;\n}\n\n/**\n * Override Request callback to set a timeout on the call to retry.\n *\n * This overrides crucial behaviour: it will retry on ANY error (eg 401...) due to shouldRetry having\n * different behaviour.\n *\n * @param err\n * @param res\n * @return {Object}\n */\nfunction callback(err, res) {\n if (this._maxRetries && this._retries++ < this._maxRetries && shouldRetry(err, res, this._allowedStatuses, this._retryCallback)) {\n var delay;\n if (!this._retries) {\n delay = 0;\n } else {\n delay = this._retryDelays[this._retries - 1];\n }\n var req = this;\n return setTimeout(function () {\n return req._retry();\n }, delay);\n }\n var fn = this._callback;\n this.clearTimeout();\n if (err) {\n if (this._maxRetries) err.retries = this._retries - 1;\n this.emit(\"error\", err);\n }\n fn(err, res);\n}\n\n/**\n * Override Request retry to also set delays between requests.\n *\n * In milliseconds.\n *\n * @param {Number} retries\n * @param {Number[] || Number} delays\n * @param {Number[]} allowedStatuses\n * @param {retryCallback} retryCallback\n * @callback retryCallback\n * @return {retry}\n */\nfunction retry(retries, delays, allowedStatuses, retryCallback) {\n if (arguments.length === 0 || retries === true) {\n retries = 1;\n }\n if (retries <= 0) {\n retries = 0;\n }\n if (typeof delays === \"number\") {\n delays = [delays];\n }\n var numberOfDelays = delays.length;\n var diff = retries - numberOfDelays;\n if (diff !== 0) {\n if (diff < 0) {\n throw new Error(\"Cannot have more delays than retries\");\n } else {\n // Extrapolate delays list until there is a delay for each retry\n var finalDelay = delays[numberOfDelays - 1];\n for (var i = 0; i < diff + 1; i++) {\n delays.push(finalDelay);\n }\n }\n }\n this._maxRetries = retries;\n this._retries = 0;\n this._retryDelays = delays || [0];\n this._allowedStatuses = allowedStatuses || [];\n this._retryCallback = retryCallback;\n return this;\n}\n\n//# sourceURL=webpack://Ntnx/./node_modules/superagent-retry-delay/src/index.js?");
|
|
60
|
+
|
|
61
|
+
/***/ }),
|
|
62
|
+
|
|
63
|
+
/***/ "./node_modules/superagent/lib/agent-base.js":
|
|
64
|
+
/*!***************************************************!*\
|
|
65
|
+
!*** ./node_modules/superagent/lib/agent-base.js ***!
|
|
66
|
+
\***************************************************/
|
|
67
|
+
/***/ ((module) => {
|
|
68
|
+
|
|
69
|
+
"use strict";
|
|
70
|
+
eval("\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n return arr2;\n}\nfunction Agent() {\n this._defaults = [];\n}\n['use', 'on', 'once', 'set', 'query', 'type', 'accept', 'auth', 'withCredentials', 'sortQuery', 'retry', 'ok', 'redirects', 'timeout', 'buffer', 'serialize', 'parse', 'ca', 'key', 'pfx', 'cert', 'disableTLSCerts'].forEach(function (fn) {\n // Default setting for all requests from this agent\n Agent.prototype[fn] = function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n this._defaults.push({\n fn: fn,\n args: args\n });\n return this;\n };\n});\nAgent.prototype._setDefaults = function (req) {\n this._defaults.forEach(function (def) {\n req[def.fn].apply(req, _toConsumableArray(def.args));\n });\n};\nmodule.exports = Agent;\n\n//# sourceURL=webpack://Ntnx/./node_modules/superagent/lib/agent-base.js?");
|
|
71
|
+
|
|
72
|
+
/***/ }),
|
|
73
|
+
|
|
74
|
+
/***/ "./node_modules/superagent/lib/client.js":
|
|
75
|
+
/*!***********************************************!*\
|
|
76
|
+
!*** ./node_modules/superagent/lib/client.js ***!
|
|
77
|
+
\***********************************************/
|
|
78
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
79
|
+
|
|
80
|
+
"use strict";
|
|
81
|
+
eval("\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n}\n\n/**\n * Root reference for iframes.\n */\nvar root;\nif (typeof window !== 'undefined') {\n // Browser window\n root = window;\n} else if (typeof self === 'undefined') {\n // Other environments\n console.warn('Using browser-only version of superagent in non-browser environment');\n root = void 0;\n} else {\n // Web Worker\n root = self;\n}\nvar Emitter = __webpack_require__(/*! component-emitter */ \"./node_modules/component-emitter/index.js\");\nvar safeStringify = __webpack_require__(/*! fast-safe-stringify */ \"./node_modules/fast-safe-stringify/index.js\");\nvar RequestBase = __webpack_require__(/*! ./request-base */ \"./node_modules/superagent/lib/request-base.js\");\nvar isObject = __webpack_require__(/*! ./is-object */ \"./node_modules/superagent/lib/is-object.js\");\nvar ResponseBase = __webpack_require__(/*! ./response-base */ \"./node_modules/superagent/lib/response-base.js\");\nvar Agent = __webpack_require__(/*! ./agent-base */ \"./node_modules/superagent/lib/agent-base.js\");\n/**\n * Noop.\n */\n\nfunction noop() {}\n/**\n * Expose `request`.\n */\n\nmodule.exports = function (method, url) {\n // callback\n if (typeof url === 'function') {\n return new exports.Request('GET', method).end(url);\n } // url first\n\n if (arguments.length === 1) {\n return new exports.Request('GET', method);\n }\n return new exports.Request(method, url);\n};\nexports = module.exports;\nvar request = exports;\nexports.Request = Request;\n/**\n * Determine XHR.\n */\n\nrequest.getXHR = function () {\n if (root.XMLHttpRequest && (!root.location || root.location.protocol !== 'file:' || !root.ActiveXObject)) {\n return new XMLHttpRequest();\n }\n try {\n return new ActiveXObject('Microsoft.XMLHTTP');\n } catch (_unused) {}\n try {\n return new ActiveXObject('Msxml2.XMLHTTP.6.0');\n } catch (_unused2) {}\n try {\n return new ActiveXObject('Msxml2.XMLHTTP.3.0');\n } catch (_unused3) {}\n try {\n return new ActiveXObject('Msxml2.XMLHTTP');\n } catch (_unused4) {}\n throw new Error('Browser-only version of superagent could not find XHR');\n};\n/**\n * Removes leading and trailing whitespace, added to support IE.\n *\n * @param {String} s\n * @return {String}\n * @api private\n */\n\nvar trim = ''.trim ? function (s) {\n return s.trim();\n} : function (s) {\n return s.replace(/(^\\s*|\\s*$)/g, '');\n};\n/**\n * Serialize the given `obj`.\n *\n * @param {Object} obj\n * @return {String}\n * @api private\n */\n\nfunction serialize(obj) {\n if (!isObject(obj)) return obj;\n var pairs = [];\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) pushEncodedKeyValuePair(pairs, key, obj[key]);\n }\n return pairs.join('&');\n}\n/**\n * Helps 'serialize' with serializing arrays.\n * Mutates the pairs array.\n *\n * @param {Array} pairs\n * @param {String} key\n * @param {Mixed} val\n */\n\nfunction pushEncodedKeyValuePair(pairs, key, val) {\n if (val === undefined) return;\n if (val === null) {\n pairs.push(encodeURI(key));\n return;\n }\n if (Array.isArray(val)) {\n val.forEach(function (v) {\n pushEncodedKeyValuePair(pairs, key, v);\n });\n } else if (isObject(val)) {\n for (var subkey in val) {\n if (Object.prototype.hasOwnProperty.call(val, subkey)) pushEncodedKeyValuePair(pairs, \"\".concat(key, \"[\").concat(subkey, \"]\"), val[subkey]);\n }\n } else {\n pairs.push(encodeURI(key) + '=' + encodeURIComponent(val));\n }\n}\n/**\n * Expose serialization method.\n */\n\nrequest.serializeObject = serialize;\n/**\n * Parse the given x-www-form-urlencoded `str`.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parseString(str) {\n var obj = {};\n var pairs = str.split('&');\n var pair;\n var pos;\n for (var i = 0, len = pairs.length; i < len; ++i) {\n pair = pairs[i];\n pos = pair.indexOf('=');\n if (pos === -1) {\n obj[decodeURIComponent(pair)] = '';\n } else {\n obj[decodeURIComponent(pair.slice(0, pos))] = decodeURIComponent(pair.slice(pos + 1));\n }\n }\n return obj;\n}\n/**\n * Expose parser.\n */\n\nrequest.parseString = parseString;\n/**\n * Default MIME type map.\n *\n * superagent.types.xml = 'application/xml';\n *\n */\n\nrequest.types = {\n html: 'text/html',\n json: 'application/json',\n xml: 'text/xml',\n urlencoded: 'application/x-www-form-urlencoded',\n form: 'application/x-www-form-urlencoded',\n 'form-data': 'application/x-www-form-urlencoded'\n};\n/**\n * Default serialization map.\n *\n * superagent.serialize['application/xml'] = function(obj){\n * return 'generated xml here';\n * };\n *\n */\n\nrequest.serialize = {\n 'application/x-www-form-urlencoded': serialize,\n 'application/json': safeStringify\n};\n/**\n * Default parsers.\n *\n * superagent.parse['application/xml'] = function(str){\n * return { object parsed from str };\n * };\n *\n */\n\nrequest.parse = {\n 'application/x-www-form-urlencoded': parseString,\n 'application/json': JSON.parse\n};\n/**\n * Parse the given header `str` into\n * an object containing the mapped fields.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parseHeader(str) {\n var lines = str.split(/\\r?\\n/);\n var fields = {};\n var index;\n var line;\n var field;\n var val;\n for (var i = 0, len = lines.length; i < len; ++i) {\n line = lines[i];\n index = line.indexOf(':');\n if (index === -1) {\n // could be empty line, just skip it\n continue;\n }\n field = line.slice(0, index).toLowerCase();\n val = trim(line.slice(index + 1));\n fields[field] = val;\n }\n return fields;\n}\n/**\n * Check if `mime` is json or has +json structured syntax suffix.\n *\n * @param {String} mime\n * @return {Boolean}\n * @api private\n */\n\nfunction isJSON(mime) {\n // should match /json or +json\n // but not /json-seq\n return /[/+]json($|[^-\\w])/.test(mime);\n}\n/**\n * Initialize a new `Response` with the given `xhr`.\n *\n * - set flags (.ok, .error, etc)\n * - parse header\n *\n * Examples:\n *\n * Aliasing `superagent` as `request` is nice:\n *\n * request = superagent;\n *\n * We can use the promise-like API, or pass callbacks:\n *\n * request.get('/').end(function(res){});\n * request.get('/', function(res){});\n *\n * Sending data can be chained:\n *\n * request\n * .post('/user')\n * .send({ name: 'tj' })\n * .end(function(res){});\n *\n * Or passed to `.send()`:\n *\n * request\n * .post('/user')\n * .send({ name: 'tj' }, function(res){});\n *\n * Or passed to `.post()`:\n *\n * request\n * .post('/user', { name: 'tj' })\n * .end(function(res){});\n *\n * Or further reduced to a single call for simple cases:\n *\n * request\n * .post('/user', { name: 'tj' }, function(res){});\n *\n * @param {XMLHTTPRequest} xhr\n * @param {Object} options\n * @api private\n */\n\nfunction Response(req) {\n this.req = req;\n this.xhr = this.req.xhr; // responseText is accessible only if responseType is '' or 'text' and on older browsers\n\n this.text = this.req.method !== 'HEAD' && (this.xhr.responseType === '' || this.xhr.responseType === 'text') || typeof this.xhr.responseType === 'undefined' ? this.xhr.responseText : null;\n this.statusText = this.req.xhr.statusText;\n var status = this.xhr.status; // handle IE9 bug: http://stackoverflow.com/questions/10046972/msie-returns-status-code-of-1223-for-ajax-request\n\n if (status === 1223) {\n status = 204;\n }\n this._setStatusProperties(status);\n this.headers = parseHeader(this.xhr.getAllResponseHeaders());\n this.header = this.headers; // getAllResponseHeaders sometimes falsely returns \"\" for CORS requests, but\n // getResponseHeader still works. so we get content-type even if getting\n // other headers fails.\n\n this.header['content-type'] = this.xhr.getResponseHeader('content-type');\n this._setHeaderProperties(this.header);\n if (this.text === null && req._responseType) {\n this.body = this.xhr.response;\n } else {\n this.body = this.req.method === 'HEAD' ? null : this._parseBody(this.text ? this.text : this.xhr.response);\n }\n} // eslint-disable-next-line new-cap\n\nResponseBase(Response.prototype);\n/**\n * Parse the given body `str`.\n *\n * Used for auto-parsing of bodies. Parsers\n * are defined on the `superagent.parse` object.\n *\n * @param {String} str\n * @return {Mixed}\n * @api private\n */\n\nResponse.prototype._parseBody = function (str) {\n var parse = request.parse[this.type];\n if (this.req._parser) {\n return this.req._parser(this, str);\n }\n if (!parse && isJSON(this.type)) {\n parse = request.parse['application/json'];\n }\n return parse && str && (str.length > 0 || str instanceof Object) ? parse(str) : null;\n};\n/**\n * Return an `Error` representative of this response.\n *\n * @return {Error}\n * @api public\n */\n\nResponse.prototype.toError = function () {\n var req = this.req;\n var method = req.method;\n var url = req.url;\n var msg = \"cannot \".concat(method, \" \").concat(url, \" (\").concat(this.status, \")\");\n var err = new Error(msg);\n err.status = this.status;\n err.method = method;\n err.url = url;\n return err;\n};\n/**\n * Expose `Response`.\n */\n\nrequest.Response = Response;\n/**\n * Initialize a new `Request` with the given `method` and `url`.\n *\n * @param {String} method\n * @param {String} url\n * @api public\n */\n\nfunction Request(method, url) {\n var self = this;\n this._query = this._query || [];\n this.method = method;\n this.url = url;\n this.header = {}; // preserves header name case\n\n this._header = {}; // coerces header names to lowercase\n\n this.on('end', function () {\n var err = null;\n var res = null;\n try {\n res = new Response(self);\n } catch (err_) {\n err = new Error('Parser is unable to parse the response');\n err.parse = true;\n err.original = err_; // issue #675: return the raw response if the response parsing fails\n\n if (self.xhr) {\n // ie9 doesn't have 'response' property\n err.rawResponse = typeof self.xhr.responseType === 'undefined' ? self.xhr.responseText : self.xhr.response; // issue #876: return the http status code if the response parsing fails\n\n err.status = self.xhr.status ? self.xhr.status : null;\n err.statusCode = err.status; // backwards-compat only\n } else {\n err.rawResponse = null;\n err.status = null;\n }\n return self.callback(err);\n }\n self.emit('response', res);\n var new_err;\n try {\n if (!self._isResponseOK(res)) {\n new_err = new Error(res.statusText || res.text || 'Unsuccessful HTTP response');\n }\n } catch (err_) {\n new_err = err_; // ok() callback can throw\n } // #1000 don't catch errors from the callback to avoid double calling it\n\n if (new_err) {\n new_err.original = err;\n new_err.response = res;\n new_err.status = res.status;\n self.callback(new_err, res);\n } else {\n self.callback(null, res);\n }\n });\n}\n/**\n * Mixin `Emitter` and `RequestBase`.\n */\n// eslint-disable-next-line new-cap\n\nEmitter(Request.prototype); // eslint-disable-next-line new-cap\n\nRequestBase(Request.prototype);\n/**\n * Set Content-Type to `type`, mapping values from `request.types`.\n *\n * Examples:\n *\n * superagent.types.xml = 'application/xml';\n *\n * request.post('/')\n * .type('xml')\n * .send(xmlstring)\n * .end(callback);\n *\n * request.post('/')\n * .type('application/xml')\n * .send(xmlstring)\n * .end(callback);\n *\n * @param {String} type\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.type = function (type) {\n this.set('Content-Type', request.types[type] || type);\n return this;\n};\n/**\n * Set Accept to `type`, mapping values from `request.types`.\n *\n * Examples:\n *\n * superagent.types.json = 'application/json';\n *\n * request.get('/agent')\n * .accept('json')\n * .end(callback);\n *\n * request.get('/agent')\n * .accept('application/json')\n * .end(callback);\n *\n * @param {String} accept\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.accept = function (type) {\n this.set('Accept', request.types[type] || type);\n return this;\n};\n/**\n * Set Authorization field value with `user` and `pass`.\n *\n * @param {String} user\n * @param {String} [pass] optional in case of using 'bearer' as type\n * @param {Object} options with 'type' property 'auto', 'basic' or 'bearer' (default 'basic')\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.auth = function (user, pass, options) {\n if (arguments.length === 1) pass = '';\n if (_typeof(pass) === 'object' && pass !== null) {\n // pass is optional and can be replaced with options\n options = pass;\n pass = '';\n }\n if (!options) {\n options = {\n type: typeof btoa === 'function' ? 'basic' : 'auto'\n };\n }\n var encoder = function encoder(string) {\n if (typeof btoa === 'function') {\n return btoa(string);\n }\n throw new Error('Cannot use basic auth, btoa is not a function');\n };\n return this._auth(user, pass, options, encoder);\n};\n/**\n * Add query-string `val`.\n *\n * Examples:\n *\n * request.get('/shoes')\n * .query('size=10')\n * .query({ color: 'blue' })\n *\n * @param {Object|String} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.query = function (val) {\n if (typeof val !== 'string') val = serialize(val);\n if (val) this._query.push(val);\n return this;\n};\n/**\n * Queue the given `file` as an attachment to the specified `field`,\n * with optional `options` (or filename).\n *\n * ``` js\n * request.post('/upload')\n * .attach('content', new Blob(['<a id=\"a\"><b id=\"b\">hey!</b></a>'], { type: \"text/html\"}))\n * .end(callback);\n * ```\n *\n * @param {String} field\n * @param {Blob|File} file\n * @param {String|Object} options\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.attach = function (field, file, options) {\n if (file) {\n if (this._data) {\n throw new Error(\"superagent can't mix .send() and .attach()\");\n }\n this._getFormData().append(field, file, options || file.name);\n }\n return this;\n};\nRequest.prototype._getFormData = function () {\n if (!this._formData) {\n this._formData = new root.FormData();\n }\n return this._formData;\n};\n/**\n * Invoke the callback with `err` and `res`\n * and handle arity check.\n *\n * @param {Error} err\n * @param {Response} res\n * @api private\n */\n\nRequest.prototype.callback = function (err, res) {\n if (this._shouldRetry(err, res)) {\n return this._retry();\n }\n var fn = this._callback;\n this.clearTimeout();\n if (err) {\n if (this._maxRetries) err.retries = this._retries - 1;\n this.emit('error', err);\n }\n fn(err, res);\n};\n/**\n * Invoke callback with x-domain error.\n *\n * @api private\n */\n\nRequest.prototype.crossDomainError = function () {\n var err = 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.');\n err.crossDomain = true;\n err.status = this.status;\n err.method = this.method;\n err.url = this.url;\n this.callback(err);\n}; // This only warns, because the request is still likely to work\n\nRequest.prototype.agent = function () {\n console.warn('This is not supported in browser version of superagent');\n return this;\n};\nRequest.prototype.ca = Request.prototype.agent;\nRequest.prototype.buffer = Request.prototype.ca; // This throws, because it can't send/receive data as expected\n\nRequest.prototype.write = function () {\n throw new Error('Streaming is not supported in browser version of superagent');\n};\nRequest.prototype.pipe = Request.prototype.write;\n/**\n * Check if `obj` is a host object,\n * we don't want to serialize these :)\n *\n * @param {Object} obj host object\n * @return {Boolean} is a host object\n * @api private\n */\n\nRequest.prototype._isHost = function (obj) {\n // Native objects stringify to [object File], [object Blob], [object FormData], etc.\n return obj && _typeof(obj) === 'object' && !Array.isArray(obj) && Object.prototype.toString.call(obj) !== '[object Object]';\n};\n/**\n * Initiate request, invoking callback `fn(res)`\n * with an instanceof `Response`.\n *\n * @param {Function} fn\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.end = function (fn) {\n if (this._endCalled) {\n console.warn('Warning: .end() was called twice. This is not supported in superagent');\n }\n this._endCalled = true; // store callback\n\n this._callback = fn || noop; // querystring\n\n this._finalizeQueryString();\n this._end();\n};\nRequest.prototype._setUploadTimeout = function () {\n var self = this; // upload timeout it's wokrs only if deadline timeout is off\n\n if (this._uploadTimeout && !this._uploadTimeoutTimer) {\n this._uploadTimeoutTimer = setTimeout(function () {\n self._timeoutError('Upload timeout of ', self._uploadTimeout, 'ETIMEDOUT');\n }, this._uploadTimeout);\n }\n}; // eslint-disable-next-line complexity\n\nRequest.prototype._end = function () {\n if (this._aborted) return this.callback(new Error('The request has been aborted even before .end() was called'));\n var self = this;\n this.xhr = request.getXHR();\n var xhr = this.xhr;\n var data = this._formData || this._data;\n this._setTimeouts(); // state change\n\n xhr.onreadystatechange = function () {\n var readyState = xhr.readyState;\n if (readyState >= 2 && self._responseTimeoutTimer) {\n clearTimeout(self._responseTimeoutTimer);\n }\n if (readyState !== 4) {\n return;\n } // In IE9, reads to any property (e.g. status) off of an aborted XHR will\n // result in the error \"Could not complete the operation due to error c00c023f\"\n\n var status;\n try {\n status = xhr.status;\n } catch (_unused5) {\n status = 0;\n }\n if (!status) {\n if (self.timedout || self._aborted) return;\n return self.crossDomainError();\n }\n self.emit('end');\n }; // progress\n\n var handleProgress = function handleProgress(direction, e) {\n if (e.total > 0) {\n e.percent = e.loaded / e.total * 100;\n if (e.percent === 100) {\n clearTimeout(self._uploadTimeoutTimer);\n }\n }\n e.direction = direction;\n self.emit('progress', e);\n };\n if (this.hasListeners('progress')) {\n try {\n xhr.addEventListener('progress', handleProgress.bind(null, 'download'));\n if (xhr.upload) {\n xhr.upload.addEventListener('progress', handleProgress.bind(null, 'upload'));\n }\n } catch (_unused6) {// Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist.\n // Reported here:\n // https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context\n }\n }\n if (xhr.upload) {\n this._setUploadTimeout();\n } // initiate request\n\n try {\n if (this.username && this.password) {\n xhr.open(this.method, this.url, true, this.username, this.password);\n } else {\n xhr.open(this.method, this.url, true);\n }\n } catch (err) {\n // see #1149\n return this.callback(err);\n } // CORS\n\n if (this._withCredentials) xhr.withCredentials = true; // body\n\n if (!this._formData && this.method !== 'GET' && this.method !== 'HEAD' && typeof data !== 'string' && !this._isHost(data)) {\n // serialize stuff\n var contentType = this._header['content-type'];\n var _serialize = this._serializer || request.serialize[contentType ? contentType.split(';')[0] : ''];\n if (!_serialize && isJSON(contentType)) {\n _serialize = request.serialize['application/json'];\n }\n if (_serialize) data = _serialize(data);\n } // set header fields\n\n for (var field in this.header) {\n if (this.header[field] === null) continue;\n if (Object.prototype.hasOwnProperty.call(this.header, field)) xhr.setRequestHeader(field, this.header[field]);\n }\n if (this._responseType) {\n xhr.responseType = this._responseType;\n } // send stuff\n\n this.emit('request', this); // IE11 xhr.send(undefined) sends 'undefined' string as POST payload (instead of nothing)\n // We need null here if data is undefined\n\n xhr.send(typeof data === 'undefined' ? null : data);\n};\nrequest.agent = function () {\n return new Agent();\n};\n['GET', 'POST', 'OPTIONS', 'PATCH', 'PUT', 'DELETE'].forEach(function (method) {\n Agent.prototype[method.toLowerCase()] = function (url, fn) {\n var req = new request.Request(method, url);\n this._setDefaults(req);\n if (fn) {\n req.end(fn);\n }\n return req;\n };\n});\nAgent.prototype.del = Agent.prototype[\"delete\"];\n/**\n * GET `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} [data] or fn\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.get = function (url, data, fn) {\n var req = request('GET', url);\n if (typeof data === 'function') {\n fn = data;\n data = null;\n }\n if (data) req.query(data);\n if (fn) req.end(fn);\n return req;\n};\n/**\n * HEAD `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} [data] or fn\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.head = function (url, data, fn) {\n var req = request('HEAD', url);\n if (typeof data === 'function') {\n fn = data;\n data = null;\n }\n if (data) req.query(data);\n if (fn) req.end(fn);\n return req;\n};\n/**\n * OPTIONS query to `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} [data] or fn\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.options = function (url, data, fn) {\n var req = request('OPTIONS', url);\n if (typeof data === 'function') {\n fn = data;\n data = null;\n }\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n/**\n * DELETE `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} [data]\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nfunction del(url, data, fn) {\n var req = request('DELETE', url);\n if (typeof data === 'function') {\n fn = data;\n data = null;\n }\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n}\nrequest.del = del;\nrequest[\"delete\"] = del;\n/**\n * PATCH `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} [data]\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.patch = function (url, data, fn) {\n var req = request('PATCH', url);\n if (typeof data === 'function') {\n fn = data;\n data = null;\n }\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n/**\n * POST `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} [data]\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.post = function (url, data, fn) {\n var req = request('POST', url);\n if (typeof data === 'function') {\n fn = data;\n data = null;\n }\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n/**\n * PUT `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} [data] or fn\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.put = function (url, data, fn) {\n var req = request('PUT', url);\n if (typeof data === 'function') {\n fn = data;\n data = null;\n }\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n//# sourceURL=webpack://Ntnx/./node_modules/superagent/lib/client.js?");
|
|
82
|
+
|
|
83
|
+
/***/ }),
|
|
84
|
+
|
|
85
|
+
/***/ "./node_modules/superagent/lib/is-object.js":
|
|
86
|
+
/*!**************************************************!*\
|
|
87
|
+
!*** ./node_modules/superagent/lib/is-object.js ***!
|
|
88
|
+
\**************************************************/
|
|
89
|
+
/***/ ((module) => {
|
|
90
|
+
|
|
91
|
+
"use strict";
|
|
92
|
+
eval("\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n}\n\n/**\n * Check if `obj` is an object.\n *\n * @param {Object} obj\n * @return {Boolean}\n * @api private\n */\nfunction isObject(obj) {\n return obj !== null && _typeof(obj) === 'object';\n}\nmodule.exports = isObject;\n\n//# sourceURL=webpack://Ntnx/./node_modules/superagent/lib/is-object.js?");
|
|
93
|
+
|
|
94
|
+
/***/ }),
|
|
95
|
+
|
|
96
|
+
/***/ "./node_modules/superagent/lib/request-base.js":
|
|
97
|
+
/*!*****************************************************!*\
|
|
98
|
+
!*** ./node_modules/superagent/lib/request-base.js ***!
|
|
99
|
+
\*****************************************************/
|
|
100
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
101
|
+
|
|
102
|
+
"use strict";
|
|
103
|
+
eval("\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n}\n\n/**\n * Module of mixed-in functions shared between node and client code\n */\nvar isObject = __webpack_require__(/*! ./is-object */ \"./node_modules/superagent/lib/is-object.js\");\n/**\n * Expose `RequestBase`.\n */\n\nmodule.exports = RequestBase;\n/**\n * Initialize a new `RequestBase`.\n *\n * @api public\n */\n\nfunction RequestBase(obj) {\n if (obj) return mixin(obj);\n}\n/**\n * Mixin the prototype properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in RequestBase.prototype) {\n if (Object.prototype.hasOwnProperty.call(RequestBase.prototype, key)) obj[key] = RequestBase.prototype[key];\n }\n return obj;\n}\n/**\n * Clear previous timeout.\n *\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.clearTimeout = function () {\n clearTimeout(this._timer);\n clearTimeout(this._responseTimeoutTimer);\n clearTimeout(this._uploadTimeoutTimer);\n delete this._timer;\n delete this._responseTimeoutTimer;\n delete this._uploadTimeoutTimer;\n return this;\n};\n/**\n * Override default response body parser\n *\n * This function will be called to convert incoming data into request.body\n *\n * @param {Function}\n * @api public\n */\n\nRequestBase.prototype.parse = function (fn) {\n this._parser = fn;\n return this;\n};\n/**\n * Set format of binary response body.\n * In browser valid formats are 'blob' and 'arraybuffer',\n * which return Blob and ArrayBuffer, respectively.\n *\n * In Node all values result in Buffer.\n *\n * Examples:\n *\n * req.get('/')\n * .responseType('blob')\n * .end(callback);\n *\n * @param {String} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.responseType = function (val) {\n this._responseType = val;\n return this;\n};\n/**\n * Override default request body serializer\n *\n * This function will be called to convert data set via .send or .attach into payload to send\n *\n * @param {Function}\n * @api public\n */\n\nRequestBase.prototype.serialize = function (fn) {\n this._serializer = fn;\n return this;\n};\n/**\n * Set timeouts.\n *\n * - response timeout is time between sending request and receiving the first byte of the response. Includes DNS and connection time.\n * - deadline is the time from start of the request to receiving response body in full. If the deadline is too short large files may not load at all on slow connections.\n * - upload is the time since last bit of data was sent or received. This timeout works only if deadline timeout is off\n *\n * Value of 0 or false means no timeout.\n *\n * @param {Number|Object} ms or {response, deadline}\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.timeout = function (options) {\n if (!options || _typeof(options) !== 'object') {\n this._timeout = options;\n this._responseTimeout = 0;\n this._uploadTimeout = 0;\n return this;\n }\n for (var option in options) {\n if (Object.prototype.hasOwnProperty.call(options, option)) {\n switch (option) {\n case 'deadline':\n this._timeout = options.deadline;\n break;\n case 'response':\n this._responseTimeout = options.response;\n break;\n case 'upload':\n this._uploadTimeout = options.upload;\n break;\n default:\n console.warn('Unknown timeout option', option);\n }\n }\n }\n return this;\n};\n/**\n * Set number of retry attempts on error.\n *\n * Failed requests will be retried 'count' times if timeout or err.code >= 500.\n *\n * @param {Number} count\n * @param {Function} [fn]\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.retry = function (count, fn) {\n // Default to 1 if no count passed or true\n if (arguments.length === 0 || count === true) count = 1;\n if (count <= 0) count = 0;\n this._maxRetries = count;\n this._retries = 0;\n this._retryCallback = fn;\n return this;\n};\nvar ERROR_CODES = ['ECONNRESET', 'ETIMEDOUT', 'EADDRINFO', 'ESOCKETTIMEDOUT'];\n/**\n * Determine if a request should be retried.\n * (Borrowed from segmentio/superagent-retry)\n *\n * @param {Error} err an error\n * @param {Response} [res] response\n * @returns {Boolean} if segment should be retried\n */\n\nRequestBase.prototype._shouldRetry = function (err, res) {\n if (!this._maxRetries || this._retries++ >= this._maxRetries) {\n return false;\n }\n if (this._retryCallback) {\n try {\n var override = this._retryCallback(err, res);\n if (override === true) return true;\n if (override === false) return false; // undefined falls back to defaults\n } catch (err_) {\n console.error(err_);\n }\n }\n if (res && res.status && res.status >= 500 && res.status !== 501) return true;\n if (err) {\n if (err.code && ERROR_CODES.includes(err.code)) return true; // Superagent timeout\n\n if (err.timeout && err.code === 'ECONNABORTED') return true;\n if (err.crossDomain) return true;\n }\n return false;\n};\n/**\n * Retry request\n *\n * @return {Request} for chaining\n * @api private\n */\n\nRequestBase.prototype._retry = function () {\n this.clearTimeout(); // node\n\n if (this.req) {\n this.req = null;\n this.req = this.request();\n }\n this._aborted = false;\n this.timedout = false;\n this.timedoutError = null;\n return this._end();\n};\n/**\n * Promise support\n *\n * @param {Function} resolve\n * @param {Function} [reject]\n * @return {Request}\n */\n\nRequestBase.prototype.then = function (resolve, reject) {\n var _this = this;\n if (!this._fullfilledPromise) {\n var self = this;\n if (this._endCalled) {\n console.warn('Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises');\n }\n this._fullfilledPromise = new Promise(function (resolve, reject) {\n self.on('abort', function () {\n if (_this._maxRetries && _this._maxRetries > _this._retries) {\n return;\n }\n if (_this.timedout && _this.timedoutError) {\n reject(_this.timedoutError);\n return;\n }\n var err = new Error('Aborted');\n err.code = 'ABORTED';\n err.status = _this.status;\n err.method = _this.method;\n err.url = _this.url;\n reject(err);\n });\n self.end(function (err, res) {\n if (err) reject(err);else resolve(res);\n });\n });\n }\n return this._fullfilledPromise.then(resolve, reject);\n};\nRequestBase.prototype[\"catch\"] = function (cb) {\n return this.then(undefined, cb);\n};\n/**\n * Allow for extension\n */\n\nRequestBase.prototype.use = function (fn) {\n fn(this);\n return this;\n};\nRequestBase.prototype.ok = function (cb) {\n if (typeof cb !== 'function') throw new Error('Callback required');\n this._okCallback = cb;\n return this;\n};\nRequestBase.prototype._isResponseOK = function (res) {\n if (!res) {\n return false;\n }\n if (this._okCallback) {\n return this._okCallback(res);\n }\n return res.status >= 200 && res.status < 300;\n};\n/**\n * Get request header `field`.\n * Case-insensitive.\n *\n * @param {String} field\n * @return {String}\n * @api public\n */\n\nRequestBase.prototype.get = function (field) {\n return this._header[field.toLowerCase()];\n};\n/**\n * Get case-insensitive header `field` value.\n * This is a deprecated internal API. Use `.get(field)` instead.\n *\n * (getHeader is no longer used internally by the superagent code base)\n *\n * @param {String} field\n * @return {String}\n * @api private\n * @deprecated\n */\n\nRequestBase.prototype.getHeader = RequestBase.prototype.get;\n/**\n * Set header `field` to `val`, or multiple fields with one object.\n * Case-insensitive.\n *\n * Examples:\n *\n * req.get('/')\n * .set('Accept', 'application/json')\n * .set('X-API-Key', 'foobar')\n * .end(callback);\n *\n * req.get('/')\n * .set({ Accept: 'application/json', 'X-API-Key': 'foobar' })\n * .end(callback);\n *\n * @param {String|Object} field\n * @param {String} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.set = function (field, val) {\n if (isObject(field)) {\n for (var key in field) {\n if (Object.prototype.hasOwnProperty.call(field, key)) this.set(key, field[key]);\n }\n return this;\n }\n this._header[field.toLowerCase()] = val;\n this.header[field] = val;\n return this;\n};\n/**\n * Remove header `field`.\n * Case-insensitive.\n *\n * Example:\n *\n * req.get('/')\n * .unset('User-Agent')\n * .end(callback);\n *\n * @param {String} field field name\n */\n\nRequestBase.prototype.unset = function (field) {\n delete this._header[field.toLowerCase()];\n delete this.header[field];\n return this;\n};\n/**\n * Write the field `name` and `val`, or multiple fields with one object\n * for \"multipart/form-data\" request bodies.\n *\n * ``` js\n * request.post('/upload')\n * .field('foo', 'bar')\n * .end(callback);\n *\n * request.post('/upload')\n * .field({ foo: 'bar', baz: 'qux' })\n * .end(callback);\n * ```\n *\n * @param {String|Object} name name of field\n * @param {String|Blob|File|Buffer|fs.ReadStream} val value of field\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.field = function (name, val) {\n // name should be either a string or an object.\n if (name === null || undefined === name) {\n throw new Error('.field(name, val) name can not be empty');\n }\n if (this._data) {\n throw new Error(\".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()\");\n }\n if (isObject(name)) {\n for (var key in name) {\n if (Object.prototype.hasOwnProperty.call(name, key)) this.field(key, name[key]);\n }\n return this;\n }\n if (Array.isArray(val)) {\n for (var i in val) {\n if (Object.prototype.hasOwnProperty.call(val, i)) this.field(name, val[i]);\n }\n return this;\n } // val should be defined now\n\n if (val === null || undefined === val) {\n throw new Error('.field(name, val) val can not be empty');\n }\n if (typeof val === 'boolean') {\n val = String(val);\n }\n this._getFormData().append(name, val);\n return this;\n};\n/**\n * Abort the request, and clear potential timeout.\n *\n * @return {Request} request\n * @api public\n */\n\nRequestBase.prototype.abort = function () {\n if (this._aborted) {\n return this;\n }\n this._aborted = true;\n if (this.xhr) this.xhr.abort(); // browser\n\n if (this.req) this.req.abort(); // node\n\n this.clearTimeout();\n this.emit('abort');\n return this;\n};\nRequestBase.prototype._auth = function (user, pass, options, base64Encoder) {\n switch (options.type) {\n case 'basic':\n this.set('Authorization', \"Basic \".concat(base64Encoder(\"\".concat(user, \":\").concat(pass))));\n break;\n case 'auto':\n this.username = user;\n this.password = pass;\n break;\n case 'bearer':\n // usage would be .auth(accessToken, { type: 'bearer' })\n this.set('Authorization', \"Bearer \".concat(user));\n break;\n default:\n break;\n }\n return this;\n};\n/**\n * Enable transmission of cookies with x-domain requests.\n *\n * Note that for this to work the origin must not be\n * using \"Access-Control-Allow-Origin\" with a wildcard,\n * and also must set \"Access-Control-Allow-Credentials\"\n * to \"true\".\n *\n * @api public\n */\n\nRequestBase.prototype.withCredentials = function (on) {\n // This is browser-only functionality. Node side is no-op.\n if (on === undefined) on = true;\n this._withCredentials = on;\n return this;\n};\n/**\n * Set the max redirects to `n`. Does nothing in browser XHR implementation.\n *\n * @param {Number} n\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.redirects = function (n) {\n this._maxRedirects = n;\n return this;\n};\n/**\n * Maximum size of buffered response body, in bytes. Counts uncompressed size.\n * Default 200MB.\n *\n * @param {Number} n number of bytes\n * @return {Request} for chaining\n */\n\nRequestBase.prototype.maxResponseSize = function (n) {\n if (typeof n !== 'number') {\n throw new TypeError('Invalid argument');\n }\n this._maxResponseSize = n;\n return this;\n};\n/**\n * Convert to a plain javascript object (not JSON string) of scalar properties.\n * Note as this method is designed to return a useful non-this value,\n * it cannot be chained.\n *\n * @return {Object} describing method, url, and data of this request\n * @api public\n */\n\nRequestBase.prototype.toJSON = function () {\n return {\n method: this.method,\n url: this.url,\n data: this._data,\n headers: this._header\n };\n};\n/**\n * Send `data` as the request body, defaulting the `.type()` to \"json\" when\n * an object is given.\n *\n * Examples:\n *\n * // manual json\n * request.post('/user')\n * .type('json')\n * .send('{\"name\":\"tj\"}')\n * .end(callback)\n *\n * // auto json\n * request.post('/user')\n * .send({ name: 'tj' })\n * .end(callback)\n *\n * // manual x-www-form-urlencoded\n * request.post('/user')\n * .type('form')\n * .send('name=tj')\n * .end(callback)\n *\n * // auto x-www-form-urlencoded\n * request.post('/user')\n * .type('form')\n * .send({ name: 'tj' })\n * .end(callback)\n *\n * // defaults to x-www-form-urlencoded\n * request.post('/user')\n * .send('name=tobi')\n * .send('species=ferret')\n * .end(callback)\n *\n * @param {String|Object} data\n * @return {Request} for chaining\n * @api public\n */\n// eslint-disable-next-line complexity\n\nRequestBase.prototype.send = function (data) {\n var isObj = isObject(data);\n var type = this._header['content-type'];\n if (this._formData) {\n throw new Error(\".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()\");\n }\n if (isObj && !this._data) {\n if (Array.isArray(data)) {\n this._data = [];\n } else if (!this._isHost(data)) {\n this._data = {};\n }\n } else if (data && this._data && this._isHost(this._data)) {\n throw new Error(\"Can't merge these send calls\");\n } // merge\n\n if (isObj && isObject(this._data)) {\n for (var key in data) {\n if (Object.prototype.hasOwnProperty.call(data, key)) this._data[key] = data[key];\n }\n } else if (typeof data === 'string') {\n // default to x-www-form-urlencoded\n if (!type) this.type('form');\n type = this._header['content-type'];\n if (type === 'application/x-www-form-urlencoded') {\n this._data = this._data ? \"\".concat(this._data, \"&\").concat(data) : data;\n } else {\n this._data = (this._data || '') + data;\n }\n } else {\n this._data = data;\n }\n if (!isObj || this._isHost(data)) {\n return this;\n } // default to json\n\n if (!type) this.type('json');\n return this;\n};\n/**\n * Sort `querystring` by the sort function\n *\n *\n * Examples:\n *\n * // default order\n * request.get('/user')\n * .query('name=Nick')\n * .query('search=Manny')\n * .sortQuery()\n * .end(callback)\n *\n * // customized sort function\n * request.get('/user')\n * .query('name=Nick')\n * .query('search=Manny')\n * .sortQuery(function(a, b){\n * return a.length - b.length;\n * })\n * .end(callback)\n *\n *\n * @param {Function} sort\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.sortQuery = function (sort) {\n // _sort default to true but otherwise can be a function or boolean\n this._sort = typeof sort === 'undefined' ? true : sort;\n return this;\n};\n/**\n * Compose querystring to append to req.url\n *\n * @api private\n */\n\nRequestBase.prototype._finalizeQueryString = function () {\n var query = this._query.join('&');\n if (query) {\n this.url += (this.url.includes('?') ? '&' : '?') + query;\n }\n this._query.length = 0; // Makes the call idempotent\n\n if (this._sort) {\n var index = this.url.indexOf('?');\n if (index >= 0) {\n var queryArr = this.url.slice(index + 1).split('&');\n if (typeof this._sort === 'function') {\n queryArr.sort(this._sort);\n } else {\n queryArr.sort();\n }\n this.url = this.url.slice(0, index) + '?' + queryArr.join('&');\n }\n }\n}; // For backwards compat only\n\nRequestBase.prototype._appendQueryString = function () {\n console.warn('Unsupported');\n};\n/**\n * Invoke callback with timeout error.\n *\n * @api private\n */\n\nRequestBase.prototype._timeoutError = function (reason, timeout, errno) {\n if (this._aborted) {\n return;\n }\n var err = new Error(\"\".concat(reason + timeout, \"ms exceeded\"));\n err.timeout = timeout;\n err.code = 'ECONNABORTED';\n err.errno = errno;\n this.timedout = true;\n this.timedoutError = err;\n this.abort();\n this.callback(err);\n};\nRequestBase.prototype._setTimeouts = function () {\n var self = this; // deadline\n\n if (this._timeout && !this._timer) {\n this._timer = setTimeout(function () {\n self._timeoutError('Timeout of ', self._timeout, 'ETIME');\n }, this._timeout);\n } // response timeout\n\n if (this._responseTimeout && !this._responseTimeoutTimer) {\n this._responseTimeoutTimer = setTimeout(function () {\n self._timeoutError('Response timeout of ', self._responseTimeout, 'ETIMEDOUT');\n }, this._responseTimeout);\n }\n};\n\n//# sourceURL=webpack://Ntnx/./node_modules/superagent/lib/request-base.js?");
|
|
104
|
+
|
|
105
|
+
/***/ }),
|
|
106
|
+
|
|
107
|
+
/***/ "./node_modules/superagent/lib/response-base.js":
|
|
108
|
+
/*!******************************************************!*\
|
|
109
|
+
!*** ./node_modules/superagent/lib/response-base.js ***!
|
|
110
|
+
\******************************************************/
|
|
111
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
112
|
+
|
|
113
|
+
"use strict";
|
|
114
|
+
eval("\n\n/**\n * Module dependencies.\n */\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/superagent/lib/utils.js\");\n/**\n * Expose `ResponseBase`.\n */\n\nmodule.exports = ResponseBase;\n/**\n * Initialize a new `ResponseBase`.\n *\n * @api public\n */\n\nfunction ResponseBase(obj) {\n if (obj) return mixin(obj);\n}\n/**\n * Mixin the prototype properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in ResponseBase.prototype) {\n if (Object.prototype.hasOwnProperty.call(ResponseBase.prototype, key)) obj[key] = ResponseBase.prototype[key];\n }\n return obj;\n}\n/**\n * Get case-insensitive `field` value.\n *\n * @param {String} field\n * @return {String}\n * @api public\n */\n\nResponseBase.prototype.get = function (field) {\n return this.header[field.toLowerCase()];\n};\n/**\n * Set header related properties:\n *\n * - `.type` the content type without params\n *\n * A response of \"Content-Type: text/plain; charset=utf-8\"\n * will provide you with a `.type` of \"text/plain\".\n *\n * @param {Object} header\n * @api private\n */\n\nResponseBase.prototype._setHeaderProperties = function (header) {\n // TODO: moar!\n // TODO: make this a util\n // content-type\n var ct = header['content-type'] || '';\n this.type = utils.type(ct); // params\n\n var params = utils.params(ct);\n for (var key in params) {\n if (Object.prototype.hasOwnProperty.call(params, key)) this[key] = params[key];\n }\n this.links = {}; // links\n\n try {\n if (header.link) {\n this.links = utils.parseLinks(header.link);\n }\n } catch (_unused) {// ignore\n }\n};\n/**\n * Set flags such as `.ok` based on `status`.\n *\n * For example a 2xx response will give you a `.ok` of __true__\n * whereas 5xx will be __false__ and `.error` will be __true__. The\n * `.clientError` and `.serverError` are also available to be more\n * specific, and `.statusType` is the class of error ranging from 1..5\n * sometimes useful for mapping respond colors etc.\n *\n * \"sugar\" properties are also defined for common cases. Currently providing:\n *\n * - .noContent\n * - .badRequest\n * - .unauthorized\n * - .notAcceptable\n * - .notFound\n *\n * @param {Number} status\n * @api private\n */\n\nResponseBase.prototype._setStatusProperties = function (status) {\n var type = status / 100 | 0; // status / class\n\n this.statusCode = status;\n this.status = this.statusCode;\n this.statusType = type; // basics\n\n this.info = type === 1;\n this.ok = type === 2;\n this.redirect = type === 3;\n this.clientError = type === 4;\n this.serverError = type === 5;\n this.error = type === 4 || type === 5 ? this.toError() : false; // sugar\n\n this.created = status === 201;\n this.accepted = status === 202;\n this.noContent = status === 204;\n this.badRequest = status === 400;\n this.unauthorized = status === 401;\n this.notAcceptable = status === 406;\n this.forbidden = status === 403;\n this.notFound = status === 404;\n this.unprocessableEntity = status === 422;\n};\n\n//# sourceURL=webpack://Ntnx/./node_modules/superagent/lib/response-base.js?");
|
|
115
|
+
|
|
116
|
+
/***/ }),
|
|
117
|
+
|
|
118
|
+
/***/ "./node_modules/superagent/lib/utils.js":
|
|
119
|
+
/*!**********************************************!*\
|
|
120
|
+
!*** ./node_modules/superagent/lib/utils.js ***!
|
|
121
|
+
\**********************************************/
|
|
122
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
123
|
+
|
|
124
|
+
"use strict";
|
|
125
|
+
eval("\n\n/**\n * Return the mime type for the given `str`.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\nexports.type = function (str) {\n return str.split(/ *; */).shift();\n};\n/**\n * Return header field parameters.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nexports.params = function (str) {\n return str.split(/ *; */).reduce(function (obj, str) {\n var parts = str.split(/ *= */);\n var key = parts.shift();\n var val = parts.shift();\n if (key && val) obj[key] = val;\n return obj;\n }, {});\n};\n/**\n * Parse Link header fields.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nexports.parseLinks = function (str) {\n return str.split(/ *, */).reduce(function (obj, str) {\n var parts = str.split(/ *; */);\n var url = parts[0].slice(1, -1);\n var rel = parts[1].split(/ *= */)[1].slice(1, -1);\n obj[rel] = url;\n return obj;\n }, {});\n};\n/**\n * Strip content related fields from `header`.\n *\n * @param {Object} header\n * @return {Object} header\n * @api private\n */\n\nexports.cleanHeader = function (header, changesOrigin) {\n delete header['content-type'];\n delete header['content-length'];\n delete header['transfer-encoding'];\n delete header.host; // secuirty\n\n if (changesOrigin) {\n delete header.authorization;\n delete header.cookie;\n }\n return header;\n};\n\n//# sourceURL=webpack://Ntnx/./node_modules/superagent/lib/utils.js?");
|
|
126
|
+
|
|
127
|
+
/***/ }),
|
|
128
|
+
|
|
129
|
+
/***/ "./node_modules/util/node_modules/inherits/inherits_browser.js":
|
|
130
|
+
/*!*********************************************************************!*\
|
|
131
|
+
!*** ./node_modules/util/node_modules/inherits/inherits_browser.js ***!
|
|
132
|
+
\*********************************************************************/
|
|
133
|
+
/***/ ((module) => {
|
|
134
|
+
|
|
135
|
+
eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor;\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function TempCtor() {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n };\n}\n\n//# sourceURL=webpack://Ntnx/./node_modules/util/node_modules/inherits/inherits_browser.js?");
|
|
136
|
+
|
|
137
|
+
/***/ }),
|
|
138
|
+
|
|
139
|
+
/***/ "./node_modules/util/support/isBufferBrowser.js":
|
|
140
|
+
/*!******************************************************!*\
|
|
141
|
+
!*** ./node_modules/util/support/isBufferBrowser.js ***!
|
|
142
|
+
\******************************************************/
|
|
143
|
+
/***/ ((module) => {
|
|
144
|
+
|
|
145
|
+
eval("function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nmodule.exports = function isBuffer(arg) {\n return arg && _typeof(arg) === 'object' && typeof arg.copy === 'function' && typeof arg.fill === 'function' && typeof arg.readUInt8 === 'function';\n};\n\n//# sourceURL=webpack://Ntnx/./node_modules/util/support/isBufferBrowser.js?");
|
|
146
|
+
|
|
147
|
+
/***/ }),
|
|
148
|
+
|
|
149
|
+
/***/ "./node_modules/util/util.js":
|
|
150
|
+
/*!***********************************!*\
|
|
151
|
+
!*** ./node_modules/util/util.js ***!
|
|
152
|
+
\***********************************/
|
|
153
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
154
|
+
|
|
155
|
+
eval("function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar formatRegExp = /%[sdj%]/g;\nexports.format = function (f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(' ');\n }\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function (x) {\n if (x === '%%') return '%';\n if (i >= len) return x;\n switch (x) {\n case '%s':\n return String(args[i++]);\n case '%d':\n return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n};\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nexports.deprecate = function (fn, msg) {\n // Allow for deprecating things in the process of starting up.\n if (isUndefined(__webpack_require__.g.process)) {\n return function () {\n return exports.deprecate(fn, msg).apply(this, arguments);\n };\n }\n if (process.noDeprecation === true) {\n return fn;\n }\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n return deprecated;\n};\nvar debugs = {};\nvar debugEnviron;\nexports.debuglog = function (set) {\n if (isUndefined(debugEnviron)) debugEnviron = process.env.NODE_DEBUG || '';\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\n var pid = process.pid;\n debugs[set] = function () {\n var msg = exports.format.apply(exports, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function () {};\n }\n }\n return debugs[set];\n};\n\n/**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n/* legacy: obj, showHidden, depth, colors*/\nfunction inspect(obj, opts) {\n // default options\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n // legacy...\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n // legacy...\n ctx.showHidden = opts;\n } else if (opts) {\n // got an \"options\" object\n exports._extend(ctx, opts);\n }\n // set default options\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n}\nexports.inspect = inspect;\n\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\ninspect.colors = {\n 'bold': [1, 22],\n 'italic': [3, 23],\n 'underline': [4, 24],\n 'inverse': [7, 27],\n 'white': [37, 39],\n 'grey': [90, 39],\n 'black': [30, 39],\n 'blue': [34, 39],\n 'cyan': [36, 39],\n 'green': [32, 39],\n 'magenta': [35, 39],\n 'red': [31, 39],\n 'yellow': [33, 39]\n};\n\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n // \"name\": intentionally not styling\n 'regexp': 'red'\n};\nfunction stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n if (style) {\n return \"\\x1B[\" + inspect.colors[style][0] + 'm' + str + \"\\x1B[\" + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n}\nfunction stylizeNoColor(str, styleType) {\n return str;\n}\nfunction arrayToHash(array) {\n var hash = {};\n array.forEach(function (val, idx) {\n hash[val] = true;\n });\n return hash;\n}\nfunction formatValue(ctx, value, recurseTimes) {\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it\n if (ctx.customInspect && value && isFunction(value.inspect) &&\n // Filter out the util module, it's inspect function is special\n value.inspect !== exports.inspect &&\n // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n var base = '',\n array = false,\n braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n ctx.seen.push(value);\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function (key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n ctx.seen.pop();\n return reduceToSingleString(output, base, braces);\n}\nfunction formatPrimitive(ctx, value) {\n if (isUndefined(value)) return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '').replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value)) return ctx.stylize('' + value, 'number');\n if (isBoolean(value)) return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value)) return ctx.stylize('null', 'null');\n}\nfunction formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n}\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function (key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true));\n }\n });\n return output;\n}\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || {\n value: value[key]\n };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function (line) {\n return ' ' + line;\n }).join('\\n').substr(2);\n } else {\n str = '\\n' + str.split('\\n').map(function (line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"').replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n return name + ': ' + str;\n}\nfunction reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function (prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n if (length > 60) {\n return braces[0] + (base === '' ? '' : base + '\\n ') + ' ' + output.join(',\\n ') + ' ' + braces[1];\n }\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n}\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nfunction isArray(ar) {\n return Array.isArray(ar);\n}\nexports.isArray = isArray;\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\nfunction isSymbol(arg) {\n return _typeof(arg) === 'symbol';\n}\nexports.isSymbol = isSymbol;\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\nfunction isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\nfunction isObject(arg) {\n return _typeof(arg) === 'object' && arg !== null;\n}\nexports.isObject = isObject;\nfunction isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\nfunction isError(e) {\n return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\nfunction isPrimitive(arg) {\n return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || _typeof(arg) === 'symbol' ||\n // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\nexports.isBuffer = __webpack_require__(/*! ./support/isBuffer */ \"./node_modules/util/support/isBufferBrowser.js\");\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\nfunction pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n}\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\n\n// 26 Feb 16:19:34\nfunction timestamp() {\n var d = new Date();\n var time = [pad(d.getHours()), pad(d.getMinutes()), pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n}\n\n// log is just a thin wrapper to console.log that prepends a timestamp\nexports.log = function () {\n console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n};\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * The Function.prototype.inherits from lang.js rewritten as a standalone\n * function (not on Function.prototype). NOTE: If this file is to be loaded\n * during bootstrapping this function needs to be rewritten using some native\n * functions as prototype setup using normal JavaScript does not work as\n * expected during bootstrapping (see mirror.js in r114903).\n *\n * @param {function} ctor Constructor function which needs to inherit the\n * prototype.\n * @param {function} superCtor Constructor function to inherit prototype from.\n */\nexports.inherits = __webpack_require__(/*! inherits */ \"./node_modules/util/node_modules/inherits/inherits_browser.js\");\nexports._extend = function (origin, add) {\n // Don't do anything if add isn't an object\n if (!add || !isObject(add)) return origin;\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n};\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\n//# sourceURL=webpack://Ntnx/./node_modules/util/util.js?");
|
|
156
|
+
|
|
157
|
+
/***/ }),
|
|
158
|
+
|
|
159
|
+
/***/ "./node_modules/uuid/dist/esm-browser/regex.js":
|
|
160
|
+
/*!*****************************************************!*\
|
|
161
|
+
!*** ./node_modules/uuid/dist/esm-browser/regex.js ***!
|
|
162
|
+
\*****************************************************/
|
|
163
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
164
|
+
|
|
165
|
+
"use strict";
|
|
166
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/^(?:[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);\n\n//# sourceURL=webpack://Ntnx/./node_modules/uuid/dist/esm-browser/regex.js?");
|
|
167
|
+
|
|
168
|
+
/***/ }),
|
|
169
|
+
|
|
170
|
+
/***/ "./node_modules/uuid/dist/esm-browser/rng.js":
|
|
171
|
+
/*!***************************************************!*\
|
|
172
|
+
!*** ./node_modules/uuid/dist/esm-browser/rng.js ***!
|
|
173
|
+
\***************************************************/
|
|
174
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
175
|
+
|
|
176
|
+
"use strict";
|
|
177
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ rng)\n/* harmony export */ });\n// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nfunction rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n return getRandomValues(rnds8);\n}\n\n//# sourceURL=webpack://Ntnx/./node_modules/uuid/dist/esm-browser/rng.js?");
|
|
178
|
+
|
|
179
|
+
/***/ }),
|
|
180
|
+
|
|
181
|
+
/***/ "./node_modules/uuid/dist/esm-browser/stringify.js":
|
|
182
|
+
/*!*********************************************************!*\
|
|
183
|
+
!*** ./node_modules/uuid/dist/esm-browser/stringify.js ***!
|
|
184
|
+
\*********************************************************/
|
|
185
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
186
|
+
|
|
187
|
+
"use strict";
|
|
188
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ \"./node_modules/uuid/dist/esm-browser/validate.js\");\n\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n return uuid;\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (stringify);\n\n//# sourceURL=webpack://Ntnx/./node_modules/uuid/dist/esm-browser/stringify.js?");
|
|
189
|
+
|
|
190
|
+
/***/ }),
|
|
191
|
+
|
|
192
|
+
/***/ "./node_modules/uuid/dist/esm-browser/v4.js":
|
|
193
|
+
/*!**************************************************!*\
|
|
194
|
+
!*** ./node_modules/uuid/dist/esm-browser/v4.js ***!
|
|
195
|
+
\**************************************************/
|
|
196
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
197
|
+
|
|
198
|
+
"use strict";
|
|
199
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ \"./node_modules/uuid/dist/esm-browser/rng.js\");\n/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ \"./node_modules/uuid/dist/esm-browser/stringify.js\");\n\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n return buf;\n }\n return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(rnds);\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v4);\n\n//# sourceURL=webpack://Ntnx/./node_modules/uuid/dist/esm-browser/v4.js?");
|
|
200
|
+
|
|
201
|
+
/***/ }),
|
|
202
|
+
|
|
203
|
+
/***/ "./node_modules/uuid/dist/esm-browser/validate.js":
|
|
204
|
+
/*!********************************************************!*\
|
|
205
|
+
!*** ./node_modules/uuid/dist/esm-browser/validate.js ***!
|
|
206
|
+
\********************************************************/
|
|
207
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
208
|
+
|
|
209
|
+
"use strict";
|
|
210
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _regex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex.js */ \"./node_modules/uuid/dist/esm-browser/regex.js\");\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && _regex_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].test(uuid);\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validate);\n\n//# sourceURL=webpack://Ntnx/./node_modules/uuid/dist/esm-browser/validate.js?");
|
|
211
|
+
|
|
212
|
+
/***/ }),
|
|
213
|
+
|
|
214
|
+
/***/ "./target/generated-sources/swagger/src/ApiClient.js":
|
|
215
|
+
/*!***********************************************************!*\
|
|
216
|
+
!*** ./target/generated-sources/swagger/src/ApiClient.js ***!
|
|
217
|
+
\***********************************************************/
|
|
218
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
219
|
+
|
|
220
|
+
"use strict";
|
|
221
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ApiClient: () => (/* binding */ ApiClient)\n/* harmony export */ });\n/* harmony import */ var superagent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! superagent */ \"./node_modules/superagent/lib/client.js\");\n/* harmony import */ var superagent__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(superagent__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\n/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! uuid */ \"./node_modules/uuid/dist/esm-browser/v4.js\");\n/* harmony import */ var superagent_retry_delay__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! superagent-retry-delay */ \"./node_modules/superagent-retry-delay/src/index.js\");\n/* harmony import */ var superagent_retry_delay__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(superagent_retry_delay__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! https */ \"?aee4\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(https__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! fs */ \"?e583\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! path */ \"./node_modules/path/path.js\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! buffer */ \"?bdc3\");\n/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_6__);\nvar _ApiClient;\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if (\"number\" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if (\"string\" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\\$<([^>]+)>/g, function (e, r) { var t = o[r]; return \"$\" + (Array.isArray(t) ? t.join(\"$\") : t); })); } if (\"function\" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return \"object\" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\nsuperagent_retry_delay__WEBPACK_IMPORTED_MODULE_2___default()((superagent__WEBPACK_IMPORTED_MODULE_0___default()));\n\n\n\n\n\n/**\n* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an\n* application to use this class directly - the *Api and model classes provide the public API for the service. The\n* contents of this file should be regarded as internal but are documented for completeness.\n* @module ApiClient\n* @version 4.0.1-beta-1\n*/\nvar _protocol = /*#__PURE__*/new WeakMap();\nvar _cookie = /*#__PURE__*/new WeakMap();\nvar _logger = /*#__PURE__*/new WeakMap();\nvar _verifySslFlag = /*#__PURE__*/new WeakMap();\nvar _defaultConnectTimeout = /*#__PURE__*/new WeakMap();\nvar _defaultReadTimeout = /*#__PURE__*/new WeakMap();\nvar _defaultMaxTimeout = /*#__PURE__*/new WeakMap();\nvar _LOG_LEVEL = /*#__PURE__*/new WeakMap();\nvar _ApiClient_brand = /*#__PURE__*/new WeakSet();\nvar ApiClient = /*#__PURE__*/function () {\n /**\n * @alias module:ApiClient\n * @class\n */\n function ApiClient() {\n _classCallCheck(this, ApiClient);\n /*\n * Checks whether the given content type represents JSON.<br>\n * JSON content type examples:<br>\n * <ul>\n * <li>application/json</li>\n * <li>application/json; charset=UTF8</li>\n * <li>APPLICATION/JSON</li>\n * </ul>\n * @param {String} contentType The MIME content type to check.\n * @returns {Boolean} <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.\n */\n _classPrivateMethodInitSpec(this, _ApiClient_brand);\n // PRIVATE VARIABLES\n _classPrivateFieldInitSpec(this, _protocol, void 0);\n _classPrivateFieldInitSpec(this, _cookie, void 0);\n _classPrivateFieldInitSpec(this, _logger, void 0);\n _classPrivateFieldInitSpec(this, _verifySslFlag, void 0);\n _classPrivateFieldInitSpec(this, _defaultConnectTimeout, void 0);\n _classPrivateFieldInitSpec(this, _defaultReadTimeout, void 0);\n _classPrivateFieldInitSpec(this, _defaultMaxTimeout, void 0);\n _classPrivateFieldInitSpec(this, _LOG_LEVEL, void 0);\n _classPrivateFieldSet(_LOG_LEVEL, this, Object.freeze({\n DEBUG: {\n key: \"DEBUG\",\n value: Symbol(0)\n },\n INFO: {\n key: \"INFO\",\n value: Symbol(1)\n },\n WARN: {\n key: \"WARN\",\n value: Symbol(2)\n },\n ERROR: {\n key: \"ERROR\",\n value: Symbol(3)\n }\n }));\n\n /**\n * URI scheme for connecting to the cluster (HTTP or HTTPS using SSL/TLS)\n * @type {String}\n * @default https\n */\n this.scheme = 'https';\n\n /**\n * The hostname of the URL against which to resolve every API call's (relative) path.\n * @type {String}\n * @default localhost\n */\n this.host = typeof self === 'undefined' ? 'localhost' : self.location.hostname;\n\n /**\n * The port of the base URL.\n * @type {String}\n * @default 9440\n */\n this.port = typeof self === 'undefined' ? '9440' : self.location.port;\n\n /**\n * The authentication methods to be included for all API calls.\n * @type {Array.<String>}\n */\n this.authentications = {\n 'apiKeyPath': {\n type: 'apiKey',\n 'in': 'header',\n name: 'X_NTNX_AUTHN'\n },\n 'basicAuthScheme': {\n type: 'basic'\n }\n };\n\n /**\n * The default HTTP headers to be included for all API calls.\n * @type {Array.<String>}\n * @default {}\n */\n this.defaultHeaders = {};\n _classPrivateFieldSet(_defaultConnectTimeout, this, 30000);\n _classPrivateFieldSet(_defaultReadTimeout, this, 30000);\n _classPrivateFieldSet(_defaultMaxTimeout, this, 1800000);\n\n /**\n * The default HTTP read timeout in milliseconds for all API calls.\n * @type {Number}\n * @default 30000\n */\n this.readTimeout = _classPrivateFieldGet(_defaultReadTimeout, this);\n\n /**\n * The default HTTP connection timeout in milliseconds for all API calls.\n * @type {Number}\n * @default 30000\n */\n this.connectTimeout = _classPrivateFieldGet(_defaultConnectTimeout, this);\n\n /**\n * If set to false an additional timestamp parameter is added to all API GET calls to\n * prevent browser caching\n * @type {Boolean}\n * @default true\n */\n this.cache = true;\n\n /**\n * Saved Cookies\n * @default null\n */\n _classPrivateFieldSet(_cookie, this, null);\n\n /**\n * The maximum number of retry attempts to be made by the client\n * in case of server error.\n * @type {Number}\n * @default 5\n */\n this.maxRetryAttempts = 5;\n\n /**\n * The delay period (in milliseconds) between two consecutive retry attempts\n * @type {Number}\n * @default 3000\n */\n this.retryInterval = 3000;\n if (typeof self === 'undefined') {\n this.agent = new (superagent__WEBPACK_IMPORTED_MODULE_0___default().agent)();\n }\n\n /**\n * Allow user to override superagent agent\n */\n this.requestAgent = null;\n\n /**\n * Allow SDK to print debug logs\n */\n this.debug = false;\n _classPrivateFieldSet(_logger, this, null);\n\n /**\n * Username for basic auth\n */\n this.username = null;\n\n /**\n * Password for basic auth\n */\n this.password = null;\n _classPrivateFieldSet(_verifySslFlag, this, true);\n\n /*\n * Non Browser Environment : path to directory where downloaded files will be stored\n * Browser Environment : WritableStream to pipe downloaded file to\n */\n this.downloadDestination = null;\n\n /*\n * Log file to write activity logs\n */\n this.loggerFile = null;\n }\n\n /**\n * Enable/Disable SSL Verification\n * @param verifySsl (boolean)\n */\n return _createClass(ApiClient, [{\n key: \"verifySsl\",\n get: function get() {\n return _classPrivateFieldGet(_verifySslFlag, this);\n }\n\n /**\n * Configure log file to write activity logs\n * @param logfile The destination file (write stream / string)\n */,\n set: function set(verifySsl) {\n if (verifySsl) {\n this.requestAgent = null;\n } else {\n this.requestAgent = new (https__WEBPACK_IMPORTED_MODULE_3___default().Agent)({\n rejectUnauthorized: false\n });\n }\n _classPrivateFieldSet(_verifySslFlag, this, verifySsl);\n }\n }, {\n key: \"loggerFile\",\n set: function set(logfile) {\n if (logfile !== null && typeof logfile !== 'undefined') {\n if (typeof logfile === 'string' || logfile instanceof String) {\n logfile = fs__WEBPACK_IMPORTED_MODULE_4___default().createWriteStream(logfile, {\n flags: 'a'\n });\n }\n _classPrivateFieldSet(_logger, this, new console.Console({\n stdout: logfile,\n stderr: logfile\n }));\n }\n }\n\n /**\n * Adds key value pair to default headers map, (to be added to every API call request)\n * @param {String} key The key\n * @param {String} value The corresponding value\n */\n }, {\n key: \"addDefaultHeader\",\n value: function addDefaultHeader(key, value) {\n if (key === \"Authorization\") {\n _classPrivateFieldSet(_cookie, this, null);\n }\n this.defaultHeaders[key] = value;\n }\n\n /*\n * Returns a string representation for an actual parameter.\n * @param param The actual parameter.\n * @returns {String} The string representation of <code>param</code>.\n */\n }, {\n key: \"paramToString\",\n value: function paramToString(param) {\n if (param == undefined || param == null) {\n return '';\n }\n if (param instanceof Date) {\n return param.toJSON();\n }\n return param.toString();\n }\n }, {\n key: \"buildUrl\",\n value: function buildUrl(path, pathParams) {\n var _this = this;\n if (!path.match(/^\\//)) {\n path = '/' + path;\n }\n\n // The protocol of the base URL, including the colon (:).\n _classPrivateFieldSet(_protocol, this, typeof self === 'undefined' ? this.scheme + ':' : self.location.protocol);\n var basePath = ''; //default\n if (_classPrivateFieldGet(_protocol, this) !== '' && this.host !== '' && this.port !== '') {\n basePath = _classPrivateFieldGet(_protocol, this) + '\\/\\/' + this.host + ':' + this.port;\n } else if (typeof self !== \"undefined\") {\n basePath = self.origin;\n }\n var url = basePath + path;\n url = url.replace(/\\{([\\w-]+)\\}/g, function (fullMatch, key) {\n var value;\n if (pathParams.hasOwnProperty(key)) {\n value = _this.paramToString(pathParams[key]);\n } else {\n value = fullMatch;\n }\n return encodeURIComponent(value);\n });\n return url;\n }\n }, {\n key: \"buildCollectionParam\",\n value:\n /*\n * Builds a string representation of an array-type actual parameter, according to the given collection format.\n * @param {Array} param An array parameter.\n * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy.\n * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns\n * <code>param</code> as is if <code>collectionFormat</code> is <code>multi</code>.\n */\n function buildCollectionParam(param, collectionFormat) {\n if (param == null) {\n return null;\n }\n switch (collectionFormat) {\n case 'csv':\n return param.map(this.paramToString).join(',');\n case 'ssv':\n return param.map(this.paramToString).join(' ');\n case 'tsv':\n return param.map(this.paramToString).join('\\t');\n case 'pipes':\n return param.map(this.paramToString).join('|');\n case 'multi':\n //return the array directly as SuperAgent will handle it as expected\n return param.map(this.paramToString);\n default:\n throw new Error('Unknown collection format: ' + collectionFormat);\n }\n }\n\n /*\n * Applies authentication headers to the request.\n * @param {Object} request The request object created by a <code>superagent()</code> call.\n * @param {Array.<String>} authNames An array of authentication method names.\n */\n }, {\n key: \"addEtagToReservedMap\",\n value: function addEtagToReservedMap(response, data) {\n if (response.hasOwnProperty(\"headers\") && response.headers.hasOwnProperty(\"etag\")) {\n var etagRef = response.headers.etag;\n if (data.getData() !== undefined) {\n if (Array.isArray(data.getData()) && data.getData().length > 0) {\n var _iterator = _createForOfIteratorHelper(data.getData()),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n if (item.hasOwnProperty(\"$reserved\") && item.get$Reserved() !== undefined) {\n item.get$Reserved()[\"ETag\"] = etagRef;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n } else if (data.getData().hasOwnProperty(\"$reserved\") && data.getData().get$Reserved() !== undefined) {\n data.getData().get$Reserved()[\"ETag\"] = etagRef;\n }\n }\n }\n return data;\n }\n\n /**\n * Get ETag from an object if exists.\n * The ETag is usually provided in the response of the GET API calls,\n * which can further be used in other HTTP operations.\n *\n * @param object Object from which ETag needs to be retrieved\n * @returns {(String|null)} returns ETag header in the object if it's an API response object, otherwise null\n */\n }, {\n key: \"callApi\",\n value:\n /**\n * Invokes the REST service using the supplied settings and parameters.\n * @param {String} path The base URL to invoke.\n * @param {String} httpMethod The HTTP method to use.\n * @param {Object.<String, String>} pathParams A map of path parameters and their values.\n * @param {Object.<String, Object>} queryParams A map of query parameters and their values.\n * @param {Object.<String, Object>} headerParams A map of header parameters and their values.\n * @param {Object.<String, Object>} formParams A map of form parameters and their values.\n * @param {Object} bodyParam The value to pass as the request body.\n * @param {Array.<String>} authNames An array of authentication type names.\n * @param {Array.<String>} contentTypes An array of request MIME types.\n * @param {Array.<String>} accepts An array of acceptable response MIME types.\n * @param {(String|Array|Object|Function)} returnType The required type to return; can be a string for simple types or the\n * constructor for a complex type.\n * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object.\n */\n function callApi(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType) {\n var _this2 = this;\n var url = this.buildUrl(path, pathParams);\n var request = superagent__WEBPACK_IMPORTED_MODULE_0___default()(httpMethod, url);\n\n // override request callback to retry only required status codes\n request.oldCallback = request.callback;\n request.callback = function (err, res) {\n if (res && res.status) {\n var status = res.status;\n if (status >= 400 && !(status === 401 || status === 408 || status === 503 || status === 504)) {\n this._maxRetries = 0;\n }\n if (res.status === 401) {\n this.unset(\"Cookie\");\n this._maxRetries = 1;\n }\n }\n this.oldCallback(err, res);\n };\n\n // apply authentications\n _assertClassBrand(_ApiClient_brand, this, _applyAuthToRequest).call(this, request, authNames);\n\n // set query parameters\n if (httpMethod.toUpperCase() === 'GET' && this.cache === false) {\n queryParams['_'] = new Date().getTime();\n }\n request.query(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, queryParams));\n\n // set header parameters\n request.set(this.defaultHeaders).set(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, headerParams));\n if ((this.defaultHeaders['NTNX-Request-Id'] === null || this.defaultHeaders['NTNX-Request-Id'] === undefined) && (headerParams['NTNX-Request-Id'] === null || headerParams['NTNX-Request-Id'] === undefined)) {\n var requestId = (0,uuid__WEBPACK_IMPORTED_MODULE_7__[\"default\"])();\n request.set(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, {\n 'NTNX-Request-Id': requestId\n }));\n }\n\n // Set User-Agent header only if it is not a browser environment\n var isBrowser = typeof window !== \"undefined\" && typeof window.document !== \"undefined\";\n if (!isBrowser) {\n request.set(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, {\n 'User-Agent': 'Nutanix-lifecycle-js-client/4.0.1-beta.1'\n }));\n }\n\n // set requestAgent if it is set by user\n if (this.requestAgent) {\n request.agent(this.requestAgent);\n }\n\n // set request timeouts\n var timeoutOptions = {};\n timeoutOptions[\"response\"] = _assertClassBrand(_ApiClient_brand, this, _getValidTimeout).call(this, this.connectTimeout, _classPrivateFieldGet(_defaultConnectTimeout, this));\n timeoutOptions[\"deadline\"] = _assertClassBrand(_ApiClient_brand, this, _getValidTimeout).call(this, this.readTimeout, _classPrivateFieldGet(_defaultReadTimeout, this));\n request.timeout(timeoutOptions);\n var contentType = headerParams.hasOwnProperty(\"Content-Type\") ? headerParams[\"Content-Type\"] : _assertClassBrand(_ApiClient_brand, this, _jsonPreferredMime).call(this, contentTypes);\n if (contentType) {\n // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746)\n if (contentType != 'multipart/form-data') {\n request.type(contentType);\n }\n } else if (!request.header['Content-Type']) {\n request.type('application/json');\n }\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Request URL :\", httpMethod, url);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, _assertClassBrand(_ApiClient_brand, this, _flatten), \"Request Headers :\", typeof request.header === \"undefined\" ? \"\" : request.header);\n if (contentType === 'application/x-www-form-urlencoded') {\n request.send(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, formParams));\n } else if (contentType == 'multipart/form-data') {\n var _formParams = _assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, formParams);\n for (var key in _formParams) {\n if (_formParams.hasOwnProperty(key)) {\n if (_assertClassBrand(_ApiClient_brand, this, _isFileParam).call(this, _formParams[key])) {\n // file field\n request.attach(key, _formParams[key]);\n } else {\n request.field(key, _formParams[key]);\n }\n }\n }\n } else if (contentType === 'application/octet-stream' && bodyParam !== null && typeof bodyParam !== 'undefined' && typeof bodyParam.pipe === 'function') {\n // FILE UPLOAD SUPPORT\n\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Piping octet-stream request\");\n if (typeof bodyParam.pipe === 'function') {\n bodyParam.pipe(request);\n } else if (true) {\n var webstream;\n try {\n webstream = __webpack_require__(/*! stream/web */ \"?fdee\");\n } catch (err) {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, \"Error fetching steam/web\");\n }\n if (bodyParam instanceof webstream.ReadableStream) {\n bodyParam.pipeTo(new webstream.WritableStream({\n write: function write(chunk) {\n request.write(chunk);\n },\n close: function close() {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"READABLE STREAM CLOSED\");\n },\n abort: function abort(err) {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, \"READABLE STREAM ABORTED\");\n }\n }));\n } else {\n request.send(bodyParam);\n }\n } else {}\n return new Promise(function (resolve, reject) {\n request.on('error', function (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, null, \"Caught the following error :\", err);\n reject(err);\n }).on('response', function (response) {\n _assertClassBrand(_ApiClient_brand, _this2, _handleApiResponseForPromise).call(_this2, response, path, queryParams, returnType, resolve, reject);\n });\n });\n } else if (bodyParam) {\n request.send(bodyParam);\n }\n if (typeof returnType === 'Blob') {\n request.responseType('blob');\n } else if (returnType === 'String') {\n request.responseType('string');\n }\n _assertClassBrand(_ApiClient_brand, this, _attachCookies).call(this, request);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Request Body :\", typeof request._data === \"undefined\" ? \"\" : request._data);\n var accept = headerParams.hasOwnProperty(\"Accept\") ? headerParams[\"Accept\"] : _assertClassBrand(_ApiClient_brand, this, _jsonPreferredMime).call(this, accepts);\n var fetchStream = headerParams.hasOwnProperty(\"Accept\") && headerParams[\"Accept\"] === \"application/octet-stream\" || accepts.length == 1 && accepts[0] === \"application/octet-stream\";\n\n /*\n * 4xx 5xx auto generated responses always append 'application/json' to accepts array\n * octet-stream will be overlooked during jsonPreferredMime call, therefore additional check added\n */\n if (fetchStream) {\n // FILE DOWNLOAD SUPPORT\n\n request.accept('application/octet-stream');\n request.buffer(false);\n return new Promise(function (resolve, reject) {\n var tempFilename = null;\n\n /*\n * Browser environment :\n * uses Web Streams, downloadDestination expected to be a WritableStream (i.e. sink for response to be streamed to)\n * Node.js environment :\n * uses File System, downloadDestination expected to be a directory path, file is downloaded to this directory\n */\n\n if (isBrowser) {\n /*\n * Browser environment :\n * - fetch webstream module\n * - write file to WritableStream downloadDestination\n * - if webstream if not available or downloadDestination is not instance of WritableStream\n * code flow goes to main request.then execution\n */\n\n if (true) {\n var _webstream;\n try {\n _webstream = __webpack_require__(/*! stream/web */ \"?fdee\");\n } catch (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Error fetching steam/web\");\n }\n if (_this2.downloadDestination instanceof _webstream.WritableStream) {\n // Piping Data\n var writer = _this2.downloadDestination.getWriter();\n try {\n request.on('data', function (chunk) {\n writer.write(chunk);\n });\n } catch (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Issue while downloading file\", err);\n }\n\n // Receiving Response in case of 4xx 5xx\n request.on('response', function (response) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).INFO, null, \"Response Status :\", response.status);\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, _assertClassBrand(_ApiClient_brand, _this2, _flatten), \"Response Headers :\", response.headers);\n var data = _assertClassBrand(_ApiClient_brand, _this2, _deserialize).call(_this2, response, returnType);\n resolve({\n data: data,\n response: response\n });\n }).on('error', function (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Caught the following error :\", err);\n reject(err);\n });\n } else {\n var errMsg = \"Incompatible downloadDestination for Browser Environment, must be WritableStream\";\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, errMsg);\n reject(errMsg);\n }\n }\n } else {\n /*\n * Non Browser environment :\n * - stream data to file\n * - fetch response headers and body (if exists)\n * - return in case of error or after stream finish\n *\n * NOTE :\n * superagent does not provide access to headers before pipe, therefore response is piped to\n * file with temporary name, which is renamed to proper filename after Content-Disposition header is available\n */\n\n // Sanitizing downloadDestination\n if (_this2.downloadDestination === null || typeof _this2.downloadDestination === 'undefined' || typeof _this2.downloadDestination !== 'string') {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Incompatible downloadDestination must be string, is\", _this2.downloadDestination);\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Downloading file to base directory\");\n _this2.downloadDestination = \".\";\n }\n\n // Piping data to temporary file\n tempFilename = _this2.downloadDestination + '/downloaded_file_' + Date.now() + '.txt'; // temporary filename\n var stream = fs__WEBPACK_IMPORTED_MODULE_4___default().createWriteStream(tempFilename);\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).INFO, null, \"Streaming response to : \", tempFilename);\n request.pipe(stream);\n\n // Receiving response (json response for 4xx 5xx, or Component-Disposition header for successful pipe)\n request.on('response', function (response) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).INFO, null, \"Response Status :\", response.status);\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, _assertClassBrand(_ApiClient_brand, _this2, _flatten), \"Response Headers :\", response.headers);\n\n // deserialize response if any\n var data = _assertClassBrand(_ApiClient_brand, _this2, _deserialize).call(_this2, response, returnType);\n if (!response.ok) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, data);\n reject(_objectSpread(_objectSpread({}, response.error), {}, {\n data: data\n }));\n }\n\n // Fetch filename\n var filename = \"\";\n if (typeof response.headers['content-disposition'] !== 'undefined' && response.headers['content-disposition'] !== null) {\n var match = response.headers['content-disposition'].match( /*#__PURE__*/_wrapRegExp(/.*filename=\"(.*)\".*/, {\n filename: 1\n }));\n var filepath = path__WEBPACK_IMPORTED_MODULE_5___default().parse(match.groups['filename']);\n filename = _this2.downloadDestination + '/' + filepath.name + '_' + Date.now() + filepath.ext;\n if (typeof data === 'undefined') {\n data = new returnType();\n data.data = {\n \"path\": path__WEBPACK_IMPORTED_MODULE_5___default().parse(filename),\n $objectType: \"Path\"\n };\n }\n }\n stream.on('finish', function () {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).INFO, null, \"Finished streaming response\");\n if (filename.length !== 0) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).INFO, null, \"Content-Disposition header found [\", filename, \"] is final filename\");\n stream.close();\n fs__WEBPACK_IMPORTED_MODULE_4___default().rename(tempFilename, filename, function () {\n resolve({\n data: data,\n response: response\n });\n });\n } else {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Content-Disposition header not found [\", tempFilename, \"] is final filename\");\n resolve({\n data: data,\n response: response\n });\n }\n }).on('error', function (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Caught the following error :\", err);\n error.data = _assertClassBrand(_ApiClient_brand, _this2, _wrapErrorInResponse).call(_this2, error);\n reject(err);\n });\n }).on('error', function (error) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Caught the following error :\", err);\n if (error.response !== null && typeof error.response !== 'undefined') {\n error.data = _assertClassBrand(_ApiClient_brand, _this2, _deserialize).call(_this2, error.response, returnType);\n } else {\n error.data = _assertClassBrand(_ApiClient_brand, _this2, _wrapErrorInResponse).call(_this2, error);\n }\n reject(error);\n });\n }\n });\n } else if (accept) {\n request.accept(accept);\n }\n return new Promise(function (resolve, reject) {\n request.on('error', function (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, null, \"Caught the following error :\", err);\n }).retry(_this2.maxRetryAttempts, _this2.retryInterval, []).then(function (response) {\n _assertClassBrand(_ApiClient_brand, _this2, _handleApiResponseForPromise).call(_this2, response, path, queryParams, returnType, resolve, reject);\n })[\"catch\"](function (error) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, null, \"Caught error during the request!\");\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, error);\n if (error.response !== null && typeof error.response !== 'undefined') {\n error.data = _assertClassBrand(_ApiClient_brand, _this2, _deserialize).call(_this2, error.response, returnType);\n } else {\n error.data = _assertClassBrand(_ApiClient_brand, _this2, _wrapErrorInResponse).call(_this2, error);\n }\n reject(error);\n });\n });\n }\n }], [{\n key: \"getEtag\",\n value: function getEtag(object) {\n var etag = null;\n if (object !== undefined) {\n if (object.hasOwnProperty('$reserved') && object.get$Reserved() !== undefined) {\n etag = this.getValueForCaseInsensitiveKeyMatch(object.get$Reserved(), 'ETag');\n }\n if (etag == null && object.hasOwnProperty(\"data\") && object.getData().hasOwnProperty('$reserved') && object.getData().get$Reserved() !== undefined) {\n etag = this.getValueForCaseInsensitiveKeyMatch(object.getData().get$Reserved(), 'ETag');\n }\n }\n return etag;\n }\n }, {\n key: \"getValueForCaseInsensitiveKeyMatch\",\n value: function getValueForCaseInsensitiveKeyMatch(object, key) {\n if (object && key) {\n var searchKey = key.toLowerCase();\n var matchedKey = Object.keys(object).find(function (key) {\n return key.toLowerCase() === searchKey;\n });\n return matchedKey ? object[matchedKey] : null;\n }\n return null;\n }\n\n // Gets a valid timeout\n // 1. Sets to provided default timeout in case invalid value is passed\n // 2. Sets to default max value of 30 minutes in case a value of more than 30 minutes is passed\n }, {\n key: \"addEtagReferenceToHeader\",\n value: function addEtagReferenceToHeader(bodyParam, headerParams) {\n // set If-Match header from postBody $reserved map\n if (typeof bodyParam !== 'undefined' && bodyParam !== null) {\n if (bodyParam.hasOwnProperty('$reserved') && bodyParam.$reserved.hasOwnProperty('ETag')) {\n var eTagReference = bodyParam.$reserved['ETag'];\n if (typeof eTagReference !== 'undefined' && eTagReference !== null && eTagReference !== \"\") {\n headerParams['If-Match'] = eTagReference;\n }\n }\n }\n }\n\n /*\n * Parses an ISO-8601 string representation of a date value.\n * @param {String} str The date value as a string.\n * @returns {Date} The parsed date object.\n */\n }, {\n key: \"parseDate\",\n value: function parseDate(str) {\n return new Date(str);\n }\n\n /*\n * Parses queryParams and path to find a given query param value\n * @param {String} path The path given to callApi method\n * @param {Object.<String, Object>} queryParams The queryParams given to callApi method\n * @param {String} param Parameter name to look for\n * @param {String} defaultValue The default value for the missing param if not present\n * @returns {String} The value of given parameter\n */\n }, {\n key: \"parseQueryParam\",\n value: function parseQueryParam(path, queryParams, param, defaultValue) {\n var value = null;\n if (typeof queryParams !== 'undefined' && queryParams.hasOwnProperty(param)) {\n value = queryParams[param];\n }\n if (value === null && (typeof path === 'string' || path instanceof String)) {\n var escapedParam = param.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n var regexResult = path.match(new RegExp(\"\".concat(escapedParam, \"=([0-9]+)\")));\n if (regexResult) {\n value = regexResult[1];\n }\n }\n if (value === null) {\n value = defaultValue;\n }\n return value;\n }\n\n /**\n * Converts a value to the specified type.\n * @param {(String|Object)} data The data to convert, as a string or object.\n * @param {(String|Array.<String>|Object.<String, Object>|Function)} type The type to return. Pass a string for simple types\n * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To\n * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:\n * all properties on <code>data<code> will be converted to this type.\n * @returns An instance of the specified type or null or undefined if data is null or undefined.\n */\n }, {\n key: \"convertToType\",\n value: function convertToType(data, type) {\n if (data === null || data === undefined) return data;\n switch (type) {\n case 'Boolean':\n return Boolean(data);\n case 'Integer':\n return parseInt(data, 10);\n case 'Number':\n return parseFloat(data);\n case 'String':\n return String(data);\n case 'Date':\n return ApiClient.parseDate(String(data));\n case 'Blob':\n return data;\n default:\n if (type === Object) {\n // generic object, return directly\n return data;\n } else if (typeof type === 'function') {\n // for model type like: User\n return type.constructFromObject(data);\n } else if (Array.isArray(type)) {\n // for array type like: ['String']\n var itemType = type[0];\n return data.map(function (item) {\n return ApiClient.convertToType(item, itemType);\n });\n } else if (_typeof(type) === 'object') {\n // for plain object type like: {'String': 'Integer'}\n var keyType, valueType;\n for (var k in type) {\n if (type.hasOwnProperty(k)) {\n keyType = k;\n valueType = type[k];\n break;\n }\n }\n var result = {};\n for (var k in data) {\n if (data.hasOwnProperty(k)) {\n var key = ApiClient.convertToType(k, keyType);\n var value = ApiClient.convertToType(data[k], valueType);\n result[key] = value;\n }\n }\n return result;\n } else {\n // for unknown type, return the data directly\n return data;\n }\n }\n }\n\n /**\n * Constructs a new map or array model from REST data.\n * @param data {Object|Array} The REST data.\n * @param obj {Object|Array} The target object or array.\n */\n }, {\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj, itemType) {\n if (Array.isArray(data)) {\n for (var i = 0; i < data.length; i++) {\n if (data.hasOwnProperty(i)) obj[i] = ApiClient.convertToType(data[i], itemType);\n }\n } else {\n for (var k in data) {\n if (data.hasOwnProperty(k)) obj[k] = ApiClient.convertToType(data[k], itemType);\n }\n }\n }\n }]);\n}();\n\n/**\n* The default API client implementation.\n* @type {ApiClient}\n* @memberOf ApiClient\n*/\n_ApiClient = ApiClient;\nfunction _isJsonMime(contentType) {\n return Boolean(contentType != null && contentType.match(/^application\\/json(;.*)?$/i));\n}\n/*\n* Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.\n* @param {Array.<String>} contentTypes\n* @returns {String} The chosen content type, preferring JSON.\n*/\nfunction _jsonPreferredMime(contentTypes) {\n for (var i = 0; i < contentTypes.length; i++) {\n if (_assertClassBrand(_ApiClient_brand, this, _isJsonMime).call(this, contentTypes[i])) {\n return contentTypes[i];\n }\n }\n return contentTypes[0];\n}\n/*\n* Checks whether the given parameter value represents file-like content.\n* @param param The parameter to check.\n* @returns {Boolean} <code>true</code> if <code>param</code> represents a file.\n*/\nfunction _isFileParam(param) {\n // fs.ReadStream in Node.js and Electron (but not in runtime like browserify)\n if (true) {\n var _fs;\n try {\n _fs = __webpack_require__(/*! fs */ \"?e583\");\n } catch (err) {}\n if (_fs && _fs.ReadStream && param instanceof _fs.ReadStream) {\n return true;\n }\n }\n\n // Buffer in Node.js\n if (typeof Buffer === 'function' && param instanceof Buffer) {\n return true;\n }\n\n // Blob in browser\n if (typeof buffer__WEBPACK_IMPORTED_MODULE_6__.Blob === 'function' && param instanceof buffer__WEBPACK_IMPORTED_MODULE_6__.Blob) {\n return true;\n }\n\n // File in browser (it seems File object is also instance of Blob, but keep this for safe)\n if (typeof File === 'function' && param instanceof File) {\n return true;\n }\n return false;\n}\n/*\n* Normalizes parameter values:\n* <ul>\n* <li>remove nils</li>\n* <li>keep files and arrays</li>\n* <li>format to string with `paramToString` for other cases</li>\n* </ul>\n* @param {Object.<String, Object>} params The parameters as object properties.\n* @returns {Object.<String, Object>} normalized parameters.\n*/\nfunction _normalizeParams(params) {\n var newParams = {};\n for (var key in params) {\n if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) {\n var value = params[key];\n if (_assertClassBrand(_ApiClient_brand, this, _isFileParam).call(this, value) || Array.isArray(value)) {\n newParams[key] = value;\n } else {\n newParams[key] = this.paramToString(value);\n }\n }\n }\n return newParams;\n}\nfunction _applyAuthToRequest(request, authNames) {\n var _this3 = this;\n authNames.forEach(function (authName) {\n var auth = _this3.authentications[authName];\n switch (auth.type) {\n case 'basic':\n if (auth.username || auth.password) {\n request.auth(auth.username || '', auth.password || '');\n } else if (_this3.username || _this3.password) {\n request.auth(_this3.username || '', _this3.password || '');\n }\n _assertClassBrand(_ApiClient_brand, _this3, _log).call(_this3, _classPrivateFieldGet(_LOG_LEVEL, _this3).DEBUG, null, \"Basic Auth applied to request\");\n break;\n case 'apiKey':\n if (auth.apiKey) {\n var data = {};\n if (auth.apiKeyPrefix) {\n data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey;\n } else {\n data[auth.name] = auth.apiKey;\n }\n if (auth['in'] === 'header') {\n request.set(data);\n } else {\n request.query(data);\n }\n }\n _assertClassBrand(_ApiClient_brand, _this3, _log).call(_this3, _classPrivateFieldGet(_LOG_LEVEL, _this3).DEBUG, null, \"apiKey applied to request\");\n break;\n case 'oauth2':\n if (auth.accessToken) {\n request.set({\n 'Authorization': 'Bearer ' + auth.accessToken\n });\n }\n _assertClassBrand(_ApiClient_brand, _this3, _log).call(_this3, _classPrivateFieldGet(_LOG_LEVEL, _this3).DEBUG, null, \"oauth2 applied to request\");\n break;\n default:\n _assertClassBrand(_ApiClient_brand, _this3, _log).call(_this3, _classPrivateFieldGet(_LOG_LEVEL, _this3).ERROR, null, \"Unknown authentication type:\", auth.type);\n throw new Error('Unknown authentication type: ' + auth.type);\n }\n });\n}\n/**\n* Wraps errors in generic response format.\n* @param {Object} error object encountered during request.\n* @returns an error object with wrapped response within error.data .\n*/\nfunction _wrapErrorInResponse(error) {\n var response = {\n data: {},\n metadata: {}\n };\n response.data.status = error.status;\n response.data.message = error.message;\n}\n/**\n* Deserializes an HTTP response body into a value of the specified type.\n* @param {Object} response A SuperAgent response object.\n* @param {(String|Array.<String>|Object.<String, Object>|Function)} returnType The type to return. Pass a string for simple types\n* or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To\n* return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:\n* all properties on <code>data<code> will be converted to this type.\n* @returns A value of the specified type.\n*/\nfunction _deserialize(response, returnType) {\n if (response == null || returnType == null || response.status == 204) {\n return null;\n }\n\n // Rely on SuperAgent for parsing response body.\n // See http://visionmedia.github.io/superagent/#parsing-response-bodies\n var data = response.body;\n if (data == null || _typeof(data) === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length) {\n // SuperAgent does not always produce a body; use the unparsed response as a fallback\n data = response.text;\n }\n return _ApiClient.convertToType(data, returnType);\n}\n/**\n* Set pagination data if response is a Paginable object\n* @param {Object} data The response data already passed through deserialize\n* @param {String} path The path given to callApi method\n* @param {Object.<String, Object>} queryParams The queryParams given to callApi method\n*/\nfunction _paginateIfNeeded(data, path, queryParams) {\n // If response is not a Paginable instance, nothing to do\n if (!(data instanceof _Paginable__WEBPACK_IMPORTED_MODULE_1__[\"default\"])) {\n return;\n }\n // Retrieve current page number, defaults to 0\n var page = parseInt(this.constructor.parseQueryParam(path, queryParams, '$page', \"0\"), 10);\n // Retrieve current limit (results per page) number, defaults to 50\n var resultsPerPage = parseInt(this.constructor.parseQueryParam(path, queryParams, '$limit', \"50\"), 10);\n\n // Populate pagination data\n data.populatePaginationMetadata(this,\n // current ApiClient instance\n page, resultsPerPage);\n}\nfunction _getValidTimeout(timeout, defaultTimeout) {\n if (timeout <= 0) {\n timeout = defaultTimeout;\n } else if (timeout > _classPrivateFieldGet(_defaultMaxTimeout, this)) {\n timeout = _classPrivateFieldGet(_defaultMaxTimeout, this);\n }\n return timeout;\n}\n// If enabled, update cookie information to reuse in subsequent requests for a valid response\nfunction _updateCookies(response) {\n if (response.hasOwnProperty(\"headers\") && response.headers.hasOwnProperty(\"set-cookie\")) {\n var finalCookie = \"\";\n var cookieList = response.headers[\"set-cookie\"];\n if (cookieList.length > 0) {\n // add all cookies separated by ;\n var _iterator2 = _createForOfIteratorHelper(cookieList),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var cookieItem = _step2.value;\n cookieItem = cookieItem.split(\";\")[0];\n if (cookieItem.includes(\"=\")) {\n cookieItem.trim();\n finalCookie = finalCookie.concat(cookieItem).concat(\";\");\n }\n }\n // remove trailing ;\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n if (finalCookie !== \"\") {\n finalCookie = finalCookie.substr(0, finalCookie.length - 1);\n }\n }\n _classPrivateFieldSet(_cookie, this, finalCookie);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Retained cookie :\", finalCookie);\n } else {\n _classPrivateFieldSet(_cookie, this, null);\n }\n}\n// If enabled, attach saved cookies to request\nfunction _attachCookies(request) {\n if (_classPrivateFieldGet(_cookie, this) != null) {\n request.set(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, {\n 'Cookie': _classPrivateFieldGet(_cookie, this)\n }));\n }\n}\nfunction _log(level, mapper) {\n for (var _len = arguments.length, messages = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n messages[_key - 2] = arguments[_key];\n }\n // Set default log level to INFO\n if (_typeof(level) !== \"object\" || !(\"key\" in level) || !(\"value\" in level) || _typeof(level[\"value\"]) !== \"symbol\") {\n level = _classPrivateFieldGet(_LOG_LEVEL, this).INFO;\n }\n if (!_assertClassBrand(_ApiClient_brand, this, _skipLogging).call(this, level)) {\n // Preprocess message to prefix with timestamp and log level\n messages = messages.map(function (message) {\n return typeof message === \"string\" ? message : mapper ? mapper(message) : JSON.stringify(message);\n });\n var message = messages.join(' ');\n message = _assertClassBrand(_ApiClient_brand, this, _getLocalDateTime).call(this) + ' ' + level.key + ' - ' + message;\n if (typeof _classPrivateFieldGet(_logger, this) !== \"undefined\" && _classPrivateFieldGet(_logger, this) !== null && typeof _classPrivateFieldGet(_logger, this).log === 'function') {\n _classPrivateFieldGet(_logger, this).log(message);\n } else {\n console.log(message);\n }\n }\n}\nfunction _skipLogging(level) {\n // Skip logging if log level is DEBUG but debug is not enabled.\n return !this.debug && level === _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG;\n}\nfunction _getLocalDateTime() {\n // Current epoch UTC time in milliseconds\n var epochTime = Date.now();\n\n // \"getTimezoneOffset\" returns the difference, in minutes, between a date as evaluated in the UTC time zone,\n // and the same date as evaluated in the local time zone.\n // if you are in timezone UTC-1, outputs 60\n // if you are in timezone UTC+3, outputs -180\n var timezoneOffsetInMinutes = new Date().getTimezoneOffset();\n var timezoneOffsetInMilliseconds = timezoneOffsetInMinutes * 60 * 1000;\n\n // Create a new date with adjusted epoch time based on timezone offset\n var date = new Date(epochTime - timezoneOffsetInMilliseconds);\n return date.toISOString().slice(0, 23);\n}\n// A mapper function to flatten a simple non-nested (key:value) object to string\nfunction _flatten(obj) {\n if (_typeof(obj) !== \"object\") {\n return obj;\n }\n var output = '\\n';\n if (obj) {\n Object.keys(obj).forEach(function (e) {\n output += e + '=[' + obj[e] + ']\\n';\n });\n }\n return output === '\\n' ? obj : output;\n}\n// handle and deserialize received response\nfunction _handleApiResponseForPromise(response, path, queryParams, returnType, resolve, reject) {\n try {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Response Status :\", response.status);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, _assertClassBrand(_ApiClient_brand, this, _flatten), \"Response Headers :\", response.headers);\n _assertClassBrand(_ApiClient_brand, this, _updateCookies).call(this, response || {});\n var data = _assertClassBrand(_ApiClient_brand, this, _deserialize).call(this, response, returnType);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Response Body :\", data);\n if (response.ok) {\n this.addEtagToReservedMap(response, data);\n _assertClassBrand(_ApiClient_brand, this, _paginateIfNeeded).call(this, data, path, queryParams);\n resolve({\n data: data,\n response: response\n });\n } else {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, data);\n reject(_objectSpread(_objectSpread({}, response.error), {}, {\n data: data\n }));\n }\n } catch (err) {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Caught error while processing response!\");\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, err);\n err.data = _assertClassBrand(_ApiClient_brand, this, _wrapErrorInResponse).call(this, err);\n reject(err);\n }\n}\nApiClient.instance = new ApiClient();\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/ApiClient.js?");
|
|
222
|
+
|
|
223
|
+
/***/ }),
|
|
224
|
+
|
|
225
|
+
/***/ "./target/generated-sources/swagger/src/Paginable.js":
|
|
226
|
+
/*!***********************************************************!*\
|
|
227
|
+
!*** ./target/generated-sources/swagger/src/Paginable.js ***!
|
|
228
|
+
\***********************************************************/
|
|
229
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
230
|
+
|
|
231
|
+
"use strict";
|
|
232
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Paginable)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n/**\n* A model that represents a paginable response from a list endpoint.\n* @module Paginable\n* @version 4.0.1-beta-1\n*/\nvar Paginable = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>Paginable</code>.\n * @alias module:Paginable\n * @class\n */\n function Paginable() {\n _classCallCheck(this, Paginable);\n }\n\n /**\n * Constructs a <code>Paginable</code> from a plain Javascript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} metadata The plain Javascript object bearing properties of interest.\n * @param {module:Paginable} obj Optional instance to populate.\n * @return {module:Paginable} The populated <code>Paginable</code> instance.\n */\n return _createClass(Paginable, [{\n key: \"getFirstPage\",\n value:\n /**\n * Get the first page of the set, if any\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable\n * or rejects with error message if any issue (link not available, ...)\n */\n function getFirstPage() {\n if (this.isFirstPage()) {\n return Promise.reject('Cannot navigate to first page : already on first page');\n }\n if (this.linkFirst === null) {\n return Promise.reject('No link to first page provided in previous API response');\n }\n return this._getLink(this.linkFirst);\n }\n\n /**\n * Get the previous page of the set, if any\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable\n * or rejects with error message if any issue (link not available, ...)\n */\n }, {\n key: \"getPrevPage\",\n value: function getPrevPage() {\n if (this.isFirstPage()) {\n return Promise.reject('Cannot navigate to previous page : already on first page');\n }\n if (this.linkPrev === null) {\n return Promise.reject('No link to previous page provided in previous API response');\n }\n return this._getLink(this.linkPrev);\n }\n\n /**\n * Get the next page of the set, if any\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable\n * or rejects with error message if any issue (link not available, ...)\n */\n }, {\n key: \"getNextPage\",\n value: function getNextPage() {\n if (this.isLastPage()) {\n return Promise.reject('Cannot navigate to next page : already on last page');\n }\n if (this.linkNext === null) {\n return Promise.reject('No link to next page provided in previous API response');\n }\n return this._getLink(this.linkNext);\n }\n\n /**\n * Get the last page of the set, if any\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable\n * or rejects with error message if any issue (link not available, ...)\n */\n }, {\n key: \"getLastPage\",\n value: function getLastPage() {\n if (this.isLastPage()) {\n return Promise.reject('Cannot navigate to last page : already on last page');\n }\n if (this.linkLast === null) {\n return Promise.reject('No link to last page provided in previous API response');\n }\n return this._getLink(this.linkLast);\n }\n\n /**\n * Get the current page number\n * @return {Number} the current page number, starts at 0\n */\n }, {\n key: \"currentPage\",\n value: function currentPage() {\n if (this.page === null) {\n return 0;\n }\n return this.page;\n }\n\n /**\n * Get the total number of pages\n * @return {Number} the total number of pages available\n */\n }, {\n key: \"countPages\",\n value: function countPages() {\n if (this.resultsPerPage === null || this.resultsTotal === null || this.resultsPerPage === 0) {\n return 1;\n }\n return Math.ceil(this.resultsTotal / this.resultsPerPage);\n }\n\n /**\n * Check if current page is first page\n * @return {Boolean} True if current page is 0, false otherwise\n */\n }, {\n key: \"isFirstPage\",\n value: function isFirstPage() {\n return this.currentPage() === 0;\n }\n\n /**\n * Check if current page is last page\n * @return {Boolean} True if current page is countPages()-1, false otherwise\n */\n }, {\n key: \"isLastPage\",\n value: function isLastPage() {\n return this.currentPage() === this.countPages() - 1;\n }\n }, {\n key: \"populatePaginationMetadata\",\n value: function populatePaginationMetadata(apiClient, page, resultsPerPage) {\n this.apiClient = apiClient;\n this.page = page;\n this.resultsPerPage = resultsPerPage;\n }\n }, {\n key: \"_getLink\",\n value: function _getLink(path) {\n // If no ApiClient defined, instantiate default one\n if (this.apiClient === null) {\n this.apiClient = _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.instance;\n }\n var postBody = {};\n var pathParams = {};\n var queryParams = {};\n var headerParams = {};\n var formParams = {};\n var authNames = [];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = this.constructor;\n return this.apiClient.callApi(path, 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(metadata, obj) {\n if (metadata) {\n obj = obj || new Paginable();\n if (metadata.hasOwnProperty('links') && metadata['links'] !== null && metadata['links'] !== undefined) {\n var _iterator = _createForOfIteratorHelper(metadata['links']),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var link = _step.value;\n if (link.hasOwnProperty('rel') && link.hasOwnProperty('href')) {\n switch (link['rel']) {\n case 'first':\n obj.linkFirst = link['href'];\n break;\n case 'prev':\n obj.linkPrev = link['href'];\n break;\n case 'next':\n obj.linkNext = link['href'];\n break;\n case 'last':\n obj.linkLast = link['href'];\n break;\n default:\n break;\n }\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n if (metadata.hasOwnProperty('totalAvailableResults')) {\n obj.resultsTotal = metadata['totalAvailableResults'];\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n* The link to first page, if any\n* @type {String}\n* @memberOf Paginable\n*/\n\nPaginable.prototype.linkFirst = null;\n\n/**\n* The link to previous page, if any\n* @type {String}\n* @memberOf Paginable\n*/\nPaginable.prototype.linkPrev = null;\n\n/**\n* The link to next page, if any\n* @type {String}\n* @memberOf Paginable\n*/\nPaginable.prototype.linkNext = null;\n\n/**\n* The link to last page, if any\n* @type {String}\n* @memberOf Paginable\n*/\nPaginable.prototype.linkLast = null;\n\n/**\n* The ApiClient instance to use for further query\n* @type {ApiClient}\n* @memberOf Paginable\n*/\nPaginable.prototype.apiClient = null;\n\n/**\n* Current page number\n* @type {Number}\n* @memberOf Paginable\n*/\nPaginable.prototype.page = null;\n\n/**\n* Number of results per page\n* @type {Number}\n* @memberOf Paginable\n*/\nPaginable.prototype.resultsPerPage = null;\n\n/**\n* Number of total results available\n* @type {Number}\n* @memberOf Paginable\n*/\nPaginable.prototype.resultsTotal = null;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/Paginable.js?");
|
|
233
|
+
|
|
234
|
+
/***/ }),
|
|
235
|
+
|
|
236
|
+
/***/ "./target/generated-sources/swagger/src/apis/config-endpoints.js":
|
|
237
|
+
/*!***********************************************************************!*\
|
|
238
|
+
!*** ./target/generated-sources/swagger/src/apis/config-endpoints.js ***!
|
|
239
|
+
\***********************************************************************/
|
|
240
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
241
|
+
|
|
242
|
+
"use strict";
|
|
243
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ConfigApi: () => (/* binding */ ConfigApi)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_GetConfigApiResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/lifecycle/v4/resources/GetConfigApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetConfigApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_UpdateConfigApiResponse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/lifecycle/v4/resources/UpdateConfigApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/UpdateConfigApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_Config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/lifecycle/v4/resources/Config */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Config.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * Config service.\n * @version 4.0.1-beta-1\n * @class ConfigApi\n */\nvar _headersToSkip = /*#__PURE__*/new WeakMap();\nvar ConfigApi = /*#__PURE__*/function () {\n /**\n * Constructs a new ConfigApi. \n * @alias module:api/ConfigApi\n * @class\n * @param {module:ApiClient} [apiClient] Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n function ConfigApi(apiClient) {\n _classCallCheck(this, ConfigApi);\n _classPrivateFieldInitSpec(this, _headersToSkip, void 0);\n this.apiClient = apiClient || _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.instance;\n _classPrivateFieldSet(_headersToSkip, this, new Set());\n _classPrivateFieldGet(_headersToSkip, this).add('authorization');\n _classPrivateFieldGet(_headersToSkip, this).add('cookie');\n _classPrivateFieldGet(_headersToSkip, this).add('host');\n _classPrivateFieldGet(_headersToSkip, this).add('user-agent');\n }\n\n /**\n * Get the present LCM configuration.\n * Get LCM configuration.\n * @param {Object} opts Optional parameters defined for the operation\n * @param { String } opts.xClusterId Cluster uuid on which the resource is present or operation is being performed.\n * @param {Object} args Additional Arguments\n * @return {Promise<GetConfigApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetConfigApiResponse } and HTTP response\n */\n return _createClass(ConfigApi, [{\n key: \"getConfig\",\n value: function getConfig(opts) {\n var _this = this;\n var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};\n opts = opts || {};\n var postBody = null;\n var pathParams = {};\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({\n 'X-Cluster-Id': opts['X-Cluster-Id']\n }, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_lifecycle_v4_resources_GetConfigApiResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n return this.apiClient.callApi('/api/lifecycle/v4.0.b1/resources/config', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Change the LCM configuration.\n * Update LCM configuration.\n * @param { Partial<Config> } body specification\n * @param {Object} opts Optional parameters defined for the operation\n * @param { lifecycle.v4.resources.Config } opts.body \n * @param { String } opts.xClusterId Cluster uuid on which the resource is present or operation is being performed.\n * @param {Object} args Additional Arguments\n * @return {Promise<UpdateConfigApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateConfigApiResponse } and HTTP response\n */\n }, {\n key: \"updateConfig\",\n value: function updateConfig(body, opts) {\n var _this2 = this;\n var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};\n opts = opts || {};\n var postBody = null;\n if (body instanceof _models_lifecycle_v4_resources_Config__WEBPACK_IMPORTED_MODULE_3__[\"default\"] && typeof body.toJson === 'function') {\n postBody = body.toJson();\n } else {\n postBody = body;\n }\n var pathParams = {};\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({\n 'X-Cluster-Id': opts['X-Cluster-Id']\n }, headersToInclude);\n var formParams = {};\n _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.addEtagReferenceToHeader(body, headerParams);\n var authNames = ['basicAuthScheme'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json'];\n var returnType = _models_lifecycle_v4_resources_UpdateConfigApiResponse__WEBPACK_IMPORTED_MODULE_2__[\"default\"];\n return this.apiClient.callApi('/api/lifecycle/v4.0.b1/resources/config', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n }], [{\n key: \"ApiClient\",\n get:\n /**\n * Make the default {@link ApiClient} class available for developers to be able to extend it and bring\n * their own fetch methods into the SDK\n */\n function get() {\n return _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient;\n }\n }]);\n}();\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/apis/config-endpoints.js?");
|
|
244
|
+
|
|
245
|
+
/***/ }),
|
|
246
|
+
|
|
247
|
+
/***/ "./target/generated-sources/swagger/src/apis/entities-endpoints.js":
|
|
248
|
+
/*!*************************************************************************!*\
|
|
249
|
+
!*** ./target/generated-sources/swagger/src/apis/entities-endpoints.js ***!
|
|
250
|
+
\*************************************************************************/
|
|
251
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
252
|
+
|
|
253
|
+
"use strict";
|
|
254
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EntitiesApi: () => (/* binding */ EntitiesApi)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_GetEntityByIdApiResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/lifecycle/v4/resources/GetEntityByIdApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_ListEntitiesApiResponse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/lifecycle/v4/resources/ListEntitiesApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ListEntitiesApiResponse.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Entities service.\n * @version 4.0.1-beta-1\n * @class EntitiesApi\n */\nvar _headersToSkip = /*#__PURE__*/new WeakMap();\nvar EntitiesApi = /*#__PURE__*/function () {\n /**\n * Constructs a new EntitiesApi. \n * @alias module:api/EntitiesApi\n * @class\n * @param {module:ApiClient} [apiClient] Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n function EntitiesApi(apiClient) {\n _classCallCheck(this, EntitiesApi);\n _classPrivateFieldInitSpec(this, _headersToSkip, void 0);\n this.apiClient = apiClient || _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.instance;\n _classPrivateFieldSet(_headersToSkip, this, new Set());\n _classPrivateFieldGet(_headersToSkip, this).add('authorization');\n _classPrivateFieldGet(_headersToSkip, this).add('cookie');\n _classPrivateFieldGet(_headersToSkip, this).add('host');\n _classPrivateFieldGet(_headersToSkip, this).add('user-agent');\n }\n\n /**\n * Get details about an LCM entity.\n * Get details about an LCM entity.\n * @param { String } extId ExtId of the LCM entity.\n * @param {Object} args Additional Arguments\n * @return {Promise<GetEntityByIdApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetEntityByIdApiResponse } and HTTP response\n */\n return _createClass(EntitiesApi, [{\n key: \"getEntityById\",\n value: function getEntityById(extId) {\n var _this = this;\n var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};\n var postBody = null;\n // verify the required parameter 'extId' is set\n if (typeof extId === 'undefined' || extId === null) {\n throw new Error(\"Missing the required parameter 'extId' when calling getEntityById\");\n }\n var pathParams = {\n 'extId': extId\n };\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_lifecycle_v4_resources_GetEntityByIdApiResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n return this.apiClient.callApi('/api/lifecycle/v4.0.b1/resources/entities/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Get details about all LCM entities.\n * Query list of LCM entities.\n * @param {Object} opts Optional parameters defined for the operation\n * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.\n * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.\n * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>\n * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>\n * The filter can be applied to the following fields:<br>\n * - clusterExtId<br>\n * - entityClass<br>\n * - entityModel<br>\n * - entityType\n * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>\n * The orderby can be applied to the following fields:<br>\n * - entityClass<br>\n * - entityModel<br>\n * - entityType\n * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.\n - entityClass\n - entityModel\n - entityType\n * @param {Object} args Additional Arguments\n * @return {Promise<ListEntitiesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListEntitiesApiResponse } and HTTP response\n */\n }, {\n key: \"listEntities\",\n value: function listEntities(opts) {\n var _this2 = this;\n var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};\n opts = opts || {};\n var postBody = null;\n var pathParams = {};\n var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {\n '$page': opts['$page']\n } : {}), opts.hasOwnProperty('$limit') ? {\n '$limit': opts['$limit']\n } : {}), opts.hasOwnProperty('$filter') ? {\n '$filter': opts['$filter']\n } : {}), opts.hasOwnProperty('$orderby') ? {\n '$orderby': opts['$orderby']\n } : {}), opts.hasOwnProperty('$select') ? {\n '$select': opts['$select']\n } : {});\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_lifecycle_v4_resources_ListEntitiesApiResponse__WEBPACK_IMPORTED_MODULE_2__[\"default\"];\n return this.apiClient.callApi('/api/lifecycle/v4.0.b1/resources/entities', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n }], [{\n key: \"ApiClient\",\n get:\n /**\n * Make the default {@link ApiClient} class available for developers to be able to extend it and bring\n * their own fetch methods into the SDK\n */\n function get() {\n return _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient;\n }\n }]);\n}();\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/apis/entities-endpoints.js?");
|
|
255
|
+
|
|
256
|
+
/***/ }),
|
|
257
|
+
|
|
258
|
+
/***/ "./target/generated-sources/swagger/src/apis/images-endpoints.js":
|
|
259
|
+
/*!***********************************************************************!*\
|
|
260
|
+
!*** ./target/generated-sources/swagger/src/apis/images-endpoints.js ***!
|
|
261
|
+
\***********************************************************************/
|
|
262
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
263
|
+
|
|
264
|
+
"use strict";
|
|
265
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ImagesApi: () => (/* binding */ ImagesApi)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_ListImagesApiResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/lifecycle/v4/resources/ListImagesApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ListImagesApiResponse.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n/**\n * Images service.\n * @version 4.0.1-beta-1\n * @class ImagesApi\n */\nvar _headersToSkip = /*#__PURE__*/new WeakMap();\nvar ImagesApi = /*#__PURE__*/function () {\n /**\n * Constructs a new ImagesApi. \n * @alias module:api/ImagesApi\n * @class\n * @param {module:ApiClient} [apiClient] Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n function ImagesApi(apiClient) {\n _classCallCheck(this, ImagesApi);\n _classPrivateFieldInitSpec(this, _headersToSkip, void 0);\n this.apiClient = apiClient || _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.instance;\n _classPrivateFieldSet(_headersToSkip, this, new Set());\n _classPrivateFieldGet(_headersToSkip, this).add('authorization');\n _classPrivateFieldGet(_headersToSkip, this).add('cookie');\n _classPrivateFieldGet(_headersToSkip, this).add('host');\n _classPrivateFieldGet(_headersToSkip, this).add('user-agent');\n }\n\n /**\n * Get the list of downloaded LCM images.\n * Get the list of downloaded LCM images.\n * @param {Object} opts Optional parameters defined for the operation\n * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.\n * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.\n * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>\n * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>\n * The filter can be applied to the following fields:<br>\n * - clusterExtId<br>\n * - entityClass<br>\n * - entityModel<br>\n * - entityVersion\n * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>\n * The orderby can be applied to the following fields:<br>\n * - entityClass<br>\n * - entityModel<br>\n * - entityVersion\n * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.\n - entityClass\n - entityModel\n - entityVersion\n * @param {Object} args Additional Arguments\n * @return {Promise<ListImagesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListImagesApiResponse } and HTTP response\n */\n return _createClass(ImagesApi, [{\n key: \"listImages\",\n value: function listImages(opts) {\n var _this = this;\n var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};\n opts = opts || {};\n var postBody = null;\n var pathParams = {};\n var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {\n '$page': opts['$page']\n } : {}), opts.hasOwnProperty('$limit') ? {\n '$limit': opts['$limit']\n } : {}), opts.hasOwnProperty('$filter') ? {\n '$filter': opts['$filter']\n } : {}), opts.hasOwnProperty('$orderby') ? {\n '$orderby': opts['$orderby']\n } : {}), opts.hasOwnProperty('$select') ? {\n '$select': opts['$select']\n } : {});\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_lifecycle_v4_resources_ListImagesApiResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n return this.apiClient.callApi('/api/lifecycle/v4.0.b1/resources/images', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n }], [{\n key: \"ApiClient\",\n get:\n /**\n * Make the default {@link ApiClient} class available for developers to be able to extend it and bring\n * their own fetch methods into the SDK\n */\n function get() {\n return _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient;\n }\n }]);\n}();\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/apis/images-endpoints.js?");
|
|
266
|
+
|
|
267
|
+
/***/ }),
|
|
268
|
+
|
|
269
|
+
/***/ "./target/generated-sources/swagger/src/apis/inventory-endpoints.js":
|
|
270
|
+
/*!**************************************************************************!*\
|
|
271
|
+
!*** ./target/generated-sources/swagger/src/apis/inventory-endpoints.js ***!
|
|
272
|
+
\**************************************************************************/
|
|
273
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
274
|
+
|
|
275
|
+
"use strict";
|
|
276
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ InventoryApi: () => (/* binding */ InventoryApi)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\n/* harmony import */ var _models_lifecycle_v4_operations_InventoryApiResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/lifecycle/v4/operations/InventoryApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/operations/InventoryApiResponse.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n/**\n * Inventory service.\n * @version 4.0.1-beta-1\n * @class InventoryApi\n */\nvar _headersToSkip = /*#__PURE__*/new WeakMap();\nvar InventoryApi = /*#__PURE__*/function () {\n /**\n * Constructs a new InventoryApi. \n * @alias module:api/InventoryApi\n * @class\n * @param {module:ApiClient} [apiClient] Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n function InventoryApi(apiClient) {\n _classCallCheck(this, InventoryApi);\n _classPrivateFieldInitSpec(this, _headersToSkip, void 0);\n this.apiClient = apiClient || _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.instance;\n _classPrivateFieldSet(_headersToSkip, this, new Set());\n _classPrivateFieldGet(_headersToSkip, this).add('authorization');\n _classPrivateFieldGet(_headersToSkip, this).add('cookie');\n _classPrivateFieldGet(_headersToSkip, this).add('host');\n _classPrivateFieldGet(_headersToSkip, this).add('user-agent');\n }\n\n /**\n * Perform an inventory operation to identify/scan entities on the cluster that can be updated through LCM.\n * Perform an LCM inventory operation.\n * @param {Object} opts Optional parameters defined for the operation\n * @param { String } opts.xClusterId Cluster uuid on which the resource is present or operation is being performed.\n * @param {Object} args Additional Arguments\n * @return {Promise<InventoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link InventoryApiResponse } and HTTP response\n */\n return _createClass(InventoryApi, [{\n key: \"performInventory\",\n value: function performInventory(opts) {\n var _this = this;\n var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};\n opts = opts || {};\n var postBody = null;\n var pathParams = {};\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({\n 'X-Cluster-Id': opts['X-Cluster-Id']\n }, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_lifecycle_v4_operations_InventoryApiResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n return this.apiClient.callApi('/api/lifecycle/v4.0.b1/operations/$actions/inventory', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n }], [{\n key: \"ApiClient\",\n get:\n /**\n * Make the default {@link ApiClient} class available for developers to be able to extend it and bring\n * their own fetch methods into the SDK\n */\n function get() {\n return _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient;\n }\n }]);\n}();\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/apis/inventory-endpoints.js?");
|
|
277
|
+
|
|
278
|
+
/***/ }),
|
|
279
|
+
|
|
280
|
+
/***/ "./target/generated-sources/swagger/src/apis/notifications-endpoints.js":
|
|
281
|
+
/*!******************************************************************************!*\
|
|
282
|
+
!*** ./target/generated-sources/swagger/src/apis/notifications-endpoints.js ***!
|
|
283
|
+
\******************************************************************************/
|
|
284
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
285
|
+
|
|
286
|
+
"use strict";
|
|
287
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ NotificationsApi: () => (/* binding */ NotificationsApi)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_GetNotificationsByIdApiResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/lifecycle/v4/resources/GetNotificationsByIdApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_operations_ComputeNotificationsApiResponse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/lifecycle/v4/operations/ComputeNotificationsApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_common_EntityUpdateSpec__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/lifecycle/v4/common/EntityUpdateSpec */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityUpdateSpec.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * Notifications service.\n * @version 4.0.1-beta-1\n * @class NotificationsApi\n */\nvar _headersToSkip = /*#__PURE__*/new WeakMap();\nvar NotificationsApi = /*#__PURE__*/function () {\n /**\n * Constructs a new NotificationsApi. \n * @alias module:api/NotificationsApi\n * @class\n * @param {module:ApiClient} [apiClient] Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n function NotificationsApi(apiClient) {\n _classCallCheck(this, NotificationsApi);\n _classPrivateFieldInitSpec(this, _headersToSkip, void 0);\n this.apiClient = apiClient || _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.instance;\n _classPrivateFieldSet(_headersToSkip, this, new Set());\n _classPrivateFieldGet(_headersToSkip, this).add('authorization');\n _classPrivateFieldGet(_headersToSkip, this).add('cookie');\n _classPrivateFieldGet(_headersToSkip, this).add('host');\n _classPrivateFieldGet(_headersToSkip, this).add('user-agent');\n }\n\n /**\n * Compute LCM upgrade plan and notifications for a set of entities.\n * Compute LCM upgrade plan and notifications, given a set of entities to update along with a target version.\n * @param { Partial<Array> } body specification\n * @param {Object} opts Optional parameters defined for the operation\n * @param { Array } opts.body \n * @param { String } opts.xClusterId Cluster uuid on which the resource is present or operation is being performed.\n * @param {Object} args Additional Arguments\n * @return {Promise<ComputeNotificationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ComputeNotificationsApiResponse } and HTTP response\n */\n return _createClass(NotificationsApi, [{\n key: \"computeNotifications\",\n value: function computeNotifications(body, opts) {\n var _this = this;\n var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};\n opts = opts || {};\n var postBody = null;\n if (body instanceof Array && typeof body.toJson === 'function') {\n postBody = body.toJson();\n } else {\n postBody = body;\n }\n var pathParams = {};\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({\n 'X-Cluster-Id': opts['X-Cluster-Id']\n }, headersToInclude);\n var formParams = {};\n _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.addEtagReferenceToHeader(body, headerParams);\n var authNames = ['basicAuthScheme'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json'];\n var returnType = _models_lifecycle_v4_operations_ComputeNotificationsApiResponse__WEBPACK_IMPORTED_MODULE_2__[\"default\"];\n return this.apiClient.callApi('/api/lifecycle/v4.0.b1/operations/$actions/compute-notifications', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Get LCM upgrade notification details for specified resource UUID.\n * LCM upgrade notification details for UUID.\n * @param { String } extId UUID of LCM Upgrade Notification resource.\n * @param {Object} args Additional Arguments\n * @return {Promise<GetNotificationsByIdApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetNotificationsByIdApiResponse } and HTTP response\n */\n }, {\n key: \"getNotificationById\",\n value: function getNotificationById(extId) {\n var _this2 = this;\n var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};\n var postBody = null;\n // verify the required parameter 'extId' is set\n if (typeof extId === 'undefined' || extId === null) {\n throw new Error(\"Missing the required parameter 'extId' when calling getNotificationById\");\n }\n var pathParams = {\n 'extId': extId\n };\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_lifecycle_v4_resources_GetNotificationsByIdApiResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n return this.apiClient.callApi('/api/lifecycle/v4.0.b1/resources/notifications/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n }], [{\n key: \"ApiClient\",\n get:\n /**\n * Make the default {@link ApiClient} class available for developers to be able to extend it and bring\n * their own fetch methods into the SDK\n */\n function get() {\n return _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient;\n }\n }]);\n}();\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/apis/notifications-endpoints.js?");
|
|
288
|
+
|
|
289
|
+
/***/ }),
|
|
290
|
+
|
|
291
|
+
/***/ "./target/generated-sources/swagger/src/apis/prechecks-endpoints.js":
|
|
292
|
+
/*!**************************************************************************!*\
|
|
293
|
+
!*** ./target/generated-sources/swagger/src/apis/prechecks-endpoints.js ***!
|
|
294
|
+
\**************************************************************************/
|
|
295
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
296
|
+
|
|
297
|
+
"use strict";
|
|
298
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PrechecksApi: () => (/* binding */ PrechecksApi)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\n/* harmony import */ var _models_lifecycle_v4_common_PrechecksSpec__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/lifecycle/v4/common/PrechecksSpec */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/PrechecksSpec.js\");\n/* harmony import */ var _models_lifecycle_v4_operations_PrechecksApiResponse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/lifecycle/v4/operations/PrechecksApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/operations/PrechecksApiResponse.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Prechecks service.\n * @version 4.0.1-beta-1\n * @class PrechecksApi\n */\nvar _headersToSkip = /*#__PURE__*/new WeakMap();\nvar PrechecksApi = /*#__PURE__*/function () {\n /**\n * Constructs a new PrechecksApi. \n * @alias module:api/PrechecksApi\n * @class\n * @param {module:ApiClient} [apiClient] Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n function PrechecksApi(apiClient) {\n _classCallCheck(this, PrechecksApi);\n _classPrivateFieldInitSpec(this, _headersToSkip, void 0);\n this.apiClient = apiClient || _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.instance;\n _classPrivateFieldSet(_headersToSkip, this, new Set());\n _classPrivateFieldGet(_headersToSkip, this).add('authorization');\n _classPrivateFieldGet(_headersToSkip, this).add('cookie');\n _classPrivateFieldGet(_headersToSkip, this).add('host');\n _classPrivateFieldGet(_headersToSkip, this).add('user-agent');\n }\n\n /**\n * Perform LCM prechecks operation.\n * Perform LCM prechecks for the intended update operation.\n * @param { Required<Pick<PrechecksSpec, 'entityUpdateSpecs'>> & Partial<PrechecksSpec> } body specification\n * @param {Object} opts Optional parameters defined for the operation\n * @param { lifecycle.v4.common.PrechecksSpec } opts.body \n * @param { String } opts.xClusterId Cluster uuid on which the resource is present or operation is being performed.\n * @param {Object} args Additional Arguments\n * @return {Promise<PrechecksApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link PrechecksApiResponse } and HTTP response\n */\n return _createClass(PrechecksApi, [{\n key: \"performPrechecks\",\n value: function performPrechecks(body, opts) {\n var _this = this;\n var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};\n opts = opts || {};\n var postBody = null;\n if (body instanceof _models_lifecycle_v4_common_PrechecksSpec__WEBPACK_IMPORTED_MODULE_1__[\"default\"] && typeof body.toJson === 'function') {\n postBody = body.toJson();\n } else {\n postBody = body;\n }\n var pathParams = {};\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({\n 'X-Cluster-Id': opts['X-Cluster-Id']\n }, headersToInclude);\n var formParams = {};\n _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.addEtagReferenceToHeader(body, headerParams);\n var authNames = ['basicAuthScheme'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json'];\n var returnType = _models_lifecycle_v4_operations_PrechecksApiResponse__WEBPACK_IMPORTED_MODULE_2__[\"default\"];\n return this.apiClient.callApi('/api/lifecycle/v4.0.b1/operations/$actions/prechecks', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n }], [{\n key: \"ApiClient\",\n get:\n /**\n * Make the default {@link ApiClient} class available for developers to be able to extend it and bring\n * their own fetch methods into the SDK\n */\n function get() {\n return _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient;\n }\n }]);\n}();\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/apis/prechecks-endpoints.js?");
|
|
299
|
+
|
|
300
|
+
/***/ }),
|
|
301
|
+
|
|
302
|
+
/***/ "./target/generated-sources/swagger/src/apis/recommendations-endpoints.js":
|
|
303
|
+
/*!********************************************************************************!*\
|
|
304
|
+
!*** ./target/generated-sources/swagger/src/apis/recommendations-endpoints.js ***!
|
|
305
|
+
\********************************************************************************/
|
|
306
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
307
|
+
|
|
308
|
+
"use strict";
|
|
309
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ RecommendationsApi: () => (/* binding */ RecommendationsApi)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\n/* harmony import */ var _models_lifecycle_v4_operations_ComputeRecommendationsApiResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/lifecycle/v4/operations/ComputeRecommendationsApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_RecommendationSpec__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/lifecycle/v4/resources/RecommendationSpec */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/RecommendationSpec.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_GetRecommendationByIdApiResponse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/lifecycle/v4/resources/GetRecommendationByIdApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * Recommendations service.\n * @version 4.0.1-beta-1\n * @class RecommendationsApi\n */\nvar _headersToSkip = /*#__PURE__*/new WeakMap();\nvar RecommendationsApi = /*#__PURE__*/function () {\n /**\n * Constructs a new RecommendationsApi. \n * @alias module:api/RecommendationsApi\n * @class\n * @param {module:ApiClient} [apiClient] Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n function RecommendationsApi(apiClient) {\n _classCallCheck(this, RecommendationsApi);\n _classPrivateFieldInitSpec(this, _headersToSkip, void 0);\n this.apiClient = apiClient || _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.instance;\n _classPrivateFieldSet(_headersToSkip, this, new Set());\n _classPrivateFieldGet(_headersToSkip, this).add('authorization');\n _classPrivateFieldGet(_headersToSkip, this).add('cookie');\n _classPrivateFieldGet(_headersToSkip, this).add('host');\n _classPrivateFieldGet(_headersToSkip, this).add('user-agent');\n }\n\n /**\n * Response with asynchronous task and resourceId for the recommendations computation in progress.\n * Compute LCM upgrade recommendations given a set of entities to update along with a target version.\n * @param { Required<Pick<RecommendationSpec, 'recommendationSpec'>> & Partial<RecommendationSpec> } body specification\n * @param {Object} opts Optional parameters defined for the operation\n * @param { lifecycle.v4.resources.RecommendationSpec } opts.body \n * @param { String } opts.xClusterId Cluster uuid on which the resource is present or operation is being performed.\n * @param {Object} args Additional Arguments\n * @return {Promise<ComputeRecommendationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ComputeRecommendationsApiResponse } and HTTP response\n */\n return _createClass(RecommendationsApi, [{\n key: \"computeRecommendations\",\n value: function computeRecommendations(body, opts) {\n var _this = this;\n var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};\n opts = opts || {};\n var postBody = null;\n if (body instanceof _models_lifecycle_v4_resources_RecommendationSpec__WEBPACK_IMPORTED_MODULE_2__[\"default\"] && typeof body.toJson === 'function') {\n postBody = body.toJson();\n } else {\n postBody = body;\n }\n var pathParams = {};\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({\n 'X-Cluster-Id': opts['X-Cluster-Id']\n }, headersToInclude);\n var formParams = {};\n _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.addEtagReferenceToHeader(body, headerParams);\n var authNames = ['basicAuthScheme'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json'];\n var returnType = _models_lifecycle_v4_operations_ComputeRecommendationsApiResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n return this.apiClient.callApi('/api/lifecycle/v4.0.b1/operations/$actions/compute-recommendations', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Get a list of update recommendations from LCM.\n * Get LCM upgrade recommendation details for specified UUID.\n * @param { String } extId UUID of LCM Upgrade recommendations resource.\n * @param {Object} args Additional Arguments\n * @return {Promise<GetRecommendationByIdApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetRecommendationByIdApiResponse } and HTTP response\n */\n }, {\n key: \"getRecommendationById\",\n value: function getRecommendationById(extId) {\n var _this2 = this;\n var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};\n var postBody = null;\n // verify the required parameter 'extId' is set\n if (typeof extId === 'undefined' || extId === null) {\n throw new Error(\"Missing the required parameter 'extId' when calling getRecommendationById\");\n }\n var pathParams = {\n 'extId': extId\n };\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_lifecycle_v4_resources_GetRecommendationByIdApiResponse__WEBPACK_IMPORTED_MODULE_3__[\"default\"];\n return this.apiClient.callApi('/api/lifecycle/v4.0.b1/resources/recommendations/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n }], [{\n key: \"ApiClient\",\n get:\n /**\n * Make the default {@link ApiClient} class available for developers to be able to extend it and bring\n * their own fetch methods into the SDK\n */\n function get() {\n return _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient;\n }\n }]);\n}();\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/apis/recommendations-endpoints.js?");
|
|
310
|
+
|
|
311
|
+
/***/ }),
|
|
312
|
+
|
|
313
|
+
/***/ "./target/generated-sources/swagger/src/apis/status-endpoints.js":
|
|
314
|
+
/*!***********************************************************************!*\
|
|
315
|
+
!*** ./target/generated-sources/swagger/src/apis/status-endpoints.js ***!
|
|
316
|
+
\***********************************************************************/
|
|
317
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
318
|
+
|
|
319
|
+
"use strict";
|
|
320
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ StatusApi: () => (/* binding */ StatusApi)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_GetStatusApiResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/lifecycle/v4/resources/GetStatusApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetStatusApiResponse.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n/**\n * Status service.\n * @version 4.0.1-beta-1\n * @class StatusApi\n */\nvar _headersToSkip = /*#__PURE__*/new WeakMap();\nvar StatusApi = /*#__PURE__*/function () {\n /**\n * Constructs a new StatusApi. \n * @alias module:api/StatusApi\n * @class\n * @param {module:ApiClient} [apiClient] Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n function StatusApi(apiClient) {\n _classCallCheck(this, StatusApi);\n _classPrivateFieldInitSpec(this, _headersToSkip, void 0);\n this.apiClient = apiClient || _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.instance;\n _classPrivateFieldSet(_headersToSkip, this, new Set());\n _classPrivateFieldGet(_headersToSkip, this).add('authorization');\n _classPrivateFieldGet(_headersToSkip, this).add('cookie');\n _classPrivateFieldGet(_headersToSkip, this).add('host');\n _classPrivateFieldGet(_headersToSkip, this).add('user-agent');\n }\n\n /**\n * Get the LCM framework status.\n * Get the LCM framework status.\n * @param {Object} opts Optional parameters defined for the operation\n * @param { String } opts.xClusterId Cluster uuid on which the resource is present or operation is being performed.\n * @param {Object} args Additional Arguments\n * @return {Promise<GetStatusApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetStatusApiResponse } and HTTP response\n */\n return _createClass(StatusApi, [{\n key: \"getStatus\",\n value: function getStatus(opts) {\n var _this = this;\n var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};\n opts = opts || {};\n var postBody = null;\n var pathParams = {};\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({\n 'X-Cluster-Id': opts['X-Cluster-Id']\n }, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_lifecycle_v4_resources_GetStatusApiResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n return this.apiClient.callApi('/api/lifecycle/v4.0.b1/resources/status', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n }], [{\n key: \"ApiClient\",\n get:\n /**\n * Make the default {@link ApiClient} class available for developers to be able to extend it and bring\n * their own fetch methods into the SDK\n */\n function get() {\n return _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient;\n }\n }]);\n}();\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/apis/status-endpoints.js?");
|
|
321
|
+
|
|
322
|
+
/***/ }),
|
|
323
|
+
|
|
324
|
+
/***/ "./target/generated-sources/swagger/src/apis/upgrades-endpoints.js":
|
|
325
|
+
/*!*************************************************************************!*\
|
|
326
|
+
!*** ./target/generated-sources/swagger/src/apis/upgrades-endpoints.js ***!
|
|
327
|
+
\*************************************************************************/
|
|
328
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
329
|
+
|
|
330
|
+
"use strict";
|
|
331
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ UpgradesApi: () => (/* binding */ UpgradesApi)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\n/* harmony import */ var _models_lifecycle_v4_common_UpgradeSpec__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/lifecycle/v4/common/UpgradeSpec */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/UpgradeSpec.js\");\n/* harmony import */ var _models_lifecycle_v4_operations_UpgradeApiResponse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/lifecycle/v4/operations/UpgradeApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/operations/UpgradeApiResponse.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Upgrades service.\n * @version 4.0.1-beta-1\n * @class UpgradesApi\n */\nvar _headersToSkip = /*#__PURE__*/new WeakMap();\nvar UpgradesApi = /*#__PURE__*/function () {\n /**\n * Constructs a new UpgradesApi. \n * @alias module:api/UpgradesApi\n * @class\n * @param {module:ApiClient} [apiClient] Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n function UpgradesApi(apiClient) {\n _classCallCheck(this, UpgradesApi);\n _classPrivateFieldInitSpec(this, _headersToSkip, void 0);\n this.apiClient = apiClient || _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.instance;\n _classPrivateFieldSet(_headersToSkip, this, new Set());\n _classPrivateFieldGet(_headersToSkip, this).add('authorization');\n _classPrivateFieldGet(_headersToSkip, this).add('cookie');\n _classPrivateFieldGet(_headersToSkip, this).add('host');\n _classPrivateFieldGet(_headersToSkip, this).add('user-agent');\n }\n\n /**\n * Perform an LCM upgrade operation.\n * Perform upgrade operation to a specific target version for discovered LCM entity/entities.\n * @param { Required<Pick<UpgradeSpec, 'entityUpdateSpecs'>> & Partial<UpgradeSpec> } body specification\n * @param {Object} opts Optional parameters defined for the operation\n * @param { lifecycle.v4.common.UpgradeSpec } opts.body \n * @param { String } opts.xClusterId Cluster uuid on which the resource is present or operation is being performed.\n * @param {Object} args Additional Arguments\n * @return {Promise<UpgradeApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpgradeApiResponse } and HTTP response\n */\n return _createClass(UpgradesApi, [{\n key: \"performUpgrade\",\n value: function performUpgrade(body, opts) {\n var _this = this;\n var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};\n opts = opts || {};\n var postBody = null;\n if (body instanceof _models_lifecycle_v4_common_UpgradeSpec__WEBPACK_IMPORTED_MODULE_1__[\"default\"] && typeof body.toJson === 'function') {\n postBody = body.toJson();\n } else {\n postBody = body;\n }\n var pathParams = {};\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({\n 'X-Cluster-Id': opts['X-Cluster-Id']\n }, headersToInclude);\n var formParams = {};\n _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.addEtagReferenceToHeader(body, headerParams);\n var authNames = ['basicAuthScheme'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json'];\n var returnType = _models_lifecycle_v4_operations_UpgradeApiResponse__WEBPACK_IMPORTED_MODULE_2__[\"default\"];\n return this.apiClient.callApi('/api/lifecycle/v4.0.b1/operations/$actions/upgrade', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n }], [{\n key: \"ApiClient\",\n get:\n /**\n * Make the default {@link ApiClient} class available for developers to be able to extend it and bring\n * their own fetch methods into the SDK\n */\n function get() {\n return _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient;\n }\n }]);\n}();\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/apis/upgrades-endpoints.js?");
|
|
332
|
+
|
|
333
|
+
/***/ }),
|
|
334
|
+
|
|
335
|
+
/***/ "./target/generated-sources/swagger/src/index.js":
|
|
336
|
+
/*!*******************************************************!*\
|
|
337
|
+
!*** ./target/generated-sources/swagger/src/index.js ***!
|
|
338
|
+
\*******************************************************/
|
|
339
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
340
|
+
|
|
341
|
+
"use strict";
|
|
342
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ApiClient: () => (/* reexport safe */ _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient),\n/* harmony export */ ApiLink: () => (/* reexport safe */ _models_common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_15__[\"default\"]),\n/* harmony export */ ApiResponseMetadata: () => (/* reexport safe */ _models_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_16__[\"default\"]),\n/* harmony export */ AppMessage: () => (/* reexport safe */ _models_lifecycle_v4_error_AppMessage__WEBPACK_IMPORTED_MODULE_33__[\"default\"]),\n/* harmony export */ AvailableVersion: () => (/* reexport safe */ _models_lifecycle_v4_resources_AvailableVersion__WEBPACK_IMPORTED_MODULE_42__[\"default\"]),\n/* harmony export */ AvailableVersionStatus: () => (/* reexport safe */ _models_lifecycle_v4_common_AvailableVersionStatus__WEBPACK_IMPORTED_MODULE_18__[\"default\"]),\n/* harmony export */ CheckSumType: () => (/* reexport safe */ _models_lifecycle_v4_common_CheckSumType__WEBPACK_IMPORTED_MODULE_19__[\"default\"]),\n/* harmony export */ ComputeNotificationsApiResponse: () => (/* reexport safe */ _models_lifecycle_v4_operations_ComputeNotificationsApiResponse__WEBPACK_IMPORTED_MODULE_37__[\"default\"]),\n/* harmony export */ ComputeRecommendationsApiResponse: () => (/* reexport safe */ _models_lifecycle_v4_operations_ComputeRecommendationsApiResponse__WEBPACK_IMPORTED_MODULE_38__[\"default\"]),\n/* harmony export */ Config: () => (/* reexport safe */ _models_lifecycle_v4_resources_Config__WEBPACK_IMPORTED_MODULE_43__[\"default\"]),\n/* harmony export */ ConfigApi: () => (/* reexport safe */ _apis_config_endpoints__WEBPACK_IMPORTED_MODULE_2__.ConfigApi),\n/* harmony export */ ConnectivityType: () => (/* reexport safe */ _models_lifecycle_v4_resources_ConnectivityType__WEBPACK_IMPORTED_MODULE_44__[\"default\"]),\n/* harmony export */ DependentEntity: () => (/* reexport safe */ _models_lifecycle_v4_resources_DependentEntity__WEBPACK_IMPORTED_MODULE_45__[\"default\"]),\n/* harmony export */ DeployableVersion: () => (/* reexport safe */ _models_lifecycle_v4_resources_DeployableVersion__WEBPACK_IMPORTED_MODULE_46__[\"default\"]),\n/* harmony export */ EntitiesApi: () => (/* reexport safe */ _apis_entities_endpoints__WEBPACK_IMPORTED_MODULE_1__.EntitiesApi),\n/* harmony export */ Entity: () => (/* reexport safe */ _models_lifecycle_v4_resources_Entity__WEBPACK_IMPORTED_MODULE_47__[\"default\"]),\n/* harmony export */ EntityBaseModel: () => (/* reexport safe */ _models_lifecycle_v4_common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_20__[\"default\"]),\n/* harmony export */ EntityDeploySpec: () => (/* reexport safe */ _models_lifecycle_v4_common_EntityDeploySpec__WEBPACK_IMPORTED_MODULE_21__[\"default\"]),\n/* harmony export */ EntityType: () => (/* reexport safe */ _models_lifecycle_v4_common_EntityType__WEBPACK_IMPORTED_MODULE_22__[\"default\"]),\n/* harmony export */ EntityUpdateSpec: () => (/* reexport safe */ _models_lifecycle_v4_common_EntityUpdateSpec__WEBPACK_IMPORTED_MODULE_23__[\"default\"]),\n/* harmony export */ ErrorResponse: () => (/* reexport safe */ _models_lifecycle_v4_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_34__[\"default\"]),\n/* harmony export */ ExternalizableAbstractModel: () => (/* reexport safe */ _models_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_17__[\"default\"]),\n/* harmony export */ Flag: () => (/* reexport safe */ _models_common_v1_config_Flag__WEBPACK_IMPORTED_MODULE_10__[\"default\"]),\n/* harmony export */ FrameworkVersionInfo: () => (/* reexport safe */ _models_lifecycle_v4_resources_FrameworkVersionInfo__WEBPACK_IMPORTED_MODULE_48__[\"default\"]),\n/* harmony export */ GetConfigApiResponse: () => (/* reexport safe */ _models_lifecycle_v4_resources_GetConfigApiResponse__WEBPACK_IMPORTED_MODULE_49__[\"default\"]),\n/* harmony export */ GetEntityByIdApiResponse: () => (/* reexport safe */ _models_lifecycle_v4_resources_GetEntityByIdApiResponse__WEBPACK_IMPORTED_MODULE_50__[\"default\"]),\n/* harmony export */ GetNotificationsByIdApiResponse: () => (/* reexport safe */ _models_lifecycle_v4_resources_GetNotificationsByIdApiResponse__WEBPACK_IMPORTED_MODULE_51__[\"default\"]),\n/* harmony export */ GetRecommendationByIdApiResponse: () => (/* reexport safe */ _models_lifecycle_v4_resources_GetRecommendationByIdApiResponse__WEBPACK_IMPORTED_MODULE_52__[\"default\"]),\n/* harmony export */ GetStatusApiResponse: () => (/* reexport safe */ _models_lifecycle_v4_resources_GetStatusApiResponse__WEBPACK_IMPORTED_MODULE_53__[\"default\"]),\n/* harmony export */ HypervisorType: () => (/* reexport safe */ _models_lifecycle_v4_common_HypervisorType__WEBPACK_IMPORTED_MODULE_24__[\"default\"]),\n/* harmony export */ Image: () => (/* reexport safe */ _models_lifecycle_v4_resources_Image__WEBPACK_IMPORTED_MODULE_54__[\"default\"]),\n/* harmony export */ ImageFile: () => (/* reexport safe */ _models_lifecycle_v4_resources_ImageFile__WEBPACK_IMPORTED_MODULE_55__[\"default\"]),\n/* harmony export */ ImagesApi: () => (/* reexport safe */ _apis_images_endpoints__WEBPACK_IMPORTED_MODULE_3__.ImagesApi),\n/* harmony export */ InProgressOpInfo: () => (/* reexport safe */ _models_lifecycle_v4_resources_InProgressOpInfo__WEBPACK_IMPORTED_MODULE_56__[\"default\"]),\n/* harmony export */ InventoryApi: () => (/* reexport safe */ _apis_inventory_endpoints__WEBPACK_IMPORTED_MODULE_4__.InventoryApi),\n/* harmony export */ InventoryApiResponse: () => (/* reexport safe */ _models_lifecycle_v4_operations_InventoryApiResponse__WEBPACK_IMPORTED_MODULE_39__[\"default\"]),\n/* harmony export */ KVPair: () => (/* reexport safe */ _models_common_v1_config_KVPair__WEBPACK_IMPORTED_MODULE_11__[\"default\"]),\n/* harmony export */ ListEntitiesApiResponse: () => (/* reexport safe */ _models_lifecycle_v4_resources_ListEntitiesApiResponse__WEBPACK_IMPORTED_MODULE_57__[\"default\"]),\n/* harmony export */ ListImagesApiResponse: () => (/* reexport safe */ _models_lifecycle_v4_resources_ListImagesApiResponse__WEBPACK_IMPORTED_MODULE_58__[\"default\"]),\n/* harmony export */ LocationInfo: () => (/* reexport safe */ _models_lifecycle_v4_common_LocationInfo__WEBPACK_IMPORTED_MODULE_25__[\"default\"]),\n/* harmony export */ LocationType: () => (/* reexport safe */ _models_lifecycle_v4_common_LocationType__WEBPACK_IMPORTED_MODULE_26__[\"default\"]),\n/* harmony export */ ManagementServer: () => (/* reexport safe */ _models_lifecycle_v4_common_ManagementServer__WEBPACK_IMPORTED_MODULE_27__[\"default\"]),\n/* harmony export */ Message: () => (/* reexport safe */ _models_common_v1_config_Message__WEBPACK_IMPORTED_MODULE_12__[\"default\"]),\n/* harmony export */ MessageSeverity: () => (/* reexport safe */ _models_common_v1_config_MessageSeverity__WEBPACK_IMPORTED_MODULE_13__[\"default\"]),\n/* harmony export */ Notification: () => (/* reexport safe */ _models_lifecycle_v4_resources_Notification__WEBPACK_IMPORTED_MODULE_59__[\"default\"]),\n/* harmony export */ NotificationDetail: () => (/* reexport safe */ _models_lifecycle_v4_resources_NotificationDetail__WEBPACK_IMPORTED_MODULE_60__[\"default\"]),\n/* harmony export */ NotificationItem: () => (/* reexport safe */ _models_lifecycle_v4_resources_NotificationItem__WEBPACK_IMPORTED_MODULE_61__[\"default\"]),\n/* harmony export */ NotificationType: () => (/* reexport safe */ _models_lifecycle_v4_common_NotificationType__WEBPACK_IMPORTED_MODULE_28__[\"default\"]),\n/* harmony export */ NotificationsApi: () => (/* reexport safe */ _apis_notifications_endpoints__WEBPACK_IMPORTED_MODULE_5__.NotificationsApi),\n/* harmony export */ OperationType: () => (/* reexport safe */ _models_lifecycle_v4_common_OperationType__WEBPACK_IMPORTED_MODULE_29__[\"default\"]),\n/* harmony export */ PrechecksApi: () => (/* reexport safe */ _apis_prechecks_endpoints__WEBPACK_IMPORTED_MODULE_6__.PrechecksApi),\n/* harmony export */ PrechecksApiResponse: () => (/* reexport safe */ _models_lifecycle_v4_operations_PrechecksApiResponse__WEBPACK_IMPORTED_MODULE_40__[\"default\"]),\n/* harmony export */ PrechecksSpec: () => (/* reexport safe */ _models_lifecycle_v4_common_PrechecksSpec__WEBPACK_IMPORTED_MODULE_30__[\"default\"]),\n/* harmony export */ RecommendationResult: () => (/* reexport safe */ _models_lifecycle_v4_resources_RecommendationResult__WEBPACK_IMPORTED_MODULE_62__[\"default\"]),\n/* harmony export */ RecommendationSpec: () => (/* reexport safe */ _models_lifecycle_v4_resources_RecommendationSpec__WEBPACK_IMPORTED_MODULE_63__[\"default\"]),\n/* harmony export */ RecommendationsApi: () => (/* reexport safe */ _apis_recommendations_endpoints__WEBPACK_IMPORTED_MODULE_7__.RecommendationsApi),\n/* harmony export */ SchemaValidationError: () => (/* reexport safe */ _models_lifecycle_v4_error_SchemaValidationError__WEBPACK_IMPORTED_MODULE_35__[\"default\"]),\n/* harmony export */ SchemaValidationErrorMessage: () => (/* reexport safe */ _models_lifecycle_v4_error_SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_36__[\"default\"]),\n/* harmony export */ SeverityLevel: () => (/* reexport safe */ _models_lifecycle_v4_resources_SeverityLevel__WEBPACK_IMPORTED_MODULE_64__[\"default\"]),\n/* harmony export */ StatusApi: () => (/* reexport safe */ _apis_status_endpoints__WEBPACK_IMPORTED_MODULE_8__.StatusApi),\n/* harmony export */ StatusInfo: () => (/* reexport safe */ _models_lifecycle_v4_resources_StatusInfo__WEBPACK_IMPORTED_MODULE_65__[\"default\"]),\n/* harmony export */ SystemAutoMgmtFlag: () => (/* reexport safe */ _models_lifecycle_v4_common_SystemAutoMgmtFlag__WEBPACK_IMPORTED_MODULE_31__[\"default\"]),\n/* harmony export */ TargetEntity: () => (/* reexport safe */ _models_lifecycle_v4_resources_TargetEntity__WEBPACK_IMPORTED_MODULE_66__[\"default\"]),\n/* harmony export */ TaskReference: () => (/* reexport safe */ _models_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_70__[\"default\"]),\n/* harmony export */ TenantAwareModel: () => (/* reexport safe */ _models_common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_14__[\"default\"]),\n/* harmony export */ UpdateConfigApiResponse: () => (/* reexport safe */ _models_lifecycle_v4_resources_UpdateConfigApiResponse__WEBPACK_IMPORTED_MODULE_67__[\"default\"]),\n/* harmony export */ UpdatedTargetEntity: () => (/* reexport safe */ _models_lifecycle_v4_resources_UpdatedTargetEntity__WEBPACK_IMPORTED_MODULE_68__[\"default\"]),\n/* harmony export */ UpdatedTargetEntityResult: () => (/* reexport safe */ _models_lifecycle_v4_resources_UpdatedTargetEntityResult__WEBPACK_IMPORTED_MODULE_69__[\"default\"]),\n/* harmony export */ UpgradeApiResponse: () => (/* reexport safe */ _models_lifecycle_v4_operations_UpgradeApiResponse__WEBPACK_IMPORTED_MODULE_41__[\"default\"]),\n/* harmony export */ UpgradeSpec: () => (/* reexport safe */ _models_lifecycle_v4_common_UpgradeSpec__WEBPACK_IMPORTED_MODULE_32__[\"default\"]),\n/* harmony export */ UpgradesApi: () => (/* reexport safe */ _apis_upgrades_endpoints__WEBPACK_IMPORTED_MODULE_9__.UpgradesApi),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\n/* harmony import */ var _apis_entities_endpoints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./apis/entities-endpoints */ \"./target/generated-sources/swagger/src/apis/entities-endpoints.js\");\n/* harmony import */ var _apis_config_endpoints__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./apis/config-endpoints */ \"./target/generated-sources/swagger/src/apis/config-endpoints.js\");\n/* harmony import */ var _apis_images_endpoints__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./apis/images-endpoints */ \"./target/generated-sources/swagger/src/apis/images-endpoints.js\");\n/* harmony import */ var _apis_inventory_endpoints__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./apis/inventory-endpoints */ \"./target/generated-sources/swagger/src/apis/inventory-endpoints.js\");\n/* harmony import */ var _apis_notifications_endpoints__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./apis/notifications-endpoints */ \"./target/generated-sources/swagger/src/apis/notifications-endpoints.js\");\n/* harmony import */ var _apis_prechecks_endpoints__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./apis/prechecks-endpoints */ \"./target/generated-sources/swagger/src/apis/prechecks-endpoints.js\");\n/* harmony import */ var _apis_recommendations_endpoints__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./apis/recommendations-endpoints */ \"./target/generated-sources/swagger/src/apis/recommendations-endpoints.js\");\n/* harmony import */ var _apis_status_endpoints__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./apis/status-endpoints */ \"./target/generated-sources/swagger/src/apis/status-endpoints.js\");\n/* harmony import */ var _apis_upgrades_endpoints__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./apis/upgrades-endpoints */ \"./target/generated-sources/swagger/src/apis/upgrades-endpoints.js\");\n/* harmony import */ var _models_common_v1_config_Flag__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./models/common/v1/config/Flag */ \"./target/generated-sources/swagger/src/models/common/v1/config/Flag.js\");\n/* harmony import */ var _models_common_v1_config_KVPair__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./models/common/v1/config/KVPair */ \"./target/generated-sources/swagger/src/models/common/v1/config/KVPair.js\");\n/* harmony import */ var _models_common_v1_config_Message__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./models/common/v1/config/Message */ \"./target/generated-sources/swagger/src/models/common/v1/config/Message.js\");\n/* harmony import */ var _models_common_v1_config_MessageSeverity__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./models/common/v1/config/MessageSeverity */ \"./target/generated-sources/swagger/src/models/common/v1/config/MessageSeverity.js\");\n/* harmony import */ var _models_common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./models/common/v1/config/TenantAwareModel */ \"./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js\");\n/* harmony import */ var _models_common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./models/common/v1/response/ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _models_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./models/common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _models_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./models/common/v1/response/ExternalizableAbstractModel */ \"./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js\");\n/* harmony import */ var _models_lifecycle_v4_common_AvailableVersionStatus__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./models/lifecycle/v4/common/AvailableVersionStatus */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/AvailableVersionStatus.js\");\n/* harmony import */ var _models_lifecycle_v4_common_CheckSumType__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./models/lifecycle/v4/common/CheckSumType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/CheckSumType.js\");\n/* harmony import */ var _models_lifecycle_v4_common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./models/lifecycle/v4/common/EntityBaseModel */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityBaseModel.js\");\n/* harmony import */ var _models_lifecycle_v4_common_EntityDeploySpec__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./models/lifecycle/v4/common/EntityDeploySpec */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityDeploySpec.js\");\n/* harmony import */ var _models_lifecycle_v4_common_EntityType__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./models/lifecycle/v4/common/EntityType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityType.js\");\n/* harmony import */ var _models_lifecycle_v4_common_EntityUpdateSpec__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./models/lifecycle/v4/common/EntityUpdateSpec */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityUpdateSpec.js\");\n/* harmony import */ var _models_lifecycle_v4_common_HypervisorType__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./models/lifecycle/v4/common/HypervisorType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/HypervisorType.js\");\n/* harmony import */ var _models_lifecycle_v4_common_LocationInfo__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./models/lifecycle/v4/common/LocationInfo */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/LocationInfo.js\");\n/* harmony import */ var _models_lifecycle_v4_common_LocationType__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./models/lifecycle/v4/common/LocationType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/LocationType.js\");\n/* harmony import */ var _models_lifecycle_v4_common_ManagementServer__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./models/lifecycle/v4/common/ManagementServer */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/ManagementServer.js\");\n/* harmony import */ var _models_lifecycle_v4_common_NotificationType__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./models/lifecycle/v4/common/NotificationType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/NotificationType.js\");\n/* harmony import */ var _models_lifecycle_v4_common_OperationType__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./models/lifecycle/v4/common/OperationType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/OperationType.js\");\n/* harmony import */ var _models_lifecycle_v4_common_PrechecksSpec__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./models/lifecycle/v4/common/PrechecksSpec */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/PrechecksSpec.js\");\n/* harmony import */ var _models_lifecycle_v4_common_SystemAutoMgmtFlag__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./models/lifecycle/v4/common/SystemAutoMgmtFlag */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/SystemAutoMgmtFlag.js\");\n/* harmony import */ var _models_lifecycle_v4_common_UpgradeSpec__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./models/lifecycle/v4/common/UpgradeSpec */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/UpgradeSpec.js\");\n/* harmony import */ var _models_lifecycle_v4_error_AppMessage__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./models/lifecycle/v4/error/AppMessage */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/AppMessage.js\");\n/* harmony import */ var _models_lifecycle_v4_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./models/lifecycle/v4/error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_error_SchemaValidationError__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./models/lifecycle/v4/error/SchemaValidationError */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/SchemaValidationError.js\");\n/* harmony import */ var _models_lifecycle_v4_error_SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./models/lifecycle/v4/error/SchemaValidationErrorMessage */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/SchemaValidationErrorMessage.js\");\n/* harmony import */ var _models_lifecycle_v4_operations_ComputeNotificationsApiResponse__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./models/lifecycle/v4/operations/ComputeNotificationsApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_operations_ComputeRecommendationsApiResponse__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./models/lifecycle/v4/operations/ComputeRecommendationsApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_operations_InventoryApiResponse__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./models/lifecycle/v4/operations/InventoryApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/operations/InventoryApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_operations_PrechecksApiResponse__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./models/lifecycle/v4/operations/PrechecksApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/operations/PrechecksApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_operations_UpgradeApiResponse__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./models/lifecycle/v4/operations/UpgradeApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/operations/UpgradeApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_AvailableVersion__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/AvailableVersion */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/AvailableVersion.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_Config__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/Config */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Config.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_ConnectivityType__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/ConnectivityType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ConnectivityType.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_DependentEntity__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/DependentEntity */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/DependentEntity.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_DeployableVersion__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/DeployableVersion */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/DeployableVersion.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_Entity__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/Entity */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Entity.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_FrameworkVersionInfo__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/FrameworkVersionInfo */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/FrameworkVersionInfo.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_GetConfigApiResponse__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/GetConfigApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetConfigApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_GetEntityByIdApiResponse__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/GetEntityByIdApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_GetNotificationsByIdApiResponse__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/GetNotificationsByIdApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_GetRecommendationByIdApiResponse__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/GetRecommendationByIdApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_GetStatusApiResponse__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/GetStatusApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetStatusApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_Image__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/Image */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Image.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_ImageFile__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/ImageFile */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ImageFile.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_InProgressOpInfo__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/InProgressOpInfo */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/InProgressOpInfo.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_ListEntitiesApiResponse__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/ListEntitiesApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ListEntitiesApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_ListImagesApiResponse__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/ListImagesApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ListImagesApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_Notification__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/Notification */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Notification.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_NotificationDetail__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/NotificationDetail */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/NotificationDetail.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_NotificationItem__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/NotificationItem */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/NotificationItem.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_RecommendationResult__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/RecommendationResult */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/RecommendationResult.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_RecommendationSpec__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/RecommendationSpec */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/RecommendationSpec.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_SeverityLevel__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/SeverityLevel */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/SeverityLevel.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_StatusInfo__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/StatusInfo */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/StatusInfo.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_TargetEntity__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/TargetEntity */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/TargetEntity.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_UpdateConfigApiResponse__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/UpdateConfigApiResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/UpdateConfigApiResponse.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_UpdatedTargetEntity__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/UpdatedTargetEntity */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/UpdatedTargetEntity.js\");\n/* harmony import */ var _models_lifecycle_v4_resources_UpdatedTargetEntityResult__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./models/lifecycle/v4/resources/UpdatedTargetEntityResult */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js\");\n/* harmony import */ var _models_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./models/prism/v4/config/TaskReference */ \"./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js\");\n// Export base files\n\n\n// Export APIs \n\n\n\n\n\n\n\n\n\n\n// Export models \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n ApiClient: _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient,\n EntitiesApi: _apis_entities_endpoints__WEBPACK_IMPORTED_MODULE_1__.EntitiesApi,\n ConfigApi: _apis_config_endpoints__WEBPACK_IMPORTED_MODULE_2__.ConfigApi,\n ImagesApi: _apis_images_endpoints__WEBPACK_IMPORTED_MODULE_3__.ImagesApi,\n InventoryApi: _apis_inventory_endpoints__WEBPACK_IMPORTED_MODULE_4__.InventoryApi,\n NotificationsApi: _apis_notifications_endpoints__WEBPACK_IMPORTED_MODULE_5__.NotificationsApi,\n PrechecksApi: _apis_prechecks_endpoints__WEBPACK_IMPORTED_MODULE_6__.PrechecksApi,\n RecommendationsApi: _apis_recommendations_endpoints__WEBPACK_IMPORTED_MODULE_7__.RecommendationsApi,\n StatusApi: _apis_status_endpoints__WEBPACK_IMPORTED_MODULE_8__.StatusApi,\n UpgradesApi: _apis_upgrades_endpoints__WEBPACK_IMPORTED_MODULE_9__.UpgradesApi,\n Flag: _models_common_v1_config_Flag__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n KVPair: _models_common_v1_config_KVPair__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n Message: _models_common_v1_config_Message__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n MessageSeverity: _models_common_v1_config_MessageSeverity__WEBPACK_IMPORTED_MODULE_13__[\"default\"],\n TenantAwareModel: _models_common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n ApiLink: _models_common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n ApiResponseMetadata: _models_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_16__[\"default\"],\n ExternalizableAbstractModel: _models_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_17__[\"default\"],\n AvailableVersionStatus: _models_lifecycle_v4_common_AvailableVersionStatus__WEBPACK_IMPORTED_MODULE_18__[\"default\"],\n CheckSumType: _models_lifecycle_v4_common_CheckSumType__WEBPACK_IMPORTED_MODULE_19__[\"default\"],\n EntityBaseModel: _models_lifecycle_v4_common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_20__[\"default\"],\n EntityDeploySpec: _models_lifecycle_v4_common_EntityDeploySpec__WEBPACK_IMPORTED_MODULE_21__[\"default\"],\n EntityType: _models_lifecycle_v4_common_EntityType__WEBPACK_IMPORTED_MODULE_22__[\"default\"],\n EntityUpdateSpec: _models_lifecycle_v4_common_EntityUpdateSpec__WEBPACK_IMPORTED_MODULE_23__[\"default\"],\n HypervisorType: _models_lifecycle_v4_common_HypervisorType__WEBPACK_IMPORTED_MODULE_24__[\"default\"],\n LocationInfo: _models_lifecycle_v4_common_LocationInfo__WEBPACK_IMPORTED_MODULE_25__[\"default\"],\n LocationType: _models_lifecycle_v4_common_LocationType__WEBPACK_IMPORTED_MODULE_26__[\"default\"],\n ManagementServer: _models_lifecycle_v4_common_ManagementServer__WEBPACK_IMPORTED_MODULE_27__[\"default\"],\n NotificationType: _models_lifecycle_v4_common_NotificationType__WEBPACK_IMPORTED_MODULE_28__[\"default\"],\n OperationType: _models_lifecycle_v4_common_OperationType__WEBPACK_IMPORTED_MODULE_29__[\"default\"],\n PrechecksSpec: _models_lifecycle_v4_common_PrechecksSpec__WEBPACK_IMPORTED_MODULE_30__[\"default\"],\n SystemAutoMgmtFlag: _models_lifecycle_v4_common_SystemAutoMgmtFlag__WEBPACK_IMPORTED_MODULE_31__[\"default\"],\n UpgradeSpec: _models_lifecycle_v4_common_UpgradeSpec__WEBPACK_IMPORTED_MODULE_32__[\"default\"],\n AppMessage: _models_lifecycle_v4_error_AppMessage__WEBPACK_IMPORTED_MODULE_33__[\"default\"],\n ErrorResponse: _models_lifecycle_v4_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_34__[\"default\"],\n SchemaValidationError: _models_lifecycle_v4_error_SchemaValidationError__WEBPACK_IMPORTED_MODULE_35__[\"default\"],\n SchemaValidationErrorMessage: _models_lifecycle_v4_error_SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_36__[\"default\"],\n ComputeNotificationsApiResponse: _models_lifecycle_v4_operations_ComputeNotificationsApiResponse__WEBPACK_IMPORTED_MODULE_37__[\"default\"],\n ComputeRecommendationsApiResponse: _models_lifecycle_v4_operations_ComputeRecommendationsApiResponse__WEBPACK_IMPORTED_MODULE_38__[\"default\"],\n InventoryApiResponse: _models_lifecycle_v4_operations_InventoryApiResponse__WEBPACK_IMPORTED_MODULE_39__[\"default\"],\n PrechecksApiResponse: _models_lifecycle_v4_operations_PrechecksApiResponse__WEBPACK_IMPORTED_MODULE_40__[\"default\"],\n UpgradeApiResponse: _models_lifecycle_v4_operations_UpgradeApiResponse__WEBPACK_IMPORTED_MODULE_41__[\"default\"],\n AvailableVersion: _models_lifecycle_v4_resources_AvailableVersion__WEBPACK_IMPORTED_MODULE_42__[\"default\"],\n Config: _models_lifecycle_v4_resources_Config__WEBPACK_IMPORTED_MODULE_43__[\"default\"],\n ConnectivityType: _models_lifecycle_v4_resources_ConnectivityType__WEBPACK_IMPORTED_MODULE_44__[\"default\"],\n DependentEntity: _models_lifecycle_v4_resources_DependentEntity__WEBPACK_IMPORTED_MODULE_45__[\"default\"],\n DeployableVersion: _models_lifecycle_v4_resources_DeployableVersion__WEBPACK_IMPORTED_MODULE_46__[\"default\"],\n Entity: _models_lifecycle_v4_resources_Entity__WEBPACK_IMPORTED_MODULE_47__[\"default\"],\n FrameworkVersionInfo: _models_lifecycle_v4_resources_FrameworkVersionInfo__WEBPACK_IMPORTED_MODULE_48__[\"default\"],\n GetConfigApiResponse: _models_lifecycle_v4_resources_GetConfigApiResponse__WEBPACK_IMPORTED_MODULE_49__[\"default\"],\n GetEntityByIdApiResponse: _models_lifecycle_v4_resources_GetEntityByIdApiResponse__WEBPACK_IMPORTED_MODULE_50__[\"default\"],\n GetNotificationsByIdApiResponse: _models_lifecycle_v4_resources_GetNotificationsByIdApiResponse__WEBPACK_IMPORTED_MODULE_51__[\"default\"],\n GetRecommendationByIdApiResponse: _models_lifecycle_v4_resources_GetRecommendationByIdApiResponse__WEBPACK_IMPORTED_MODULE_52__[\"default\"],\n GetStatusApiResponse: _models_lifecycle_v4_resources_GetStatusApiResponse__WEBPACK_IMPORTED_MODULE_53__[\"default\"],\n Image: _models_lifecycle_v4_resources_Image__WEBPACK_IMPORTED_MODULE_54__[\"default\"],\n ImageFile: _models_lifecycle_v4_resources_ImageFile__WEBPACK_IMPORTED_MODULE_55__[\"default\"],\n InProgressOpInfo: _models_lifecycle_v4_resources_InProgressOpInfo__WEBPACK_IMPORTED_MODULE_56__[\"default\"],\n ListEntitiesApiResponse: _models_lifecycle_v4_resources_ListEntitiesApiResponse__WEBPACK_IMPORTED_MODULE_57__[\"default\"],\n ListImagesApiResponse: _models_lifecycle_v4_resources_ListImagesApiResponse__WEBPACK_IMPORTED_MODULE_58__[\"default\"],\n Notification: _models_lifecycle_v4_resources_Notification__WEBPACK_IMPORTED_MODULE_59__[\"default\"],\n NotificationDetail: _models_lifecycle_v4_resources_NotificationDetail__WEBPACK_IMPORTED_MODULE_60__[\"default\"],\n NotificationItem: _models_lifecycle_v4_resources_NotificationItem__WEBPACK_IMPORTED_MODULE_61__[\"default\"],\n RecommendationResult: _models_lifecycle_v4_resources_RecommendationResult__WEBPACK_IMPORTED_MODULE_62__[\"default\"],\n RecommendationSpec: _models_lifecycle_v4_resources_RecommendationSpec__WEBPACK_IMPORTED_MODULE_63__[\"default\"],\n SeverityLevel: _models_lifecycle_v4_resources_SeverityLevel__WEBPACK_IMPORTED_MODULE_64__[\"default\"],\n StatusInfo: _models_lifecycle_v4_resources_StatusInfo__WEBPACK_IMPORTED_MODULE_65__[\"default\"],\n TargetEntity: _models_lifecycle_v4_resources_TargetEntity__WEBPACK_IMPORTED_MODULE_66__[\"default\"],\n UpdateConfigApiResponse: _models_lifecycle_v4_resources_UpdateConfigApiResponse__WEBPACK_IMPORTED_MODULE_67__[\"default\"],\n UpdatedTargetEntity: _models_lifecycle_v4_resources_UpdatedTargetEntity__WEBPACK_IMPORTED_MODULE_68__[\"default\"],\n UpdatedTargetEntityResult: _models_lifecycle_v4_resources_UpdatedTargetEntityResult__WEBPACK_IMPORTED_MODULE_69__[\"default\"],\n TaskReference: _models_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_70__[\"default\"]\n});\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/index.js?");
|
|
343
|
+
|
|
344
|
+
/***/ }),
|
|
345
|
+
|
|
346
|
+
/***/ "./target/generated-sources/swagger/src/models/common/v1/config/Flag.js":
|
|
347
|
+
/*!******************************************************************************!*\
|
|
348
|
+
!*** ./target/generated-sources/swagger/src/models/common/v1/config/Flag.js ***!
|
|
349
|
+
\******************************************************************************/
|
|
350
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
351
|
+
|
|
352
|
+
"use strict";
|
|
353
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Flag)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The Flag model module.\n * @module Ntnx/Flag\n * @version 4.0.1-beta-1\n * @class Flag\n */\nvar _Flag_brand = /*#__PURE__*/new WeakSet();\nvar Flag = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>Flag</code>.\n * Many entities in the Nutanix APIs carry flags. This object captures all the flags associated with that entity through this object. The field that hosts this type of object must have an attribute called x-bounded-map-keys that tells which flags are actually present for that entity. \n * @alias module:Ntnx/Flag\n */\n function Flag() {\n _classCallCheck(this, Flag);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _Flag_brand);\n this.$objectType = \"common.v1.config.Flag\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>Flag</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/Flag} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/Flag} The populated <code>Flag</code> instance.\n */\n return _createClass(Flag, [{\n key: \"getName\",\n value:\n /**\n * @return {}\n */\n function getName() {\n return this.name;\n }\n\n /**\n * @param {} name\n */\n }, {\n key: \"setName\",\n value: function setName(name) {\n this.name = name;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getValue\",\n value: function getValue() {\n return this.value;\n }\n\n /**\n * @param {} value\n */\n }, {\n key: \"setValue\",\n value: function setValue(value) {\n this.value = value;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"name\") {\n if (typeof this.name === 'undefined' || this.name === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"name\", \"undefined or null\");\n }\n }\n if (property === \"value\") {\n if (typeof this.value === 'undefined' || this.value === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"value\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new Flag();\n if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {\n obj.setName(data['name']);\n }\n if (data.hasOwnProperty('value') && data.value !== null && data.value !== undefined) {\n obj.setValue(data['value']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * @memberof Flag\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nFlag.prototype.name = undefined;\n\n/**\n * @memberof Flag\n * @default false\n */\nFlag.prototype.value = false;\nFlag.prototype.$reserved = undefined;\nFlag.prototype.$objectType = undefined;\nFlag.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/Flag.js?");
|
|
354
|
+
|
|
355
|
+
/***/ }),
|
|
356
|
+
|
|
357
|
+
/***/ "./target/generated-sources/swagger/src/models/common/v1/config/KVPair.js":
|
|
358
|
+
/*!********************************************************************************!*\
|
|
359
|
+
!*** ./target/generated-sources/swagger/src/models/common/v1/config/KVPair.js ***!
|
|
360
|
+
\********************************************************************************/
|
|
361
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
362
|
+
|
|
363
|
+
"use strict";
|
|
364
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ KVPair)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The KVPair model module.\n * @module Ntnx/KVPair\n * @version 4.0.1-beta-1\n * @class KVPair\n */\nvar _KVPair_brand = /*#__PURE__*/new WeakSet();\nvar KVPair = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>KVPair</code>.\n * A map describing a set of keys and their corresponding values. \n * @alias module:Ntnx/KVPair\n */\n function KVPair() {\n _classCallCheck(this, KVPair);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _KVPair_brand);\n this.$objectType = \"common.v1.config.KVPair\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>KVPair</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/KVPair} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/KVPair} The populated <code>KVPair</code> instance.\n */\n return _createClass(KVPair, [{\n key: \"getName\",\n value:\n /**\n * Returns The key of this key-value pair\n * @return {}\n */\n function getName() {\n return this.name;\n }\n\n /**\n * Sets The key of this key-value pair\n * @param {} name The key of this key-value pair\n */\n }, {\n key: \"setName\",\n value: function setName(name) {\n this.name = name;\n }\n\n /**\n * Returns The value associated with the key for this key-value pair\n * @return {}\n */\n }, {\n key: \"getValue\",\n value: function getValue() {\n return this.value;\n }\n\n /**\n * Sets The value associated with the key for this key-value pair\n * @param {} value The value associated with the key for this key-value pair\n */\n }, {\n key: \"setValue\",\n value: function setValue(value) {\n this.value = value;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': typeof this.getValue().toJson !== \"undefined\" ? this.getValue().toJson(false) : Array.isArray(this.getValue()) ? this.getValue().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_KVPair_brand, this, _toJsonMapType).call(this, this.getValue(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': typeof this.getValue().toJson !== \"undefined\" ? this.getValue().toJson() : Array.isArray(this.getValue()) ? this.getValue().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_KVPair_brand, this, _toJsonMapType).call(this, this.getValue())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"name\") {\n if (typeof this.name === 'undefined' || this.name === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"name\", \"undefined or null\");\n }\n }\n if (property === \"value\") {\n if (typeof this.value === 'undefined' || this.value === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"value\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new KVPair();\n if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {\n obj.setName(data['name']);\n }\n if (data.hasOwnProperty('value') && data.value !== null && data.value !== undefined) {\n if (Array.isArray(data['value'])) {\n if (data['value'].length === 0) {\n obj.setValue([]);\n } else {\n itemArr = [];\n items = data['value'];\n if (items[0].hasOwnProperty('$objectType')) {\n discriminator = items[0]['$objectType'];\n } else {\n discriminator = _typeof(items[0]);\n }\n for (i = 0; i < items.length; i++) {\n switch (discriminator) {\n case 'string':\n itemArr.push(items[i]);\n break;\n case 'number':\n itemArr.push(items[i]);\n break;\n default:\n throw \"Unknown list of type \" + discriminator + \" in data\";\n }\n }\n obj.setValue(itemArr);\n }\n } else {\n if (data['value'].hasOwnProperty('$objectType')) {\n discriminator = data['value']['$objectType'];\n } else {\n discriminator = _typeof(data['value']);\n }\n switch (discriminator) {\n case 'string':\n obj.setValue(data['value']);\n break;\n case 'boolean':\n obj.setValue(data['value']);\n break;\n case 'number':\n obj.setValue(data['value']);\n break;\n case 'object':\n obj.setValue(new Map(Object.entries(data['value'])));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * The key of this key-value pair\n * @memberof KVPair\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nKVPair.prototype.name = undefined;\n\n/**\n * The value associated with the key for this key-value pair\n * @memberof KVPair\n */\nKVPair.prototype.value = undefined;\nKVPair.prototype.$reserved = undefined;\nKVPair.prototype.$objectType = undefined;\nKVPair.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/KVPair.js?");
|
|
365
|
+
|
|
366
|
+
/***/ }),
|
|
367
|
+
|
|
368
|
+
/***/ "./target/generated-sources/swagger/src/models/common/v1/config/Message.js":
|
|
369
|
+
/*!*********************************************************************************!*\
|
|
370
|
+
!*** ./target/generated-sources/swagger/src/models/common/v1/config/Message.js ***!
|
|
371
|
+
\*********************************************************************************/
|
|
372
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
373
|
+
|
|
374
|
+
"use strict";
|
|
375
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Message)\n/* harmony export */ });\n/* harmony import */ var _MessageSeverity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MessageSeverity */ \"./target/generated-sources/swagger/src/models/common/v1/config/MessageSeverity.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The Message model module.\n * @module Ntnx/Message\n * @version 4.0.1-beta-1\n * @class Message\n */\nvar _Message_brand = /*#__PURE__*/new WeakSet();\nvar Message = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>Message</code>.\n * @alias module:Ntnx/Message\n */\n function Message() {\n _classCallCheck(this, Message);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _Message_brand);\n this.$objectType = \"common.v1.config.Message\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>Message</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/Message} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/Message} The populated <code>Message</code> instance.\n */\n return _createClass(Message, [{\n key: \"getCode\",\n value:\n /**\n * Returns A code that uniquely identifies a message. \n * @return {}\n */\n function getCode() {\n return this.code;\n }\n\n /**\n * Sets A code that uniquely identifies a message. \n * @param {} code A code that uniquely identifies a message. \n */\n }, {\n key: \"setCode\",\n value: function setCode(code) {\n this.code = code;\n }\n\n /**\n * Returns The description of the message. \n * @return {}\n */\n }, {\n key: \"getMessage\",\n value: function getMessage() {\n return this.message;\n }\n\n /**\n * Sets The description of the message. \n * @param {} message The description of the message. \n */\n }, {\n key: \"setMessage\",\n value: function setMessage(message) {\n this.message = message;\n }\n\n /**\n * Returns The locale for the message description. \n * @return {}\n */\n }, {\n key: \"getLocale\",\n value: function getLocale() {\n return this.locale;\n }\n\n /**\n * Sets The locale for the message description. \n * @param {} locale The locale for the message description. \n */\n }, {\n key: \"setLocale\",\n value: function setLocale(locale) {\n this.locale = locale;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getSeverity\",\n value: function getSeverity() {\n return this.severity;\n }\n\n /**\n * @param {} severity\n */\n }, {\n key: \"setSeverity\",\n value: function setSeverity(severity) {\n this.severity = severity;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {\n 'code': this.getCode()\n } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {\n 'locale': this.getLocale()\n } : {}), typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {\n 'severity': this.getSeverity()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {\n 'code': this.getCode()\n } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {\n 'locale': this.getLocale()\n } : {}), typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {\n 'severity': this.getSeverity()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"code\") {\n if (typeof this.code === 'undefined' || this.code === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"code\", \"undefined or null\");\n }\n }\n if (property === \"message\") {\n if (typeof this.message === 'undefined' || this.message === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"message\", \"undefined or null\");\n }\n }\n if (property === \"locale\") {\n if (typeof this.locale === 'undefined' || this.locale === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"locale\", \"undefined or null\");\n }\n }\n if (property === \"severity\") {\n if (typeof this.severity === 'undefined' || this.severity === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"severity\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new Message();\n if (data.hasOwnProperty('code') && data.code !== null && data.code !== undefined) {\n obj.setCode(data['code']);\n }\n if (data.hasOwnProperty('message') && data.message !== null && data.message !== undefined) {\n obj.setMessage(data['message']);\n }\n if (data.hasOwnProperty('locale') && data.locale !== null && data.locale !== undefined) {\n obj.setLocale(data['locale']);\n }\n if (data.hasOwnProperty('severity') && data.severity !== null && data.severity !== undefined) {\n obj.setSeverity(_MessageSeverity__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['severity']));\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * A code that uniquely identifies a message. \n * @memberof Message\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nMessage.prototype.code = undefined;\n\n/**\n * The description of the message. \n * @memberof Message\n */\nMessage.prototype.message = undefined;\n\n/**\n * The locale for the message description. \n * @memberof Message\n * @default 'en_US'\n */\nMessage.prototype.locale = 'en_US';\n\n/**\n * @memberof Message\n */\nMessage.prototype.severity = undefined;\nMessage.prototype.$reserved = undefined;\nMessage.prototype.$objectType = undefined;\nMessage.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/Message.js?");
|
|
376
|
+
|
|
377
|
+
/***/ }),
|
|
378
|
+
|
|
379
|
+
/***/ "./target/generated-sources/swagger/src/models/common/v1/config/MessageSeverity.js":
|
|
380
|
+
/*!*****************************************************************************************!*\
|
|
381
|
+
!*** ./target/generated-sources/swagger/src/models/common/v1/config/MessageSeverity.js ***!
|
|
382
|
+
\*****************************************************************************************/
|
|
383
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
384
|
+
|
|
385
|
+
"use strict";
|
|
386
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Enum class MessageSeverity.\n * @enum {string}\n * @readonly\n */\nvar MessageSeverity = {\n /** \n * value: \"$UNKNOWN\"\n * @const\n */\n $UNKNOWN: \"$UNKNOWN\",\n /** \n * value: \"$REDACTED\"\n * @const\n */\n $REDACTED: \"$REDACTED\",\n /** \n * Information about successful completion.\n * @const\n */\n INFO: \"INFO\",\n /** \n * Warning indicating future error.\n * @const\n */\n WARNING: \"WARNING\",\n /** \n * Error indicating failed completion.\n * @const\n */\n ERROR: \"ERROR\"\n};\n\n/**\n* Returns a <code>MessageSeverity</code> enum value from a JavaScript object name.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {MessageSeverity} The enum <code>MessageSeverity</code> value.\n*/\nMessageSeverity.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n var enumVal = Object.keys(MessageSeverity).find(function (key) {\n return MessageSeverity[key] === obj;\n });\n return enumVal === undefined || enumVal === null ? MessageSeverity.$UNKNOWN : MessageSeverity[enumVal];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\n\n/**\n* Validates <code>MessageSeverity</code> enum value.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {null} Throws error for invalid value.\n*/\nMessageSeverity.validate = function (obj) {\n switch (obj) {\n case MessageSeverity.$UNKNOWN:\n case MessageSeverity.$REDACTED:\n case MessageSeverity.INFO:\n case MessageSeverity.WARNING:\n case MessageSeverity.ERROR:\n return;\n default:\n throw new Error(\"Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }\");\n }\n};\nObject.freeze(MessageSeverity);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MessageSeverity);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/MessageSeverity.js?");
|
|
387
|
+
|
|
388
|
+
/***/ }),
|
|
389
|
+
|
|
390
|
+
/***/ "./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js":
|
|
391
|
+
/*!******************************************************************************************!*\
|
|
392
|
+
!*** ./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js ***!
|
|
393
|
+
\******************************************************************************************/
|
|
394
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
395
|
+
|
|
396
|
+
"use strict";
|
|
397
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TenantAwareModel)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The TenantAwareModel model module.\n * @module Ntnx/TenantAwareModel\n * @version 4.0.1-beta-1\n * @class TenantAwareModel\n */\nvar _TenantAwareModel_brand = /*#__PURE__*/new WeakSet();\nvar TenantAwareModel = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>TenantAwareModel</code>.\n * A model base class whose instances are bound to a specific tenant. This model adds a tenantId to the base model class that it extends and is automatically set by the server. \n * @alias module:Ntnx/TenantAwareModel\n */\n function TenantAwareModel() {\n _classCallCheck(this, TenantAwareModel);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _TenantAwareModel_brand);\n this.$objectType = \"common.v1.config.TenantAwareModel\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>TenantAwareModel</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/TenantAwareModel} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/TenantAwareModel} The populated <code>TenantAwareModel</code> instance.\n */\n return _createClass(TenantAwareModel, [{\n key: \"getTenantId\",\n value:\n /**\n * Returns A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n * @return {}\n */\n function getTenantId() {\n return this.tenantId;\n }\n\n /**\n * Sets A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n * @param {} tenantId A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n */\n }, {\n key: \"setTenantId\",\n value: function setTenantId(tenantId) {\n this.tenantId = tenantId;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread({}, typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n };\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"tenantId\") {\n if (typeof this.tenantId === 'undefined' || this.tenantId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"tenantId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"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}$/\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new TenantAwareModel();\n if (data.hasOwnProperty('tenantId') && data.tenantId !== null && data.tenantId !== undefined) {\n obj.setTenantId(data['tenantId']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n * @memberof TenantAwareModel\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nTenantAwareModel.prototype.tenantId = undefined;\nTenantAwareModel.prototype.$reserved = undefined;\nTenantAwareModel.prototype.$objectType = undefined;\nTenantAwareModel.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js?");
|
|
398
|
+
|
|
399
|
+
/***/ }),
|
|
400
|
+
|
|
401
|
+
/***/ "./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js":
|
|
402
|
+
/*!***********************************************************************************!*\
|
|
403
|
+
!*** ./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js ***!
|
|
404
|
+
\***********************************************************************************/
|
|
405
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
406
|
+
|
|
407
|
+
"use strict";
|
|
408
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ApiLink)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The ApiLink model module.\n * @module Ntnx/ApiLink\n * @version 4.0.1-beta-1\n * @class ApiLink\n */\nvar _ApiLink_brand = /*#__PURE__*/new WeakSet();\nvar ApiLink = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>ApiLink</code>.\n * A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n * @alias module:Ntnx/ApiLink\n */\n function ApiLink() {\n _classCallCheck(this, ApiLink);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _ApiLink_brand);\n this.$objectType = \"common.v1.response.ApiLink\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>ApiLink</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ApiLink} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ApiLink} The populated <code>ApiLink</code> instance.\n */\n return _createClass(ApiLink, [{\n key: \"getHref\",\n value:\n /**\n * Returns The URL at which the entity described by the link can be accessed. \n * @return {}\n */\n function getHref() {\n return this.href;\n }\n\n /**\n * Sets The URL at which the entity described by the link can be accessed. \n * @param {} href The URL at which the entity described by the link can be accessed. \n */\n }, {\n key: \"setHref\",\n value: function setHref(href) {\n this.href = href;\n }\n\n /**\n * Returns A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \\\"self\\\" identifies the URL for the object. \n * @return {}\n */\n }, {\n key: \"getRel\",\n value: function getRel() {\n return this.rel;\n }\n\n /**\n * Sets A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \\\"self\\\" identifies the URL for the object. \n * @param {} rel A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \\\"self\\\" identifies the URL for the object. \n */\n }, {\n key: \"setRel\",\n value: function setRel(rel) {\n this.rel = rel;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getHref() !== 'undefined' && this.getHref() !== null ? {\n 'href': this.getHref()\n } : {}), typeof this.getRel() !== 'undefined' && this.getRel() !== null ? {\n 'rel': this.getRel()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getHref() !== 'undefined' && this.getHref() !== null ? {\n 'href': this.getHref()\n } : {}), typeof this.getRel() !== 'undefined' && this.getRel() !== null ? {\n 'rel': this.getRel()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"href\") {\n if (typeof this.href === 'undefined' || this.href === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"href\", \"undefined or null\");\n }\n }\n if (property === \"rel\") {\n if (typeof this.rel === 'undefined' || this.rel === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"rel\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ApiLink();\n if (data.hasOwnProperty('href') && data.href !== null && data.href !== undefined) {\n obj.setHref(data['href']);\n }\n if (data.hasOwnProperty('rel') && data.rel !== null && data.rel !== undefined) {\n obj.setRel(data['rel']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * The URL at which the entity described by the link can be accessed. \n * @memberof ApiLink\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nApiLink.prototype.href = undefined;\n\n/**\n * A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \\\"self\\\" identifies the URL for the object. \n * @memberof ApiLink\n */\nApiLink.prototype.rel = undefined;\nApiLink.prototype.$reserved = undefined;\nApiLink.prototype.$objectType = undefined;\nApiLink.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js?");
|
|
409
|
+
|
|
410
|
+
/***/ }),
|
|
411
|
+
|
|
412
|
+
/***/ "./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js":
|
|
413
|
+
/*!***********************************************************************************************!*\
|
|
414
|
+
!*** ./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js ***!
|
|
415
|
+
\***********************************************************************************************/
|
|
416
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
417
|
+
|
|
418
|
+
"use strict";
|
|
419
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ApiResponseMetadata)\n/* harmony export */ });\n/* harmony import */ var _config_Flag__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config/Flag */ \"./target/generated-sources/swagger/src/models/common/v1/config/Flag.js\");\n/* harmony import */ var _config_KVPair__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../config/KVPair */ \"./target/generated-sources/swagger/src/models/common/v1/config/KVPair.js\");\n/* harmony import */ var _config_Message__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config/Message */ \"./target/generated-sources/swagger/src/models/common/v1/config/Message.js\");\n/* harmony import */ var _ApiLink__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The ApiResponseMetadata model module.\n * @module Ntnx/ApiResponseMetadata\n * @version 4.0.1-beta-1\n * @class ApiResponseMetadata\n */\nvar _ApiResponseMetadata_brand = /*#__PURE__*/new WeakSet();\nvar ApiResponseMetadata = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>ApiResponseMetadata</code>.\n * The metadata associated with an API response. This value is always present and minimally contains the self-link for the API request that produced this response. It also contains pagination data for the paginated requests. \n * @alias module:Ntnx/ApiResponseMetadata\n */\n function ApiResponseMetadata() {\n _classCallCheck(this, ApiResponseMetadata);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _ApiResponseMetadata_brand);\n this.$objectType = \"common.v1.response.ApiResponseMetadata\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>ApiResponseMetadata</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ApiResponseMetadata} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ApiResponseMetadata} The populated <code>ApiResponseMetadata</code> instance.\n */\n return _createClass(ApiResponseMetadata, [{\n key: \"getFlags\",\n value:\n /**\n * Returns An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated. \n * @return {}\n */\n function getFlags() {\n return this.flags;\n }\n\n /**\n * Sets An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated. \n * @param {} flags An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated. \n */\n }, {\n key: \"setFlags\",\n value: function setFlags(flags) {\n this.flags = flags;\n }\n\n /**\n * Returns An array of HATEOAS style links for the response that may also include pagination links for list operations. \n * @return {}\n */\n }, {\n key: \"getLinks\",\n value: function getLinks() {\n return this.links;\n }\n\n /**\n * Sets An array of HATEOAS style links for the response that may also include pagination links for list operations. \n * @param {} links An array of HATEOAS style links for the response that may also include pagination links for list operations. \n */\n }, {\n key: \"setLinks\",\n value: function setLinks(links) {\n this.links = links;\n }\n\n /**\n * Returns The total number of entities that are available on the server for this type. \n * @return {}\n */\n }, {\n key: \"getTotalAvailableResults\",\n value: function getTotalAvailableResults() {\n return this.totalAvailableResults;\n }\n\n /**\n * Sets The total number of entities that are available on the server for this type. \n * @param {} totalAvailableResults The total number of entities that are available on the server for this type. \n */\n }, {\n key: \"setTotalAvailableResults\",\n value: function setTotalAvailableResults(totalAvailableResults) {\n this.totalAvailableResults = totalAvailableResults;\n }\n\n /**\n * Returns Information, Warning or Error messages that might provide additional contextual information related to the operation. \n * @return {}\n */\n }, {\n key: \"getMessages\",\n value: function getMessages() {\n return this.messages;\n }\n\n /**\n * Sets Information, Warning or Error messages that might provide additional contextual information related to the operation. \n * @param {} messages Information, Warning or Error messages that might provide additional contextual information related to the operation. \n */\n }, {\n key: \"setMessages\",\n value: function setMessages(messages) {\n this.messages = messages;\n }\n\n /**\n * Returns An array of entity-specific metadata \n * @return {}\n */\n }, {\n key: \"getExtraInfo\",\n value: function getExtraInfo() {\n return this.extraInfo;\n }\n\n /**\n * Sets An array of entity-specific metadata \n * @param {} extraInfo An array of entity-specific metadata \n */\n }, {\n key: \"setExtraInfo\",\n value: function setExtraInfo(extraInfo) {\n this.extraInfo = extraInfo;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getFlags() !== 'undefined' && this.getFlags() !== null ? {\n 'flags': this.getFlags().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTotalAvailableResults() !== 'undefined' && this.getTotalAvailableResults() !== null ? {\n 'totalAvailableResults': this.getTotalAvailableResults()\n } : {}), typeof this.getMessages() !== 'undefined' && this.getMessages() !== null ? {\n 'messages': this.getMessages().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getExtraInfo() !== 'undefined' && this.getExtraInfo() !== null ? {\n 'extraInfo': this.getExtraInfo().map(function (item) {\n return item.toJson(false);\n })\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getFlags() !== 'undefined' && this.getFlags() !== null ? {\n 'flags': this.getFlags().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTotalAvailableResults() !== 'undefined' && this.getTotalAvailableResults() !== null ? {\n 'totalAvailableResults': this.getTotalAvailableResults()\n } : {}), typeof this.getMessages() !== 'undefined' && this.getMessages() !== null ? {\n 'messages': this.getMessages().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getExtraInfo() !== 'undefined' && this.getExtraInfo() !== null ? {\n 'extraInfo': this.getExtraInfo().map(function (item) {\n return item.toJson(false);\n })\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"flags\") {\n if (typeof this.flags === 'undefined' || this.flags === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"flags\", \"undefined or null\");\n }\n }\n if (property === \"links\") {\n if (typeof this.links === 'undefined' || this.links === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"links\", \"undefined or null\");\n }\n }\n if (property === \"totalAvailableResults\") {\n if (typeof this.totalAvailableResults === 'undefined' || this.totalAvailableResults === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"totalAvailableResults\", \"undefined or null\");\n }\n }\n if (property === \"messages\") {\n if (typeof this.messages === 'undefined' || this.messages === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"messages\", \"undefined or null\");\n }\n }\n if (property === \"extraInfo\") {\n if (typeof this.extraInfo === 'undefined' || this.extraInfo === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"extraInfo\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ApiResponseMetadata();\n if (data.hasOwnProperty('flags') && data.flags !== null && data.flags !== undefined) {\n itemArr = [];\n items = data.flags;\n for (i = 0; i < items.length; i++) {\n item = _config_Flag__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setFlags(itemArr);\n }\n if (data.hasOwnProperty('links') && data.links !== null && data.links !== undefined) {\n itemArr = [];\n items = data.links;\n for (i = 0; i < items.length; i++) {\n item = _ApiLink__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setLinks(itemArr);\n }\n if (data.hasOwnProperty('totalAvailableResults') && data.totalAvailableResults !== null && data.totalAvailableResults !== undefined) {\n obj.setTotalAvailableResults(data['totalAvailableResults']);\n }\n if (data.hasOwnProperty('messages') && data.messages !== null && data.messages !== undefined) {\n itemArr = [];\n items = data.messages;\n for (i = 0; i < items.length; i++) {\n item = _config_Message__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setMessages(itemArr);\n }\n if (data.hasOwnProperty('extraInfo') && data.extraInfo !== null && data.extraInfo !== undefined) {\n itemArr = [];\n items = data.extraInfo;\n for (i = 0; i < items.length; i++) {\n item = _config_KVPair__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setExtraInfo(itemArr);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated. \n * @memberof ApiResponseMetadata\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nApiResponseMetadata.prototype.flags = undefined;\n\n/**\n * An array of HATEOAS style links for the response that may also include pagination links for list operations. \n * @memberof ApiResponseMetadata\n */\nApiResponseMetadata.prototype.links = undefined;\n\n/**\n * The total number of entities that are available on the server for this type. \n * @memberof ApiResponseMetadata\n */\nApiResponseMetadata.prototype.totalAvailableResults = undefined;\n\n/**\n * Information, Warning or Error messages that might provide additional contextual information related to the operation. \n * @memberof ApiResponseMetadata\n */\nApiResponseMetadata.prototype.messages = undefined;\n\n/**\n * An array of entity-specific metadata \n * @memberof ApiResponseMetadata\n */\nApiResponseMetadata.prototype.extraInfo = undefined;\nApiResponseMetadata.prototype.$reserved = undefined;\nApiResponseMetadata.prototype.$objectType = undefined;\nApiResponseMetadata.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js?");
|
|
420
|
+
|
|
421
|
+
/***/ }),
|
|
422
|
+
|
|
423
|
+
/***/ "./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js":
|
|
424
|
+
/*!*******************************************************************************************************!*\
|
|
425
|
+
!*** ./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js ***!
|
|
426
|
+
\*******************************************************************************************************/
|
|
427
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
428
|
+
|
|
429
|
+
"use strict";
|
|
430
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ExternalizableAbstractModel)\n/* harmony export */ });\n/* harmony import */ var _config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config/TenantAwareModel */ \"./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js\");\n/* harmony import */ var _ApiLink__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n/**\n * The ExternalizableAbstractModel model module.\n * @module Ntnx/ExternalizableAbstractModel\n * @version 4.0.1-beta-1\n * @class ExternalizableAbstractModel\n */\nvar _ExternalizableAbstractModel_brand = /*#__PURE__*/new WeakSet();\nvar ExternalizableAbstractModel = /*#__PURE__*/function (_TenantAwareModel) {\n /**\n * Constructs a new <code>ExternalizableAbstractModel</code>.\n * A model that represents an object instance that is accessible through an API endpoint. Instances of this type get an extId field that contains the globally unique identifier for that instance. Externally accessible instances are always tenant aware and, therefore, extend the TenantAwareModel \n * @alias module:Ntnx/ExternalizableAbstractModel\n * @extends module:Ntnx/TenantAwareModel\n */\n function ExternalizableAbstractModel() {\n var _this;\n _classCallCheck(this, ExternalizableAbstractModel);\n _this = _callSuper(this, ExternalizableAbstractModel);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _ExternalizableAbstractModel_brand);\n _this.$objectType = \"common.v1.response.ExternalizableAbstractModel\";\n _this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>ExternalizableAbstractModel</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ExternalizableAbstractModel} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ExternalizableAbstractModel} The populated <code>ExternalizableAbstractModel</code> instance.\n */\n _inherits(ExternalizableAbstractModel, _TenantAwareModel);\n return _createClass(ExternalizableAbstractModel, [{\n key: \"getExtId\",\n value:\n /**\n * Returns A globally unique identifier of an instance that is suitable for external consumption. \n * @return {}\n */\n function getExtId() {\n return this.extId;\n }\n\n /**\n * Sets A globally unique identifier of an instance that is suitable for external consumption. \n * @param {} extId A globally unique identifier of an instance that is suitable for external consumption. \n */\n }, {\n key: \"setExtId\",\n value: function setExtId(extId) {\n this.extId = extId;\n }\n\n /**\n * Returns A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n * @return {}\n */\n }, {\n key: \"getLinks\",\n value: function getLinks() {\n return this.links;\n }\n\n /**\n * Sets A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n * @param {} links A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n */\n }, {\n key: \"setLinks\",\n value: function setLinks(links) {\n this.links = links;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread({}, typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"extId\") {\n if (typeof this.extId === 'undefined' || this.extId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"extId\", \"undefined or null\");\n }\n if (typeof scope === 'undefined' || scope === null) {\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"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}$/\");\n }\n } else if (scope === _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__[\"default\"].update) {\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"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}$/\");\n }\n }\n }\n if (property === \"links\") {\n if (typeof this.links === 'undefined' || this.links === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"links\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ExternalizableAbstractModel();\n _config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('extId') && data.extId !== null && data.extId !== undefined) {\n obj.setExtId(data['extId']);\n }\n if (data.hasOwnProperty('links') && data.links !== null && data.links !== undefined) {\n itemArr = [];\n items = data.links;\n for (i = 0; i < items.length; i++) {\n item = _ApiLink__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setLinks(itemArr);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n/**\n * A globally unique identifier of an instance that is suitable for external consumption. \n * @memberof ExternalizableAbstractModel\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nExternalizableAbstractModel.prototype.extId = undefined;\n\n/**\n * A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n * @memberof ExternalizableAbstractModel\n */\nExternalizableAbstractModel.prototype.links = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js?");
|
|
431
|
+
|
|
432
|
+
/***/ }),
|
|
433
|
+
|
|
434
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/common/AvailableVersionStatus.js":
|
|
435
|
+
/*!***************************************************************************************************!*\
|
|
436
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/common/AvailableVersionStatus.js ***!
|
|
437
|
+
\***************************************************************************************************/
|
|
438
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
439
|
+
|
|
440
|
+
"use strict";
|
|
441
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Enum class AvailableVersionStatus.\n * @enum {string}\n * @readonly\n */\nvar AvailableVersionStatus = {\n /** \n * value: \"$UNKNOWN\"\n * @const\n */\n $UNKNOWN: \"$UNKNOWN\",\n /** \n * value: \"$REDACTED\"\n * @const\n */\n $REDACTED: \"$REDACTED\",\n /** \n * Recommended version.\n * @const\n */\n RECOMMENDED: \"RECOMMENDED\",\n /** \n * Critical version.\n * @const\n */\n CRITICAL: \"CRITICAL\",\n /** \n * Latest version.\n * @const\n */\n LATEST: \"LATEST\",\n /** \n * Deprecated version.\n * @const\n */\n DEPRECATED: \"DEPRECATED\",\n /** \n * Emergency version.\n * @const\n */\n EMERGENCY: \"EMERGENCY\",\n /** \n * Available version.\n * @const\n */\n AVAILABLE: \"AVAILABLE\",\n /** \n * Long term supported version.\n * @const\n */\n LTS: \"LTS\",\n /** \n * Short term supported version.\n * @const\n */\n STS: \"STS\"\n};\n\n/**\n* Returns a <code>AvailableVersionStatus</code> enum value from a JavaScript object name.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {AvailableVersionStatus} The enum <code>AvailableVersionStatus</code> value.\n*/\nAvailableVersionStatus.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n var enumVal = Object.keys(AvailableVersionStatus).find(function (key) {\n return AvailableVersionStatus[key] === obj;\n });\n return enumVal === undefined || enumVal === null ? AvailableVersionStatus.$UNKNOWN : AvailableVersionStatus[enumVal];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\n\n/**\n* Validates <code>AvailableVersionStatus</code> enum value.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {null} Throws error for invalid value.\n*/\nAvailableVersionStatus.validate = function (obj) {\n switch (obj) {\n case AvailableVersionStatus.$UNKNOWN:\n case AvailableVersionStatus.$REDACTED:\n case AvailableVersionStatus.RECOMMENDED:\n case AvailableVersionStatus.CRITICAL:\n case AvailableVersionStatus.LATEST:\n case AvailableVersionStatus.DEPRECATED:\n case AvailableVersionStatus.EMERGENCY:\n case AvailableVersionStatus.AVAILABLE:\n case AvailableVersionStatus.LTS:\n case AvailableVersionStatus.STS:\n return;\n default:\n throw new Error(\"Invalid : must be AvailableVersionStatus.{ $UNKNOWN|$REDACTED|RECOMMENDED|CRITICAL|LATEST|DEPRECATED|EMERGENCY|AVAILABLE|LTS|STS }\");\n }\n};\nObject.freeze(AvailableVersionStatus);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AvailableVersionStatus);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/common/AvailableVersionStatus.js?");
|
|
442
|
+
|
|
443
|
+
/***/ }),
|
|
444
|
+
|
|
445
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/common/CheckSumType.js":
|
|
446
|
+
/*!*****************************************************************************************!*\
|
|
447
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/common/CheckSumType.js ***!
|
|
448
|
+
\*****************************************************************************************/
|
|
449
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
450
|
+
|
|
451
|
+
"use strict";
|
|
452
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Enum class CheckSumType.\n * @enum {string}\n * @readonly\n */\nvar CheckSumType = {\n /** \n * value: \"$UNKNOWN\"\n * @const\n */\n $UNKNOWN: \"$UNKNOWN\",\n /** \n * value: \"$REDACTED\"\n * @const\n */\n $REDACTED: \"$REDACTED\",\n /** \n * SHA256 sum.\n * @const\n */\n SHASUM: \"SHASUM\",\n /** \n * Hex MD5 sum.\n * @const\n */\n HEX_MD5: \"HEX_MD5\"\n};\n\n/**\n* Returns a <code>CheckSumType</code> enum value from a JavaScript object name.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {CheckSumType} The enum <code>CheckSumType</code> value.\n*/\nCheckSumType.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n var enumVal = Object.keys(CheckSumType).find(function (key) {\n return CheckSumType[key] === obj;\n });\n return enumVal === undefined || enumVal === null ? CheckSumType.$UNKNOWN : CheckSumType[enumVal];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\n\n/**\n* Validates <code>CheckSumType</code> enum value.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {null} Throws error for invalid value.\n*/\nCheckSumType.validate = function (obj) {\n switch (obj) {\n case CheckSumType.$UNKNOWN:\n case CheckSumType.$REDACTED:\n case CheckSumType.SHASUM:\n case CheckSumType.HEX_MD5:\n return;\n default:\n throw new Error(\"Invalid : must be CheckSumType.{ $UNKNOWN|$REDACTED|SHASUM|HEX_MD5 }\");\n }\n};\nObject.freeze(CheckSumType);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CheckSumType);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/common/CheckSumType.js?");
|
|
453
|
+
|
|
454
|
+
/***/ }),
|
|
455
|
+
|
|
456
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityBaseModel.js":
|
|
457
|
+
/*!********************************************************************************************!*\
|
|
458
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityBaseModel.js ***!
|
|
459
|
+
\********************************************************************************************/
|
|
460
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
461
|
+
|
|
462
|
+
"use strict";
|
|
463
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ EntityBaseModel)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/v1/response/ExternalizableAbstractModel */ \"./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js\");\n/* harmony import */ var _EntityType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./EntityType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityType.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n/**\n * The EntityBaseModel model module.\n * @module Ntnx/EntityBaseModel\n * @version 4.0.1-beta-1\n * @class EntityBaseModel\n */\nvar _EntityBaseModel_brand = /*#__PURE__*/new WeakSet();\nvar EntityBaseModel = /*#__PURE__*/function (_ExternalizableAbstra) {\n /**\n * Constructs a new <code>EntityBaseModel</code>.\n * The list of properties that can be expanded on the LCM entity.\n * @alias module:Ntnx/EntityBaseModel\n * @extends module:Ntnx/ExternalizableAbstractModel\n */\n function EntityBaseModel() {\n var _this;\n _classCallCheck(this, EntityBaseModel);\n _this = _callSuper(this, EntityBaseModel);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _EntityBaseModel_brand);\n _this.$objectType = \"lifecycle.v4.common.EntityBaseModel\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>EntityBaseModel</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/EntityBaseModel} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/EntityBaseModel} The populated <code>EntityBaseModel</code> instance.\n */\n _inherits(EntityBaseModel, _ExternalizableAbstra);\n return _createClass(EntityBaseModel, [{\n key: \"getEntityClass\",\n value:\n /**\n * Returns LCM entity class.\n * @return {}\n */\n function getEntityClass() {\n return this.entityClass;\n }\n\n /**\n * Sets LCM entity class.\n * @param {} entityClass LCM entity class.\n */\n }, {\n key: \"setEntityClass\",\n value: function setEntityClass(entityClass) {\n this.entityClass = entityClass;\n }\n\n /**\n * Returns LCM entity model.\n * @return {}\n */\n }, {\n key: \"getEntityModel\",\n value: function getEntityModel() {\n return this.entityModel;\n }\n\n /**\n * Sets LCM entity model.\n * @param {} entityModel LCM entity model.\n */\n }, {\n key: \"setEntityModel\",\n value: function setEntityModel(entityModel) {\n this.entityModel = entityModel;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getEntityType\",\n value: function getEntityType() {\n return this.entityType;\n }\n\n /**\n * @param {} entityType\n */\n }, {\n key: \"setEntityType\",\n value: function setEntityType(entityType) {\n this.entityType = entityType;\n }\n\n /**\n * Returns Current version of an LCM entity.\n * @return {}\n */\n }, {\n key: \"getEntityVersion\",\n value: function getEntityVersion() {\n return this.entityVersion;\n }\n\n /**\n * Sets Current version of an LCM entity.\n * @param {} entityVersion Current version of an LCM entity.\n */\n }, {\n key: \"setEntityVersion\",\n value: function setEntityVersion(entityVersion) {\n this.entityVersion = entityVersion;\n }\n\n /**\n * Returns A hardware family for a LCM entity.\n * @return {}\n */\n }, {\n key: \"getHardwareFamily\",\n value: function getHardwareFamily() {\n return this.hardwareFamily;\n }\n\n /**\n * Sets A hardware family for a LCM entity.\n * @param {} hardwareFamily A hardware family for a LCM entity.\n */\n }, {\n key: \"setHardwareFamily\",\n value: function setHardwareFamily(hardwareFamily) {\n this.hardwareFamily = hardwareFamily;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {\n 'entityClass': this.getEntityClass()\n } : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {\n 'entityModel': this.getEntityModel()\n } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {\n 'entityType': this.getEntityType()\n } : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {\n 'entityVersion': this.getEntityVersion()\n } : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {\n 'hardwareFamily': this.getHardwareFamily()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {\n 'entityClass': this.getEntityClass()\n } : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {\n 'entityModel': this.getEntityModel()\n } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {\n 'entityType': this.getEntityType()\n } : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {\n 'entityVersion': this.getEntityVersion()\n } : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {\n 'hardwareFamily': this.getHardwareFamily()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"entityClass\") {\n if (typeof this.entityClass === 'undefined' || this.entityClass === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"entityClass\", \"undefined or null\");\n }\n }\n if (property === \"entityModel\") {\n if (typeof this.entityModel === 'undefined' || this.entityModel === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"entityModel\", \"undefined or null\");\n }\n }\n if (property === \"entityType\") {\n if (typeof this.entityType === 'undefined' || this.entityType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"entityType\", \"undefined or null\");\n }\n }\n if (property === \"entityVersion\") {\n if (typeof this.entityVersion === 'undefined' || this.entityVersion === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"entityVersion\", \"undefined or null\");\n }\n }\n if (property === \"hardwareFamily\") {\n if (typeof this.hardwareFamily === 'undefined' || this.hardwareFamily === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"hardwareFamily\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new EntityBaseModel();\n _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('entityClass') && data.entityClass !== null && data.entityClass !== undefined) {\n obj.setEntityClass(data['entityClass']);\n }\n if (data.hasOwnProperty('entityModel') && data.entityModel !== null && data.entityModel !== undefined) {\n obj.setEntityModel(data['entityModel']);\n }\n if (data.hasOwnProperty('entityType') && data.entityType !== null && data.entityType !== undefined) {\n obj.setEntityType(_EntityType__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['entityType']));\n }\n if (data.hasOwnProperty('entityVersion') && data.entityVersion !== null && data.entityVersion !== undefined) {\n obj.setEntityVersion(data['entityVersion']);\n }\n if (data.hasOwnProperty('hardwareFamily') && data.hardwareFamily !== null && data.hardwareFamily !== undefined) {\n obj.setHardwareFamily(data['hardwareFamily']);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n/**\n * LCM entity class.\n * @memberof EntityBaseModel\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nEntityBaseModel.prototype.entityClass = undefined;\n\n/**\n * LCM entity model.\n * @memberof EntityBaseModel\n */\nEntityBaseModel.prototype.entityModel = undefined;\n\n/**\n * @memberof EntityBaseModel\n */\nEntityBaseModel.prototype.entityType = undefined;\n\n/**\n * Current version of an LCM entity.\n * @memberof EntityBaseModel\n */\nEntityBaseModel.prototype.entityVersion = undefined;\n\n/**\n * A hardware family for a LCM entity.\n * @memberof EntityBaseModel\n */\nEntityBaseModel.prototype.hardwareFamily = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityBaseModel.js?");
|
|
464
|
+
|
|
465
|
+
/***/ }),
|
|
466
|
+
|
|
467
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityDeploySpec.js":
|
|
468
|
+
/*!*********************************************************************************************!*\
|
|
469
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityDeploySpec.js ***!
|
|
470
|
+
\*********************************************************************************************/
|
|
471
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
472
|
+
|
|
473
|
+
"use strict";
|
|
474
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ EntityDeploySpec)\n/* harmony export */ });\n/* harmony import */ var _EntityBaseModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EntityBaseModel */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityBaseModel.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The EntityDeploySpec model module.\n * @module Ntnx/EntityDeploySpec\n * @version 4.0.1-beta-1\n * @class EntityDeploySpec\n * \n * @param { EntityBaseModel } entityIdentifier \n */\nvar _EntityDeploySpec_brand = /*#__PURE__*/new WeakSet();\nvar EntityDeploySpec = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>EntityDeploySpec</code>.\n * A specification defining the entity being deployed and its version.\n * @alias module:Ntnx/EntityDeploySpec\n * \n * @param { EntityBaseModel } entityIdentifier \n */\n function EntityDeploySpec(entityIdentifier) {\n _classCallCheck(this, EntityDeploySpec);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _EntityDeploySpec_brand);\n this.entityIdentifier = entityIdentifier;\n this.$objectType = \"lifecycle.v4.common.EntityDeploySpec\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>EntityDeploySpec</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/EntityDeploySpec} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/EntityDeploySpec} The populated <code>EntityDeploySpec</code> instance.\n */\n return _createClass(EntityDeploySpec, [{\n key: \"getEntityIdentifier\",\n value:\n /**\n * @return {}\n */\n function getEntityIdentifier() {\n return this.entityIdentifier;\n }\n\n /**\n * @param {} entityIdentifier\n */\n }, {\n key: \"setEntityIdentifier\",\n value: function setEntityIdentifier(entityIdentifier) {\n this.entityIdentifier = entityIdentifier;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread({}, typeof this.getEntityIdentifier() !== 'undefined' && this.getEntityIdentifier() !== null ? {\n 'entityIdentifier': this.getEntityIdentifier().toJson(false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread({}, typeof this.getEntityIdentifier() !== 'undefined' && this.getEntityIdentifier() !== null ? {\n 'entityIdentifier': this.getEntityIdentifier().toJson(false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [\"entityIdentifier\"];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"entityIdentifier\") {\n if (typeof this.entityIdentifier === 'undefined' || this.entityIdentifier === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"entityIdentifier\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new EntityDeploySpec();\n if (data.hasOwnProperty('entityIdentifier') && data.entityIdentifier !== null && data.entityIdentifier !== undefined) {\n obj.setEntityIdentifier(_EntityBaseModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['entityIdentifier']));\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * @memberof EntityDeploySpec\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nEntityDeploySpec.prototype.entityIdentifier = undefined;\nEntityDeploySpec.prototype.$reserved = undefined;\nEntityDeploySpec.prototype.$objectType = undefined;\nEntityDeploySpec.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityDeploySpec.js?");
|
|
475
|
+
|
|
476
|
+
/***/ }),
|
|
477
|
+
|
|
478
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityType.js":
|
|
479
|
+
/*!***************************************************************************************!*\
|
|
480
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityType.js ***!
|
|
481
|
+
\***************************************************************************************/
|
|
482
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
483
|
+
|
|
484
|
+
"use strict";
|
|
485
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Enum class EntityType.\n * @enum {string}\n * @readonly\n */\nvar EntityType = {\n /** \n * value: \"$UNKNOWN\"\n * @const\n */\n $UNKNOWN: \"$UNKNOWN\",\n /** \n * value: \"$REDACTED\"\n * @const\n */\n $REDACTED: \"$REDACTED\",\n /** \n * LCM entity type software.\n * @const\n */\n SOFTWARE: \"SOFTWARE\",\n /** \n * LCM entity type firmware.\n * @const\n */\n FIRMWARE: \"FIRMWARE\"\n};\n\n/**\n* Returns a <code>EntityType</code> enum value from a JavaScript object name.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {EntityType} The enum <code>EntityType</code> value.\n*/\nEntityType.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n var enumVal = Object.keys(EntityType).find(function (key) {\n return EntityType[key] === obj;\n });\n return enumVal === undefined || enumVal === null ? EntityType.$UNKNOWN : EntityType[enumVal];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\n\n/**\n* Validates <code>EntityType</code> enum value.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {null} Throws error for invalid value.\n*/\nEntityType.validate = function (obj) {\n switch (obj) {\n case EntityType.$UNKNOWN:\n case EntityType.$REDACTED:\n case EntityType.SOFTWARE:\n case EntityType.FIRMWARE:\n return;\n default:\n throw new Error(\"Invalid : must be EntityType.{ $UNKNOWN|$REDACTED|SOFTWARE|FIRMWARE }\");\n }\n};\nObject.freeze(EntityType);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EntityType);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityType.js?");
|
|
486
|
+
|
|
487
|
+
/***/ }),
|
|
488
|
+
|
|
489
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityUpdateSpec.js":
|
|
490
|
+
/*!*********************************************************************************************!*\
|
|
491
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityUpdateSpec.js ***!
|
|
492
|
+
\*********************************************************************************************/
|
|
493
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
494
|
+
|
|
495
|
+
"use strict";
|
|
496
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ EntityUpdateSpec)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The EntityUpdateSpec model module.\n * @module Ntnx/EntityUpdateSpec\n * @version 4.0.1-beta-1\n * @class EntityUpdateSpec\n * \n * @param { String } entityUuid UUID of the LCM entity.\n * \n * @param { String } toVersion Version to upgrade to.\n */\nvar _EntityUpdateSpec_brand = /*#__PURE__*/new WeakSet();\nvar EntityUpdateSpec = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>EntityUpdateSpec</code>.\n * Specification for running an update operation.\n * @alias module:Ntnx/EntityUpdateSpec\n * \n * @param { String } entityUuid UUID of the LCM entity.\n * \n * @param { String } toVersion Version to upgrade to.\n */\n function EntityUpdateSpec(entityUuid, toVersion) {\n _classCallCheck(this, EntityUpdateSpec);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _EntityUpdateSpec_brand);\n this.entityUuid = entityUuid;\n this.toVersion = toVersion;\n this.$objectType = \"lifecycle.v4.common.EntityUpdateSpec\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>EntityUpdateSpec</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/EntityUpdateSpec} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/EntityUpdateSpec} The populated <code>EntityUpdateSpec</code> instance.\n */\n return _createClass(EntityUpdateSpec, [{\n key: \"getEntityUuid\",\n value:\n /**\n * Returns UUID of the LCM entity.\n * @return {}\n */\n function getEntityUuid() {\n return this.entityUuid;\n }\n\n /**\n * Sets UUID of the LCM entity.\n * @param {} entityUuid UUID of the LCM entity.\n */\n }, {\n key: \"setEntityUuid\",\n value: function setEntityUuid(entityUuid) {\n this.entityUuid = entityUuid;\n }\n\n /**\n * Returns Version to upgrade to.\n * @return {}\n */\n }, {\n key: \"getToVersion\",\n value: function getToVersion() {\n return this.toVersion;\n }\n\n /**\n * Sets Version to upgrade to.\n * @param {} toVersion Version to upgrade to.\n */\n }, {\n key: \"setToVersion\",\n value: function setToVersion(toVersion) {\n this.toVersion = toVersion;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getEntityUuid() !== 'undefined' && this.getEntityUuid() !== null ? {\n 'entityUuid': this.getEntityUuid()\n } : {}), typeof this.getToVersion() !== 'undefined' && this.getToVersion() !== null ? {\n 'toVersion': this.getToVersion()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getEntityUuid() !== 'undefined' && this.getEntityUuid() !== null ? {\n 'entityUuid': this.getEntityUuid()\n } : {}), typeof this.getToVersion() !== 'undefined' && this.getToVersion() !== null ? {\n 'toVersion': this.getToVersion()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [\"entityUuid\", \"toVersion\"];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"entityUuid\") {\n if (typeof this.entityUuid === 'undefined' || this.entityUuid === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"entityUuid\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"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}$/\");\n }\n }\n if (property === \"toVersion\") {\n if (typeof this.toVersion === 'undefined' || this.toVersion === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"toVersion\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new EntityUpdateSpec();\n if (data.hasOwnProperty('entityUuid') && data.entityUuid !== null && data.entityUuid !== undefined) {\n obj.setEntityUuid(data['entityUuid']);\n }\n if (data.hasOwnProperty('toVersion') && data.toVersion !== null && data.toVersion !== undefined) {\n obj.setToVersion(data['toVersion']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * UUID of the LCM entity.\n * @memberof EntityUpdateSpec\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nEntityUpdateSpec.prototype.entityUuid = undefined;\n\n/**\n * Version to upgrade to.\n * @memberof EntityUpdateSpec\n */\nEntityUpdateSpec.prototype.toVersion = undefined;\nEntityUpdateSpec.prototype.$reserved = undefined;\nEntityUpdateSpec.prototype.$objectType = undefined;\nEntityUpdateSpec.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityUpdateSpec.js?");
|
|
497
|
+
|
|
498
|
+
/***/ }),
|
|
499
|
+
|
|
500
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/common/HypervisorType.js":
|
|
501
|
+
/*!*******************************************************************************************!*\
|
|
502
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/common/HypervisorType.js ***!
|
|
503
|
+
\*******************************************************************************************/
|
|
504
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
505
|
+
|
|
506
|
+
"use strict";
|
|
507
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Enum class HypervisorType.\n * @enum {string}\n * @readonly\n */\nvar HypervisorType = {\n /** \n * value: \"$UNKNOWN\"\n * @const\n */\n $UNKNOWN: \"$UNKNOWN\",\n /** \n * value: \"$REDACTED\"\n * @const\n */\n $REDACTED: \"$REDACTED\",\n /** \n * ESX Hypervisor.\n * @const\n */\n ESX: \"ESX\",\n /** \n * Nutanix AHV Hypervisor.\n * @const\n */\n AHV: \"AHV\",\n /** \n * Hyper-V Hypervisor.\n * @const\n */\n HYPERV: \"HYPERV\"\n};\n\n/**\n* Returns a <code>HypervisorType</code> enum value from a JavaScript object name.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {HypervisorType} The enum <code>HypervisorType</code> value.\n*/\nHypervisorType.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n var enumVal = Object.keys(HypervisorType).find(function (key) {\n return HypervisorType[key] === obj;\n });\n return enumVal === undefined || enumVal === null ? HypervisorType.$UNKNOWN : HypervisorType[enumVal];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\n\n/**\n* Validates <code>HypervisorType</code> enum value.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {null} Throws error for invalid value.\n*/\nHypervisorType.validate = function (obj) {\n switch (obj) {\n case HypervisorType.$UNKNOWN:\n case HypervisorType.$REDACTED:\n case HypervisorType.ESX:\n case HypervisorType.AHV:\n case HypervisorType.HYPERV:\n return;\n default:\n throw new Error(\"Invalid : must be HypervisorType.{ $UNKNOWN|$REDACTED|ESX|AHV|HYPERV }\");\n }\n};\nObject.freeze(HypervisorType);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (HypervisorType);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/common/HypervisorType.js?");
|
|
508
|
+
|
|
509
|
+
/***/ }),
|
|
510
|
+
|
|
511
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/common/LocationInfo.js":
|
|
512
|
+
/*!*****************************************************************************************!*\
|
|
513
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/common/LocationInfo.js ***!
|
|
514
|
+
\*****************************************************************************************/
|
|
515
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
516
|
+
|
|
517
|
+
"use strict";
|
|
518
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ LocationInfo)\n/* harmony export */ });\n/* harmony import */ var _LocationType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./LocationType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/LocationType.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The LocationInfo model module.\n * @module Ntnx/LocationInfo\n * @version 4.0.1-beta-1\n * @class LocationInfo\n */\nvar _LocationInfo_brand = /*#__PURE__*/new WeakSet();\nvar LocationInfo = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>LocationInfo</code>.\n * Location info corresponds to a tuple of location type (either node/cluster) and ExtID\n * @alias module:Ntnx/LocationInfo\n */\n function LocationInfo() {\n _classCallCheck(this, LocationInfo);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _LocationInfo_brand);\n this.$objectType = \"lifecycle.v4.common.LocationInfo\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>LocationInfo</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/LocationInfo} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/LocationInfo} The populated <code>LocationInfo</code> instance.\n */\n return _createClass(LocationInfo, [{\n key: \"getUuid\",\n value:\n /**\n * @return {}\n */\n function getUuid() {\n return this.uuid;\n }\n\n /**\n * @param {} uuid\n */\n }, {\n key: \"setUuid\",\n value: function setUuid(uuid) {\n this.uuid = uuid;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getLocationType\",\n value: function getLocationType() {\n return this.locationType;\n }\n\n /**\n * @param {} locationType\n */\n }, {\n key: \"setLocationType\",\n value: function setLocationType(locationType) {\n this.locationType = locationType;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getUuid() !== 'undefined' && this.getUuid() !== null ? {\n 'uuid': this.getUuid()\n } : {}), typeof this.getLocationType() !== 'undefined' && this.getLocationType() !== null ? {\n 'locationType': this.getLocationType()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread({}, typeof this.getLocationType() !== 'undefined' && this.getLocationType() !== null ? {\n 'locationType': this.getLocationType()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"uuid\") {\n if (typeof this.uuid === 'undefined' || this.uuid === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"uuid\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"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}$/\");\n }\n }\n if (property === \"locationType\") {\n if (typeof this.locationType === 'undefined' || this.locationType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"locationType\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new LocationInfo();\n if (data.hasOwnProperty('uuid') && data.uuid !== null && data.uuid !== undefined) {\n obj.setUuid(data['uuid']);\n }\n if (data.hasOwnProperty('locationType') && data.locationType !== null && data.locationType !== undefined) {\n obj.setLocationType(_LocationType__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['locationType']));\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * @memberof LocationInfo\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nLocationInfo.prototype.uuid = undefined;\n\n/**\n * @memberof LocationInfo\n */\nLocationInfo.prototype.locationType = undefined;\nLocationInfo.prototype.$reserved = undefined;\nLocationInfo.prototype.$objectType = undefined;\nLocationInfo.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/common/LocationInfo.js?");
|
|
519
|
+
|
|
520
|
+
/***/ }),
|
|
521
|
+
|
|
522
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/common/LocationType.js":
|
|
523
|
+
/*!*****************************************************************************************!*\
|
|
524
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/common/LocationType.js ***!
|
|
525
|
+
\*****************************************************************************************/
|
|
526
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
527
|
+
|
|
528
|
+
"use strict";
|
|
529
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Enum class LocationType.\n * @enum {string}\n * @readonly\n */\nvar LocationType = {\n /** \n * value: \"$UNKNOWN\"\n * @const\n */\n $UNKNOWN: \"$UNKNOWN\",\n /** \n * value: \"$REDACTED\"\n * @const\n */\n $REDACTED: \"$REDACTED\",\n /** \n * Entity that belongs to a node in the cluster.\n * @const\n */\n NODE: \"NODE\",\n /** \n * Entity for which the scope is cluster wide.\n * @const\n */\n CLUSTER: \"CLUSTER\",\n /** \n * Entity for which the scope is PC wide.\n * @const\n */\n PC: \"PC\"\n};\n\n/**\n* Returns a <code>LocationType</code> enum value from a JavaScript object name.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {LocationType} The enum <code>LocationType</code> value.\n*/\nLocationType.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n var enumVal = Object.keys(LocationType).find(function (key) {\n return LocationType[key] === obj;\n });\n return enumVal === undefined || enumVal === null ? LocationType.$UNKNOWN : LocationType[enumVal];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\n\n/**\n* Validates <code>LocationType</code> enum value.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {null} Throws error for invalid value.\n*/\nLocationType.validate = function (obj) {\n switch (obj) {\n case LocationType.$UNKNOWN:\n case LocationType.$REDACTED:\n case LocationType.NODE:\n case LocationType.CLUSTER:\n case LocationType.PC:\n return;\n default:\n throw new Error(\"Invalid : must be LocationType.{ $UNKNOWN|$REDACTED|NODE|CLUSTER|PC }\");\n }\n};\nObject.freeze(LocationType);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (LocationType);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/common/LocationType.js?");
|
|
530
|
+
|
|
531
|
+
/***/ }),
|
|
532
|
+
|
|
533
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/common/ManagementServer.js":
|
|
534
|
+
/*!*********************************************************************************************!*\
|
|
535
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/common/ManagementServer.js ***!
|
|
536
|
+
\*********************************************************************************************/
|
|
537
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
538
|
+
|
|
539
|
+
"use strict";
|
|
540
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ManagementServer)\n/* harmony export */ });\n/* harmony import */ var _HypervisorType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HypervisorType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/HypervisorType.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The ManagementServer model module.\n * @module Ntnx/ManagementServer\n * @version 4.0.1-beta-1\n * @class ManagementServer\n * \n * @param { HypervisorType } hypervisorType \n * \n * @param { String } ip IP address of the management server.\n * \n * @param { String } username Username to login to the management server.\n * \n * @param { String } password Password to login to the management server.\n */\nvar _ManagementServer_brand = /*#__PURE__*/new WeakSet();\nvar ManagementServer = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>ManagementServer</code>.\n * Cluster management server configuration used while updating clusters with ESX or HyperV.\n * @alias module:Ntnx/ManagementServer\n * \n * @param { HypervisorType } hypervisorType \n * \n * @param { String } ip IP address of the management server.\n * \n * @param { String } username Username to login to the management server.\n * \n * @param { String } password Password to login to the management server.\n */\n function ManagementServer(hypervisorType, ip, username, password) {\n _classCallCheck(this, ManagementServer);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _ManagementServer_brand);\n this.hypervisorType = hypervisorType;\n this.ip = ip;\n this.username = username;\n this.password = password;\n this.$objectType = \"lifecycle.v4.common.ManagementServer\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>ManagementServer</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ManagementServer} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ManagementServer} The populated <code>ManagementServer</code> instance.\n */\n return _createClass(ManagementServer, [{\n key: \"getHypervisorType\",\n value:\n /**\n * @return {}\n */\n function getHypervisorType() {\n return this.hypervisorType;\n }\n\n /**\n * @param {} hypervisorType\n */\n }, {\n key: \"setHypervisorType\",\n value: function setHypervisorType(hypervisorType) {\n this.hypervisorType = hypervisorType;\n }\n\n /**\n * Returns IP address of the management server.\n * @return {}\n */\n }, {\n key: \"getIp\",\n value: function getIp() {\n return this.ip;\n }\n\n /**\n * Sets IP address of the management server.\n * @param {} ip IP address of the management server.\n */\n }, {\n key: \"setIp\",\n value: function setIp(ip) {\n this.ip = ip;\n }\n\n /**\n * Returns Username to login to the management server.\n * @return {}\n */\n }, {\n key: \"getUsername\",\n value: function getUsername() {\n return this.username;\n }\n\n /**\n * Sets Username to login to the management server.\n * @param {} username Username to login to the management server.\n */\n }, {\n key: \"setUsername\",\n value: function setUsername(username) {\n this.username = username;\n }\n\n /**\n * Returns Password to login to the management server.\n * @return {}\n */\n }, {\n key: \"getPassword\",\n value: function getPassword() {\n return this.password;\n }\n\n /**\n * Sets Password to login to the management server.\n * @param {} password Password to login to the management server.\n */\n }, {\n key: \"setPassword\",\n value: function setPassword(password) {\n this.password = password;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getHypervisorType() !== 'undefined' && this.getHypervisorType() !== null ? {\n 'hypervisorType': this.getHypervisorType()\n } : {}), typeof this.getIp() !== 'undefined' && this.getIp() !== null ? {\n 'ip': this.getIp()\n } : {}), typeof this.getUsername() !== 'undefined' && this.getUsername() !== null ? {\n 'username': this.getUsername()\n } : {}), typeof this.getPassword() !== 'undefined' && this.getPassword() !== null ? {\n 'password': this.getPassword()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getHypervisorType() !== 'undefined' && this.getHypervisorType() !== null ? {\n 'hypervisorType': this.getHypervisorType()\n } : {}), typeof this.getIp() !== 'undefined' && this.getIp() !== null ? {\n 'ip': this.getIp()\n } : {}), typeof this.getUsername() !== 'undefined' && this.getUsername() !== null ? {\n 'username': this.getUsername()\n } : {}), typeof this.getPassword() !== 'undefined' && this.getPassword() !== null ? {\n 'password': this.getPassword()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [\"hypervisorType\", \"ip\", \"username\", \"password\"];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"hypervisorType\") {\n if (typeof this.hypervisorType === 'undefined' || this.hypervisorType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"hypervisorType\", \"undefined or null\");\n }\n }\n if (property === \"ip\") {\n if (typeof this.ip === 'undefined' || this.ip === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"ip\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__[\"default\"].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]?)$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"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]?)$/\");\n }\n }\n if (property === \"username\") {\n if (typeof this.username === 'undefined' || this.username === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"username\", \"undefined or null\");\n }\n }\n if (property === \"password\") {\n if (typeof this.password === 'undefined' || this.password === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"password\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ManagementServer();\n if (data.hasOwnProperty('hypervisorType') && data.hypervisorType !== null && data.hypervisorType !== undefined) {\n obj.setHypervisorType(_HypervisorType__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['hypervisorType']));\n }\n if (data.hasOwnProperty('ip') && data.ip !== null && data.ip !== undefined) {\n obj.setIp(data['ip']);\n }\n if (data.hasOwnProperty('username') && data.username !== null && data.username !== undefined) {\n obj.setUsername(data['username']);\n }\n if (data.hasOwnProperty('password') && data.password !== null && data.password !== undefined) {\n obj.setPassword(data['password']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * @memberof ManagementServer\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nManagementServer.prototype.hypervisorType = undefined;\n\n/**\n * IP address of the management server.\n * @memberof ManagementServer\n */\nManagementServer.prototype.ip = undefined;\n\n/**\n * Username to login to the management server.\n * @memberof ManagementServer\n */\nManagementServer.prototype.username = undefined;\n\n/**\n * Password to login to the management server.\n * @memberof ManagementServer\n */\nManagementServer.prototype.password = undefined;\nManagementServer.prototype.$reserved = undefined;\nManagementServer.prototype.$objectType = undefined;\nManagementServer.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/common/ManagementServer.js?");
|
|
541
|
+
|
|
542
|
+
/***/ }),
|
|
543
|
+
|
|
544
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/common/NotificationType.js":
|
|
545
|
+
/*!*********************************************************************************************!*\
|
|
546
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/common/NotificationType.js ***!
|
|
547
|
+
\*********************************************************************************************/
|
|
548
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
549
|
+
|
|
550
|
+
"use strict";
|
|
551
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Enum class NotificationType.\n * @enum {string}\n * @readonly\n */\nvar NotificationType = {\n /** \n * value: \"$UNKNOWN\"\n * @const\n */\n $UNKNOWN: \"$UNKNOWN\",\n /** \n * value: \"$REDACTED\"\n * @const\n */\n $REDACTED: \"$REDACTED\",\n /** \n * Indicates that the upgrade notification is for type entity indentified in LCM ecosystem.\n * @const\n */\n ENTITY: \"ENTITY\",\n /** \n * Indicates that the upgrade notification is for type location.\n * @const\n */\n LOCATION: \"LOCATION\"\n};\n\n/**\n* Returns a <code>NotificationType</code> enum value from a JavaScript object name.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {NotificationType} The enum <code>NotificationType</code> value.\n*/\nNotificationType.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n var enumVal = Object.keys(NotificationType).find(function (key) {\n return NotificationType[key] === obj;\n });\n return enumVal === undefined || enumVal === null ? NotificationType.$UNKNOWN : NotificationType[enumVal];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\n\n/**\n* Validates <code>NotificationType</code> enum value.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {null} Throws error for invalid value.\n*/\nNotificationType.validate = function (obj) {\n switch (obj) {\n case NotificationType.$UNKNOWN:\n case NotificationType.$REDACTED:\n case NotificationType.ENTITY:\n case NotificationType.LOCATION:\n return;\n default:\n throw new Error(\"Invalid : must be NotificationType.{ $UNKNOWN|$REDACTED|ENTITY|LOCATION }\");\n }\n};\nObject.freeze(NotificationType);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (NotificationType);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/common/NotificationType.js?");
|
|
552
|
+
|
|
553
|
+
/***/ }),
|
|
554
|
+
|
|
555
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/common/OperationType.js":
|
|
556
|
+
/*!******************************************************************************************!*\
|
|
557
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/common/OperationType.js ***!
|
|
558
|
+
\******************************************************************************************/
|
|
559
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
560
|
+
|
|
561
|
+
"use strict";
|
|
562
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Enum class OperationType.\n * @enum {string}\n * @readonly\n */\nvar OperationType = {\n /** \n * value: \"$UNKNOWN\"\n * @const\n */\n $UNKNOWN: \"$UNKNOWN\",\n /** \n * value: \"$REDACTED\"\n * @const\n */\n $REDACTED: \"$REDACTED\",\n /** \n * Perform an LCM inventory operation.\n * @const\n */\n INVENTORY: \"INVENTORY\",\n /** \n * Perform LCM prechecks for the intended update operation.\n * @const\n */\n PRECHECKS: \"PRECHECKS\",\n /** \n * Perform upgrade operation to a specific target version for discovered LCM entity/entities.\n * @const\n */\n UPGRADE: \"UPGRADE\",\n /** \n * Indicates that no operation is currently ongoing.\n * @const\n */\n NONE: \"NONE\"\n};\n\n/**\n* Returns a <code>OperationType</code> enum value from a JavaScript object name.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {OperationType} The enum <code>OperationType</code> value.\n*/\nOperationType.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n var enumVal = Object.keys(OperationType).find(function (key) {\n return OperationType[key] === obj;\n });\n return enumVal === undefined || enumVal === null ? OperationType.$UNKNOWN : OperationType[enumVal];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\n\n/**\n* Validates <code>OperationType</code> enum value.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {null} Throws error for invalid value.\n*/\nOperationType.validate = function (obj) {\n switch (obj) {\n case OperationType.$UNKNOWN:\n case OperationType.$REDACTED:\n case OperationType.INVENTORY:\n case OperationType.PRECHECKS:\n case OperationType.UPGRADE:\n case OperationType.NONE:\n return;\n default:\n throw new Error(\"Invalid : must be OperationType.{ $UNKNOWN|$REDACTED|INVENTORY|PRECHECKS|UPGRADE|NONE }\");\n }\n};\nObject.freeze(OperationType);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (OperationType);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/common/OperationType.js?");
|
|
563
|
+
|
|
564
|
+
/***/ }),
|
|
565
|
+
|
|
566
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/common/PrechecksSpec.js":
|
|
567
|
+
/*!******************************************************************************************!*\
|
|
568
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/common/PrechecksSpec.js ***!
|
|
569
|
+
\******************************************************************************************/
|
|
570
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
571
|
+
|
|
572
|
+
"use strict";
|
|
573
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ PrechecksSpec)\n/* harmony export */ });\n/* harmony import */ var _EntityUpdateSpec__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EntityUpdateSpec */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityUpdateSpec.js\");\n/* harmony import */ var _ManagementServer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ManagementServer */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/ManagementServer.js\");\n/* harmony import */ var _SystemAutoMgmtFlag__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SystemAutoMgmtFlag */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/SystemAutoMgmtFlag.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n/**\n * The PrechecksSpec model module.\n * @module Ntnx/PrechecksSpec\n * @version 4.0.1-beta-1\n * @class PrechecksSpec\n * \n * @param { EntityUpdateSpec } entityUpdateSpecs \n */\nvar _PrechecksSpec_brand = /*#__PURE__*/new WeakSet();\nvar PrechecksSpec = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>PrechecksSpec</code>.\n * Specification for running a Precheck operation.\n * @alias module:Ntnx/PrechecksSpec\n * \n * @param { EntityUpdateSpec } entityUpdateSpecs \n */\n function PrechecksSpec(entityUpdateSpecs) {\n _classCallCheck(this, PrechecksSpec);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _PrechecksSpec_brand);\n this.entityUpdateSpecs = entityUpdateSpecs;\n this.$objectType = \"lifecycle.v4.common.PrechecksSpec\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>PrechecksSpec</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/PrechecksSpec} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/PrechecksSpec} The populated <code>PrechecksSpec</code> instance.\n */\n return _createClass(PrechecksSpec, [{\n key: \"getManagementServer\",\n value:\n /**\n * @return {}\n */\n function getManagementServer() {\n return this.managementServer;\n }\n\n /**\n * @param {} managementServer\n */\n }, {\n key: \"setManagementServer\",\n value: function setManagementServer(managementServer) {\n this.managementServer = managementServer;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getEntityUpdateSpecs\",\n value: function getEntityUpdateSpecs() {\n return this.entityUpdateSpecs;\n }\n\n /**\n * @param {} entityUpdateSpecs\n */\n }, {\n key: \"setEntityUpdateSpecs\",\n value: function setEntityUpdateSpecs(entityUpdateSpecs) {\n this.entityUpdateSpecs = entityUpdateSpecs;\n }\n\n /**\n * Returns List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks.\n * @return {}\n */\n }, {\n key: \"getSkippedPrecheckFlags\",\n value: function getSkippedPrecheckFlags() {\n return this.skippedPrecheckFlags;\n }\n\n /**\n * Sets List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks.\n * @param {} skippedPrecheckFlags List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks.\n */\n }, {\n key: \"setSkippedPrecheckFlags\",\n value: function setSkippedPrecheckFlags(skippedPrecheckFlags) {\n this.skippedPrecheckFlags = skippedPrecheckFlags;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getManagementServer() !== 'undefined' && this.getManagementServer() !== null ? {\n 'managementServer': this.getManagementServer().toJson(false)\n } : {}), typeof this.getEntityUpdateSpecs() !== 'undefined' && this.getEntityUpdateSpecs() !== null ? {\n 'entityUpdateSpecs': this.getEntityUpdateSpecs().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getSkippedPrecheckFlags() !== 'undefined' && this.getSkippedPrecheckFlags() !== null ? {\n 'skippedPrecheckFlags': this.getSkippedPrecheckFlags()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getManagementServer() !== 'undefined' && this.getManagementServer() !== null ? {\n 'managementServer': this.getManagementServer().toJson(false)\n } : {}), typeof this.getEntityUpdateSpecs() !== 'undefined' && this.getEntityUpdateSpecs() !== null ? {\n 'entityUpdateSpecs': this.getEntityUpdateSpecs().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getSkippedPrecheckFlags() !== 'undefined' && this.getSkippedPrecheckFlags() !== null ? {\n 'skippedPrecheckFlags': this.getSkippedPrecheckFlags()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [\"entityUpdateSpecs\"];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"managementServer\") {\n if (typeof this.managementServer === 'undefined' || this.managementServer === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"managementServer\", \"undefined or null\");\n }\n }\n if (property === \"entityUpdateSpecs\") {\n if (typeof this.entityUpdateSpecs === 'undefined' || this.entityUpdateSpecs === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"entityUpdateSpecs\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].validateMaxItems(this.entityUpdateSpecs, 2048)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"entityUpdateSpecs\", \"does not satisfy required maxItems constraint: 2048\");\n }\n }\n if (property === \"skippedPrecheckFlags\") {\n if (typeof this.skippedPrecheckFlags === 'undefined' || this.skippedPrecheckFlags === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"skippedPrecheckFlags\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].validateMaxItems(this.skippedPrecheckFlags, 20)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"skippedPrecheckFlags\", \"does not satisfy required maxItems constraint: 20\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new PrechecksSpec();\n if (data.hasOwnProperty('managementServer') && data.managementServer !== null && data.managementServer !== undefined) {\n obj.setManagementServer(_ManagementServer__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['managementServer']));\n }\n if (data.hasOwnProperty('entityUpdateSpecs') && data.entityUpdateSpecs !== null && data.entityUpdateSpecs !== undefined) {\n itemArr = [];\n items = data.entityUpdateSpecs;\n for (i = 0; i < items.length; i++) {\n item = _EntityUpdateSpec__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setEntityUpdateSpecs(itemArr);\n }\n if (data.hasOwnProperty('skippedPrecheckFlags') && data.skippedPrecheckFlags !== null && data.skippedPrecheckFlags !== undefined) {\n itemArr = [];\n items = data.skippedPrecheckFlags;\n for (i = 0; i < items.length; i++) {\n item = _SystemAutoMgmtFlag__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setSkippedPrecheckFlags(itemArr);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * @memberof PrechecksSpec\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nPrechecksSpec.prototype.managementServer = undefined;\n\n/**\n * @memberof PrechecksSpec\n */\nPrechecksSpec.prototype.entityUpdateSpecs = undefined;\n\n/**\n * List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks.\n * @memberof PrechecksSpec\n */\nPrechecksSpec.prototype.skippedPrecheckFlags = undefined;\nPrechecksSpec.prototype.$reserved = undefined;\nPrechecksSpec.prototype.$objectType = undefined;\nPrechecksSpec.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/common/PrechecksSpec.js?");
|
|
574
|
+
|
|
575
|
+
/***/ }),
|
|
576
|
+
|
|
577
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/common/SystemAutoMgmtFlag.js":
|
|
578
|
+
/*!***********************************************************************************************!*\
|
|
579
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/common/SystemAutoMgmtFlag.js ***!
|
|
580
|
+
\***********************************************************************************************/
|
|
581
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
582
|
+
|
|
583
|
+
"use strict";
|
|
584
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Enum class SystemAutoMgmtFlag.\n * @enum {string}\n * @readonly\n */\nvar SystemAutoMgmtFlag = {\n /** \n * value: \"$UNKNOWN\"\n * @const\n */\n $UNKNOWN: \"$UNKNOWN\",\n /** \n * value: \"$REDACTED\"\n * @const\n */\n $REDACTED: \"$REDACTED\",\n /** \n * Power off user virtual machines.\n * @const\n */\n POWER_OFF_UVMS: \"POWER_OFF_UVMS\"\n};\n\n/**\n* Returns a <code>SystemAutoMgmtFlag</code> enum value from a JavaScript object name.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {SystemAutoMgmtFlag} The enum <code>SystemAutoMgmtFlag</code> value.\n*/\nSystemAutoMgmtFlag.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n var enumVal = Object.keys(SystemAutoMgmtFlag).find(function (key) {\n return SystemAutoMgmtFlag[key] === obj;\n });\n return enumVal === undefined || enumVal === null ? SystemAutoMgmtFlag.$UNKNOWN : SystemAutoMgmtFlag[enumVal];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\n\n/**\n* Validates <code>SystemAutoMgmtFlag</code> enum value.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {null} Throws error for invalid value.\n*/\nSystemAutoMgmtFlag.validate = function (obj) {\n switch (obj) {\n case SystemAutoMgmtFlag.$UNKNOWN:\n case SystemAutoMgmtFlag.$REDACTED:\n case SystemAutoMgmtFlag.POWER_OFF_UVMS:\n return;\n default:\n throw new Error(\"Invalid : must be SystemAutoMgmtFlag.{ $UNKNOWN|$REDACTED|POWER_OFF_UVMS }\");\n }\n};\nObject.freeze(SystemAutoMgmtFlag);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SystemAutoMgmtFlag);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/common/SystemAutoMgmtFlag.js?");
|
|
585
|
+
|
|
586
|
+
/***/ }),
|
|
587
|
+
|
|
588
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/common/UpgradeSpec.js":
|
|
589
|
+
/*!****************************************************************************************!*\
|
|
590
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/common/UpgradeSpec.js ***!
|
|
591
|
+
\****************************************************************************************/
|
|
592
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
593
|
+
|
|
594
|
+
"use strict";
|
|
595
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ UpgradeSpec)\n/* harmony export */ });\n/* harmony import */ var _EntityUpdateSpec__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EntityUpdateSpec */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityUpdateSpec.js\");\n/* harmony import */ var _ManagementServer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ManagementServer */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/ManagementServer.js\");\n/* harmony import */ var _PrechecksSpec__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PrechecksSpec */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/PrechecksSpec.js\");\n/* harmony import */ var _SystemAutoMgmtFlag__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SystemAutoMgmtFlag */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/SystemAutoMgmtFlag.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The UpgradeSpec model module.\n * @module Ntnx/UpgradeSpec\n * @version 4.0.1-beta-1\n * @class UpgradeSpec\n * \n * @param { EntityUpdateSpec } entityUpdateSpecs \n */\nvar _UpgradeSpec_brand = /*#__PURE__*/new WeakSet();\nvar UpgradeSpec = /*#__PURE__*/function (_PrechecksSpec) {\n /**\n * Constructs a new <code>UpgradeSpec</code>.\n * Specification for an upgrade operation of an entity to a particular target version.\n * @alias module:Ntnx/UpgradeSpec\n * @extends module:Ntnx/PrechecksSpec\n * \n * @param { EntityUpdateSpec } entityUpdateSpecs \n */\n function UpgradeSpec(entityUpdateSpecs) {\n var _this;\n _classCallCheck(this, UpgradeSpec);\n _this = _callSuper(this, UpgradeSpec, [entityUpdateSpecs]);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _UpgradeSpec_brand);\n _this.$objectType = \"lifecycle.v4.common.UpgradeSpec\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>UpgradeSpec</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/UpgradeSpec} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/UpgradeSpec} The populated <code>UpgradeSpec</code> instance.\n */\n _inherits(UpgradeSpec, _PrechecksSpec);\n return _createClass(UpgradeSpec, [{\n key: \"getAutoHandleFlags\",\n value:\n /**\n * Returns List of automated system operations to perform, to avoid precheck failure and let the system restore state after an update is complete. The allowed flag is: - 'powerOffUvms': This allows the system to automatically power off user VMs which cannot be migrated to other hosts and power them on when the update is done. This option can avoid pinned VM precheck failure on the host which needs to enter maintenance mode during the update and allow the update to go through.\n * @return {}\n */\n function getAutoHandleFlags() {\n return this.autoHandleFlags;\n }\n\n /**\n * Sets List of automated system operations to perform, to avoid precheck failure and let the system restore state after an update is complete. The allowed flag is: - 'powerOffUvms': This allows the system to automatically power off user VMs which cannot be migrated to other hosts and power them on when the update is done. This option can avoid pinned VM precheck failure on the host which needs to enter maintenance mode during the update and allow the update to go through.\n * @param {} autoHandleFlags List of automated system operations to perform, to avoid precheck failure and let the system restore state after an update is complete. The allowed flag is: - 'powerOffUvms': This allows the system to automatically power off user VMs which cannot be migrated to other hosts and power them on when the update is done. This option can avoid pinned VM precheck failure on the host which needs to enter maintenance mode during the update and allow the update to go through.\n */\n }, {\n key: \"setAutoHandleFlags\",\n value: function setAutoHandleFlags(autoHandleFlags) {\n this.autoHandleFlags = autoHandleFlags;\n }\n\n /**\n * Returns Number of seconds LCM waits for the VMs to come up after exiting host maintenance mode.\n * minimum: 60\n * maximum: 86400\n * @return {}\n */\n }, {\n key: \"getMaxWaitTimeInSecs\",\n value: function getMaxWaitTimeInSecs() {\n return this.maxWaitTimeInSecs;\n }\n\n /**\n * Sets Number of seconds LCM waits for the VMs to come up after exiting host maintenance mode.\n * @param {} maxWaitTimeInSecs Number of seconds LCM waits for the VMs to come up after exiting host maintenance mode.\n */\n }, {\n key: \"setMaxWaitTimeInSecs\",\n value: function setMaxWaitTimeInSecs(maxWaitTimeInSecs) {\n this.maxWaitTimeInSecs = maxWaitTimeInSecs;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getAutoHandleFlags() !== 'undefined' && this.getAutoHandleFlags() !== null ? {\n 'autoHandleFlags': this.getAutoHandleFlags()\n } : {}), typeof this.getMaxWaitTimeInSecs() !== 'undefined' && this.getMaxWaitTimeInSecs() !== null ? {\n 'maxWaitTimeInSecs': this.getMaxWaitTimeInSecs()\n } : {}), typeof this.getManagementServer() !== 'undefined' && this.getManagementServer() !== null ? {\n 'managementServer': this.getManagementServer().toJson(false)\n } : {}), typeof this.getEntityUpdateSpecs() !== 'undefined' && this.getEntityUpdateSpecs() !== null ? {\n 'entityUpdateSpecs': this.getEntityUpdateSpecs().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getSkippedPrecheckFlags() !== 'undefined' && this.getSkippedPrecheckFlags() !== null ? {\n 'skippedPrecheckFlags': this.getSkippedPrecheckFlags()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getAutoHandleFlags() !== 'undefined' && this.getAutoHandleFlags() !== null ? {\n 'autoHandleFlags': this.getAutoHandleFlags()\n } : {}), typeof this.getMaxWaitTimeInSecs() !== 'undefined' && this.getMaxWaitTimeInSecs() !== null ? {\n 'maxWaitTimeInSecs': this.getMaxWaitTimeInSecs()\n } : {}), typeof this.getManagementServer() !== 'undefined' && this.getManagementServer() !== null ? {\n 'managementServer': this.getManagementServer().toJson(false)\n } : {}), typeof this.getEntityUpdateSpecs() !== 'undefined' && this.getEntityUpdateSpecs() !== null ? {\n 'entityUpdateSpecs': this.getEntityUpdateSpecs().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getSkippedPrecheckFlags() !== 'undefined' && this.getSkippedPrecheckFlags() !== null ? {\n 'skippedPrecheckFlags': this.getSkippedPrecheckFlags()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [\"entityUpdateSpecs\"];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"autoHandleFlags\") {\n if (typeof this.autoHandleFlags === 'undefined' || this.autoHandleFlags === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"autoHandleFlags\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMaxItems(this.autoHandleFlags, 20)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"autoHandleFlags\", \"does not satisfy required maxItems constraint: 20\");\n }\n }\n if (property === \"maxWaitTimeInSecs\") {\n if (typeof this.maxWaitTimeInSecs === 'undefined' || this.maxWaitTimeInSecs === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"maxWaitTimeInSecs\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMaximum(this.maxWaitTimeInSecs, 86400)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"maxWaitTimeInSecs\", \"does not satisfy required maximum constraint: 86400\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMinimum(this.maxWaitTimeInSecs, 60)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"maxWaitTimeInSecs\", \"does not satisfy required minimum constraint: 60\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new UpgradeSpec();\n _PrechecksSpec__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('autoHandleFlags') && data.autoHandleFlags !== null && data.autoHandleFlags !== undefined) {\n itemArr = [];\n items = data.autoHandleFlags;\n for (i = 0; i < items.length; i++) {\n item = _SystemAutoMgmtFlag__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setAutoHandleFlags(itemArr);\n }\n if (data.hasOwnProperty('maxWaitTimeInSecs') && data.maxWaitTimeInSecs !== null && data.maxWaitTimeInSecs !== undefined) {\n obj.setMaxWaitTimeInSecs(data['maxWaitTimeInSecs']);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_PrechecksSpec__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n/**\n * List of automated system operations to perform, to avoid precheck failure and let the system restore state after an update is complete. The allowed flag is: - 'powerOffUvms': This allows the system to automatically power off user VMs which cannot be migrated to other hosts and power them on when the update is done. This option can avoid pinned VM precheck failure on the host which needs to enter maintenance mode during the update and allow the update to go through.\n * @memberof UpgradeSpec\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nUpgradeSpec.prototype.autoHandleFlags = undefined;\n\n/**\n * Number of seconds LCM waits for the VMs to come up after exiting host maintenance mode.\n * @memberof UpgradeSpec\n */\nUpgradeSpec.prototype.maxWaitTimeInSecs = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/common/UpgradeSpec.js?");
|
|
596
|
+
|
|
597
|
+
/***/ }),
|
|
598
|
+
|
|
599
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/error/AppMessage.js":
|
|
600
|
+
/*!**************************************************************************************!*\
|
|
601
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/error/AppMessage.js ***!
|
|
602
|
+
\**************************************************************************************/
|
|
603
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
604
|
+
|
|
605
|
+
"use strict";
|
|
606
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AppMessage)\n/* harmony export */ });\n/* harmony import */ var _common_v1_config_MessageSeverity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/config/MessageSeverity */ \"./target/generated-sources/swagger/src/models/common/v1/config/MessageSeverity.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The AppMessage model module.\n * @module Ntnx/AppMessage\n * @version 4.0.1-beta-1\n * @class AppMessage\n */\nvar _AppMessage_brand = /*#__PURE__*/new WeakSet();\nvar AppMessage = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>AppMessage</code>.\n * Message with associated severity describing status of the current operation.\n * @alias module:Ntnx/AppMessage\n */\n function AppMessage() {\n _classCallCheck(this, AppMessage);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _AppMessage_brand);\n this.$objectType = \"lifecycle.v4.error.AppMessage\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>AppMessage</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/AppMessage} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/AppMessage} The populated <code>AppMessage</code> instance.\n */\n return _createClass(AppMessage, [{\n key: \"getMessage\",\n value:\n /**\n * Returns The message string.\n * @return {}\n */\n function getMessage() {\n return this.message;\n }\n\n /**\n * Sets The message string.\n * @param {} message The message string.\n */\n }, {\n key: \"setMessage\",\n value: function setMessage(message) {\n this.message = message;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getSeverity\",\n value: function getSeverity() {\n return this.severity;\n }\n\n /**\n * @param {} severity\n */\n }, {\n key: \"setSeverity\",\n value: function setSeverity(severity) {\n this.severity = severity;\n }\n\n /**\n * Returns The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000\n * @return {}\n */\n }, {\n key: \"getCode\",\n value: function getCode() {\n return this.code;\n }\n\n /**\n * Sets The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000\n * @param {} code The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000\n */\n }, {\n key: \"setCode\",\n value: function setCode(code) {\n this.code = code;\n }\n\n /**\n * Returns Locale for this message. The default locale would be 'en-US'.\n * @return {}\n */\n }, {\n key: \"getLocale\",\n value: function getLocale() {\n return this.locale;\n }\n\n /**\n * Sets Locale for this message. The default locale would be 'en-US'.\n * @param {} locale Locale for this message. The default locale would be 'en-US'.\n */\n }, {\n key: \"setLocale\",\n value: function setLocale(locale) {\n this.locale = locale;\n }\n\n /**\n * Returns The error group associated with this message of severity ERROR.\n * @return {}\n */\n }, {\n key: \"getErrorGroup\",\n value: function getErrorGroup() {\n return this.errorGroup;\n }\n\n /**\n * Sets The error group associated with this message of severity ERROR.\n * @param {} errorGroup The error group associated with this message of severity ERROR.\n */\n }, {\n key: \"setErrorGroup\",\n value: function setErrorGroup(errorGroup) {\n this.errorGroup = errorGroup;\n }\n\n /**\n * Returns The map of argument name to value.\n * @return {}\n */\n }, {\n key: \"getArgumentsMap\",\n value: function getArgumentsMap() {\n return this.argumentsMap;\n }\n\n /**\n * Sets The map of argument name to value.\n * @param {} argumentsMap The map of argument name to value.\n */\n }, {\n key: \"setArgumentsMap\",\n value: function setArgumentsMap(argumentsMap) {\n this.argumentsMap = argumentsMap;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {\n 'severity': this.getSeverity()\n } : {}), typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {\n 'code': this.getCode()\n } : {}), typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {\n 'locale': this.getLocale()\n } : {}), typeof this.getErrorGroup() !== 'undefined' && this.getErrorGroup() !== null ? {\n 'errorGroup': this.getErrorGroup()\n } : {}), typeof this.getArgumentsMap() !== 'undefined' && this.getArgumentsMap() !== null ? {\n 'argumentsMap': _assertClassBrand(_AppMessage_brand, this, _toJsonMapType).call(this, this.getArgumentsMap(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {\n 'severity': this.getSeverity()\n } : {}), typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {\n 'code': this.getCode()\n } : {}), typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {\n 'locale': this.getLocale()\n } : {}), typeof this.getErrorGroup() !== 'undefined' && this.getErrorGroup() !== null ? {\n 'errorGroup': this.getErrorGroup()\n } : {}), typeof this.getArgumentsMap() !== 'undefined' && this.getArgumentsMap() !== null ? {\n 'argumentsMap': _assertClassBrand(_AppMessage_brand, this, _toJsonMapType).call(this, this.getArgumentsMap())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"message\") {\n if (typeof this.message === 'undefined' || this.message === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"message\", \"undefined or null\");\n }\n }\n if (property === \"severity\") {\n if (typeof this.severity === 'undefined' || this.severity === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"severity\", \"undefined or null\");\n }\n }\n if (property === \"code\") {\n if (typeof this.code === 'undefined' || this.code === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"code\", \"undefined or null\");\n }\n }\n if (property === \"locale\") {\n if (typeof this.locale === 'undefined' || this.locale === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"locale\", \"undefined or null\");\n }\n }\n if (property === \"errorGroup\") {\n if (typeof this.errorGroup === 'undefined' || this.errorGroup === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"errorGroup\", \"undefined or null\");\n }\n }\n if (property === \"argumentsMap\") {\n if (typeof this.argumentsMap === 'undefined' || this.argumentsMap === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"argumentsMap\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new AppMessage();\n if (data.hasOwnProperty('message') && data.message !== null && data.message !== undefined) {\n obj.setMessage(data['message']);\n }\n if (data.hasOwnProperty('severity') && data.severity !== null && data.severity !== undefined) {\n obj.setSeverity(_common_v1_config_MessageSeverity__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['severity']));\n }\n if (data.hasOwnProperty('code') && data.code !== null && data.code !== undefined) {\n obj.setCode(data['code']);\n }\n if (data.hasOwnProperty('locale') && data.locale !== null && data.locale !== undefined) {\n obj.setLocale(data['locale']);\n }\n if (data.hasOwnProperty('errorGroup') && data.errorGroup !== null && data.errorGroup !== undefined) {\n obj.setErrorGroup(data['errorGroup']);\n }\n if (data.hasOwnProperty('argumentsMap') && data.argumentsMap !== null && data.argumentsMap !== undefined) {\n obj.setArgumentsMap(data['argumentsMap']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * The message string.\n * @memberof AppMessage\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nAppMessage.prototype.message = undefined;\n\n/**\n * @memberof AppMessage\n */\nAppMessage.prototype.severity = undefined;\n\n/**\n * The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000\n * @memberof AppMessage\n */\nAppMessage.prototype.code = undefined;\n\n/**\n * Locale for this message. The default locale would be 'en-US'.\n * @memberof AppMessage\n * @default 'en_US'\n */\nAppMessage.prototype.locale = 'en_US';\n\n/**\n * The error group associated with this message of severity ERROR.\n * @memberof AppMessage\n */\nAppMessage.prototype.errorGroup = undefined;\n\n/**\n * The map of argument name to value.\n * @memberof AppMessage\n */\nAppMessage.prototype.argumentsMap = undefined;\nAppMessage.prototype.$reserved = undefined;\nAppMessage.prototype.$objectType = undefined;\nAppMessage.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/error/AppMessage.js?");
|
|
607
|
+
|
|
608
|
+
/***/ }),
|
|
609
|
+
|
|
610
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js":
|
|
611
|
+
/*!*****************************************************************************************!*\
|
|
612
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js ***!
|
|
613
|
+
\*****************************************************************************************/
|
|
614
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
615
|
+
|
|
616
|
+
"use strict";
|
|
617
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ErrorResponse)\n/* harmony export */ });\n/* harmony import */ var _AppMessage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AppMessage */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/AppMessage.js\");\n/* harmony import */ var _SchemaValidationError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SchemaValidationError */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/SchemaValidationError.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n/**\n * The ErrorResponse model module.\n * @module Ntnx/ErrorResponse\n * @version 4.0.1-beta-1\n * @class ErrorResponse\n */\nvar _ErrorResponse_brand = /*#__PURE__*/new WeakSet();\nvar ErrorResponse = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>ErrorResponse</code>.\n * This schema is auto-generated by the Open API Dev Platform as REST response for 4xx and 5xx error responses.\n * @alias module:Ntnx/ErrorResponse\n */\n function ErrorResponse() {\n _classCallCheck(this, ErrorResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _ErrorResponse_brand);\n this.$objectType = \"lifecycle.v4.error.ErrorResponse\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>ErrorResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ErrorResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ErrorResponse} The populated <code>ErrorResponse</code> instance.\n */\n return _createClass(ErrorResponse, [{\n key: \"getError\",\n value:\n /**\n * @return {}\n */\n function getError() {\n return this.error;\n }\n\n /**\n * @param {} error\n */\n }, {\n key: \"setError\",\n value: function setError(error) {\n this.error = error;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread({}, typeof this.getError() !== 'undefined' && this.getError() !== null ? {\n 'error': typeof this.getError().toJson !== \"undefined\" ? this.getError().toJson(false) : Array.isArray(this.getError()) ? this.getError().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_ErrorResponse_brand, this, _toJsonMapType).call(this, this.getError(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread({}, typeof this.getError() !== 'undefined' && this.getError() !== null ? {\n 'error': typeof this.getError().toJson !== \"undefined\" ? this.getError().toJson() : Array.isArray(this.getError()) ? this.getError().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_ErrorResponse_brand, this, _toJsonMapType).call(this, this.getError())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"error\") {\n if (typeof this.error === 'undefined' || this.error === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"error\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ErrorResponse();\n if (data.hasOwnProperty('error') && data.error !== null && data.error !== undefined) {\n if (Array.isArray(data['error'])) {\n if (data['error'].length === 0) {\n obj.setError([]);\n } else {\n itemArr = [];\n items = data['error'];\n if (items[0].hasOwnProperty('$objectType')) {\n discriminator = items[0]['$objectType'];\n } else {\n discriminator = _typeof(items[0]);\n }\n for (i = 0; i < items.length; i++) {\n switch (discriminator) {\n case 'lifecycle.v4.error.AppMessage':\n item = _AppMessage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n default:\n throw \"Unknown list of type \" + discriminator + \" in data\";\n }\n }\n obj.setError(itemArr);\n }\n } else {\n if (data['error'].hasOwnProperty('$objectType')) {\n discriminator = data['error']['$objectType'];\n } else {\n discriminator = _typeof(data['error']);\n }\n switch (discriminator) {\n case 'lifecycle.v4.error.SchemaValidationError':\n obj.setError(_SchemaValidationError__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['error'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * @memberof ErrorResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nErrorResponse.prototype.error = undefined;\nErrorResponse.prototype.$reserved = undefined;\nErrorResponse.prototype.$objectType = undefined;\nErrorResponse.prototype.$unknownFields = undefined;\n\n// Implement OneOflifecycle.v4.resources.ListEntitiesApiResponsedata interface:\n// Implement OneOflifecycle.v4.operations.InventoryApiResponsedata interface:\n// Implement OneOflifecycle.v4.operations.ComputeNotificationsApiResponsedata interface:\n// Implement OneOflifecycle.v4.resources.ListImagesApiResponsedata interface:\n// Implement OneOflifecycle.v4.resources.GetEntityByIdApiResponsedata interface:\n// Implement OneOflifecycle.v4.resources.GetNotificationsByIdApiResponsedata interface:\n// Implement OneOflifecycle.v4.operations.UpgradeApiResponsedata interface:\n// Implement OneOflifecycle.v4.operations.PrechecksApiResponsedata interface:\n// Implement OneOflifecycle.v4.operations.ComputeRecommendationsApiResponsedata interface:\n// Implement OneOflifecycle.v4.resources.UpdateConfigApiResponsedata interface:\n// Implement OneOflifecycle.v4.resources.GetStatusApiResponsedata interface:\n// Implement OneOflifecycle.v4.resources.GetConfigApiResponsedata interface:\n// Implement OneOflifecycle.v4.resources.GetRecommendationByIdApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js?");
|
|
618
|
+
|
|
619
|
+
/***/ }),
|
|
620
|
+
|
|
621
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/error/SchemaValidationError.js":
|
|
622
|
+
/*!*************************************************************************************************!*\
|
|
623
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/error/SchemaValidationError.js ***!
|
|
624
|
+
\*************************************************************************************************/
|
|
625
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
626
|
+
|
|
627
|
+
"use strict";
|
|
628
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SchemaValidationError)\n/* harmony export */ });\n/* harmony import */ var _SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SchemaValidationErrorMessage */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/SchemaValidationErrorMessage.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The SchemaValidationError model module.\n * @module Ntnx/SchemaValidationError\n * @version 4.0.1-beta-1\n * @class SchemaValidationError\n */\nvar _SchemaValidationError_brand = /*#__PURE__*/new WeakSet();\nvar SchemaValidationError = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>SchemaValidationError</code>.\n * This schema is generated from SchemaValidationError.java\n * @alias module:Ntnx/SchemaValidationError\n */\n function SchemaValidationError() {\n _classCallCheck(this, SchemaValidationError);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _SchemaValidationError_brand);\n this.$objectType = \"lifecycle.v4.error.SchemaValidationError\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>SchemaValidationError</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/SchemaValidationError} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/SchemaValidationError} The populated <code>SchemaValidationError</code> instance.\n */\n return _createClass(SchemaValidationError, [{\n key: \"getTimestamp\",\n value:\n /**\n * Returns Timestamp of the response.\n * @return {}\n */\n function getTimestamp() {\n return this.timestamp;\n }\n\n /**\n * Sets Timestamp of the response.\n * @param {} timestamp Timestamp of the response.\n */\n }, {\n key: \"setTimestamp\",\n value: function setTimestamp(timestamp) {\n this.timestamp = timestamp;\n }\n\n /**\n * Returns The HTTP status code of the response.\n * @return {}\n */\n }, {\n key: \"getStatusCode\",\n value: function getStatusCode() {\n return this.statusCode;\n }\n\n /**\n * Sets The HTTP status code of the response.\n * @param {} statusCode The HTTP status code of the response.\n */\n }, {\n key: \"setStatusCode\",\n value: function setStatusCode(statusCode) {\n this.statusCode = statusCode;\n }\n\n /**\n * Returns The generic error message for the response.\n * @return {}\n */\n }, {\n key: \"getError\",\n value: function getError() {\n return this.error;\n }\n\n /**\n * Sets The generic error message for the response.\n * @param {} error The generic error message for the response.\n */\n }, {\n key: \"setError\",\n value: function setError(error) {\n this.error = error;\n }\n\n /**\n * Returns API path on which the request was made.\n * @return {}\n */\n }, {\n key: \"getPath\",\n value: function getPath() {\n return this.path;\n }\n\n /**\n * Sets API path on which the request was made.\n * @param {} path API path on which the request was made.\n */\n }, {\n key: \"setPath\",\n value: function setPath(path) {\n this.path = path;\n }\n\n /**\n * Returns List of validation error messages\n * @return {}\n */\n }, {\n key: \"getValidationErrorMessages\",\n value: function getValidationErrorMessages() {\n return this.validationErrorMessages;\n }\n\n /**\n * Sets List of validation error messages\n * @param {} validationErrorMessages List of validation error messages\n */\n }, {\n key: \"setValidationErrorMessages\",\n value: function setValidationErrorMessages(validationErrorMessages) {\n this.validationErrorMessages = validationErrorMessages;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getTimestamp() !== 'undefined' && this.getTimestamp() !== null ? {\n 'timestamp': this.getTimestamp()\n } : {}), typeof this.getStatusCode() !== 'undefined' && this.getStatusCode() !== null ? {\n 'statusCode': this.getStatusCode()\n } : {}), typeof this.getError() !== 'undefined' && this.getError() !== null ? {\n 'error': this.getError()\n } : {}), typeof this.getPath() !== 'undefined' && this.getPath() !== null ? {\n 'path': this.getPath()\n } : {}), typeof this.getValidationErrorMessages() !== 'undefined' && this.getValidationErrorMessages() !== null ? {\n 'validationErrorMessages': this.getValidationErrorMessages().map(function (item) {\n return item.toJson(false);\n })\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getTimestamp() !== 'undefined' && this.getTimestamp() !== null ? {\n 'timestamp': this.getTimestamp()\n } : {}), typeof this.getStatusCode() !== 'undefined' && this.getStatusCode() !== null ? {\n 'statusCode': this.getStatusCode()\n } : {}), typeof this.getError() !== 'undefined' && this.getError() !== null ? {\n 'error': this.getError()\n } : {}), typeof this.getPath() !== 'undefined' && this.getPath() !== null ? {\n 'path': this.getPath()\n } : {}), typeof this.getValidationErrorMessages() !== 'undefined' && this.getValidationErrorMessages() !== null ? {\n 'validationErrorMessages': this.getValidationErrorMessages().map(function (item) {\n return item.toJson(false);\n })\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"timestamp\") {\n if (typeof this.timestamp === 'undefined' || this.timestamp === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"timestamp\", \"undefined or null\");\n }\n }\n if (property === \"statusCode\") {\n if (typeof this.statusCode === 'undefined' || this.statusCode === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"statusCode\", \"undefined or null\");\n }\n }\n if (property === \"error\") {\n if (typeof this.error === 'undefined' || this.error === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"error\", \"undefined or null\");\n }\n }\n if (property === \"path\") {\n if (typeof this.path === 'undefined' || this.path === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"path\", \"undefined or null\");\n }\n }\n if (property === \"validationErrorMessages\") {\n if (typeof this.validationErrorMessages === 'undefined' || this.validationErrorMessages === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"validationErrorMessages\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new SchemaValidationError();\n if (data.hasOwnProperty('timestamp') && data.timestamp !== null && data.timestamp !== undefined) {\n obj.setTimestamp(data['timestamp']);\n }\n if (data.hasOwnProperty('statusCode') && data.statusCode !== null && data.statusCode !== undefined) {\n obj.setStatusCode(data['statusCode']);\n }\n if (data.hasOwnProperty('error') && data.error !== null && data.error !== undefined) {\n obj.setError(data['error']);\n }\n if (data.hasOwnProperty('path') && data.path !== null && data.path !== undefined) {\n obj.setPath(data['path']);\n }\n if (data.hasOwnProperty('validationErrorMessages') && data.validationErrorMessages !== null && data.validationErrorMessages !== undefined) {\n itemArr = [];\n items = data.validationErrorMessages;\n for (i = 0; i < items.length; i++) {\n item = _SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setValidationErrorMessages(itemArr);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * Timestamp of the response.\n * @memberof SchemaValidationError\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nSchemaValidationError.prototype.timestamp = undefined;\n\n/**\n * The HTTP status code of the response.\n * @memberof SchemaValidationError\n */\nSchemaValidationError.prototype.statusCode = undefined;\n\n/**\n * The generic error message for the response.\n * @memberof SchemaValidationError\n */\nSchemaValidationError.prototype.error = undefined;\n\n/**\n * API path on which the request was made.\n * @memberof SchemaValidationError\n */\nSchemaValidationError.prototype.path = undefined;\n\n/**\n * List of validation error messages\n * @memberof SchemaValidationError\n */\nSchemaValidationError.prototype.validationErrorMessages = undefined;\nSchemaValidationError.prototype.$reserved = undefined;\nSchemaValidationError.prototype.$objectType = undefined;\nSchemaValidationError.prototype.$unknownFields = undefined;\n\n// Implement OneOflifecycle.v4.error.ErrorResponseerror interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/error/SchemaValidationError.js?");
|
|
629
|
+
|
|
630
|
+
/***/ }),
|
|
631
|
+
|
|
632
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/error/SchemaValidationErrorMessage.js":
|
|
633
|
+
/*!********************************************************************************************************!*\
|
|
634
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/error/SchemaValidationErrorMessage.js ***!
|
|
635
|
+
\********************************************************************************************************/
|
|
636
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
637
|
+
|
|
638
|
+
"use strict";
|
|
639
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SchemaValidationErrorMessage)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The SchemaValidationErrorMessage model module.\n * @module Ntnx/SchemaValidationErrorMessage\n * @version 4.0.1-beta-1\n * @class SchemaValidationErrorMessage\n */\nvar _SchemaValidationErrorMessage_brand = /*#__PURE__*/new WeakSet();\nvar SchemaValidationErrorMessage = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>SchemaValidationErrorMessage</code>.\n * This schema is generated from SchemaValidationErrorMessage.java\n * @alias module:Ntnx/SchemaValidationErrorMessage\n */\n function SchemaValidationErrorMessage() {\n _classCallCheck(this, SchemaValidationErrorMessage);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _SchemaValidationErrorMessage_brand);\n this.$objectType = \"lifecycle.v4.error.SchemaValidationErrorMessage\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>SchemaValidationErrorMessage</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/SchemaValidationErrorMessage} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/SchemaValidationErrorMessage} The populated <code>SchemaValidationErrorMessage</code> instance.\n */\n return _createClass(SchemaValidationErrorMessage, [{\n key: \"getLocation\",\n value:\n /**\n * Returns The part of the request that failed validation. Validation can fail for path, query parameters, and request body.\n * @return {}\n */\n function getLocation() {\n return this.location;\n }\n\n /**\n * Sets The part of the request that failed validation. Validation can fail for path, query parameters, and request body.\n * @param {} location The part of the request that failed validation. Validation can fail for path, query parameters, and request body.\n */\n }, {\n key: \"setLocation\",\n value: function setLocation(location) {\n this.location = location;\n }\n\n /**\n * Returns The detailed message for the validation error.\n * @return {}\n */\n }, {\n key: \"getMessage\",\n value: function getMessage() {\n return this.message;\n }\n\n /**\n * Sets The detailed message for the validation error.\n * @param {} message The detailed message for the validation error.\n */\n }, {\n key: \"setMessage\",\n value: function setMessage(message) {\n this.message = message;\n }\n\n /**\n * Returns The path of the attribute that failed validation in the schema.\n * @return {}\n */\n }, {\n key: \"getAttributePath\",\n value: function getAttributePath() {\n return this.attributePath;\n }\n\n /**\n * Sets The path of the attribute that failed validation in the schema.\n * @param {} attributePath The path of the attribute that failed validation in the schema.\n */\n }, {\n key: \"setAttributePath\",\n value: function setAttributePath(attributePath) {\n this.attributePath = attributePath;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getLocation() !== 'undefined' && this.getLocation() !== null ? {\n 'location': this.getLocation()\n } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getAttributePath() !== 'undefined' && this.getAttributePath() !== null ? {\n 'attributePath': this.getAttributePath()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getLocation() !== 'undefined' && this.getLocation() !== null ? {\n 'location': this.getLocation()\n } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getAttributePath() !== 'undefined' && this.getAttributePath() !== null ? {\n 'attributePath': this.getAttributePath()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"location\") {\n if (typeof this.location === 'undefined' || this.location === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"location\", \"undefined or null\");\n }\n }\n if (property === \"message\") {\n if (typeof this.message === 'undefined' || this.message === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"message\", \"undefined or null\");\n }\n }\n if (property === \"attributePath\") {\n if (typeof this.attributePath === 'undefined' || this.attributePath === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"attributePath\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new SchemaValidationErrorMessage();\n if (data.hasOwnProperty('location') && data.location !== null && data.location !== undefined) {\n obj.setLocation(data['location']);\n }\n if (data.hasOwnProperty('message') && data.message !== null && data.message !== undefined) {\n obj.setMessage(data['message']);\n }\n if (data.hasOwnProperty('attributePath') && data.attributePath !== null && data.attributePath !== undefined) {\n obj.setAttributePath(data['attributePath']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * The part of the request that failed validation. Validation can fail for path, query parameters, and request body.\n * @memberof SchemaValidationErrorMessage\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nSchemaValidationErrorMessage.prototype.location = undefined;\n\n/**\n * The detailed message for the validation error.\n * @memberof SchemaValidationErrorMessage\n */\nSchemaValidationErrorMessage.prototype.message = undefined;\n\n/**\n * The path of the attribute that failed validation in the schema.\n * @memberof SchemaValidationErrorMessage\n */\nSchemaValidationErrorMessage.prototype.attributePath = undefined;\nSchemaValidationErrorMessage.prototype.$reserved = undefined;\nSchemaValidationErrorMessage.prototype.$objectType = undefined;\nSchemaValidationErrorMessage.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/error/SchemaValidationErrorMessage.js?");
|
|
640
|
+
|
|
641
|
+
/***/ }),
|
|
642
|
+
|
|
643
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js":
|
|
644
|
+
/*!****************************************************************************************************************!*\
|
|
645
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js ***!
|
|
646
|
+
\****************************************************************************************************************/
|
|
647
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
648
|
+
|
|
649
|
+
"use strict";
|
|
650
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ComputeNotificationsApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js\");\n/* harmony import */ var _prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../prism/v4/config/TaskReference */ \"./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The ComputeNotificationsApiResponse model module.\n * @module Ntnx/ComputeNotificationsApiResponse\n * @version 4.0.1-beta-1\n * @class ComputeNotificationsApiResponse\n */\nvar _ComputeNotificationsApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar ComputeNotificationsApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>ComputeNotificationsApiResponse</code>.\n * REST response for all response codes in API path /lifecycle/v4.0.b1/operations/$actions/compute-notifications Post operation\n * @alias module:Ntnx/ComputeNotificationsApiResponse\n */\n function ComputeNotificationsApiResponse() {\n var _this;\n _classCallCheck(this, ComputeNotificationsApiResponse);\n _this = _callSuper(this, ComputeNotificationsApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _ComputeNotificationsApiResponse_brand);\n _this.$objectType = \"lifecycle.v4.operations.ComputeNotificationsApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>ComputeNotificationsApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ComputeNotificationsApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ComputeNotificationsApiResponse} The populated <code>ComputeNotificationsApiResponse</code> instance.\n */\n _inherits(ComputeNotificationsApiResponse, _Paginable);\n return _createClass(ComputeNotificationsApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_ComputeNotificationsApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_ComputeNotificationsApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ComputeNotificationsApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'prism.v4.config.TaskReference':\n obj.setData(_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'lifecycle.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof ComputeNotificationsApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nComputeNotificationsApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof ComputeNotificationsApiResponse\n */\nComputeNotificationsApiResponse.prototype.data = undefined;\nComputeNotificationsApiResponse.prototype.$reserved = undefined;\nComputeNotificationsApiResponse.prototype.$objectType = undefined;\nComputeNotificationsApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js?");
|
|
651
|
+
|
|
652
|
+
/***/ }),
|
|
653
|
+
|
|
654
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js":
|
|
655
|
+
/*!******************************************************************************************************************!*\
|
|
656
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js ***!
|
|
657
|
+
\******************************************************************************************************************/
|
|
658
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
659
|
+
|
|
660
|
+
"use strict";
|
|
661
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ComputeRecommendationsApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js\");\n/* harmony import */ var _prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../prism/v4/config/TaskReference */ \"./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The ComputeRecommendationsApiResponse model module.\n * @module Ntnx/ComputeRecommendationsApiResponse\n * @version 4.0.1-beta-1\n * @class ComputeRecommendationsApiResponse\n */\nvar _ComputeRecommendationsApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar ComputeRecommendationsApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>ComputeRecommendationsApiResponse</code>.\n * REST response for all response codes in API path /lifecycle/v4.0.b1/operations/$actions/compute-recommendations Post operation\n * @alias module:Ntnx/ComputeRecommendationsApiResponse\n */\n function ComputeRecommendationsApiResponse() {\n var _this;\n _classCallCheck(this, ComputeRecommendationsApiResponse);\n _this = _callSuper(this, ComputeRecommendationsApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _ComputeRecommendationsApiResponse_brand);\n _this.$objectType = \"lifecycle.v4.operations.ComputeRecommendationsApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>ComputeRecommendationsApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ComputeRecommendationsApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ComputeRecommendationsApiResponse} The populated <code>ComputeRecommendationsApiResponse</code> instance.\n */\n _inherits(ComputeRecommendationsApiResponse, _Paginable);\n return _createClass(ComputeRecommendationsApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_ComputeRecommendationsApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_ComputeRecommendationsApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ComputeRecommendationsApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'prism.v4.config.TaskReference':\n obj.setData(_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'lifecycle.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof ComputeRecommendationsApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nComputeRecommendationsApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof ComputeRecommendationsApiResponse\n */\nComputeRecommendationsApiResponse.prototype.data = undefined;\nComputeRecommendationsApiResponse.prototype.$reserved = undefined;\nComputeRecommendationsApiResponse.prototype.$objectType = undefined;\nComputeRecommendationsApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js?");
|
|
662
|
+
|
|
663
|
+
/***/ }),
|
|
664
|
+
|
|
665
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/operations/InventoryApiResponse.js":
|
|
666
|
+
/*!*****************************************************************************************************!*\
|
|
667
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/operations/InventoryApiResponse.js ***!
|
|
668
|
+
\*****************************************************************************************************/
|
|
669
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
670
|
+
|
|
671
|
+
"use strict";
|
|
672
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ InventoryApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js\");\n/* harmony import */ var _prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../prism/v4/config/TaskReference */ \"./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The InventoryApiResponse model module.\n * @module Ntnx/InventoryApiResponse\n * @version 4.0.1-beta-1\n * @class InventoryApiResponse\n */\nvar _InventoryApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar InventoryApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>InventoryApiResponse</code>.\n * REST response for all response codes in API path /lifecycle/v4.0.b1/operations/$actions/inventory Post operation\n * @alias module:Ntnx/InventoryApiResponse\n */\n function InventoryApiResponse() {\n var _this;\n _classCallCheck(this, InventoryApiResponse);\n _this = _callSuper(this, InventoryApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _InventoryApiResponse_brand);\n _this.$objectType = \"lifecycle.v4.operations.InventoryApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>InventoryApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/InventoryApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/InventoryApiResponse} The populated <code>InventoryApiResponse</code> instance.\n */\n _inherits(InventoryApiResponse, _Paginable);\n return _createClass(InventoryApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_InventoryApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_InventoryApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new InventoryApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'prism.v4.config.TaskReference':\n obj.setData(_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'lifecycle.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof InventoryApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nInventoryApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof InventoryApiResponse\n */\nInventoryApiResponse.prototype.data = undefined;\nInventoryApiResponse.prototype.$reserved = undefined;\nInventoryApiResponse.prototype.$objectType = undefined;\nInventoryApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/operations/InventoryApiResponse.js?");
|
|
673
|
+
|
|
674
|
+
/***/ }),
|
|
675
|
+
|
|
676
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/operations/PrechecksApiResponse.js":
|
|
677
|
+
/*!*****************************************************************************************************!*\
|
|
678
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/operations/PrechecksApiResponse.js ***!
|
|
679
|
+
\*****************************************************************************************************/
|
|
680
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
681
|
+
|
|
682
|
+
"use strict";
|
|
683
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ PrechecksApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js\");\n/* harmony import */ var _prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../prism/v4/config/TaskReference */ \"./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The PrechecksApiResponse model module.\n * @module Ntnx/PrechecksApiResponse\n * @version 4.0.1-beta-1\n * @class PrechecksApiResponse\n */\nvar _PrechecksApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar PrechecksApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>PrechecksApiResponse</code>.\n * REST response for all response codes in API path /lifecycle/v4.0.b1/operations/$actions/prechecks Post operation\n * @alias module:Ntnx/PrechecksApiResponse\n */\n function PrechecksApiResponse() {\n var _this;\n _classCallCheck(this, PrechecksApiResponse);\n _this = _callSuper(this, PrechecksApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _PrechecksApiResponse_brand);\n _this.$objectType = \"lifecycle.v4.operations.PrechecksApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>PrechecksApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/PrechecksApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/PrechecksApiResponse} The populated <code>PrechecksApiResponse</code> instance.\n */\n _inherits(PrechecksApiResponse, _Paginable);\n return _createClass(PrechecksApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_PrechecksApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_PrechecksApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new PrechecksApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'prism.v4.config.TaskReference':\n obj.setData(_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'lifecycle.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof PrechecksApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nPrechecksApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof PrechecksApiResponse\n */\nPrechecksApiResponse.prototype.data = undefined;\nPrechecksApiResponse.prototype.$reserved = undefined;\nPrechecksApiResponse.prototype.$objectType = undefined;\nPrechecksApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/operations/PrechecksApiResponse.js?");
|
|
684
|
+
|
|
685
|
+
/***/ }),
|
|
686
|
+
|
|
687
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/operations/UpgradeApiResponse.js":
|
|
688
|
+
/*!***************************************************************************************************!*\
|
|
689
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/operations/UpgradeApiResponse.js ***!
|
|
690
|
+
\***************************************************************************************************/
|
|
691
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
692
|
+
|
|
693
|
+
"use strict";
|
|
694
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ UpgradeApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js\");\n/* harmony import */ var _prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../prism/v4/config/TaskReference */ \"./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The UpgradeApiResponse model module.\n * @module Ntnx/UpgradeApiResponse\n * @version 4.0.1-beta-1\n * @class UpgradeApiResponse\n */\nvar _UpgradeApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar UpgradeApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>UpgradeApiResponse</code>.\n * REST response for all response codes in API path /lifecycle/v4.0.b1/operations/$actions/upgrade Post operation\n * @alias module:Ntnx/UpgradeApiResponse\n */\n function UpgradeApiResponse() {\n var _this;\n _classCallCheck(this, UpgradeApiResponse);\n _this = _callSuper(this, UpgradeApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _UpgradeApiResponse_brand);\n _this.$objectType = \"lifecycle.v4.operations.UpgradeApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>UpgradeApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/UpgradeApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/UpgradeApiResponse} The populated <code>UpgradeApiResponse</code> instance.\n */\n _inherits(UpgradeApiResponse, _Paginable);\n return _createClass(UpgradeApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_UpgradeApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_UpgradeApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new UpgradeApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'prism.v4.config.TaskReference':\n obj.setData(_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'lifecycle.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof UpgradeApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nUpgradeApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof UpgradeApiResponse\n */\nUpgradeApiResponse.prototype.data = undefined;\nUpgradeApiResponse.prototype.$reserved = undefined;\nUpgradeApiResponse.prototype.$objectType = undefined;\nUpgradeApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/operations/UpgradeApiResponse.js?");
|
|
695
|
+
|
|
696
|
+
/***/ }),
|
|
697
|
+
|
|
698
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/AvailableVersion.js":
|
|
699
|
+
/*!************************************************************************************************!*\
|
|
700
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/AvailableVersion.js ***!
|
|
701
|
+
\************************************************************************************************/
|
|
702
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
703
|
+
|
|
704
|
+
"use strict";
|
|
705
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AvailableVersion)\n/* harmony export */ });\n/* harmony import */ var _common_AvailableVersionStatus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../common/AvailableVersionStatus */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/AvailableVersionStatus.js\");\n/* harmony import */ var _DependentEntity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DependentEntity */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/DependentEntity.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n/**\n * The AvailableVersion model module.\n * @module Ntnx/AvailableVersion\n * @version 4.0.1-beta-1\n * @class AvailableVersion\n */\nvar _AvailableVersion_brand = /*#__PURE__*/new WeakSet();\nvar AvailableVersion = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>AvailableVersion</code>.\n * LCM framework version present in the LCM URL.\n * @alias module:Ntnx/AvailableVersion\n */\n function AvailableVersion() {\n _classCallCheck(this, AvailableVersion);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _AvailableVersion_brand);\n this.$objectType = \"lifecycle.v4.resources.AvailableVersion\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>AvailableVersion</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/AvailableVersion} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/AvailableVersion} The populated <code>AvailableVersion</code> instance.\n */\n return _createClass(AvailableVersion, [{\n key: \"getVersion\",\n value:\n /**\n * Returns LCM framework version present in the LCM URL.\n * @return {}\n */\n function getVersion() {\n return this.version;\n }\n\n /**\n * Sets LCM framework version present in the LCM URL.\n * @param {} version LCM framework version present in the LCM URL.\n */\n }, {\n key: \"setVersion\",\n value: function setVersion(version) {\n this.version = version;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getStatus\",\n value: function getStatus() {\n return this.status;\n }\n\n /**\n * @param {} status\n */\n }, {\n key: \"setStatus\",\n value: function setStatus(status) {\n this.status = status;\n }\n\n /**\n * Returns Indicates if the available update is enabled.\n * @return {}\n */\n }, {\n key: \"getIsEnabled\",\n value: function getIsEnabled() {\n return this.isEnabled;\n }\n\n /**\n * Sets Indicates if the available update is enabled.\n * @param {} isEnabled Indicates if the available update is enabled.\n */\n }, {\n key: \"setIsEnabled\",\n value: function setIsEnabled(isEnabled) {\n this.isEnabled = isEnabled;\n }\n\n /**\n * Returns Available version UUID.\n * @return {}\n */\n }, {\n key: \"getAvailableVersionUuid\",\n value: function getAvailableVersionUuid() {\n return this.availableVersionUuid;\n }\n\n /**\n * Sets Available version UUID.\n * @param {} availableVersionUuid Available version UUID.\n */\n }, {\n key: \"setAvailableVersionUuid\",\n value: function setAvailableVersionUuid(availableVersionUuid) {\n this.availableVersionUuid = availableVersionUuid;\n }\n\n /**\n * Returns Order of this available version (1 being the lowest and 6 being the highest) when multiple versions are present with different status.\n * minimum: 1\n * maximum: 10000\n * @return {}\n */\n }, {\n key: \"getOrder\",\n value: function getOrder() {\n return this.order;\n }\n\n /**\n * Sets Order of this available version (1 being the lowest and 6 being the highest) when multiple versions are present with different status.\n * @param {} order Order of this available version (1 being the lowest and 6 being the highest) when multiple versions are present with different status.\n */\n }, {\n key: \"setOrder\",\n value: function setOrder(order) {\n this.order = order;\n }\n\n /**\n * Returns Reason for disabling the available version.\n * @return {}\n */\n }, {\n key: \"getDisablementReason\",\n value: function getDisablementReason() {\n return this.disablementReason;\n }\n\n /**\n * Sets Reason for disabling the available version.\n * @param {} disablementReason Reason for disabling the available version.\n */\n }, {\n key: \"setDisablementReason\",\n value: function setDisablementReason(disablementReason) {\n this.disablementReason = disablementReason;\n }\n\n /**\n * Returns Release notes corresponding to the update.\n * @return {}\n */\n }, {\n key: \"getReleaseNotes\",\n value: function getReleaseNotes() {\n return this.releaseNotes;\n }\n\n /**\n * Sets Release notes corresponding to the update.\n * @param {} releaseNotes Release notes corresponding to the update.\n */\n }, {\n key: \"setReleaseNotes\",\n value: function setReleaseNotes(releaseNotes) {\n this.releaseNotes = releaseNotes;\n }\n\n /**\n * Returns Release date for the entities that need this information.\n * @return {}\n */\n }, {\n key: \"getReleaseDate\",\n value: function getReleaseDate() {\n return this.releaseDate;\n }\n\n /**\n * Sets Release date for the entities that need this information.\n * @param {} releaseDate Release date for the entities that need this information.\n */\n }, {\n key: \"setReleaseDate\",\n value: function setReleaseDate(releaseDate) {\n this.releaseDate = releaseDate;\n }\n\n /**\n * Returns Update custom messages other than release notes to the user about this available version.\n * @return {}\n */\n }, {\n key: \"getCustomMessage\",\n value: function getCustomMessage() {\n return this.customMessage;\n }\n\n /**\n * Sets Update custom messages other than release notes to the user about this available version.\n * @param {} customMessage Update custom messages other than release notes to the user about this available version.\n */\n }, {\n key: \"setCustomMessage\",\n value: function setCustomMessage(customMessage) {\n this.customMessage = customMessage;\n }\n\n /**\n * Returns Component information for the payload based entity.\n * @return {}\n */\n }, {\n key: \"getChildEntities\",\n value: function getChildEntities() {\n return this.childEntities;\n }\n\n /**\n * Sets Component information for the payload based entity.\n * @param {} childEntities Component information for the payload based entity.\n */\n }, {\n key: \"setChildEntities\",\n value: function setChildEntities(childEntities) {\n this.childEntities = childEntities;\n }\n\n /**\n * Returns UUID of the group that this LCM entity is part of.\n * @return {}\n */\n }, {\n key: \"getGroupUuid\",\n value: function getGroupUuid() {\n return this.groupUuid;\n }\n\n /**\n * Sets UUID of the group that this LCM entity is part of.\n * @param {} groupUuid UUID of the group that this LCM entity is part of.\n */\n }, {\n key: \"setGroupUuid\",\n value: function setGroupUuid(groupUuid) {\n this.groupUuid = groupUuid;\n }\n\n /**\n * Returns List of dependencies for the available version.\n * @return {}\n */\n }, {\n key: \"getDependencies\",\n value: function getDependencies() {\n return this.dependencies;\n }\n\n /**\n * Sets List of dependencies for the available version.\n * @param {} dependencies List of dependencies for the available version.\n */\n }, {\n key: \"setDependencies\",\n value: function setDependencies(dependencies) {\n this.dependencies = dependencies;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getVersion() !== 'undefined' && this.getVersion() !== null ? {\n 'version': this.getVersion()\n } : {}), typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {\n 'status': this.getStatus()\n } : {}), typeof this.getIsEnabled() !== 'undefined' && this.getIsEnabled() !== null ? {\n 'isEnabled': this.getIsEnabled()\n } : {}), typeof this.getAvailableVersionUuid() !== 'undefined' && this.getAvailableVersionUuid() !== null ? {\n 'availableVersionUuid': this.getAvailableVersionUuid()\n } : {}), typeof this.getOrder() !== 'undefined' && this.getOrder() !== null ? {\n 'order': this.getOrder()\n } : {}), typeof this.getDisablementReason() !== 'undefined' && this.getDisablementReason() !== null ? {\n 'disablementReason': this.getDisablementReason()\n } : {}), typeof this.getReleaseNotes() !== 'undefined' && this.getReleaseNotes() !== null ? {\n 'releaseNotes': this.getReleaseNotes()\n } : {}), typeof this.getReleaseDate() !== 'undefined' && this.getReleaseDate() !== null ? {\n 'releaseDate': this.getReleaseDate()\n } : {}), typeof this.getCustomMessage() !== 'undefined' && this.getCustomMessage() !== null ? {\n 'customMessage': this.getCustomMessage()\n } : {}), typeof this.getChildEntities() !== 'undefined' && this.getChildEntities() !== null ? {\n 'childEntities': this.getChildEntities()\n } : {}), typeof this.getGroupUuid() !== 'undefined' && this.getGroupUuid() !== null ? {\n 'groupUuid': this.getGroupUuid()\n } : {}), typeof this.getDependencies() !== 'undefined' && this.getDependencies() !== null ? {\n 'dependencies': this.getDependencies().map(function (item) {\n return item.toJson(false);\n })\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getVersion() !== 'undefined' && this.getVersion() !== null ? {\n 'version': this.getVersion()\n } : {}), typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {\n 'status': this.getStatus()\n } : {}), typeof this.getIsEnabled() !== 'undefined' && this.getIsEnabled() !== null ? {\n 'isEnabled': this.getIsEnabled()\n } : {}), typeof this.getAvailableVersionUuid() !== 'undefined' && this.getAvailableVersionUuid() !== null ? {\n 'availableVersionUuid': this.getAvailableVersionUuid()\n } : {}), typeof this.getOrder() !== 'undefined' && this.getOrder() !== null ? {\n 'order': this.getOrder()\n } : {}), typeof this.getDisablementReason() !== 'undefined' && this.getDisablementReason() !== null ? {\n 'disablementReason': this.getDisablementReason()\n } : {}), typeof this.getReleaseNotes() !== 'undefined' && this.getReleaseNotes() !== null ? {\n 'releaseNotes': this.getReleaseNotes()\n } : {}), typeof this.getReleaseDate() !== 'undefined' && this.getReleaseDate() !== null ? {\n 'releaseDate': this.getReleaseDate()\n } : {}), typeof this.getCustomMessage() !== 'undefined' && this.getCustomMessage() !== null ? {\n 'customMessage': this.getCustomMessage()\n } : {}), typeof this.getGroupUuid() !== 'undefined' && this.getGroupUuid() !== null ? {\n 'groupUuid': this.getGroupUuid()\n } : {}), typeof this.getDependencies() !== 'undefined' && this.getDependencies() !== null ? {\n 'dependencies': this.getDependencies().map(function (item) {\n return item.toJson(false);\n })\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"version\") {\n if (typeof this.version === 'undefined' || this.version === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"version\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].validateMaxLength(this.version, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"version\", \"does not satisfy required maxLength constraint: 128\");\n }\n }\n if (property === \"status\") {\n if (typeof this.status === 'undefined' || this.status === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"status\", \"undefined or null\");\n }\n }\n if (property === \"isEnabled\") {\n if (typeof this.isEnabled === 'undefined' || this.isEnabled === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"isEnabled\", \"undefined or null\");\n }\n }\n if (property === \"availableVersionUuid\") {\n if (typeof this.availableVersionUuid === 'undefined' || this.availableVersionUuid === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"availableVersionUuid\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"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}$/\");\n }\n }\n if (property === \"order\") {\n if (typeof this.order === 'undefined' || this.order === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"order\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].validateMaximum(this.order, 10000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"order\", \"does not satisfy required maximum constraint: 10000\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].validateMinimum(this.order, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"order\", \"does not satisfy required minimum constraint: 1\");\n }\n }\n if (property === \"disablementReason\") {\n if (typeof this.disablementReason === 'undefined' || this.disablementReason === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"disablementReason\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].validateMaxLength(this.disablementReason, 512)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"disablementReason\", \"does not satisfy required maxLength constraint: 512\");\n }\n }\n if (property === \"releaseNotes\") {\n if (typeof this.releaseNotes === 'undefined' || this.releaseNotes === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"releaseNotes\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].validateMaxLength(this.releaseNotes, 1024)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"releaseNotes\", \"does not satisfy required maxLength constraint: 1024\");\n }\n }\n if (property === \"releaseDate\") {\n if (typeof this.releaseDate === 'undefined' || this.releaseDate === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"releaseDate\", \"undefined or null\");\n }\n }\n if (property === \"customMessage\") {\n if (typeof this.customMessage === 'undefined' || this.customMessage === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"customMessage\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].validateMaxLength(this.customMessage, 512)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"customMessage\", \"does not satisfy required maxLength constraint: 512\");\n }\n }\n if (property === \"childEntities\") {\n if (typeof this.childEntities === 'undefined' || this.childEntities === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"childEntities\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].validateMaxItems(this.childEntities, 100)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"childEntities\", \"does not satisfy required maxItems constraint: 100\");\n }\n }\n if (property === \"groupUuid\") {\n if (typeof this.groupUuid === 'undefined' || this.groupUuid === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"groupUuid\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"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}$/\");\n }\n }\n if (property === \"dependencies\") {\n if (typeof this.dependencies === 'undefined' || this.dependencies === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"dependencies\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].validateMaxItems(this.dependencies, 100)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"dependencies\", \"does not satisfy required maxItems constraint: 100\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new AvailableVersion();\n if (data.hasOwnProperty('version') && data.version !== null && data.version !== undefined) {\n obj.setVersion(data['version']);\n }\n if (data.hasOwnProperty('status') && data.status !== null && data.status !== undefined) {\n obj.setStatus(_common_AvailableVersionStatus__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['status']));\n }\n if (data.hasOwnProperty('isEnabled') && data.isEnabled !== null && data.isEnabled !== undefined) {\n obj.setIsEnabled(data['isEnabled']);\n }\n if (data.hasOwnProperty('availableVersionUuid') && data.availableVersionUuid !== null && data.availableVersionUuid !== undefined) {\n obj.setAvailableVersionUuid(data['availableVersionUuid']);\n }\n if (data.hasOwnProperty('order') && data.order !== null && data.order !== undefined) {\n obj.setOrder(data['order']);\n }\n if (data.hasOwnProperty('disablementReason') && data.disablementReason !== null && data.disablementReason !== undefined) {\n obj.setDisablementReason(data['disablementReason']);\n }\n if (data.hasOwnProperty('releaseNotes') && data.releaseNotes !== null && data.releaseNotes !== undefined) {\n obj.setReleaseNotes(data['releaseNotes']);\n }\n if (data.hasOwnProperty('releaseDate') && data.releaseDate !== null && data.releaseDate !== undefined) {\n obj.setReleaseDate(data['releaseDate']);\n }\n if (data.hasOwnProperty('customMessage') && data.customMessage !== null && data.customMessage !== undefined) {\n obj.setCustomMessage(data['customMessage']);\n }\n if (data.hasOwnProperty('childEntities') && data.childEntities !== null && data.childEntities !== undefined) {\n itemArr = [];\n items = data.childEntities;\n for (i = 0; i < items.length; i++) {\n itemArr.push(items[i]);\n }\n obj.setChildEntities(itemArr);\n }\n if (data.hasOwnProperty('groupUuid') && data.groupUuid !== null && data.groupUuid !== undefined) {\n obj.setGroupUuid(data['groupUuid']);\n }\n if (data.hasOwnProperty('dependencies') && data.dependencies !== null && data.dependencies !== undefined) {\n itemArr = [];\n items = data.dependencies;\n for (i = 0; i < items.length; i++) {\n item = _DependentEntity__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setDependencies(itemArr);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * LCM framework version present in the LCM URL.\n * @memberof AvailableVersion\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nAvailableVersion.prototype.version = undefined;\n\n/**\n * @memberof AvailableVersion\n */\nAvailableVersion.prototype.status = undefined;\n\n/**\n * Indicates if the available update is enabled.\n * @memberof AvailableVersion\n * @default true\n */\nAvailableVersion.prototype.isEnabled = true;\n\n/**\n * Available version UUID.\n * @memberof AvailableVersion\n */\nAvailableVersion.prototype.availableVersionUuid = undefined;\n\n/**\n * Order of this available version (1 being the lowest and 6 being the highest) when multiple versions are present with different status.\n * @memberof AvailableVersion\n */\nAvailableVersion.prototype.order = undefined;\n\n/**\n * Reason for disabling the available version.\n * @memberof AvailableVersion\n */\nAvailableVersion.prototype.disablementReason = undefined;\n\n/**\n * Release notes corresponding to the update.\n * @memberof AvailableVersion\n */\nAvailableVersion.prototype.releaseNotes = undefined;\n\n/**\n * Release date for the entities that need this information.\n * @memberof AvailableVersion\n */\nAvailableVersion.prototype.releaseDate = undefined;\n\n/**\n * Update custom messages other than release notes to the user about this available version.\n * @memberof AvailableVersion\n */\nAvailableVersion.prototype.customMessage = undefined;\n\n/**\n * Component information for the payload based entity.\n * @memberof AvailableVersion\n */\nAvailableVersion.prototype.childEntities = undefined;\n\n/**\n * UUID of the group that this LCM entity is part of.\n * @memberof AvailableVersion\n */\nAvailableVersion.prototype.groupUuid = undefined;\n\n/**\n * List of dependencies for the available version.\n * @memberof AvailableVersion\n */\nAvailableVersion.prototype.dependencies = undefined;\nAvailableVersion.prototype.$reserved = undefined;\nAvailableVersion.prototype.$objectType = undefined;\nAvailableVersion.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/AvailableVersion.js?");
|
|
706
|
+
|
|
707
|
+
/***/ }),
|
|
708
|
+
|
|
709
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Config.js":
|
|
710
|
+
/*!**************************************************************************************!*\
|
|
711
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Config.js ***!
|
|
712
|
+
\**************************************************************************************/
|
|
713
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
714
|
+
|
|
715
|
+
"use strict";
|
|
716
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Config)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/v1/response/ExternalizableAbstractModel */ \"./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js\");\n/* harmony import */ var _ConnectivityType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ConnectivityType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ConnectivityType.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n/**\n * The Config model module.\n * @module Ntnx/Config\n * @version 4.0.1-beta-1\n * @class Config\n */\nvar _Config_brand = /*#__PURE__*/new WeakSet();\nvar Config = /*#__PURE__*/function (_ExternalizableAbstra) {\n /**\n * Constructs a new <code>Config</code>.\n * LCM configuration on the cluster.\n * @alias module:Ntnx/Config\n * @extends module:Ntnx/ExternalizableAbstractModel\n */\n function Config() {\n var _this;\n _classCallCheck(this, Config);\n _this = _callSuper(this, Config);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _Config_brand);\n _this.$objectType = \"lifecycle.v4.resources.Config\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>Config</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/Config} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/Config} The populated <code>Config</code> instance.\n */\n _inherits(Config, _ExternalizableAbstra);\n return _createClass(Config, [{\n key: \"getUrl\",\n value:\n /**\n * Returns URL of the LCM repository.\n * @return {}\n */\n function getUrl() {\n return this.url;\n }\n\n /**\n * Sets URL of the LCM repository.\n * @param {} url URL of the LCM repository.\n */\n }, {\n key: \"setUrl\",\n value: function setUrl(url) {\n this.url = url;\n }\n\n /**\n * Returns Indicates if the auto inventory operation is enabled. The default value is set to False.\n * @return {}\n */\n }, {\n key: \"getIsAutoInventoryEnabled\",\n value: function getIsAutoInventoryEnabled() {\n return this.isAutoInventoryEnabled;\n }\n\n /**\n * Sets Indicates if the auto inventory operation is enabled. The default value is set to False.\n * @param {} isAutoInventoryEnabled Indicates if the auto inventory operation is enabled. The default value is set to False.\n */\n }, {\n key: \"setIsAutoInventoryEnabled\",\n value: function setIsAutoInventoryEnabled(isAutoInventoryEnabled) {\n this.isAutoInventoryEnabled = isAutoInventoryEnabled;\n }\n\n /**\n * Returns The scheduled time in \\\"%H:%M\\\" 24-hour format of the next inventory execution. Used when auto_inventory_enabled is set to True. The default schedule time is 03:00(AM).\n * @return {}\n */\n }, {\n key: \"getAutoInventorySchedule\",\n value: function getAutoInventorySchedule() {\n return this.autoInventorySchedule;\n }\n\n /**\n * Sets The scheduled time in \\\"%H:%M\\\" 24-hour format of the next inventory execution. Used when auto_inventory_enabled is set to True. The default schedule time is 03:00(AM).\n * @param {} autoInventorySchedule The scheduled time in \\\"%H:%M\\\" 24-hour format of the next inventory execution. Used when auto_inventory_enabled is set to True. The default schedule time is 03:00(AM).\n */\n }, {\n key: \"setAutoInventorySchedule\",\n value: function setAutoInventorySchedule(autoInventorySchedule) {\n this.autoInventorySchedule = autoInventorySchedule;\n }\n\n /**\n * Returns LCM version installed on the cluster.\n * @return {}\n */\n }, {\n key: \"getVersion\",\n value: function getVersion() {\n return this.version;\n }\n\n /**\n * Sets LCM version installed on the cluster.\n * @param {} version LCM version installed on the cluster.\n */\n }, {\n key: \"setVersion\",\n value: function setVersion(version) {\n this.version = version;\n }\n\n /**\n * Returns User friendly display version of LCM installed on the cluster.\n * @return {}\n */\n }, {\n key: \"getDisplayVersion\",\n value: function getDisplayVersion() {\n return this.displayVersion;\n }\n\n /**\n * Sets User friendly display version of LCM installed on the cluster.\n * @param {} displayVersion User friendly display version of LCM installed on the cluster.\n */\n }, {\n key: \"setDisplayVersion\",\n value: function setDisplayVersion(displayVersion) {\n this.displayVersion = displayVersion;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getConnectivityType\",\n value: function getConnectivityType() {\n return this.connectivityType;\n }\n\n /**\n * @param {} connectivityType\n */\n }, {\n key: \"setConnectivityType\",\n value: function setConnectivityType(connectivityType) {\n this.connectivityType = connectivityType;\n }\n\n /**\n * Returns Indicates if the LCM URL has HTTPS enabled. The default value is True.\n * @return {}\n */\n }, {\n key: \"getIsHttpsEnabled\",\n value: function getIsHttpsEnabled() {\n return this.isHttpsEnabled;\n }\n\n /**\n * Sets Indicates if the LCM URL has HTTPS enabled. The default value is True.\n * @param {} isHttpsEnabled Indicates if the LCM URL has HTTPS enabled. The default value is True.\n */\n }, {\n key: \"setIsHttpsEnabled\",\n value: function setIsHttpsEnabled(isHttpsEnabled) {\n this.isHttpsEnabled = isHttpsEnabled;\n }\n\n /**\n * Returns List of entities for which One-Click upgrades are supported.\n * @return {}\n */\n }, {\n key: \"getSupportedSoftwareEntities\",\n value: function getSupportedSoftwareEntities() {\n return this.supportedSoftwareEntities;\n }\n\n /**\n * Sets List of entities for which One-Click upgrades are supported.\n * @param {} supportedSoftwareEntities List of entities for which One-Click upgrades are supported.\n */\n }, {\n key: \"setSupportedSoftwareEntities\",\n value: function setSupportedSoftwareEntities(supportedSoftwareEntities) {\n this.supportedSoftwareEntities = supportedSoftwareEntities;\n }\n\n /**\n * Returns List of entities for which One-Click upgrades are not available.\n * @return {}\n */\n }, {\n key: \"getDeprecatedSoftwareEntities\",\n value: function getDeprecatedSoftwareEntities() {\n return this.deprecatedSoftwareEntities;\n }\n\n /**\n * Sets List of entities for which One-Click upgrades are not available.\n * @param {} deprecatedSoftwareEntities List of entities for which One-Click upgrades are not available.\n */\n }, {\n key: \"setDeprecatedSoftwareEntities\",\n value: function setDeprecatedSoftwareEntities(deprecatedSoftwareEntities) {\n this.deprecatedSoftwareEntities = deprecatedSoftwareEntities;\n }\n\n /**\n * Returns Indicates if the bundle is uploaded or not.\n * @return {}\n */\n }, {\n key: \"getIsFrameworkBundleUploaded\",\n value: function getIsFrameworkBundleUploaded() {\n return this.isFrameworkBundleUploaded;\n }\n\n /**\n * Sets Indicates if the bundle is uploaded or not.\n * @param {} isFrameworkBundleUploaded Indicates if the bundle is uploaded or not.\n */\n }, {\n key: \"setIsFrameworkBundleUploaded\",\n value: function setIsFrameworkBundleUploaded(isFrameworkBundleUploaded) {\n this.isFrameworkBundleUploaded = isFrameworkBundleUploaded;\n }\n\n /**\n * Returns Indicates if LCM is enabled to auto-upgrade products. The default value is False.\n * @return {}\n */\n }, {\n key: \"getHasModuleAutoUpgradeEnabled\",\n value: function getHasModuleAutoUpgradeEnabled() {\n return this.hasModuleAutoUpgradeEnabled;\n }\n\n /**\n * Sets Indicates if LCM is enabled to auto-upgrade products. The default value is False.\n * @param {} hasModuleAutoUpgradeEnabled Indicates if LCM is enabled to auto-upgrade products. The default value is False.\n */\n }, {\n key: \"setHasModuleAutoUpgradeEnabled\",\n value: function setHasModuleAutoUpgradeEnabled(hasModuleAutoUpgradeEnabled) {\n this.hasModuleAutoUpgradeEnabled = hasModuleAutoUpgradeEnabled;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getUrl() !== 'undefined' && this.getUrl() !== null ? {\n 'url': this.getUrl()\n } : {}), typeof this.getIsAutoInventoryEnabled() !== 'undefined' && this.getIsAutoInventoryEnabled() !== null ? {\n 'isAutoInventoryEnabled': this.getIsAutoInventoryEnabled()\n } : {}), typeof this.getAutoInventorySchedule() !== 'undefined' && this.getAutoInventorySchedule() !== null ? {\n 'autoInventorySchedule': this.getAutoInventorySchedule()\n } : {}), typeof this.getVersion() !== 'undefined' && this.getVersion() !== null ? {\n 'version': this.getVersion()\n } : {}), typeof this.getDisplayVersion() !== 'undefined' && this.getDisplayVersion() !== null ? {\n 'displayVersion': this.getDisplayVersion()\n } : {}), typeof this.getConnectivityType() !== 'undefined' && this.getConnectivityType() !== null ? {\n 'connectivityType': this.getConnectivityType()\n } : {}), typeof this.getIsHttpsEnabled() !== 'undefined' && this.getIsHttpsEnabled() !== null ? {\n 'isHttpsEnabled': this.getIsHttpsEnabled()\n } : {}), typeof this.getSupportedSoftwareEntities() !== 'undefined' && this.getSupportedSoftwareEntities() !== null ? {\n 'supportedSoftwareEntities': this.getSupportedSoftwareEntities()\n } : {}), typeof this.getDeprecatedSoftwareEntities() !== 'undefined' && this.getDeprecatedSoftwareEntities() !== null ? {\n 'deprecatedSoftwareEntities': this.getDeprecatedSoftwareEntities()\n } : {}), typeof this.getIsFrameworkBundleUploaded() !== 'undefined' && this.getIsFrameworkBundleUploaded() !== null ? {\n 'isFrameworkBundleUploaded': this.getIsFrameworkBundleUploaded()\n } : {}), typeof this.getHasModuleAutoUpgradeEnabled() !== 'undefined' && this.getHasModuleAutoUpgradeEnabled() !== null ? {\n 'hasModuleAutoUpgradeEnabled': this.getHasModuleAutoUpgradeEnabled()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getUrl() !== 'undefined' && this.getUrl() !== null ? {\n 'url': this.getUrl()\n } : {}), typeof this.getIsAutoInventoryEnabled() !== 'undefined' && this.getIsAutoInventoryEnabled() !== null ? {\n 'isAutoInventoryEnabled': this.getIsAutoInventoryEnabled()\n } : {}), typeof this.getAutoInventorySchedule() !== 'undefined' && this.getAutoInventorySchedule() !== null ? {\n 'autoInventorySchedule': this.getAutoInventorySchedule()\n } : {}), typeof this.getConnectivityType() !== 'undefined' && this.getConnectivityType() !== null ? {\n 'connectivityType': this.getConnectivityType()\n } : {}), typeof this.getIsHttpsEnabled() !== 'undefined' && this.getIsHttpsEnabled() !== null ? {\n 'isHttpsEnabled': this.getIsHttpsEnabled()\n } : {}), typeof this.getHasModuleAutoUpgradeEnabled() !== 'undefined' && this.getHasModuleAutoUpgradeEnabled() !== null ? {\n 'hasModuleAutoUpgradeEnabled': this.getHasModuleAutoUpgradeEnabled()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"url\") {\n if (typeof this.url === 'undefined' || this.url === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"url\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].validatePattern(this.url, /^((http[s]?|nfs):\\/)?\\/?([^:\\/\\\\s]*)((\\/\\\\w+)*(:[0-9]+)*?\\/)([\\\\w\\\\-\\\\.]+[^#?\\\\s]+)(.*)?(#[\\\\w\\\\-]+)?$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"url\", \"does not satisfy required pattern: /^((http[s]?|nfs):\\/)?\\/?([^:\\/\\\\s]*)((\\/\\\\w+)*(:[0-9]+)*?\\/)([\\\\w\\\\-\\\\.]+[^#?\\\\s]+)(.*)?(#[\\\\w\\\\-]+)?$/\");\n }\n }\n if (property === \"isAutoInventoryEnabled\") {\n if (typeof this.isAutoInventoryEnabled === 'undefined' || this.isAutoInventoryEnabled === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"isAutoInventoryEnabled\", \"undefined or null\");\n }\n }\n if (property === \"autoInventorySchedule\") {\n if (typeof this.autoInventorySchedule === 'undefined' || this.autoInventorySchedule === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"autoInventorySchedule\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].validatePattern(this.autoInventorySchedule, /^([01]\\\\d|2[0-3]):([0-5]\\\\d)$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"autoInventorySchedule\", \"does not satisfy required pattern: /^([01]\\\\d|2[0-3]):([0-5]\\\\d)$/\");\n }\n }\n if (property === \"version\") {\n if (typeof this.version === 'undefined' || this.version === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"version\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].validateMaxLength(this.version, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"version\", \"does not satisfy required maxLength constraint: 128\");\n }\n }\n if (property === \"displayVersion\") {\n if (typeof this.displayVersion === 'undefined' || this.displayVersion === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"displayVersion\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].validateMaxLength(this.displayVersion, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"displayVersion\", \"does not satisfy required maxLength constraint: 128\");\n }\n }\n if (property === \"connectivityType\") {\n if (typeof this.connectivityType === 'undefined' || this.connectivityType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"connectivityType\", \"undefined or null\");\n }\n }\n if (property === \"isHttpsEnabled\") {\n if (typeof this.isHttpsEnabled === 'undefined' || this.isHttpsEnabled === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"isHttpsEnabled\", \"undefined or null\");\n }\n }\n if (property === \"supportedSoftwareEntities\") {\n if (typeof this.supportedSoftwareEntities === 'undefined' || this.supportedSoftwareEntities === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"supportedSoftwareEntities\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].validateMaxItems(this.supportedSoftwareEntities, 100)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"supportedSoftwareEntities\", \"does not satisfy required maxItems constraint: 100\");\n }\n }\n if (property === \"deprecatedSoftwareEntities\") {\n if (typeof this.deprecatedSoftwareEntities === 'undefined' || this.deprecatedSoftwareEntities === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"deprecatedSoftwareEntities\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].validateMaxItems(this.deprecatedSoftwareEntities, 100)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"deprecatedSoftwareEntities\", \"does not satisfy required maxItems constraint: 100\");\n }\n }\n if (property === \"isFrameworkBundleUploaded\") {\n if (typeof this.isFrameworkBundleUploaded === 'undefined' || this.isFrameworkBundleUploaded === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"isFrameworkBundleUploaded\", \"undefined or null\");\n }\n }\n if (property === \"hasModuleAutoUpgradeEnabled\") {\n if (typeof this.hasModuleAutoUpgradeEnabled === 'undefined' || this.hasModuleAutoUpgradeEnabled === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"hasModuleAutoUpgradeEnabled\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new Config();\n _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('url') && data.url !== null && data.url !== undefined) {\n obj.setUrl(data['url']);\n }\n if (data.hasOwnProperty('isAutoInventoryEnabled') && data.isAutoInventoryEnabled !== null && data.isAutoInventoryEnabled !== undefined) {\n obj.setIsAutoInventoryEnabled(data['isAutoInventoryEnabled']);\n }\n if (data.hasOwnProperty('autoInventorySchedule') && data.autoInventorySchedule !== null && data.autoInventorySchedule !== undefined) {\n obj.setAutoInventorySchedule(data['autoInventorySchedule']);\n }\n if (data.hasOwnProperty('version') && data.version !== null && data.version !== undefined) {\n obj.setVersion(data['version']);\n }\n if (data.hasOwnProperty('displayVersion') && data.displayVersion !== null && data.displayVersion !== undefined) {\n obj.setDisplayVersion(data['displayVersion']);\n }\n if (data.hasOwnProperty('connectivityType') && data.connectivityType !== null && data.connectivityType !== undefined) {\n obj.setConnectivityType(_ConnectivityType__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['connectivityType']));\n }\n if (data.hasOwnProperty('isHttpsEnabled') && data.isHttpsEnabled !== null && data.isHttpsEnabled !== undefined) {\n obj.setIsHttpsEnabled(data['isHttpsEnabled']);\n }\n if (data.hasOwnProperty('supportedSoftwareEntities') && data.supportedSoftwareEntities !== null && data.supportedSoftwareEntities !== undefined) {\n itemArr = [];\n items = data.supportedSoftwareEntities;\n for (i = 0; i < items.length; i++) {\n itemArr.push(items[i]);\n }\n obj.setSupportedSoftwareEntities(itemArr);\n }\n if (data.hasOwnProperty('deprecatedSoftwareEntities') && data.deprecatedSoftwareEntities !== null && data.deprecatedSoftwareEntities !== undefined) {\n itemArr = [];\n items = data.deprecatedSoftwareEntities;\n for (i = 0; i < items.length; i++) {\n itemArr.push(items[i]);\n }\n obj.setDeprecatedSoftwareEntities(itemArr);\n }\n if (data.hasOwnProperty('isFrameworkBundleUploaded') && data.isFrameworkBundleUploaded !== null && data.isFrameworkBundleUploaded !== undefined) {\n obj.setIsFrameworkBundleUploaded(data['isFrameworkBundleUploaded']);\n }\n if (data.hasOwnProperty('hasModuleAutoUpgradeEnabled') && data.hasModuleAutoUpgradeEnabled !== null && data.hasModuleAutoUpgradeEnabled !== undefined) {\n obj.setHasModuleAutoUpgradeEnabled(data['hasModuleAutoUpgradeEnabled']);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n/**\n * URL of the LCM repository.\n * @memberof Config\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nConfig.prototype.url = undefined;\n\n/**\n * Indicates if the auto inventory operation is enabled. The default value is set to False.\n * @memberof Config\n * @default false\n */\nConfig.prototype.isAutoInventoryEnabled = false;\n\n/**\n * The scheduled time in \\\"%H:%M\\\" 24-hour format of the next inventory execution. Used when auto_inventory_enabled is set to True. The default schedule time is 03:00(AM).\n * @memberof Config\n */\nConfig.prototype.autoInventorySchedule = undefined;\n\n/**\n * LCM version installed on the cluster.\n * @memberof Config\n */\nConfig.prototype.version = undefined;\n\n/**\n * User friendly display version of LCM installed on the cluster.\n * @memberof Config\n */\nConfig.prototype.displayVersion = undefined;\n\n/**\n * @memberof Config\n */\nConfig.prototype.connectivityType = undefined;\n\n/**\n * Indicates if the LCM URL has HTTPS enabled. The default value is True.\n * @memberof Config\n * @default false\n */\nConfig.prototype.isHttpsEnabled = false;\n\n/**\n * List of entities for which One-Click upgrades are supported.\n * @memberof Config\n */\nConfig.prototype.supportedSoftwareEntities = undefined;\n\n/**\n * List of entities for which One-Click upgrades are not available.\n * @memberof Config\n */\nConfig.prototype.deprecatedSoftwareEntities = undefined;\n\n/**\n * Indicates if the bundle is uploaded or not.\n * @memberof Config\n * @default false\n */\nConfig.prototype.isFrameworkBundleUploaded = false;\n\n/**\n * Indicates if LCM is enabled to auto-upgrade products. The default value is False.\n * @memberof Config\n * @default false\n */\nConfig.prototype.hasModuleAutoUpgradeEnabled = false;\n\n// Implement OneOflifecycle.v4.resources.GetConfigApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Config.js?");
|
|
717
|
+
|
|
718
|
+
/***/ }),
|
|
719
|
+
|
|
720
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ConnectivityType.js":
|
|
721
|
+
/*!************************************************************************************************!*\
|
|
722
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ConnectivityType.js ***!
|
|
723
|
+
\************************************************************************************************/
|
|
724
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
725
|
+
|
|
726
|
+
"use strict";
|
|
727
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Enum class ConnectivityType.\n * @enum {string}\n * @readonly\n */\nvar ConnectivityType = {\n /** \n * value: \"$UNKNOWN\"\n * @const\n */\n $UNKNOWN: \"$UNKNOWN\",\n /** \n * value: \"$REDACTED\"\n * @const\n */\n $REDACTED: \"$REDACTED\",\n /** \n * In connected-site, LCM on the cluster has internet connectivity to reach configured portal for downloading LCM modules/bundles etc.\n * @const\n */\n CONNECTED_SITE: \"CONNECTED_SITE\",\n /** \n * LCM on the cluster does not have external connectivity and will have a connection to darksite webserver maintained by the customer.\n * @const\n */\n DARKSITE_WEB_SERVER: \"DARKSITE_WEB_SERVER\",\n /** \n * LCM on the cluster does not have external connectivity and will have a facility to upload darksite bundles through LCM.\n * @const\n */\n DARKSITE_DIRECT_UPLOAD: \"DARKSITE_DIRECT_UPLOAD\"\n};\n\n/**\n* Returns a <code>ConnectivityType</code> enum value from a JavaScript object name.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {ConnectivityType} The enum <code>ConnectivityType</code> value.\n*/\nConnectivityType.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n var enumVal = Object.keys(ConnectivityType).find(function (key) {\n return ConnectivityType[key] === obj;\n });\n return enumVal === undefined || enumVal === null ? ConnectivityType.$UNKNOWN : ConnectivityType[enumVal];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\n\n/**\n* Validates <code>ConnectivityType</code> enum value.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {null} Throws error for invalid value.\n*/\nConnectivityType.validate = function (obj) {\n switch (obj) {\n case ConnectivityType.$UNKNOWN:\n case ConnectivityType.$REDACTED:\n case ConnectivityType.CONNECTED_SITE:\n case ConnectivityType.DARKSITE_WEB_SERVER:\n case ConnectivityType.DARKSITE_DIRECT_UPLOAD:\n return;\n default:\n throw new Error(\"Invalid : must be ConnectivityType.{ $UNKNOWN|$REDACTED|CONNECTED_SITE|DARKSITE_WEB_SERVER|DARKSITE_DIRECT_UPLOAD }\");\n }\n};\nObject.freeze(ConnectivityType);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ConnectivityType);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ConnectivityType.js?");
|
|
728
|
+
|
|
729
|
+
/***/ }),
|
|
730
|
+
|
|
731
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/DependentEntity.js":
|
|
732
|
+
/*!***********************************************************************************************!*\
|
|
733
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/DependentEntity.js ***!
|
|
734
|
+
\***********************************************************************************************/
|
|
735
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
736
|
+
|
|
737
|
+
"use strict";
|
|
738
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DependentEntity)\n/* harmony export */ });\n/* harmony import */ var _common_v1_config_KVPair__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/config/KVPair */ \"./target/generated-sources/swagger/src/models/common/v1/config/KVPair.js\");\n/* harmony import */ var _common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/EntityBaseModel */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityBaseModel.js\");\n/* harmony import */ var _common_EntityType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/EntityType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityType.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n/**\n * The DependentEntity model module.\n * @module Ntnx/DependentEntity\n * @version 4.0.1-beta-1\n * @class DependentEntity\n */\nvar _DependentEntity_brand = /*#__PURE__*/new WeakSet();\nvar DependentEntity = /*#__PURE__*/function (_EntityBaseModel) {\n /**\n * Constructs a new <code>DependentEntity</code>.\n * Dependency of an LCM entity available version.\n * @alias module:Ntnx/DependentEntity\n * @extends module:Ntnx/EntityBaseModel\n */\n function DependentEntity() {\n var _this;\n _classCallCheck(this, DependentEntity);\n _this = _callSuper(this, DependentEntity);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _DependentEntity_brand);\n _this.$objectType = \"lifecycle.v4.resources.DependentEntity\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>DependentEntity</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/DependentEntity} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/DependentEntity} The populated <code>DependentEntity</code> instance.\n */\n _inherits(DependentEntity, _EntityBaseModel);\n return _createClass(DependentEntity, [{\n key: \"getDependentVersions\",\n value:\n /**\n * Returns Information of the dependent entity versions for this available entity.\n * @return {}\n */\n function getDependentVersions() {\n return this.dependentVersions;\n }\n\n /**\n * Sets Information of the dependent entity versions for this available entity.\n * @param {} dependentVersions Information of the dependent entity versions for this available entity.\n */\n }, {\n key: \"setDependentVersions\",\n value: function setDependentVersions(dependentVersions) {\n this.dependentVersions = dependentVersions;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getDependentVersions() !== 'undefined' && this.getDependentVersions() !== null ? {\n 'dependentVersions': this.getDependentVersions().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {\n 'entityClass': this.getEntityClass()\n } : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {\n 'entityModel': this.getEntityModel()\n } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {\n 'entityType': this.getEntityType()\n } : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {\n 'entityVersion': this.getEntityVersion()\n } : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {\n 'hardwareFamily': this.getHardwareFamily()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {\n 'entityClass': this.getEntityClass()\n } : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {\n 'entityModel': this.getEntityModel()\n } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {\n 'entityType': this.getEntityType()\n } : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {\n 'entityVersion': this.getEntityVersion()\n } : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {\n 'hardwareFamily': this.getHardwareFamily()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"dependentVersions\") {\n if (typeof this.dependentVersions === 'undefined' || this.dependentVersions === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"dependentVersions\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].validateMaxItems(this.dependentVersions, 100)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"dependentVersions\", \"does not satisfy required maxItems constraint: 100\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new DependentEntity();\n _common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('dependentVersions') && data.dependentVersions !== null && data.dependentVersions !== undefined) {\n itemArr = [];\n items = data.dependentVersions;\n for (i = 0; i < items.length; i++) {\n item = _common_v1_config_KVPair__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setDependentVersions(itemArr);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n/**\n * Information of the dependent entity versions for this available entity.\n * @memberof DependentEntity\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nDependentEntity.prototype.dependentVersions = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/DependentEntity.js?");
|
|
739
|
+
|
|
740
|
+
/***/ }),
|
|
741
|
+
|
|
742
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/DeployableVersion.js":
|
|
743
|
+
/*!*************************************************************************************************!*\
|
|
744
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/DeployableVersion.js ***!
|
|
745
|
+
\*************************************************************************************************/
|
|
746
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
747
|
+
|
|
748
|
+
"use strict";
|
|
749
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DeployableVersion)\n/* harmony export */ });\n/* harmony import */ var _common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../common/EntityBaseModel */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityBaseModel.js\");\n/* harmony import */ var _common_EntityType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/EntityType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityType.js\");\n/* harmony import */ var _common_EntityUpdateSpec__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/EntityUpdateSpec */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityUpdateSpec.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n/**\n * The DeployableVersion model module.\n * @module Ntnx/DeployableVersion\n * @version 4.0.1-beta-1\n * @class DeployableVersion\n */\nvar _DeployableVersion_brand = /*#__PURE__*/new WeakSet();\nvar DeployableVersion = /*#__PURE__*/function (_EntityBaseModel) {\n /**\n * Constructs a new <code>DeployableVersion</code>.\n * List of deployable versions based on entity types, versions and its dependencies.\n * @alias module:Ntnx/DeployableVersion\n * @extends module:Ntnx/EntityBaseModel\n */\n function DeployableVersion() {\n var _this;\n _classCallCheck(this, DeployableVersion);\n _this = _callSuper(this, DeployableVersion);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _DeployableVersion_brand);\n _this.$objectType = \"lifecycle.v4.resources.DeployableVersion\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>DeployableVersion</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/DeployableVersion} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/DeployableVersion} The populated <code>DeployableVersion</code> instance.\n */\n _inherits(DeployableVersion, _EntityBaseModel);\n return _createClass(DeployableVersion, [{\n key: \"getTargetVersion\",\n value:\n /**\n * Returns Entity target version.\n * @return {}\n */\n function getTargetVersion() {\n return this.targetVersion;\n }\n\n /**\n * Sets Entity target version.\n * @param {} targetVersion Entity target version.\n */\n }, {\n key: \"setTargetVersion\",\n value: function setTargetVersion(targetVersion) {\n this.targetVersion = targetVersion;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getUpdateDependencies\",\n value: function getUpdateDependencies() {\n return this.updateDependencies;\n }\n\n /**\n * @param {} updateDependencies\n */\n }, {\n key: \"setUpdateDependencies\",\n value: function setUpdateDependencies(updateDependencies) {\n this.updateDependencies = updateDependencies;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getTargetVersion() !== 'undefined' && this.getTargetVersion() !== null ? {\n 'targetVersion': this.getTargetVersion()\n } : {}), typeof this.getUpdateDependencies() !== 'undefined' && this.getUpdateDependencies() !== null ? {\n 'updateDependencies': this.getUpdateDependencies().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {\n 'entityClass': this.getEntityClass()\n } : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {\n 'entityModel': this.getEntityModel()\n } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {\n 'entityType': this.getEntityType()\n } : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {\n 'entityVersion': this.getEntityVersion()\n } : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {\n 'hardwareFamily': this.getHardwareFamily()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getTargetVersion() !== 'undefined' && this.getTargetVersion() !== null ? {\n 'targetVersion': this.getTargetVersion()\n } : {}), typeof this.getUpdateDependencies() !== 'undefined' && this.getUpdateDependencies() !== null ? {\n 'updateDependencies': this.getUpdateDependencies().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {\n 'entityClass': this.getEntityClass()\n } : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {\n 'entityModel': this.getEntityModel()\n } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {\n 'entityType': this.getEntityType()\n } : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {\n 'entityVersion': this.getEntityVersion()\n } : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {\n 'hardwareFamily': this.getHardwareFamily()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"targetVersion\") {\n if (typeof this.targetVersion === 'undefined' || this.targetVersion === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"targetVersion\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].validateMaxLength(this.targetVersion, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"targetVersion\", \"does not satisfy required maxLength constraint: 128\");\n }\n }\n if (property === \"updateDependencies\") {\n if (typeof this.updateDependencies === 'undefined' || this.updateDependencies === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"updateDependencies\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].validateMaxItems(this.updateDependencies, 2048)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"updateDependencies\", \"does not satisfy required maxItems constraint: 2048\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new DeployableVersion();\n _common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('targetVersion') && data.targetVersion !== null && data.targetVersion !== undefined) {\n obj.setTargetVersion(data['targetVersion']);\n }\n if (data.hasOwnProperty('updateDependencies') && data.updateDependencies !== null && data.updateDependencies !== undefined) {\n itemArr = [];\n items = data.updateDependencies;\n for (i = 0; i < items.length; i++) {\n item = _common_EntityUpdateSpec__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setUpdateDependencies(itemArr);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n/**\n * Entity target version.\n * @memberof DeployableVersion\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nDeployableVersion.prototype.targetVersion = undefined;\n\n/**\n * @memberof DeployableVersion\n */\nDeployableVersion.prototype.updateDependencies = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/DeployableVersion.js?");
|
|
750
|
+
|
|
751
|
+
/***/ }),
|
|
752
|
+
|
|
753
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Entity.js":
|
|
754
|
+
/*!**************************************************************************************!*\
|
|
755
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Entity.js ***!
|
|
756
|
+
\**************************************************************************************/
|
|
757
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
758
|
+
|
|
759
|
+
"use strict";
|
|
760
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Entity)\n/* harmony export */ });\n/* harmony import */ var _common_v1_config_KVPair__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/config/KVPair */ \"./target/generated-sources/swagger/src/models/common/v1/config/KVPair.js\");\n/* harmony import */ var _common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/EntityBaseModel */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityBaseModel.js\");\n/* harmony import */ var _common_EntityType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/EntityType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityType.js\");\n/* harmony import */ var _common_LocationInfo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/LocationInfo */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/LocationInfo.js\");\n/* harmony import */ var _AvailableVersion__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AvailableVersion */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/AvailableVersion.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n\n/**\n * The Entity model module.\n * @module Ntnx/Entity\n * @version 4.0.1-beta-1\n * @class Entity\n */\nvar _Entity_brand = /*#__PURE__*/new WeakSet();\nvar Entity = /*#__PURE__*/function (_EntityBaseModel) {\n /**\n * Constructs a new <code>Entity</code>.\n * Details of an LCM entity.\n * @alias module:Ntnx/Entity\n * @extends module:Ntnx/EntityBaseModel\n */\n function Entity() {\n var _this;\n _classCallCheck(this, Entity);\n _this = _callSuper(this, Entity);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _Entity_brand);\n _this.$objectType = \"lifecycle.v4.resources.Entity\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>Entity</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/Entity} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/Entity} The populated <code>Entity</code> instance.\n */\n _inherits(Entity, _EntityBaseModel);\n return _createClass(Entity, [{\n key: \"getEntityDescription\",\n value:\n /**\n * Returns Description of an LCM entity.\n * @return {}\n */\n function getEntityDescription() {\n return this.entityDescription;\n }\n\n /**\n * Sets Description of an LCM entity.\n * @param {} entityDescription Description of an LCM entity.\n */\n }, {\n key: \"setEntityDescription\",\n value: function setEntityDescription(entityDescription) {\n this.entityDescription = entityDescription;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getLocationInfo\",\n value: function getLocationInfo() {\n return this.locationInfo;\n }\n\n /**\n * @param {} locationInfo\n */\n }, {\n key: \"setLocationInfo\",\n value: function setLocationInfo(locationInfo) {\n this.locationInfo = locationInfo;\n }\n\n /**\n * Returns The requested update version of an LCM entity.\n * @return {}\n */\n }, {\n key: \"getTargetVersion\",\n value: function getTargetVersion() {\n return this.targetVersion;\n }\n\n /**\n * Sets The requested update version of an LCM entity.\n * @param {} targetVersion The requested update version of an LCM entity.\n */\n }, {\n key: \"setTargetVersion\",\n value: function setTargetVersion(targetVersion) {\n this.targetVersion = targetVersion;\n }\n\n /**\n * Returns UTC date and time in RFC-3339 format when the task was last updated.\n * @return {}\n */\n }, {\n key: \"getLastUpdatedTime\",\n value: function getLastUpdatedTime() {\n return this.lastUpdatedTime;\n }\n\n /**\n * Sets UTC date and time in RFC-3339 format when the task was last updated.\n * @param {} lastUpdatedTime UTC date and time in RFC-3339 format when the task was last updated.\n */\n }, {\n key: \"setLastUpdatedTime\",\n value: function setLastUpdatedTime(lastUpdatedTime) {\n this.lastUpdatedTime = lastUpdatedTime;\n }\n\n /**\n * Returns Unique identifier of an LCM entity e.g. \\\"HDD serial number\\\".\n * @return {}\n */\n }, {\n key: \"getDeviceId\",\n value: function getDeviceId() {\n return this.deviceId;\n }\n\n /**\n * Sets Unique identifier of an LCM entity e.g. \\\"HDD serial number\\\".\n * @param {} deviceId Unique identifier of an LCM entity e.g. \\\"HDD serial number\\\".\n */\n }, {\n key: \"setDeviceId\",\n value: function setDeviceId(deviceId) {\n this.deviceId = deviceId;\n }\n\n /**\n * Returns UUID of the group that this LCM entity is part of.\n * @return {}\n */\n }, {\n key: \"getGroupUuid\",\n value: function getGroupUuid() {\n return this.groupUuid;\n }\n\n /**\n * Sets UUID of the group that this LCM entity is part of.\n * @param {} groupUuid UUID of the group that this LCM entity is part of.\n */\n }, {\n key: \"setGroupUuid\",\n value: function setGroupUuid(groupUuid) {\n this.groupUuid = groupUuid;\n }\n\n /**\n * Returns Detailed information for the LCM entity. For example, firmware entities contain additional information about NIC and so on.\n * @return {}\n */\n }, {\n key: \"getEntityDetails\",\n value: function getEntityDetails() {\n return this.entityDetails;\n }\n\n /**\n * Sets Detailed information for the LCM entity. For example, firmware entities contain additional information about NIC and so on.\n * @param {} entityDetails Detailed information for the LCM entity. For example, firmware entities contain additional information about NIC and so on.\n */\n }, {\n key: \"setEntityDetails\",\n value: function setEntityDetails(entityDetails) {\n this.entityDetails = entityDetails;\n }\n\n /**\n * Returns Component information for the payload based entity.\n * @return {}\n */\n }, {\n key: \"getChildEntities\",\n value: function getChildEntities() {\n return this.childEntities;\n }\n\n /**\n * Sets Component information for the payload based entity.\n * @param {} childEntities Component information for the payload based entity.\n */\n }, {\n key: \"setChildEntities\",\n value: function setChildEntities(childEntities) {\n this.childEntities = childEntities;\n }\n\n /**\n * Returns List of available versions for an LCM entity to update.\n * @return {}\n */\n }, {\n key: \"getAvailableVersions\",\n value: function getAvailableVersions() {\n return this.availableVersions;\n }\n\n /**\n * Sets List of available versions for an LCM entity to update.\n * @param {} availableVersions List of available versions for an LCM entity to update.\n */\n }, {\n key: \"setAvailableVersions\",\n value: function setAvailableVersions(availableVersions) {\n this.availableVersions = availableVersions;\n }\n\n /**\n * Returns A list of sub-entities applicable to the entity.\n * @return {}\n */\n }, {\n key: \"getSubEntities\",\n value: function getSubEntities() {\n return this.subEntities;\n }\n\n /**\n * Sets A list of sub-entities applicable to the entity.\n * @param {} subEntities A list of sub-entities applicable to the entity.\n */\n }, {\n key: \"setSubEntities\",\n value: function setSubEntities(subEntities) {\n this.subEntities = subEntities;\n }\n\n /**\n * Returns Cluster uuid on which the resource is present or operation is being performed.\n * @return {}\n */\n }, {\n key: \"getClusterExtId\",\n value: function getClusterExtId() {\n return this.clusterExtId;\n }\n\n /**\n * Sets Cluster uuid on which the resource is present or operation is being performed.\n * @param {} clusterExtId Cluster uuid on which the resource is present or operation is being performed.\n */\n }, {\n key: \"setClusterExtId\",\n value: function setClusterExtId(clusterExtId) {\n this.clusterExtId = clusterExtId;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getEntityDescription() !== 'undefined' && this.getEntityDescription() !== null ? {\n 'entityDescription': this.getEntityDescription()\n } : {}), typeof this.getLocationInfo() !== 'undefined' && this.getLocationInfo() !== null ? {\n 'locationInfo': this.getLocationInfo().toJson(false)\n } : {}), typeof this.getTargetVersion() !== 'undefined' && this.getTargetVersion() !== null ? {\n 'targetVersion': this.getTargetVersion()\n } : {}), typeof this.getLastUpdatedTime() !== 'undefined' && this.getLastUpdatedTime() !== null ? {\n 'lastUpdatedTime': this.getLastUpdatedTime()\n } : {}), typeof this.getDeviceId() !== 'undefined' && this.getDeviceId() !== null ? {\n 'deviceId': this.getDeviceId()\n } : {}), typeof this.getGroupUuid() !== 'undefined' && this.getGroupUuid() !== null ? {\n 'groupUuid': this.getGroupUuid()\n } : {}), typeof this.getEntityDetails() !== 'undefined' && this.getEntityDetails() !== null ? {\n 'entityDetails': this.getEntityDetails().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getChildEntities() !== 'undefined' && this.getChildEntities() !== null ? {\n 'childEntities': this.getChildEntities()\n } : {}), typeof this.getAvailableVersions() !== 'undefined' && this.getAvailableVersions() !== null ? {\n 'availableVersions': this.getAvailableVersions().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getSubEntities() !== 'undefined' && this.getSubEntities() !== null ? {\n 'subEntities': this.getSubEntities().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {\n 'clusterExtId': this.getClusterExtId()\n } : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {\n 'entityClass': this.getEntityClass()\n } : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {\n 'entityModel': this.getEntityModel()\n } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {\n 'entityType': this.getEntityType()\n } : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {\n 'entityVersion': this.getEntityVersion()\n } : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {\n 'hardwareFamily': this.getHardwareFamily()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getLocationInfo() !== 'undefined' && this.getLocationInfo() !== null ? {\n 'locationInfo': this.getLocationInfo().toJson(false)\n } : {}), typeof this.getSubEntities() !== 'undefined' && this.getSubEntities() !== null ? {\n 'subEntities': this.getSubEntities().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {\n 'clusterExtId': this.getClusterExtId()\n } : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {\n 'entityClass': this.getEntityClass()\n } : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {\n 'entityModel': this.getEntityModel()\n } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {\n 'entityType': this.getEntityType()\n } : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {\n 'entityVersion': this.getEntityVersion()\n } : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {\n 'hardwareFamily': this.getHardwareFamily()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"entityDescription\") {\n if (typeof this.entityDescription === 'undefined' || this.entityDescription === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"entityDescription\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxLength(this.entityDescription, 256)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"entityDescription\", \"does not satisfy required maxLength constraint: 256\");\n }\n }\n if (property === \"locationInfo\") {\n if (typeof this.locationInfo === 'undefined' || this.locationInfo === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"locationInfo\", \"undefined or null\");\n }\n }\n if (property === \"targetVersion\") {\n if (typeof this.targetVersion === 'undefined' || this.targetVersion === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"targetVersion\", \"undefined or null\");\n }\n }\n if (property === \"lastUpdatedTime\") {\n if (typeof this.lastUpdatedTime === 'undefined' || this.lastUpdatedTime === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"lastUpdatedTime\", \"undefined or null\");\n }\n }\n if (property === \"deviceId\") {\n if (typeof this.deviceId === 'undefined' || this.deviceId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"deviceId\", \"undefined or null\");\n }\n }\n if (property === \"groupUuid\") {\n if (typeof this.groupUuid === 'undefined' || this.groupUuid === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"groupUuid\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"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}$/\");\n }\n }\n if (property === \"entityDetails\") {\n if (typeof this.entityDetails === 'undefined' || this.entityDetails === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"entityDetails\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.entityDetails, 100)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"entityDetails\", \"does not satisfy required maxItems constraint: 100\");\n }\n }\n if (property === \"childEntities\") {\n if (typeof this.childEntities === 'undefined' || this.childEntities === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"childEntities\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.childEntities, 100)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"childEntities\", \"does not satisfy required maxItems constraint: 100\");\n }\n }\n if (property === \"availableVersions\") {\n if (typeof this.availableVersions === 'undefined' || this.availableVersions === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"availableVersions\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.availableVersions, 100)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"availableVersions\", \"does not satisfy required maxItems constraint: 100\");\n }\n }\n if (property === \"subEntities\") {\n if (typeof this.subEntities === 'undefined' || this.subEntities === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"subEntities\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.subEntities, 100)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"subEntities\", \"does not satisfy required maxItems constraint: 100\");\n }\n }\n if (property === \"clusterExtId\") {\n if (typeof this.clusterExtId === 'undefined' || this.clusterExtId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"clusterExtId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"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}$/\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new Entity();\n _common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('entityDescription') && data.entityDescription !== null && data.entityDescription !== undefined) {\n obj.setEntityDescription(data['entityDescription']);\n }\n if (data.hasOwnProperty('locationInfo') && data.locationInfo !== null && data.locationInfo !== undefined) {\n obj.setLocationInfo(_common_LocationInfo__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(data['locationInfo']));\n }\n if (data.hasOwnProperty('targetVersion') && data.targetVersion !== null && data.targetVersion !== undefined) {\n obj.setTargetVersion(data['targetVersion']);\n }\n if (data.hasOwnProperty('lastUpdatedTime') && data.lastUpdatedTime !== null && data.lastUpdatedTime !== undefined) {\n obj.setLastUpdatedTime(data['lastUpdatedTime']);\n }\n if (data.hasOwnProperty('deviceId') && data.deviceId !== null && data.deviceId !== undefined) {\n obj.setDeviceId(data['deviceId']);\n }\n if (data.hasOwnProperty('groupUuid') && data.groupUuid !== null && data.groupUuid !== undefined) {\n obj.setGroupUuid(data['groupUuid']);\n }\n if (data.hasOwnProperty('entityDetails') && data.entityDetails !== null && data.entityDetails !== undefined) {\n itemArr = [];\n items = data.entityDetails;\n for (i = 0; i < items.length; i++) {\n item = _common_v1_config_KVPair__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setEntityDetails(itemArr);\n }\n if (data.hasOwnProperty('childEntities') && data.childEntities !== null && data.childEntities !== undefined) {\n itemArr = [];\n items = data.childEntities;\n for (i = 0; i < items.length; i++) {\n itemArr.push(items[i]);\n }\n obj.setChildEntities(itemArr);\n }\n if (data.hasOwnProperty('availableVersions') && data.availableVersions !== null && data.availableVersions !== undefined) {\n itemArr = [];\n items = data.availableVersions;\n for (i = 0; i < items.length; i++) {\n item = _AvailableVersion__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setAvailableVersions(itemArr);\n }\n if (data.hasOwnProperty('subEntities') && data.subEntities !== null && data.subEntities !== undefined) {\n itemArr = [];\n items = data.subEntities;\n for (i = 0; i < items.length; i++) {\n item = _common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setSubEntities(itemArr);\n }\n if (data.hasOwnProperty('clusterExtId') && data.clusterExtId !== null && data.clusterExtId !== undefined) {\n obj.setClusterExtId(data['clusterExtId']);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n/**\n * Description of an LCM entity.\n * @memberof Entity\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nEntity.prototype.entityDescription = undefined;\n\n/**\n * @memberof Entity\n */\nEntity.prototype.locationInfo = undefined;\n\n/**\n * The requested update version of an LCM entity.\n * @memberof Entity\n */\nEntity.prototype.targetVersion = undefined;\n\n/**\n * UTC date and time in RFC-3339 format when the task was last updated.\n * @memberof Entity\n */\nEntity.prototype.lastUpdatedTime = undefined;\n\n/**\n * Unique identifier of an LCM entity e.g. \\\"HDD serial number\\\".\n * @memberof Entity\n */\nEntity.prototype.deviceId = undefined;\n\n/**\n * UUID of the group that this LCM entity is part of.\n * @memberof Entity\n */\nEntity.prototype.groupUuid = undefined;\n\n/**\n * Detailed information for the LCM entity. For example, firmware entities contain additional information about NIC and so on.\n * @memberof Entity\n */\nEntity.prototype.entityDetails = undefined;\n\n/**\n * Component information for the payload based entity.\n * @memberof Entity\n */\nEntity.prototype.childEntities = undefined;\n\n/**\n * List of available versions for an LCM entity to update.\n * @memberof Entity\n */\nEntity.prototype.availableVersions = undefined;\n\n/**\n * A list of sub-entities applicable to the entity.\n * @memberof Entity\n */\nEntity.prototype.subEntities = undefined;\n\n/**\n * Cluster uuid on which the resource is present or operation is being performed.\n * @memberof Entity\n */\nEntity.prototype.clusterExtId = undefined;\n\n// Implement OneOflifecycle.v4.resources.GetEntityByIdApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Entity.js?");
|
|
761
|
+
|
|
762
|
+
/***/ }),
|
|
763
|
+
|
|
764
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/FrameworkVersionInfo.js":
|
|
765
|
+
/*!****************************************************************************************************!*\
|
|
766
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/FrameworkVersionInfo.js ***!
|
|
767
|
+
\****************************************************************************************************/
|
|
768
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
769
|
+
|
|
770
|
+
"use strict";
|
|
771
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ FrameworkVersionInfo)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The FrameworkVersionInfo model module.\n * @module Ntnx/FrameworkVersionInfo\n * @version 4.0.1-beta-1\n * @class FrameworkVersionInfo\n */\nvar _FrameworkVersionInfo_brand = /*#__PURE__*/new WeakSet();\nvar FrameworkVersionInfo = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>FrameworkVersionInfo</code>.\n * LCM framework version information.\n * @alias module:Ntnx/FrameworkVersionInfo\n */\n function FrameworkVersionInfo() {\n _classCallCheck(this, FrameworkVersionInfo);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _FrameworkVersionInfo_brand);\n this.$objectType = \"lifecycle.v4.resources.FrameworkVersionInfo\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>FrameworkVersionInfo</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/FrameworkVersionInfo} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/FrameworkVersionInfo} The populated <code>FrameworkVersionInfo</code> instance.\n */\n return _createClass(FrameworkVersionInfo, [{\n key: \"getCurrentVersion\",\n value:\n /**\n * Returns Current LCM Version.\n * @return {}\n */\n function getCurrentVersion() {\n return this.currentVersion;\n }\n\n /**\n * Sets Current LCM Version.\n * @param {} currentVersion Current LCM Version.\n */\n }, {\n key: \"setCurrentVersion\",\n value: function setCurrentVersion(currentVersion) {\n this.currentVersion = currentVersion;\n }\n\n /**\n * Returns LCM framework version present in the LCM URL.\n * @return {}\n */\n }, {\n key: \"getAvailableVersion\",\n value: function getAvailableVersion() {\n return this.availableVersion;\n }\n\n /**\n * Sets LCM framework version present in the LCM URL.\n * @param {} availableVersion LCM framework version present in the LCM URL.\n */\n }, {\n key: \"setAvailableVersion\",\n value: function setAvailableVersion(availableVersion) {\n this.availableVersion = availableVersion;\n }\n\n /**\n * Returns Boolean that indicates if LCM framework update is needed.\n * @return {}\n */\n }, {\n key: \"getIsUpdateNeeded\",\n value: function getIsUpdateNeeded() {\n return this.isUpdateNeeded;\n }\n\n /**\n * Sets Boolean that indicates if LCM framework update is needed.\n * @param {} isUpdateNeeded Boolean that indicates if LCM framework update is needed.\n */\n }, {\n key: \"setIsUpdateNeeded\",\n value: function setIsUpdateNeeded(isUpdateNeeded) {\n this.isUpdateNeeded = isUpdateNeeded;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCurrentVersion() !== 'undefined' && this.getCurrentVersion() !== null ? {\n 'currentVersion': this.getCurrentVersion()\n } : {}), typeof this.getAvailableVersion() !== 'undefined' && this.getAvailableVersion() !== null ? {\n 'availableVersion': this.getAvailableVersion()\n } : {}), typeof this.getIsUpdateNeeded() !== 'undefined' && this.getIsUpdateNeeded() !== null ? {\n 'isUpdateNeeded': this.getIsUpdateNeeded()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCurrentVersion() !== 'undefined' && this.getCurrentVersion() !== null ? {\n 'currentVersion': this.getCurrentVersion()\n } : {}), typeof this.getAvailableVersion() !== 'undefined' && this.getAvailableVersion() !== null ? {\n 'availableVersion': this.getAvailableVersion()\n } : {}), typeof this.getIsUpdateNeeded() !== 'undefined' && this.getIsUpdateNeeded() !== null ? {\n 'isUpdateNeeded': this.getIsUpdateNeeded()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"currentVersion\") {\n if (typeof this.currentVersion === 'undefined' || this.currentVersion === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"currentVersion\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMaxLength(this.currentVersion, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"currentVersion\", \"does not satisfy required maxLength constraint: 128\");\n }\n }\n if (property === \"availableVersion\") {\n if (typeof this.availableVersion === 'undefined' || this.availableVersion === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"availableVersion\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMaxLength(this.availableVersion, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"availableVersion\", \"does not satisfy required maxLength constraint: 128\");\n }\n }\n if (property === \"isUpdateNeeded\") {\n if (typeof this.isUpdateNeeded === 'undefined' || this.isUpdateNeeded === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"isUpdateNeeded\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new FrameworkVersionInfo();\n if (data.hasOwnProperty('currentVersion') && data.currentVersion !== null && data.currentVersion !== undefined) {\n obj.setCurrentVersion(data['currentVersion']);\n }\n if (data.hasOwnProperty('availableVersion') && data.availableVersion !== null && data.availableVersion !== undefined) {\n obj.setAvailableVersion(data['availableVersion']);\n }\n if (data.hasOwnProperty('isUpdateNeeded') && data.isUpdateNeeded !== null && data.isUpdateNeeded !== undefined) {\n obj.setIsUpdateNeeded(data['isUpdateNeeded']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * Current LCM Version.\n * @memberof FrameworkVersionInfo\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nFrameworkVersionInfo.prototype.currentVersion = undefined;\n\n/**\n * LCM framework version present in the LCM URL.\n * @memberof FrameworkVersionInfo\n */\nFrameworkVersionInfo.prototype.availableVersion = undefined;\n\n/**\n * Boolean that indicates if LCM framework update is needed.\n * @memberof FrameworkVersionInfo\n * @default false\n */\nFrameworkVersionInfo.prototype.isUpdateNeeded = false;\nFrameworkVersionInfo.prototype.$reserved = undefined;\nFrameworkVersionInfo.prototype.$objectType = undefined;\nFrameworkVersionInfo.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/FrameworkVersionInfo.js?");
|
|
772
|
+
|
|
773
|
+
/***/ }),
|
|
774
|
+
|
|
775
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetConfigApiResponse.js":
|
|
776
|
+
/*!****************************************************************************************************!*\
|
|
777
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetConfigApiResponse.js ***!
|
|
778
|
+
\****************************************************************************************************/
|
|
779
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
780
|
+
|
|
781
|
+
"use strict";
|
|
782
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ GetConfigApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js\");\n/* harmony import */ var _Config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Config */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Config.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The GetConfigApiResponse model module.\n * @module Ntnx/GetConfigApiResponse\n * @version 4.0.1-beta-1\n * @class GetConfigApiResponse\n */\nvar _GetConfigApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar GetConfigApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>GetConfigApiResponse</code>.\n * REST response for all response codes in API path /lifecycle/v4.0.b1/resources/config Get operation\n * @alias module:Ntnx/GetConfigApiResponse\n */\n function GetConfigApiResponse() {\n var _this;\n _classCallCheck(this, GetConfigApiResponse);\n _this = _callSuper(this, GetConfigApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _GetConfigApiResponse_brand);\n _this.$objectType = \"lifecycle.v4.resources.GetConfigApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>GetConfigApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/GetConfigApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/GetConfigApiResponse} The populated <code>GetConfigApiResponse</code> instance.\n */\n _inherits(GetConfigApiResponse, _Paginable);\n return _createClass(GetConfigApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_GetConfigApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_GetConfigApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new GetConfigApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'lifecycle.v4.resources.Config':\n obj.setData(_Config__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'lifecycle.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof GetConfigApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nGetConfigApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof GetConfigApiResponse\n */\nGetConfigApiResponse.prototype.data = undefined;\nGetConfigApiResponse.prototype.$reserved = undefined;\nGetConfigApiResponse.prototype.$objectType = undefined;\nGetConfigApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetConfigApiResponse.js?");
|
|
783
|
+
|
|
784
|
+
/***/ }),
|
|
785
|
+
|
|
786
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js":
|
|
787
|
+
/*!********************************************************************************************************!*\
|
|
788
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js ***!
|
|
789
|
+
\********************************************************************************************************/
|
|
790
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
791
|
+
|
|
792
|
+
"use strict";
|
|
793
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ GetEntityByIdApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js\");\n/* harmony import */ var _Entity__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Entity */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Entity.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The GetEntityByIdApiResponse model module.\n * @module Ntnx/GetEntityByIdApiResponse\n * @version 4.0.1-beta-1\n * @class GetEntityByIdApiResponse\n */\nvar _GetEntityByIdApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar GetEntityByIdApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>GetEntityByIdApiResponse</code>.\n * REST response for all response codes in API path /lifecycle/v4.0.b1/resources/entities/{extId} Get operation\n * @alias module:Ntnx/GetEntityByIdApiResponse\n */\n function GetEntityByIdApiResponse() {\n var _this;\n _classCallCheck(this, GetEntityByIdApiResponse);\n _this = _callSuper(this, GetEntityByIdApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _GetEntityByIdApiResponse_brand);\n _this.$objectType = \"lifecycle.v4.resources.GetEntityByIdApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>GetEntityByIdApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/GetEntityByIdApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/GetEntityByIdApiResponse} The populated <code>GetEntityByIdApiResponse</code> instance.\n */\n _inherits(GetEntityByIdApiResponse, _Paginable);\n return _createClass(GetEntityByIdApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_GetEntityByIdApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_GetEntityByIdApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new GetEntityByIdApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'lifecycle.v4.resources.Entity':\n obj.setData(_Entity__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'lifecycle.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof GetEntityByIdApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nGetEntityByIdApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof GetEntityByIdApiResponse\n */\nGetEntityByIdApiResponse.prototype.data = undefined;\nGetEntityByIdApiResponse.prototype.$reserved = undefined;\nGetEntityByIdApiResponse.prototype.$objectType = undefined;\nGetEntityByIdApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js?");
|
|
794
|
+
|
|
795
|
+
/***/ }),
|
|
796
|
+
|
|
797
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js":
|
|
798
|
+
/*!***************************************************************************************************************!*\
|
|
799
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js ***!
|
|
800
|
+
\***************************************************************************************************************/
|
|
801
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
802
|
+
|
|
803
|
+
"use strict";
|
|
804
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ GetNotificationsByIdApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js\");\n/* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Notification */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Notification.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The GetNotificationsByIdApiResponse model module.\n * @module Ntnx/GetNotificationsByIdApiResponse\n * @version 4.0.1-beta-1\n * @class GetNotificationsByIdApiResponse\n */\nvar _GetNotificationsByIdApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar GetNotificationsByIdApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>GetNotificationsByIdApiResponse</code>.\n * REST response for all response codes in API path /lifecycle/v4.0.b1/resources/notifications/{extId} Get operation\n * @alias module:Ntnx/GetNotificationsByIdApiResponse\n */\n function GetNotificationsByIdApiResponse() {\n var _this;\n _classCallCheck(this, GetNotificationsByIdApiResponse);\n _this = _callSuper(this, GetNotificationsByIdApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _GetNotificationsByIdApiResponse_brand);\n _this.$objectType = \"lifecycle.v4.resources.GetNotificationsByIdApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>GetNotificationsByIdApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/GetNotificationsByIdApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/GetNotificationsByIdApiResponse} The populated <code>GetNotificationsByIdApiResponse</code> instance.\n */\n _inherits(GetNotificationsByIdApiResponse, _Paginable);\n return _createClass(GetNotificationsByIdApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_GetNotificationsByIdApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_GetNotificationsByIdApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new GetNotificationsByIdApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'lifecycle.v4.resources.Notification':\n obj.setData(_Notification__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'lifecycle.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof GetNotificationsByIdApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nGetNotificationsByIdApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof GetNotificationsByIdApiResponse\n */\nGetNotificationsByIdApiResponse.prototype.data = undefined;\nGetNotificationsByIdApiResponse.prototype.$reserved = undefined;\nGetNotificationsByIdApiResponse.prototype.$objectType = undefined;\nGetNotificationsByIdApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js?");
|
|
805
|
+
|
|
806
|
+
/***/ }),
|
|
807
|
+
|
|
808
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js":
|
|
809
|
+
/*!****************************************************************************************************************!*\
|
|
810
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js ***!
|
|
811
|
+
\****************************************************************************************************************/
|
|
812
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
813
|
+
|
|
814
|
+
"use strict";
|
|
815
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ GetRecommendationByIdApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js\");\n/* harmony import */ var _RecommendationResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./RecommendationResult */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/RecommendationResult.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The GetRecommendationByIdApiResponse model module.\n * @module Ntnx/GetRecommendationByIdApiResponse\n * @version 4.0.1-beta-1\n * @class GetRecommendationByIdApiResponse\n */\nvar _GetRecommendationByIdApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar GetRecommendationByIdApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>GetRecommendationByIdApiResponse</code>.\n * REST response for all response codes in API path /lifecycle/v4.0.b1/resources/recommendations/{extId} Get operation\n * @alias module:Ntnx/GetRecommendationByIdApiResponse\n */\n function GetRecommendationByIdApiResponse() {\n var _this;\n _classCallCheck(this, GetRecommendationByIdApiResponse);\n _this = _callSuper(this, GetRecommendationByIdApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _GetRecommendationByIdApiResponse_brand);\n _this.$objectType = \"lifecycle.v4.resources.GetRecommendationByIdApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>GetRecommendationByIdApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/GetRecommendationByIdApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/GetRecommendationByIdApiResponse} The populated <code>GetRecommendationByIdApiResponse</code> instance.\n */\n _inherits(GetRecommendationByIdApiResponse, _Paginable);\n return _createClass(GetRecommendationByIdApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_GetRecommendationByIdApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_GetRecommendationByIdApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new GetRecommendationByIdApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'lifecycle.v4.resources.RecommendationResult':\n obj.setData(_RecommendationResult__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'lifecycle.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof GetRecommendationByIdApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nGetRecommendationByIdApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof GetRecommendationByIdApiResponse\n */\nGetRecommendationByIdApiResponse.prototype.data = undefined;\nGetRecommendationByIdApiResponse.prototype.$reserved = undefined;\nGetRecommendationByIdApiResponse.prototype.$objectType = undefined;\nGetRecommendationByIdApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js?");
|
|
816
|
+
|
|
817
|
+
/***/ }),
|
|
818
|
+
|
|
819
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetStatusApiResponse.js":
|
|
820
|
+
/*!****************************************************************************************************!*\
|
|
821
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetStatusApiResponse.js ***!
|
|
822
|
+
\****************************************************************************************************/
|
|
823
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
824
|
+
|
|
825
|
+
"use strict";
|
|
826
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ GetStatusApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js\");\n/* harmony import */ var _StatusInfo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StatusInfo */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/StatusInfo.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The GetStatusApiResponse model module.\n * @module Ntnx/GetStatusApiResponse\n * @version 4.0.1-beta-1\n * @class GetStatusApiResponse\n */\nvar _GetStatusApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar GetStatusApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>GetStatusApiResponse</code>.\n * REST response for all response codes in API path /lifecycle/v4.0.b1/resources/status Get operation\n * @alias module:Ntnx/GetStatusApiResponse\n */\n function GetStatusApiResponse() {\n var _this;\n _classCallCheck(this, GetStatusApiResponse);\n _this = _callSuper(this, GetStatusApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _GetStatusApiResponse_brand);\n _this.$objectType = \"lifecycle.v4.resources.GetStatusApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>GetStatusApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/GetStatusApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/GetStatusApiResponse} The populated <code>GetStatusApiResponse</code> instance.\n */\n _inherits(GetStatusApiResponse, _Paginable);\n return _createClass(GetStatusApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_GetStatusApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_GetStatusApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new GetStatusApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'lifecycle.v4.resources.StatusInfo':\n obj.setData(_StatusInfo__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'lifecycle.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof GetStatusApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nGetStatusApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof GetStatusApiResponse\n */\nGetStatusApiResponse.prototype.data = undefined;\nGetStatusApiResponse.prototype.$reserved = undefined;\nGetStatusApiResponse.prototype.$objectType = undefined;\nGetStatusApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/GetStatusApiResponse.js?");
|
|
827
|
+
|
|
828
|
+
/***/ }),
|
|
829
|
+
|
|
830
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Image.js":
|
|
831
|
+
/*!*************************************************************************************!*\
|
|
832
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Image.js ***!
|
|
833
|
+
\*************************************************************************************/
|
|
834
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
835
|
+
|
|
836
|
+
"use strict";
|
|
837
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Image)\n/* harmony export */ });\n/* harmony import */ var _common_AvailableVersionStatus__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../common/AvailableVersionStatus */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/AvailableVersionStatus.js\");\n/* harmony import */ var _common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/EntityBaseModel */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityBaseModel.js\");\n/* harmony import */ var _common_EntityType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/EntityType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityType.js\");\n/* harmony import */ var _ImageFile__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ImageFile */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ImageFile.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The Image model module.\n * @module Ntnx/Image\n * @version 4.0.1-beta-1\n * @class Image\n * \n * @param { String } specVersion Version specification for image metadata JSON.\n * \n * @param { ImageFile } files \n */\nvar _Image_brand = /*#__PURE__*/new WeakSet();\nvar Image = /*#__PURE__*/function (_EntityBaseModel) {\n /**\n * Constructs a new <code>Image</code>.\n * LCM image (List of LCM image files).\n * @alias module:Ntnx/Image\n * @extends module:Ntnx/EntityBaseModel\n * \n * @param { String } specVersion Version specification for image metadata JSON.\n * \n * @param { ImageFile } files \n */\n function Image(specVersion, files) {\n var _this;\n _classCallCheck(this, Image);\n _this = _callSuper(this, Image);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _Image_brand);\n _this.specVersion = specVersion;\n _this.files = files;\n _this.$objectType = \"lifecycle.v4.resources.Image\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>Image</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/Image} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/Image} The populated <code>Image</code> instance.\n */\n _inherits(Image, _EntityBaseModel);\n return _createClass(Image, [{\n key: \"getReleaseNotes\",\n value:\n /**\n * Returns Release notes for the LCM image.\n * @return {}\n */\n function getReleaseNotes() {\n return this.releaseNotes;\n }\n\n /**\n * Sets Release notes for the LCM image.\n * @param {} releaseNotes Release notes for the LCM image.\n */\n }, {\n key: \"setReleaseNotes\",\n value: function setReleaseNotes(releaseNotes) {\n this.releaseNotes = releaseNotes;\n }\n\n /**\n * Returns Version specification for image metadata JSON.\n * @return {}\n */\n }, {\n key: \"getSpecVersion\",\n value: function getSpecVersion() {\n return this.specVersion;\n }\n\n /**\n * Sets Version specification for image metadata JSON.\n * @param {} specVersion Version specification for image metadata JSON.\n */\n }, {\n key: \"setSpecVersion\",\n value: function setSpecVersion(specVersion) {\n this.specVersion = specVersion;\n }\n\n /**\n * Returns Denotes if the thirdparty version is qualified.\n * @return {}\n */\n }, {\n key: \"getIsQualified\",\n value: function getIsQualified() {\n return this.isQualified;\n }\n\n /**\n * Sets Denotes if the thirdparty version is qualified.\n * @param {} isQualified Denotes if the thirdparty version is qualified.\n */\n }, {\n key: \"setIsQualified\",\n value: function setIsQualified(isQualified) {\n this.isQualified = isQualified;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getStatus\",\n value: function getStatus() {\n return this.status;\n }\n\n /**\n * @param {} status\n */\n }, {\n key: \"setStatus\",\n value: function setStatus(status) {\n this.status = status;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getFiles\",\n value: function getFiles() {\n return this.files;\n }\n\n /**\n * @param {} files\n */\n }, {\n key: \"setFiles\",\n value: function setFiles(files) {\n this.files = files;\n }\n\n /**\n * Returns Cluster uuid on which the resource is present or operation is being performed.\n * @return {}\n */\n }, {\n key: \"getClusterExtId\",\n value: function getClusterExtId() {\n return this.clusterExtId;\n }\n\n /**\n * Sets Cluster uuid on which the resource is present or operation is being performed.\n * @param {} clusterExtId Cluster uuid on which the resource is present or operation is being performed.\n */\n }, {\n key: \"setClusterExtId\",\n value: function setClusterExtId(clusterExtId) {\n this.clusterExtId = clusterExtId;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getReleaseNotes() !== 'undefined' && this.getReleaseNotes() !== null ? {\n 'releaseNotes': this.getReleaseNotes()\n } : {}), typeof this.getSpecVersion() !== 'undefined' && this.getSpecVersion() !== null ? {\n 'specVersion': this.getSpecVersion()\n } : {}), typeof this.getIsQualified() !== 'undefined' && this.getIsQualified() !== null ? {\n 'isQualified': this.getIsQualified()\n } : {}), typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {\n 'status': this.getStatus()\n } : {}), typeof this.getFiles() !== 'undefined' && this.getFiles() !== null ? {\n 'files': this.getFiles().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {\n 'clusterExtId': this.getClusterExtId()\n } : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {\n 'entityClass': this.getEntityClass()\n } : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {\n 'entityModel': this.getEntityModel()\n } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {\n 'entityType': this.getEntityType()\n } : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {\n 'entityVersion': this.getEntityVersion()\n } : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {\n 'hardwareFamily': this.getHardwareFamily()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getReleaseNotes() !== 'undefined' && this.getReleaseNotes() !== null ? {\n 'releaseNotes': this.getReleaseNotes()\n } : {}), typeof this.getSpecVersion() !== 'undefined' && this.getSpecVersion() !== null ? {\n 'specVersion': this.getSpecVersion()\n } : {}), typeof this.getIsQualified() !== 'undefined' && this.getIsQualified() !== null ? {\n 'isQualified': this.getIsQualified()\n } : {}), typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {\n 'status': this.getStatus()\n } : {}), typeof this.getFiles() !== 'undefined' && this.getFiles() !== null ? {\n 'files': this.getFiles().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {\n 'clusterExtId': this.getClusterExtId()\n } : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {\n 'entityClass': this.getEntityClass()\n } : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {\n 'entityModel': this.getEntityModel()\n } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {\n 'entityType': this.getEntityType()\n } : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {\n 'entityVersion': this.getEntityVersion()\n } : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {\n 'hardwareFamily': this.getHardwareFamily()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [\"specVersion\", \"files\"];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"releaseNotes\") {\n if (typeof this.releaseNotes === 'undefined' || this.releaseNotes === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"releaseNotes\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMaxLength(this.releaseNotes, 1024)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"releaseNotes\", \"does not satisfy required maxLength constraint: 1024\");\n }\n }\n if (property === \"specVersion\") {\n if (typeof this.specVersion === 'undefined' || this.specVersion === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"specVersion\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMaxLength(this.specVersion, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"specVersion\", \"does not satisfy required maxLength constraint: 128\");\n }\n }\n if (property === \"isQualified\") {\n if (typeof this.isQualified === 'undefined' || this.isQualified === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"isQualified\", \"undefined or null\");\n }\n }\n if (property === \"status\") {\n if (typeof this.status === 'undefined' || this.status === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"status\", \"undefined or null\");\n }\n }\n if (property === \"files\") {\n if (typeof this.files === 'undefined' || this.files === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"files\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMaxItems(this.files, 100)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"files\", \"does not satisfy required maxItems constraint: 100\");\n }\n }\n if (property === \"clusterExtId\") {\n if (typeof this.clusterExtId === 'undefined' || this.clusterExtId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"clusterExtId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"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}$/\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new Image();\n _common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('releaseNotes') && data.releaseNotes !== null && data.releaseNotes !== undefined) {\n obj.setReleaseNotes(data['releaseNotes']);\n }\n if (data.hasOwnProperty('specVersion') && data.specVersion !== null && data.specVersion !== undefined) {\n obj.setSpecVersion(data['specVersion']);\n }\n if (data.hasOwnProperty('isQualified') && data.isQualified !== null && data.isQualified !== undefined) {\n obj.setIsQualified(data['isQualified']);\n }\n if (data.hasOwnProperty('status') && data.status !== null && data.status !== undefined) {\n obj.setStatus(_common_AvailableVersionStatus__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['status']));\n }\n if (data.hasOwnProperty('files') && data.files !== null && data.files !== undefined) {\n itemArr = [];\n items = data.files;\n for (i = 0; i < items.length; i++) {\n item = _ImageFile__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setFiles(itemArr);\n }\n if (data.hasOwnProperty('clusterExtId') && data.clusterExtId !== null && data.clusterExtId !== undefined) {\n obj.setClusterExtId(data['clusterExtId']);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n/**\n * Release notes for the LCM image.\n * @memberof Image\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nImage.prototype.releaseNotes = undefined;\n\n/**\n * Version specification for image metadata JSON.\n * @memberof Image\n */\nImage.prototype.specVersion = undefined;\n\n/**\n * Denotes if the thirdparty version is qualified.\n * @memberof Image\n * @default false\n */\nImage.prototype.isQualified = false;\n\n/**\n * @memberof Image\n */\nImage.prototype.status = undefined;\n\n/**\n * @memberof Image\n */\nImage.prototype.files = undefined;\n\n/**\n * Cluster uuid on which the resource is present or operation is being performed.\n * @memberof Image\n */\nImage.prototype.clusterExtId = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Image.js?");
|
|
838
|
+
|
|
839
|
+
/***/ }),
|
|
840
|
+
|
|
841
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ImageFile.js":
|
|
842
|
+
/*!*****************************************************************************************!*\
|
|
843
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ImageFile.js ***!
|
|
844
|
+
\*****************************************************************************************/
|
|
845
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
846
|
+
|
|
847
|
+
"use strict";
|
|
848
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ImageFile)\n/* harmony export */ });\n/* harmony import */ var _common_CheckSumType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../common/CheckSumType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/CheckSumType.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The ImageFile model module.\n * @module Ntnx/ImageFile\n * @version 4.0.1-beta-1\n * @class ImageFile\n * \n * @param { Number } sizeBytes LCM image file size.\n * \n * @param { CheckSumType } checksumType \n * \n * @param { String } checksum LCM image checksum.\n */\nvar _ImageFile_brand = /*#__PURE__*/new WeakSet();\nvar ImageFile = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>ImageFile</code>.\n * Description of LCM image file.\n * @alias module:Ntnx/ImageFile\n * \n * @param { Number } sizeBytes LCM image file size.\n * \n * @param { CheckSumType } checksumType \n * \n * @param { String } checksum LCM image checksum.\n */\n function ImageFile(sizeBytes, checksumType, checksum) {\n _classCallCheck(this, ImageFile);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _ImageFile_brand);\n this.sizeBytes = sizeBytes;\n this.checksumType = checksumType;\n this.checksum = checksum;\n this.$objectType = \"lifecycle.v4.resources.ImageFile\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>ImageFile</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ImageFile} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ImageFile} The populated <code>ImageFile</code> instance.\n */\n return _createClass(ImageFile, [{\n key: \"getFileLocationId\",\n value:\n /**\n * Returns Image file global catalog item UUID.\n * @return {}\n */\n function getFileLocationId() {\n return this.fileLocationId;\n }\n\n /**\n * Sets Image file global catalog item UUID.\n * @param {} fileLocationId Image file global catalog item UUID.\n */\n }, {\n key: \"setFileLocationId\",\n value: function setFileLocationId(fileLocationId) {\n this.fileLocationId = fileLocationId;\n }\n\n /**\n * Returns LCM image file name.\n * @return {}\n */\n }, {\n key: \"getName\",\n value: function getName() {\n return this.name;\n }\n\n /**\n * Sets LCM image file name.\n * @param {} name LCM image file name.\n */\n }, {\n key: \"setName\",\n value: function setName(name) {\n this.name = name;\n }\n\n /**\n * Returns LCM image file size.\n * @return {}\n */\n }, {\n key: \"getSizeBytes\",\n value: function getSizeBytes() {\n return this.sizeBytes;\n }\n\n /**\n * Sets LCM image file size.\n * @param {} sizeBytes LCM image file size.\n */\n }, {\n key: \"setSizeBytes\",\n value: function setSizeBytes(sizeBytes) {\n this.sizeBytes = sizeBytes;\n }\n\n /**\n * Returns File path for the LCM image.\n * @return {}\n */\n }, {\n key: \"getFilePath\",\n value: function getFilePath() {\n return this.filePath;\n }\n\n /**\n * Sets File path for the LCM image.\n * @param {} filePath File path for the LCM image.\n */\n }, {\n key: \"setFilePath\",\n value: function setFilePath(filePath) {\n this.filePath = filePath;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getChecksumType\",\n value: function getChecksumType() {\n return this.checksumType;\n }\n\n /**\n * @param {} checksumType\n */\n }, {\n key: \"setChecksumType\",\n value: function setChecksumType(checksumType) {\n this.checksumType = checksumType;\n }\n\n /**\n * Returns LCM image checksum.\n * @return {}\n */\n }, {\n key: \"getChecksum\",\n value: function getChecksum() {\n return this.checksum;\n }\n\n /**\n * Sets LCM image checksum.\n * @param {} checksum LCM image checksum.\n */\n }, {\n key: \"setChecksum\",\n value: function setChecksum(checksum) {\n this.checksum = checksum;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getFileLocationId() !== 'undefined' && this.getFileLocationId() !== null ? {\n 'fileLocationId': this.getFileLocationId()\n } : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getSizeBytes() !== 'undefined' && this.getSizeBytes() !== null ? {\n 'sizeBytes': this.getSizeBytes()\n } : {}), typeof this.getFilePath() !== 'undefined' && this.getFilePath() !== null ? {\n 'filePath': this.getFilePath()\n } : {}), typeof this.getChecksumType() !== 'undefined' && this.getChecksumType() !== null ? {\n 'checksumType': this.getChecksumType()\n } : {}), typeof this.getChecksum() !== 'undefined' && this.getChecksum() !== null ? {\n 'checksum': this.getChecksum()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getSizeBytes() !== 'undefined' && this.getSizeBytes() !== null ? {\n 'sizeBytes': this.getSizeBytes()\n } : {}), typeof this.getChecksumType() !== 'undefined' && this.getChecksumType() !== null ? {\n 'checksumType': this.getChecksumType()\n } : {}), typeof this.getChecksum() !== 'undefined' && this.getChecksum() !== null ? {\n 'checksum': this.getChecksum()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [\"sizeBytes\", \"checksumType\", \"checksum\"];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"fileLocationId\") {\n if (typeof this.fileLocationId === 'undefined' || this.fileLocationId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"fileLocationId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"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}$/\");\n }\n }\n if (property === \"name\") {\n if (typeof this.name === 'undefined' || this.name === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"name\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__[\"default\"].validateMaxLength(this.name, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"name\", \"does not satisfy required maxLength constraint: 128\");\n }\n }\n if (property === \"sizeBytes\") {\n if (typeof this.sizeBytes === 'undefined' || this.sizeBytes === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"sizeBytes\", \"undefined or null\");\n }\n }\n if (property === \"filePath\") {\n if (typeof this.filePath === 'undefined' || this.filePath === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"filePath\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__[\"default\"].validateMaxLength(this.filePath, 256)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"filePath\", \"does not satisfy required maxLength constraint: 256\");\n }\n }\n if (property === \"checksumType\") {\n if (typeof this.checksumType === 'undefined' || this.checksumType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"checksumType\", \"undefined or null\");\n }\n }\n if (property === \"checksum\") {\n if (typeof this.checksum === 'undefined' || this.checksum === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"checksum\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__[\"default\"].validateMaxLength(this.checksum, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"checksum\", \"does not satisfy required maxLength constraint: 128\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ImageFile();\n if (data.hasOwnProperty('fileLocationId') && data.fileLocationId !== null && data.fileLocationId !== undefined) {\n obj.setFileLocationId(data['fileLocationId']);\n }\n if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {\n obj.setName(data['name']);\n }\n if (data.hasOwnProperty('sizeBytes') && data.sizeBytes !== null && data.sizeBytes !== undefined) {\n obj.setSizeBytes(data['sizeBytes']);\n }\n if (data.hasOwnProperty('filePath') && data.filePath !== null && data.filePath !== undefined) {\n obj.setFilePath(data['filePath']);\n }\n if (data.hasOwnProperty('checksumType') && data.checksumType !== null && data.checksumType !== undefined) {\n obj.setChecksumType(_common_CheckSumType__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['checksumType']));\n }\n if (data.hasOwnProperty('checksum') && data.checksum !== null && data.checksum !== undefined) {\n obj.setChecksum(data['checksum']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * Image file global catalog item UUID.\n * @memberof ImageFile\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nImageFile.prototype.fileLocationId = undefined;\n\n/**\n * LCM image file name.\n * @memberof ImageFile\n */\nImageFile.prototype.name = undefined;\n\n/**\n * LCM image file size.\n * @memberof ImageFile\n */\nImageFile.prototype.sizeBytes = undefined;\n\n/**\n * File path for the LCM image.\n * @memberof ImageFile\n */\nImageFile.prototype.filePath = undefined;\n\n/**\n * @memberof ImageFile\n */\nImageFile.prototype.checksumType = undefined;\n\n/**\n * LCM image checksum.\n * @memberof ImageFile\n */\nImageFile.prototype.checksum = undefined;\nImageFile.prototype.$reserved = undefined;\nImageFile.prototype.$objectType = undefined;\nImageFile.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ImageFile.js?");
|
|
849
|
+
|
|
850
|
+
/***/ }),
|
|
851
|
+
|
|
852
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/InProgressOpInfo.js":
|
|
853
|
+
/*!************************************************************************************************!*\
|
|
854
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/InProgressOpInfo.js ***!
|
|
855
|
+
\************************************************************************************************/
|
|
856
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
857
|
+
|
|
858
|
+
"use strict";
|
|
859
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ InProgressOpInfo)\n/* harmony export */ });\n/* harmony import */ var _common_OperationType__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../common/OperationType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/OperationType.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The InProgressOpInfo model module.\n * @module Ntnx/InProgressOpInfo\n * @version 4.0.1-beta-1\n * @class InProgressOpInfo\n */\nvar _InProgressOpInfo_brand = /*#__PURE__*/new WeakSet();\nvar InProgressOpInfo = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>InProgressOpInfo</code>.\n * Operation type and UUID of an ongoing operation in LCM.\n * @alias module:Ntnx/InProgressOpInfo\n */\n function InProgressOpInfo() {\n _classCallCheck(this, InProgressOpInfo);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _InProgressOpInfo_brand);\n this.$objectType = \"lifecycle.v4.resources.InProgressOpInfo\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>InProgressOpInfo</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/InProgressOpInfo} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/InProgressOpInfo} The populated <code>InProgressOpInfo</code> instance.\n */\n return _createClass(InProgressOpInfo, [{\n key: \"getOperationId\",\n value:\n /**\n * Returns Root task UUID of the operation, if it is in running state.\n * @return {}\n */\n function getOperationId() {\n return this.operationId;\n }\n\n /**\n * Sets Root task UUID of the operation, if it is in running state.\n * @param {} operationId Root task UUID of the operation, if it is in running state.\n */\n }, {\n key: \"setOperationId\",\n value: function setOperationId(operationId) {\n this.operationId = operationId;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getOperationType\",\n value: function getOperationType() {\n return this.operationType;\n }\n\n /**\n * @param {} operationType\n */\n }, {\n key: \"setOperationType\",\n value: function setOperationType(operationType) {\n this.operationType = operationType;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getOperationId() !== 'undefined' && this.getOperationId() !== null ? {\n 'operationId': this.getOperationId()\n } : {}), typeof this.getOperationType() !== 'undefined' && this.getOperationType() !== null ? {\n 'operationType': this.getOperationType()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getOperationId() !== 'undefined' && this.getOperationId() !== null ? {\n 'operationId': this.getOperationId()\n } : {}), typeof this.getOperationType() !== 'undefined' && this.getOperationType() !== null ? {\n 'operationType': this.getOperationType()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"operationId\") {\n if (typeof this.operationId === 'undefined' || this.operationId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"operationId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"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}$/\");\n }\n }\n if (property === \"operationType\") {\n if (typeof this.operationType === 'undefined' || this.operationType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"operationType\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new InProgressOpInfo();\n if (data.hasOwnProperty('operationId') && data.operationId !== null && data.operationId !== undefined) {\n obj.setOperationId(data['operationId']);\n }\n if (data.hasOwnProperty('operationType') && data.operationType !== null && data.operationType !== undefined) {\n obj.setOperationType(_common_OperationType__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['operationType']));\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * Root task UUID of the operation, if it is in running state.\n * @memberof InProgressOpInfo\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nInProgressOpInfo.prototype.operationId = undefined;\n\n/**\n * @memberof InProgressOpInfo\n */\nInProgressOpInfo.prototype.operationType = undefined;\nInProgressOpInfo.prototype.$reserved = undefined;\nInProgressOpInfo.prototype.$objectType = undefined;\nInProgressOpInfo.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/InProgressOpInfo.js?");
|
|
860
|
+
|
|
861
|
+
/***/ }),
|
|
862
|
+
|
|
863
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ListEntitiesApiResponse.js":
|
|
864
|
+
/*!*******************************************************************************************************!*\
|
|
865
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ListEntitiesApiResponse.js ***!
|
|
866
|
+
\*******************************************************************************************************/
|
|
867
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
868
|
+
|
|
869
|
+
"use strict";
|
|
870
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ListEntitiesApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js\");\n/* harmony import */ var _Entity__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Entity */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Entity.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The ListEntitiesApiResponse model module.\n * @module Ntnx/ListEntitiesApiResponse\n * @version 4.0.1-beta-1\n * @class ListEntitiesApiResponse\n */\nvar _ListEntitiesApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar ListEntitiesApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>ListEntitiesApiResponse</code>.\n * REST response for all response codes in API path /lifecycle/v4.0.b1/resources/entities Get operation\n * @alias module:Ntnx/ListEntitiesApiResponse\n */\n function ListEntitiesApiResponse() {\n var _this;\n _classCallCheck(this, ListEntitiesApiResponse);\n _this = _callSuper(this, ListEntitiesApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _ListEntitiesApiResponse_brand);\n _this.$objectType = \"lifecycle.v4.resources.ListEntitiesApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>ListEntitiesApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ListEntitiesApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ListEntitiesApiResponse} The populated <code>ListEntitiesApiResponse</code> instance.\n */\n _inherits(ListEntitiesApiResponse, _Paginable);\n return _createClass(ListEntitiesApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_ListEntitiesApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_ListEntitiesApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ListEntitiesApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (Array.isArray(data['data'])) {\n if (data['data'].length === 0) {\n obj.setData([]);\n } else {\n itemArr = [];\n items = data['data'];\n if (items[0].hasOwnProperty('$objectType')) {\n discriminator = items[0]['$objectType'];\n } else {\n discriminator = _typeof(items[0]);\n }\n for (i = 0; i < items.length; i++) {\n switch (discriminator) {\n case 'lifecycle.v4.resources.Entity':\n item = _Entity__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n default:\n throw \"Unknown list of type \" + discriminator + \" in data\";\n }\n }\n obj.setData(itemArr);\n }\n } else {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'lifecycle.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof ListEntitiesApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nListEntitiesApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof ListEntitiesApiResponse\n */\nListEntitiesApiResponse.prototype.data = undefined;\nListEntitiesApiResponse.prototype.$reserved = undefined;\nListEntitiesApiResponse.prototype.$objectType = undefined;\nListEntitiesApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ListEntitiesApiResponse.js?");
|
|
871
|
+
|
|
872
|
+
/***/ }),
|
|
873
|
+
|
|
874
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ListImagesApiResponse.js":
|
|
875
|
+
/*!*****************************************************************************************************!*\
|
|
876
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ListImagesApiResponse.js ***!
|
|
877
|
+
\*****************************************************************************************************/
|
|
878
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
879
|
+
|
|
880
|
+
"use strict";
|
|
881
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ListImagesApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js\");\n/* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Image */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Image.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The ListImagesApiResponse model module.\n * @module Ntnx/ListImagesApiResponse\n * @version 4.0.1-beta-1\n * @class ListImagesApiResponse\n */\nvar _ListImagesApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar ListImagesApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>ListImagesApiResponse</code>.\n * REST response for all response codes in API path /lifecycle/v4.0.b1/resources/images Get operation\n * @alias module:Ntnx/ListImagesApiResponse\n */\n function ListImagesApiResponse() {\n var _this;\n _classCallCheck(this, ListImagesApiResponse);\n _this = _callSuper(this, ListImagesApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _ListImagesApiResponse_brand);\n _this.$objectType = \"lifecycle.v4.resources.ListImagesApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>ListImagesApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ListImagesApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ListImagesApiResponse} The populated <code>ListImagesApiResponse</code> instance.\n */\n _inherits(ListImagesApiResponse, _Paginable);\n return _createClass(ListImagesApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_ListImagesApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_ListImagesApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ListImagesApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (Array.isArray(data['data'])) {\n if (data['data'].length === 0) {\n obj.setData([]);\n } else {\n itemArr = [];\n items = data['data'];\n if (items[0].hasOwnProperty('$objectType')) {\n discriminator = items[0]['$objectType'];\n } else {\n discriminator = _typeof(items[0]);\n }\n for (i = 0; i < items.length; i++) {\n switch (discriminator) {\n case 'lifecycle.v4.resources.Image':\n item = _Image__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n default:\n throw \"Unknown list of type \" + discriminator + \" in data\";\n }\n }\n obj.setData(itemArr);\n }\n } else {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'lifecycle.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof ListImagesApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nListImagesApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof ListImagesApiResponse\n */\nListImagesApiResponse.prototype.data = undefined;\nListImagesApiResponse.prototype.$reserved = undefined;\nListImagesApiResponse.prototype.$objectType = undefined;\nListImagesApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/ListImagesApiResponse.js?");
|
|
882
|
+
|
|
883
|
+
/***/ }),
|
|
884
|
+
|
|
885
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Notification.js":
|
|
886
|
+
/*!********************************************************************************************!*\
|
|
887
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Notification.js ***!
|
|
888
|
+
\********************************************************************************************/
|
|
889
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
890
|
+
|
|
891
|
+
"use strict";
|
|
892
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Notification)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/v1/response/ExternalizableAbstractModel */ \"./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js\");\n/* harmony import */ var _NotificationItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NotificationItem */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/NotificationItem.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n/**\n * The Notification model module.\n * @module Ntnx/Notification\n * @version 4.0.1-beta-1\n * @class Notification\n */\nvar _Notification_brand = /*#__PURE__*/new WeakSet();\nvar Notification = /*#__PURE__*/function (_ExternalizableAbstra) {\n /**\n * Constructs a new <code>Notification</code>.\n * The computed LCM upgrade notifications for the given input.\n * @alias module:Ntnx/Notification\n * @extends module:Ntnx/ExternalizableAbstractModel\n */\n function Notification() {\n var _this;\n _classCallCheck(this, Notification);\n _this = _callSuper(this, Notification);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _Notification_brand);\n _this.$objectType = \"lifecycle.v4.resources.Notification\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>Notification</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/Notification} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/Notification} The populated <code>Notification</code> instance.\n */\n _inherits(Notification, _ExternalizableAbstra);\n return _createClass(Notification, [{\n key: \"getNotifications\",\n value:\n /**\n * @return {}\n */\n function getNotifications() {\n return this.notifications;\n }\n\n /**\n * @param {} notifications\n */\n }, {\n key: \"setNotifications\",\n value: function setNotifications(notifications) {\n this.notifications = notifications;\n }\n\n /**\n * Returns Cluster uuid on which the resource is present or operation is being performed.\n * @return {}\n */\n }, {\n key: \"getClusterExtId\",\n value: function getClusterExtId() {\n return this.clusterExtId;\n }\n\n /**\n * Sets Cluster uuid on which the resource is present or operation is being performed.\n * @param {} clusterExtId Cluster uuid on which the resource is present or operation is being performed.\n */\n }, {\n key: \"setClusterExtId\",\n value: function setClusterExtId(clusterExtId) {\n this.clusterExtId = clusterExtId;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getNotifications() !== 'undefined' && this.getNotifications() !== null ? {\n 'notifications': this.getNotifications().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {\n 'clusterExtId': this.getClusterExtId()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getNotifications() !== 'undefined' && this.getNotifications() !== null ? {\n 'notifications': this.getNotifications().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {\n 'clusterExtId': this.getClusterExtId()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"notifications\") {\n if (typeof this.notifications === 'undefined' || this.notifications === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"notifications\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].validateMaxItems(this.notifications, 2048)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"notifications\", \"does not satisfy required maxItems constraint: 2048\");\n }\n }\n if (property === \"clusterExtId\") {\n if (typeof this.clusterExtId === 'undefined' || this.clusterExtId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"clusterExtId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"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}$/\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new Notification();\n _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('notifications') && data.notifications !== null && data.notifications !== undefined) {\n itemArr = [];\n items = data.notifications;\n for (i = 0; i < items.length; i++) {\n item = _NotificationItem__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setNotifications(itemArr);\n }\n if (data.hasOwnProperty('clusterExtId') && data.clusterExtId !== null && data.clusterExtId !== undefined) {\n obj.setClusterExtId(data['clusterExtId']);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n/**\n * @memberof Notification\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nNotification.prototype.notifications = undefined;\n\n/**\n * Cluster uuid on which the resource is present or operation is being performed.\n * @memberof Notification\n */\nNotification.prototype.clusterExtId = undefined;\n\n// Implement OneOflifecycle.v4.resources.GetNotificationsByIdApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/Notification.js?");
|
|
893
|
+
|
|
894
|
+
/***/ }),
|
|
895
|
+
|
|
896
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/NotificationDetail.js":
|
|
897
|
+
/*!**************************************************************************************************!*\
|
|
898
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/NotificationDetail.js ***!
|
|
899
|
+
\**************************************************************************************************/
|
|
900
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
901
|
+
|
|
902
|
+
"use strict";
|
|
903
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ NotificationDetail)\n/* harmony export */ });\n/* harmony import */ var _SeverityLevel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SeverityLevel */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/SeverityLevel.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The NotificationDetail model module.\n * @module Ntnx/NotificationDetail\n * @version 4.0.1-beta-1\n * @class NotificationDetail\n */\nvar _NotificationDetail_brand = /*#__PURE__*/new WeakSet();\nvar NotificationDetail = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>NotificationDetail</code>.\n * Detailed LCM upgrade notification information for this entity.\n * @alias module:Ntnx/NotificationDetail\n */\n function NotificationDetail() {\n _classCallCheck(this, NotificationDetail);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _NotificationDetail_brand);\n this.$objectType = \"lifecycle.v4.resources.NotificationDetail\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>NotificationDetail</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/NotificationDetail} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/NotificationDetail} The populated <code>NotificationDetail</code> instance.\n */\n return _createClass(NotificationDetail, [{\n key: \"getSeverityLevel\",\n value:\n /**\n * @return {}\n */\n function getSeverityLevel() {\n return this.severityLevel;\n }\n\n /**\n * @param {} severityLevel\n */\n }, {\n key: \"setSeverityLevel\",\n value: function setSeverityLevel(severityLevel) {\n this.severityLevel = severityLevel;\n }\n\n /**\n * Returns A message with notification details. The description of the most disruptive action that will occur on the node or the cluster. INFO, WARNING or NOTICE based message for an entity.\n * @return {}\n */\n }, {\n key: \"getMessage\",\n value: function getMessage() {\n return this.message;\n }\n\n /**\n * Sets A message with notification details. The description of the most disruptive action that will occur on the node or the cluster. INFO, WARNING or NOTICE based message for an entity.\n * @param {} message A message with notification details. The description of the most disruptive action that will occur on the node or the cluster. INFO, WARNING or NOTICE based message for an entity.\n */\n }, {\n key: \"setMessage\",\n value: function setMessage(message) {\n this.message = message;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getSeverityLevel() !== 'undefined' && this.getSeverityLevel() !== null ? {\n 'severityLevel': this.getSeverityLevel()\n } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getSeverityLevel() !== 'undefined' && this.getSeverityLevel() !== null ? {\n 'severityLevel': this.getSeverityLevel()\n } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"severityLevel\") {\n if (typeof this.severityLevel === 'undefined' || this.severityLevel === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"severityLevel\", \"undefined or null\");\n }\n }\n if (property === \"message\") {\n if (typeof this.message === 'undefined' || this.message === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"message\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__[\"default\"].validateMaxLength(this.message, 512)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"message\", \"does not satisfy required maxLength constraint: 512\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new NotificationDetail();\n if (data.hasOwnProperty('severityLevel') && data.severityLevel !== null && data.severityLevel !== undefined) {\n obj.setSeverityLevel(_SeverityLevel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['severityLevel']));\n }\n if (data.hasOwnProperty('message') && data.message !== null && data.message !== undefined) {\n obj.setMessage(data['message']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * @memberof NotificationDetail\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nNotificationDetail.prototype.severityLevel = undefined;\n\n/**\n * A message with notification details. The description of the most disruptive action that will occur on the node or the cluster. INFO, WARNING or NOTICE based message for an entity.\n * @memberof NotificationDetail\n */\nNotificationDetail.prototype.message = undefined;\nNotificationDetail.prototype.$reserved = undefined;\nNotificationDetail.prototype.$objectType = undefined;\nNotificationDetail.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/NotificationDetail.js?");
|
|
904
|
+
|
|
905
|
+
/***/ }),
|
|
906
|
+
|
|
907
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/NotificationItem.js":
|
|
908
|
+
/*!************************************************************************************************!*\
|
|
909
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/NotificationItem.js ***!
|
|
910
|
+
\************************************************************************************************/
|
|
911
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
912
|
+
|
|
913
|
+
"use strict";
|
|
914
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ NotificationItem)\n/* harmony export */ });\n/* harmony import */ var _common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../common/EntityBaseModel */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityBaseModel.js\");\n/* harmony import */ var _common_EntityType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/EntityType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityType.js\");\n/* harmony import */ var _common_HypervisorType__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/HypervisorType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/HypervisorType.js\");\n/* harmony import */ var _common_LocationInfo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/LocationInfo */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/LocationInfo.js\");\n/* harmony import */ var _common_NotificationType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/NotificationType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/NotificationType.js\");\n/* harmony import */ var _NotificationDetail__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NotificationDetail */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/NotificationDetail.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n\n\n/**\n * The NotificationItem model module.\n * @module Ntnx/NotificationItem\n * @version 4.0.1-beta-1\n * @class NotificationItem\n */\nvar _NotificationItem_brand = /*#__PURE__*/new WeakSet();\nvar NotificationItem = /*#__PURE__*/function (_EntityBaseModel) {\n /**\n * Constructs a new <code>NotificationItem</code>.\n * LCM upgrade notification generated for a node or cluster based on specified entity/entities and target version(s).\n * @alias module:Ntnx/NotificationItem\n * @extends module:Ntnx/EntityBaseModel\n */\n function NotificationItem() {\n var _this;\n _classCallCheck(this, NotificationItem);\n _this = _callSuper(this, NotificationItem);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _NotificationItem_brand);\n _this.$objectType = \"lifecycle.v4.resources.NotificationItem\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>NotificationItem</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/NotificationItem} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/NotificationItem} The populated <code>NotificationItem</code> instance.\n */\n _inherits(NotificationItem, _EntityBaseModel);\n return _createClass(NotificationItem, [{\n key: \"getNotificationType\",\n value:\n /**\n * @return {}\n */\n function getNotificationType() {\n return this.notificationType;\n }\n\n /**\n * @param {} notificationType\n */\n }, {\n key: \"setNotificationType\",\n value: function setNotificationType(notificationType) {\n this.notificationType = notificationType;\n }\n\n /**\n * Returns List of upgrade notifications for this entity.\n * @return {}\n */\n }, {\n key: \"getDetails\",\n value: function getDetails() {\n return this.details;\n }\n\n /**\n * Sets List of upgrade notifications for this entity.\n * @param {} details List of upgrade notifications for this entity.\n */\n }, {\n key: \"setDetails\",\n value: function setDetails(details) {\n this.details = details;\n }\n\n /**\n * Returns Version to upgrade to.\n * @return {}\n */\n }, {\n key: \"getToVersion\",\n value: function getToVersion() {\n return this.toVersion;\n }\n\n /**\n * Sets Version to upgrade to.\n * @param {} toVersion Version to upgrade to.\n */\n }, {\n key: \"setToVersion\",\n value: function setToVersion(toVersion) {\n this.toVersion = toVersion;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getLocationInfo\",\n value: function getLocationInfo() {\n return this.locationInfo;\n }\n\n /**\n * @param {} locationInfo\n */\n }, {\n key: \"setLocationInfo\",\n value: function setLocationInfo(locationInfo) {\n this.locationInfo = locationInfo;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getHypervisorType\",\n value: function getHypervisorType() {\n return this.hypervisorType;\n }\n\n /**\n * @param {} hypervisorType\n */\n }, {\n key: \"setHypervisorType\",\n value: function setHypervisorType(hypervisorType) {\n this.hypervisorType = hypervisorType;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getNotificationType() !== 'undefined' && this.getNotificationType() !== null ? {\n 'notificationType': this.getNotificationType()\n } : {}), typeof this.getDetails() !== 'undefined' && this.getDetails() !== null ? {\n 'details': this.getDetails().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getToVersion() !== 'undefined' && this.getToVersion() !== null ? {\n 'toVersion': this.getToVersion()\n } : {}), typeof this.getLocationInfo() !== 'undefined' && this.getLocationInfo() !== null ? {\n 'locationInfo': this.getLocationInfo().toJson(false)\n } : {}), typeof this.getHypervisorType() !== 'undefined' && this.getHypervisorType() !== null ? {\n 'hypervisorType': this.getHypervisorType()\n } : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {\n 'entityClass': this.getEntityClass()\n } : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {\n 'entityModel': this.getEntityModel()\n } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {\n 'entityType': this.getEntityType()\n } : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {\n 'entityVersion': this.getEntityVersion()\n } : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {\n 'hardwareFamily': this.getHardwareFamily()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getNotificationType() !== 'undefined' && this.getNotificationType() !== null ? {\n 'notificationType': this.getNotificationType()\n } : {}), typeof this.getDetails() !== 'undefined' && this.getDetails() !== null ? {\n 'details': this.getDetails().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getToVersion() !== 'undefined' && this.getToVersion() !== null ? {\n 'toVersion': this.getToVersion()\n } : {}), typeof this.getLocationInfo() !== 'undefined' && this.getLocationInfo() !== null ? {\n 'locationInfo': this.getLocationInfo().toJson(false)\n } : {}), typeof this.getHypervisorType() !== 'undefined' && this.getHypervisorType() !== null ? {\n 'hypervisorType': this.getHypervisorType()\n } : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {\n 'entityClass': this.getEntityClass()\n } : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {\n 'entityModel': this.getEntityModel()\n } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {\n 'entityType': this.getEntityType()\n } : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {\n 'entityVersion': this.getEntityVersion()\n } : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {\n 'hardwareFamily': this.getHardwareFamily()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_6__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"notificationType\") {\n if (typeof this.notificationType === 'undefined' || this.notificationType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"notificationType\", \"undefined or null\");\n }\n }\n if (property === \"details\") {\n if (typeof this.details === 'undefined' || this.details === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"details\", \"undefined or null\");\n }\n }\n if (property === \"toVersion\") {\n if (typeof this.toVersion === 'undefined' || this.toVersion === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"toVersion\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaxLength(this.toVersion, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"toVersion\", \"does not satisfy required maxLength constraint: 128\");\n }\n }\n if (property === \"locationInfo\") {\n if (typeof this.locationInfo === 'undefined' || this.locationInfo === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"locationInfo\", \"undefined or null\");\n }\n }\n if (property === \"hypervisorType\") {\n if (typeof this.hypervisorType === 'undefined' || this.hypervisorType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"hypervisorType\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new NotificationItem();\n _common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('notificationType') && data.notificationType !== null && data.notificationType !== undefined) {\n obj.setNotificationType(_common_NotificationType__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(data['notificationType']));\n }\n if (data.hasOwnProperty('details') && data.details !== null && data.details !== undefined) {\n itemArr = [];\n items = data.details;\n for (i = 0; i < items.length; i++) {\n item = _NotificationDetail__WEBPACK_IMPORTED_MODULE_5__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setDetails(itemArr);\n }\n if (data.hasOwnProperty('toVersion') && data.toVersion !== null && data.toVersion !== undefined) {\n obj.setToVersion(data['toVersion']);\n }\n if (data.hasOwnProperty('locationInfo') && data.locationInfo !== null && data.locationInfo !== undefined) {\n obj.setLocationInfo(_common_LocationInfo__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(data['locationInfo']));\n }\n if (data.hasOwnProperty('hypervisorType') && data.hypervisorType !== null && data.hypervisorType !== undefined) {\n obj.setHypervisorType(_common_HypervisorType__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['hypervisorType']));\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n/**\n * @memberof NotificationItem\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nNotificationItem.prototype.notificationType = undefined;\n\n/**\n * List of upgrade notifications for this entity.\n * @memberof NotificationItem\n */\nNotificationItem.prototype.details = undefined;\n\n/**\n * Version to upgrade to.\n * @memberof NotificationItem\n */\nNotificationItem.prototype.toVersion = undefined;\n\n/**\n * @memberof NotificationItem\n */\nNotificationItem.prototype.locationInfo = undefined;\n\n/**\n * @memberof NotificationItem\n */\nNotificationItem.prototype.hypervisorType = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/NotificationItem.js?");
|
|
915
|
+
|
|
916
|
+
/***/ }),
|
|
917
|
+
|
|
918
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/RecommendationResult.js":
|
|
919
|
+
/*!****************************************************************************************************!*\
|
|
920
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/RecommendationResult.js ***!
|
|
921
|
+
\****************************************************************************************************/
|
|
922
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
923
|
+
|
|
924
|
+
"use strict";
|
|
925
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ RecommendationResult)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/v1/response/ExternalizableAbstractModel */ \"./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js\");\n/* harmony import */ var _common_EntityUpdateSpec__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/EntityUpdateSpec */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityUpdateSpec.js\");\n/* harmony import */ var _DeployableVersion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DeployableVersion */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/DeployableVersion.js\");\n/* harmony import */ var _UpdatedTargetEntityResult__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./UpdatedTargetEntityResult */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n\n/**\n * The RecommendationResult model module.\n * @module Ntnx/RecommendationResult\n * @version 4.0.1-beta-1\n * @class RecommendationResult\n */\nvar _RecommendationResult_brand = /*#__PURE__*/new WeakSet();\nvar RecommendationResult = /*#__PURE__*/function (_ExternalizableAbstra) {\n /**\n * Constructs a new <code>RecommendationResult</code>.\n * Upgrade recommendations for LCM entity/entities.\n * @alias module:Ntnx/RecommendationResult\n * @extends module:Ntnx/ExternalizableAbstractModel\n */\n function RecommendationResult() {\n var _this;\n _classCallCheck(this, RecommendationResult);\n _this = _callSuper(this, RecommendationResult);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _RecommendationResult_brand);\n _this.$objectType = \"lifecycle.v4.resources.RecommendationResult\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>RecommendationResult</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/RecommendationResult} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/RecommendationResult} The populated <code>RecommendationResult</code> instance.\n */\n _inherits(RecommendationResult, _ExternalizableAbstra);\n return _createClass(RecommendationResult, [{\n key: \"getEntityUpdateSpecs\",\n value:\n /**\n * Returns List of entity update objects for getting recommendations.\n * @return {}\n */\n function getEntityUpdateSpecs() {\n return this.entityUpdateSpecs;\n }\n\n /**\n * Sets List of entity update objects for getting recommendations.\n * @param {} entityUpdateSpecs List of entity update objects for getting recommendations.\n */\n }, {\n key: \"setEntityUpdateSpecs\",\n value: function setEntityUpdateSpecs(entityUpdateSpecs) {\n this.entityUpdateSpecs = entityUpdateSpecs;\n }\n\n /**\n * Returns List of skipped LCM entities from the input recommendations specification.\n * @return {}\n */\n }, {\n key: \"getSkippedEntities\",\n value: function getSkippedEntities() {\n return this.skippedEntities;\n }\n\n /**\n * Sets List of skipped LCM entities from the input recommendations specification.\n * @param {} skippedEntities List of skipped LCM entities from the input recommendations specification.\n */\n }, {\n key: \"setSkippedEntities\",\n value: function setSkippedEntities(skippedEntities) {\n this.skippedEntities = skippedEntities;\n }\n\n /**\n * Returns List of modified LCM entities from the input recommendations specification.\n * @return {}\n */\n }, {\n key: \"getModifiableEntities\",\n value: function getModifiableEntities() {\n return this.modifiableEntities;\n }\n\n /**\n * Sets List of modified LCM entities from the input recommendations specification.\n * @param {} modifiableEntities List of modified LCM entities from the input recommendations specification.\n */\n }, {\n key: \"setModifiableEntities\",\n value: function setModifiableEntities(modifiableEntities) {\n this.modifiableEntities = modifiableEntities;\n }\n\n /**\n * Returns List of added LCM entities to the input recommendations specification.\n * @return {}\n */\n }, {\n key: \"getAddableEntities\",\n value: function getAddableEntities() {\n return this.addableEntities;\n }\n\n /**\n * Sets List of added LCM entities to the input recommendations specification.\n * @param {} addableEntities List of added LCM entities to the input recommendations specification.\n */\n }, {\n key: \"setAddableEntities\",\n value: function setAddableEntities(addableEntities) {\n this.addableEntities = addableEntities;\n }\n\n /**\n * Returns List of deployable entities and their dependencies.\n * @return {}\n */\n }, {\n key: \"getDeployableVersions\",\n value: function getDeployableVersions() {\n return this.deployableVersions;\n }\n\n /**\n * Sets List of deployable entities and their dependencies.\n * @param {} deployableVersions List of deployable entities and their dependencies.\n */\n }, {\n key: \"setDeployableVersions\",\n value: function setDeployableVersions(deployableVersions) {\n this.deployableVersions = deployableVersions;\n }\n\n /**\n * Returns Cluster uuid on which the resource is present or operation is being performed.\n * @return {}\n */\n }, {\n key: \"getClusterExtId\",\n value: function getClusterExtId() {\n return this.clusterExtId;\n }\n\n /**\n * Sets Cluster uuid on which the resource is present or operation is being performed.\n * @param {} clusterExtId Cluster uuid on which the resource is present or operation is being performed.\n */\n }, {\n key: \"setClusterExtId\",\n value: function setClusterExtId(clusterExtId) {\n this.clusterExtId = clusterExtId;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getEntityUpdateSpecs() !== 'undefined' && this.getEntityUpdateSpecs() !== null ? {\n 'entityUpdateSpecs': this.getEntityUpdateSpecs().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getSkippedEntities() !== 'undefined' && this.getSkippedEntities() !== null ? {\n 'skippedEntities': this.getSkippedEntities().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getModifiableEntities() !== 'undefined' && this.getModifiableEntities() !== null ? {\n 'modifiableEntities': this.getModifiableEntities().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getAddableEntities() !== 'undefined' && this.getAddableEntities() !== null ? {\n 'addableEntities': this.getAddableEntities().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getDeployableVersions() !== 'undefined' && this.getDeployableVersions() !== null ? {\n 'deployableVersions': this.getDeployableVersions().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {\n 'clusterExtId': this.getClusterExtId()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getEntityUpdateSpecs() !== 'undefined' && this.getEntityUpdateSpecs() !== null ? {\n 'entityUpdateSpecs': this.getEntityUpdateSpecs().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getSkippedEntities() !== 'undefined' && this.getSkippedEntities() !== null ? {\n 'skippedEntities': this.getSkippedEntities().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getModifiableEntities() !== 'undefined' && this.getModifiableEntities() !== null ? {\n 'modifiableEntities': this.getModifiableEntities().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getAddableEntities() !== 'undefined' && this.getAddableEntities() !== null ? {\n 'addableEntities': this.getAddableEntities().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getDeployableVersions() !== 'undefined' && this.getDeployableVersions() !== null ? {\n 'deployableVersions': this.getDeployableVersions().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {\n 'clusterExtId': this.getClusterExtId()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"entityUpdateSpecs\") {\n if (typeof this.entityUpdateSpecs === 'undefined' || this.entityUpdateSpecs === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"entityUpdateSpecs\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.entityUpdateSpecs, 2048)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"entityUpdateSpecs\", \"does not satisfy required maxItems constraint: 2048\");\n }\n }\n if (property === \"skippedEntities\") {\n if (typeof this.skippedEntities === 'undefined' || this.skippedEntities === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"skippedEntities\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.skippedEntities, 2048)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"skippedEntities\", \"does not satisfy required maxItems constraint: 2048\");\n }\n }\n if (property === \"modifiableEntities\") {\n if (typeof this.modifiableEntities === 'undefined' || this.modifiableEntities === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"modifiableEntities\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.modifiableEntities, 2048)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"modifiableEntities\", \"does not satisfy required maxItems constraint: 2048\");\n }\n }\n if (property === \"addableEntities\") {\n if (typeof this.addableEntities === 'undefined' || this.addableEntities === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"addableEntities\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.addableEntities, 2048)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"addableEntities\", \"does not satisfy required maxItems constraint: 2048\");\n }\n }\n if (property === \"deployableVersions\") {\n if (typeof this.deployableVersions === 'undefined' || this.deployableVersions === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"deployableVersions\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.deployableVersions, 2048)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"deployableVersions\", \"does not satisfy required maxItems constraint: 2048\");\n }\n }\n if (property === \"clusterExtId\") {\n if (typeof this.clusterExtId === 'undefined' || this.clusterExtId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"clusterExtId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"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}$/\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new RecommendationResult();\n _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('entityUpdateSpecs') && data.entityUpdateSpecs !== null && data.entityUpdateSpecs !== undefined) {\n itemArr = [];\n items = data.entityUpdateSpecs;\n for (i = 0; i < items.length; i++) {\n item = _common_EntityUpdateSpec__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setEntityUpdateSpecs(itemArr);\n }\n if (data.hasOwnProperty('skippedEntities') && data.skippedEntities !== null && data.skippedEntities !== undefined) {\n itemArr = [];\n items = data.skippedEntities;\n for (i = 0; i < items.length; i++) {\n item = _UpdatedTargetEntityResult__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setSkippedEntities(itemArr);\n }\n if (data.hasOwnProperty('modifiableEntities') && data.modifiableEntities !== null && data.modifiableEntities !== undefined) {\n itemArr = [];\n items = data.modifiableEntities;\n for (i = 0; i < items.length; i++) {\n item = _UpdatedTargetEntityResult__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setModifiableEntities(itemArr);\n }\n if (data.hasOwnProperty('addableEntities') && data.addableEntities !== null && data.addableEntities !== undefined) {\n itemArr = [];\n items = data.addableEntities;\n for (i = 0; i < items.length; i++) {\n item = _UpdatedTargetEntityResult__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setAddableEntities(itemArr);\n }\n if (data.hasOwnProperty('deployableVersions') && data.deployableVersions !== null && data.deployableVersions !== undefined) {\n itemArr = [];\n items = data.deployableVersions;\n for (i = 0; i < items.length; i++) {\n item = _DeployableVersion__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setDeployableVersions(itemArr);\n }\n if (data.hasOwnProperty('clusterExtId') && data.clusterExtId !== null && data.clusterExtId !== undefined) {\n obj.setClusterExtId(data['clusterExtId']);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n/**\n * List of entity update objects for getting recommendations.\n * @memberof RecommendationResult\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nRecommendationResult.prototype.entityUpdateSpecs = undefined;\n\n/**\n * List of skipped LCM entities from the input recommendations specification.\n * @memberof RecommendationResult\n */\nRecommendationResult.prototype.skippedEntities = undefined;\n\n/**\n * List of modified LCM entities from the input recommendations specification.\n * @memberof RecommendationResult\n */\nRecommendationResult.prototype.modifiableEntities = undefined;\n\n/**\n * List of added LCM entities to the input recommendations specification.\n * @memberof RecommendationResult\n */\nRecommendationResult.prototype.addableEntities = undefined;\n\n/**\n * List of deployable entities and their dependencies.\n * @memberof RecommendationResult\n */\nRecommendationResult.prototype.deployableVersions = undefined;\n\n/**\n * Cluster uuid on which the resource is present or operation is being performed.\n * @memberof RecommendationResult\n */\nRecommendationResult.prototype.clusterExtId = undefined;\n\n// Implement OneOflifecycle.v4.resources.GetRecommendationByIdApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/RecommendationResult.js?");
|
|
926
|
+
|
|
927
|
+
/***/ }),
|
|
928
|
+
|
|
929
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/RecommendationSpec.js":
|
|
930
|
+
/*!**************************************************************************************************!*\
|
|
931
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/RecommendationSpec.js ***!
|
|
932
|
+
\**************************************************************************************************/
|
|
933
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
934
|
+
|
|
935
|
+
"use strict";
|
|
936
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ RecommendationSpec)\n/* harmony export */ });\n/* harmony import */ var _common_EntityDeploySpec__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../common/EntityDeploySpec */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityDeploySpec.js\");\n/* harmony import */ var _common_EntityType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/EntityType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityType.js\");\n/* harmony import */ var _common_EntityUpdateSpec__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/EntityUpdateSpec */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityUpdateSpec.js\");\n/* harmony import */ var _TargetEntity__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TargetEntity */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/TargetEntity.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The RecommendationSpec model module.\n * @module Ntnx/RecommendationSpec\n * @version 4.0.1-beta-1\n * @class RecommendationSpec\n * @param { EntityType | TargetEntity | EntityUpdateSpec | EntityDeploySpec } recommendationSpec \n * \n */\nvar _RecommendationSpec_brand = /*#__PURE__*/new WeakSet();\nvar RecommendationSpec = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>RecommendationSpec</code>.\n * Specification to get upgrade recommendations for specific UUID and target version via LCM Recommendation\n * @alias module:Ntnx/RecommendationSpec\n * @param { EntityType | TargetEntity | EntityUpdateSpec | EntityDeploySpec } recommendationSpec \n * \n */\n function RecommendationSpec(recommendationSpec) {\n _classCallCheck(this, RecommendationSpec);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _RecommendationSpec_brand);\n this.recommendationSpec = recommendationSpec;\n this.$objectType = \"lifecycle.v4.resources.RecommendationSpec\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>RecommendationSpec</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/RecommendationSpec} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/RecommendationSpec} The populated <code>RecommendationSpec</code> instance.\n */\n return _createClass(RecommendationSpec, [{\n key: \"getRecommendationSpec\",\n value:\n /**\n * @return {}\n */\n function getRecommendationSpec() {\n return this.recommendationSpec;\n }\n\n /**\n * @param {} recommendationSpec\n */\n }, {\n key: \"setRecommendationSpec\",\n value: function setRecommendationSpec(recommendationSpec) {\n this.recommendationSpec = recommendationSpec;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread({}, typeof this.getRecommendationSpec() !== 'undefined' && this.getRecommendationSpec() !== null ? {\n 'recommendationSpec': typeof this.getRecommendationSpec().toJson !== \"undefined\" ? this.getRecommendationSpec().toJson(false) : Array.isArray(this.getRecommendationSpec()) ? this.getRecommendationSpec().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_RecommendationSpec_brand, this, _toJsonMapType).call(this, this.getRecommendationSpec(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread({}, typeof this.getRecommendationSpec() !== 'undefined' && this.getRecommendationSpec() !== null ? {\n 'recommendationSpec': typeof this.getRecommendationSpec().toJson !== \"undefined\" ? this.getRecommendationSpec().toJson() : Array.isArray(this.getRecommendationSpec()) ? this.getRecommendationSpec().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_RecommendationSpec_brand, this, _toJsonMapType).call(this, this.getRecommendationSpec())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [\"recommendationSpec\"];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"recommendationSpec\") {\n if (typeof this.recommendationSpec === 'undefined' || this.recommendationSpec === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"recommendationSpec\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new RecommendationSpec();\n if (data.hasOwnProperty('recommendationSpec') && data.recommendationSpec !== null && data.recommendationSpec !== undefined) {\n if (Array.isArray(data['recommendationSpec'])) {\n if (data['recommendationSpec'].length === 0) {\n obj.setRecommendationSpec([]);\n } else {\n itemArr = [];\n items = data['recommendationSpec'];\n if (items[0].hasOwnProperty('$objectType')) {\n discriminator = items[0]['$objectType'];\n } else {\n discriminator = _typeof(items[0]);\n try {\n if (Object.keys(_common_EntityType__WEBPACK_IMPORTED_MODULE_1__[\"default\"]).find(function (key) {\n return _common_EntityType__WEBPACK_IMPORTED_MODULE_1__[\"default\"][key] === items[0];\n })) {\n discriminator = 'lifecycle.v4.common.EntityType';\n }\n } catch (e) {}\n }\n for (i = 0; i < items.length; i++) {\n switch (discriminator) {\n case 'lifecycle.v4.common.EntityType':\n item = _common_EntityType__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n case 'lifecycle.v4.resources.TargetEntity':\n item = _TargetEntity__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n case 'lifecycle.v4.common.EntityUpdateSpec':\n item = _common_EntityUpdateSpec__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n case 'lifecycle.v4.common.EntityDeploySpec':\n item = _common_EntityDeploySpec__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n default:\n throw \"Unknown list of type \" + discriminator + \" in data\";\n }\n }\n obj.setRecommendationSpec(itemArr);\n }\n } else {\n if (data['recommendationSpec'].hasOwnProperty('$objectType')) {\n discriminator = data['recommendationSpec']['$objectType'];\n } else {\n discriminator = _typeof(data['recommendationSpec']);\n }\n switch (discriminator) {\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * @memberof RecommendationSpec\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nRecommendationSpec.prototype.recommendationSpec = undefined;\nRecommendationSpec.prototype.$reserved = undefined;\nRecommendationSpec.prototype.$objectType = undefined;\nRecommendationSpec.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/RecommendationSpec.js?");
|
|
937
|
+
|
|
938
|
+
/***/ }),
|
|
939
|
+
|
|
940
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/SeverityLevel.js":
|
|
941
|
+
/*!*********************************************************************************************!*\
|
|
942
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/SeverityLevel.js ***!
|
|
943
|
+
\*********************************************************************************************/
|
|
944
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
945
|
+
|
|
946
|
+
"use strict";
|
|
947
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Enum class SeverityLevel.\n * @enum {string}\n * @readonly\n */\nvar SeverityLevel = {\n /** \n * value: \"$UNKNOWN\"\n * @const\n */\n $UNKNOWN: \"$UNKNOWN\",\n /** \n * value: \"$REDACTED\"\n * @const\n */\n $REDACTED: \"$REDACTED\",\n /** \n * Severity level warning.\n * @const\n */\n WARNING: \"WARNING\",\n /** \n * Severity level notice.\n * @const\n */\n NOTICE: \"NOTICE\",\n /** \n * Severity level information.\n * @const\n */\n INFO: \"INFO\"\n};\n\n/**\n* Returns a <code>SeverityLevel</code> enum value from a JavaScript object name.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {SeverityLevel} The enum <code>SeverityLevel</code> value.\n*/\nSeverityLevel.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n var enumVal = Object.keys(SeverityLevel).find(function (key) {\n return SeverityLevel[key] === obj;\n });\n return enumVal === undefined || enumVal === null ? SeverityLevel.$UNKNOWN : SeverityLevel[enumVal];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\n\n/**\n* Validates <code>SeverityLevel</code> enum value.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {null} Throws error for invalid value.\n*/\nSeverityLevel.validate = function (obj) {\n switch (obj) {\n case SeverityLevel.$UNKNOWN:\n case SeverityLevel.$REDACTED:\n case SeverityLevel.WARNING:\n case SeverityLevel.NOTICE:\n case SeverityLevel.INFO:\n return;\n default:\n throw new Error(\"Invalid : must be SeverityLevel.{ $UNKNOWN|$REDACTED|WARNING|NOTICE|INFO }\");\n }\n};\nObject.freeze(SeverityLevel);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SeverityLevel);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/SeverityLevel.js?");
|
|
948
|
+
|
|
949
|
+
/***/ }),
|
|
950
|
+
|
|
951
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/StatusInfo.js":
|
|
952
|
+
/*!******************************************************************************************!*\
|
|
953
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/StatusInfo.js ***!
|
|
954
|
+
\******************************************************************************************/
|
|
955
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
956
|
+
|
|
957
|
+
"use strict";
|
|
958
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ StatusInfo)\n/* harmony export */ });\n/* harmony import */ var _FrameworkVersionInfo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FrameworkVersionInfo */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/FrameworkVersionInfo.js\");\n/* harmony import */ var _InProgressOpInfo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InProgressOpInfo */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/InProgressOpInfo.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n/**\n * The StatusInfo model module.\n * @module Ntnx/StatusInfo\n * @version 4.0.1-beta-1\n * @class StatusInfo\n */\nvar _StatusInfo_brand = /*#__PURE__*/new WeakSet();\nvar StatusInfo = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>StatusInfo</code>.\n * Detailed information about the current LCM framework status.\n * @alias module:Ntnx/StatusInfo\n */\n function StatusInfo() {\n _classCallCheck(this, StatusInfo);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _StatusInfo_brand);\n this.$objectType = \"lifecycle.v4.resources.StatusInfo\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>StatusInfo</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/StatusInfo} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/StatusInfo} The populated <code>StatusInfo</code> instance.\n */\n return _createClass(StatusInfo, [{\n key: \"getFrameworkVersion\",\n value:\n /**\n * @return {}\n */\n function getFrameworkVersion() {\n return this.frameworkVersion;\n }\n\n /**\n * @param {} frameworkVersion\n */\n }, {\n key: \"setFrameworkVersion\",\n value: function setFrameworkVersion(frameworkVersion) {\n this.frameworkVersion = frameworkVersion;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getInProgressOperation\",\n value: function getInProgressOperation() {\n return this.inProgressOperation;\n }\n\n /**\n * @param {} inProgressOperation\n */\n }, {\n key: \"setInProgressOperation\",\n value: function setInProgressOperation(inProgressOperation) {\n this.inProgressOperation = inProgressOperation;\n }\n\n /**\n * Returns Boolean that indicates if cancel intent for LCM update is set or not.\n * @return {}\n */\n }, {\n key: \"getIsCancelIntentSet\",\n value: function getIsCancelIntentSet() {\n return this.isCancelIntentSet;\n }\n\n /**\n * Sets Boolean that indicates if cancel intent for LCM update is set or not.\n * @param {} isCancelIntentSet Boolean that indicates if cancel intent for LCM update is set or not.\n */\n }, {\n key: \"setIsCancelIntentSet\",\n value: function setIsCancelIntentSet(isCancelIntentSet) {\n this.isCancelIntentSet = isCancelIntentSet;\n }\n\n /**\n * Returns Upload task UUID.\n * @return {}\n */\n }, {\n key: \"getUploadTaskUuid\",\n value: function getUploadTaskUuid() {\n return this.uploadTaskUuid;\n }\n\n /**\n * Sets Upload task UUID.\n * @param {} uploadTaskUuid Upload task UUID.\n */\n }, {\n key: \"setUploadTaskUuid\",\n value: function setUploadTaskUuid(uploadTaskUuid) {\n this.uploadTaskUuid = uploadTaskUuid;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getFrameworkVersion() !== 'undefined' && this.getFrameworkVersion() !== null ? {\n 'frameworkVersion': this.getFrameworkVersion().toJson(false)\n } : {}), typeof this.getInProgressOperation() !== 'undefined' && this.getInProgressOperation() !== null ? {\n 'inProgressOperation': this.getInProgressOperation().toJson(false)\n } : {}), typeof this.getIsCancelIntentSet() !== 'undefined' && this.getIsCancelIntentSet() !== null ? {\n 'isCancelIntentSet': this.getIsCancelIntentSet()\n } : {}), typeof this.getUploadTaskUuid() !== 'undefined' && this.getUploadTaskUuid() !== null ? {\n 'uploadTaskUuid': this.getUploadTaskUuid()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getFrameworkVersion() !== 'undefined' && this.getFrameworkVersion() !== null ? {\n 'frameworkVersion': this.getFrameworkVersion().toJson(false)\n } : {}), typeof this.getInProgressOperation() !== 'undefined' && this.getInProgressOperation() !== null ? {\n 'inProgressOperation': this.getInProgressOperation().toJson(false)\n } : {}), typeof this.getIsCancelIntentSet() !== 'undefined' && this.getIsCancelIntentSet() !== null ? {\n 'isCancelIntentSet': this.getIsCancelIntentSet()\n } : {}), typeof this.getUploadTaskUuid() !== 'undefined' && this.getUploadTaskUuid() !== null ? {\n 'uploadTaskUuid': this.getUploadTaskUuid()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"frameworkVersion\") {\n if (typeof this.frameworkVersion === 'undefined' || this.frameworkVersion === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"frameworkVersion\", \"undefined or null\");\n }\n }\n if (property === \"inProgressOperation\") {\n if (typeof this.inProgressOperation === 'undefined' || this.inProgressOperation === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"inProgressOperation\", \"undefined or null\");\n }\n }\n if (property === \"isCancelIntentSet\") {\n if (typeof this.isCancelIntentSet === 'undefined' || this.isCancelIntentSet === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"isCancelIntentSet\", \"undefined or null\");\n }\n }\n if (property === \"uploadTaskUuid\") {\n if (typeof this.uploadTaskUuid === 'undefined' || this.uploadTaskUuid === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"uploadTaskUuid\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"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}$/\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new StatusInfo();\n if (data.hasOwnProperty('frameworkVersion') && data.frameworkVersion !== null && data.frameworkVersion !== undefined) {\n obj.setFrameworkVersion(_FrameworkVersionInfo__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['frameworkVersion']));\n }\n if (data.hasOwnProperty('inProgressOperation') && data.inProgressOperation !== null && data.inProgressOperation !== undefined) {\n obj.setInProgressOperation(_InProgressOpInfo__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['inProgressOperation']));\n }\n if (data.hasOwnProperty('isCancelIntentSet') && data.isCancelIntentSet !== null && data.isCancelIntentSet !== undefined) {\n obj.setIsCancelIntentSet(data['isCancelIntentSet']);\n }\n if (data.hasOwnProperty('uploadTaskUuid') && data.uploadTaskUuid !== null && data.uploadTaskUuid !== undefined) {\n obj.setUploadTaskUuid(data['uploadTaskUuid']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * @memberof StatusInfo\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nStatusInfo.prototype.frameworkVersion = undefined;\n\n/**\n * @memberof StatusInfo\n */\nStatusInfo.prototype.inProgressOperation = undefined;\n\n/**\n * Boolean that indicates if cancel intent for LCM update is set or not.\n * @memberof StatusInfo\n * @default false\n */\nStatusInfo.prototype.isCancelIntentSet = false;\n\n/**\n * Upload task UUID.\n * @memberof StatusInfo\n */\nStatusInfo.prototype.uploadTaskUuid = undefined;\nStatusInfo.prototype.$reserved = undefined;\nStatusInfo.prototype.$objectType = undefined;\nStatusInfo.prototype.$unknownFields = undefined;\n\n// Implement OneOflifecycle.v4.resources.GetStatusApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/StatusInfo.js?");
|
|
959
|
+
|
|
960
|
+
/***/ }),
|
|
961
|
+
|
|
962
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/TargetEntity.js":
|
|
963
|
+
/*!********************************************************************************************!*\
|
|
964
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/TargetEntity.js ***!
|
|
965
|
+
\********************************************************************************************/
|
|
966
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
967
|
+
|
|
968
|
+
"use strict";
|
|
969
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TargetEntity)\n/* harmony export */ });\n/* harmony import */ var _common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../common/EntityBaseModel */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityBaseModel.js\");\n/* harmony import */ var _common_EntityType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/EntityType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityType.js\");\n/* harmony import */ var _common_LocationInfo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/LocationInfo */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/LocationInfo.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n/**\n * The TargetEntity model module.\n * @module Ntnx/TargetEntity\n * @version 4.0.1-beta-1\n * @class TargetEntity\n * \n * @param { String } version The requested update version of an LCM entity.\n */\nvar _TargetEntity_brand = /*#__PURE__*/new WeakSet();\nvar TargetEntity = /*#__PURE__*/function (_EntityBaseModel) {\n /**\n * Constructs a new <code>TargetEntity</code>.\n * LCM target entity for which recommendations are requested.\n * @alias module:Ntnx/TargetEntity\n * @extends module:Ntnx/EntityBaseModel\n * \n * @param { String } version The requested update version of an LCM entity.\n */\n function TargetEntity(version) {\n var _this;\n _classCallCheck(this, TargetEntity);\n _this = _callSuper(this, TargetEntity);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _TargetEntity_brand);\n _this.version = version;\n _this.$objectType = \"lifecycle.v4.resources.TargetEntity\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>TargetEntity</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/TargetEntity} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/TargetEntity} The populated <code>TargetEntity</code> instance.\n */\n _inherits(TargetEntity, _EntityBaseModel);\n return _createClass(TargetEntity, [{\n key: \"getVersion\",\n value:\n /**\n * Returns The requested update version of an LCM entity.\n * @return {}\n */\n function getVersion() {\n return this.version;\n }\n\n /**\n * Sets The requested update version of an LCM entity.\n * @param {} version The requested update version of an LCM entity.\n */\n }, {\n key: \"setVersion\",\n value: function setVersion(version) {\n this.version = version;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getLocationInfo\",\n value: function getLocationInfo() {\n return this.locationInfo;\n }\n\n /**\n * @param {} locationInfo\n */\n }, {\n key: \"setLocationInfo\",\n value: function setLocationInfo(locationInfo) {\n this.locationInfo = locationInfo;\n }\n\n /**\n * Returns Unique identifier of an LCM entity e.g. \\\"HDD serial number\\\".\n * @return {}\n */\n }, {\n key: \"getDeviceId\",\n value: function getDeviceId() {\n return this.deviceId;\n }\n\n /**\n * Sets Unique identifier of an LCM entity e.g. \\\"HDD serial number\\\".\n * @param {} deviceId Unique identifier of an LCM entity e.g. \\\"HDD serial number\\\".\n */\n }, {\n key: \"setDeviceId\",\n value: function setDeviceId(deviceId) {\n this.deviceId = deviceId;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getVersion() !== 'undefined' && this.getVersion() !== null ? {\n 'version': this.getVersion()\n } : {}), typeof this.getLocationInfo() !== 'undefined' && this.getLocationInfo() !== null ? {\n 'locationInfo': this.getLocationInfo().toJson(false)\n } : {}), typeof this.getDeviceId() !== 'undefined' && this.getDeviceId() !== null ? {\n 'deviceId': this.getDeviceId()\n } : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {\n 'entityClass': this.getEntityClass()\n } : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {\n 'entityModel': this.getEntityModel()\n } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {\n 'entityType': this.getEntityType()\n } : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {\n 'entityVersion': this.getEntityVersion()\n } : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {\n 'hardwareFamily': this.getHardwareFamily()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getVersion() !== 'undefined' && this.getVersion() !== null ? {\n 'version': this.getVersion()\n } : {}), typeof this.getLocationInfo() !== 'undefined' && this.getLocationInfo() !== null ? {\n 'locationInfo': this.getLocationInfo().toJson(false)\n } : {}), typeof this.getDeviceId() !== 'undefined' && this.getDeviceId() !== null ? {\n 'deviceId': this.getDeviceId()\n } : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {\n 'entityClass': this.getEntityClass()\n } : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {\n 'entityModel': this.getEntityModel()\n } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {\n 'entityType': this.getEntityType()\n } : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {\n 'entityVersion': this.getEntityVersion()\n } : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {\n 'hardwareFamily': this.getHardwareFamily()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [\"version\"];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"version\") {\n if (typeof this.version === 'undefined' || this.version === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"version\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].validateMaxLength(this.version, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"version\", \"does not satisfy required maxLength constraint: 128\");\n }\n }\n if (property === \"locationInfo\") {\n if (typeof this.locationInfo === 'undefined' || this.locationInfo === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"locationInfo\", \"undefined or null\");\n }\n }\n if (property === \"deviceId\") {\n if (typeof this.deviceId === 'undefined' || this.deviceId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"deviceId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].validateMaxLength(this.deviceId, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"deviceId\", \"does not satisfy required maxLength constraint: 128\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new TargetEntity();\n _common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('version') && data.version !== null && data.version !== undefined) {\n obj.setVersion(data['version']);\n }\n if (data.hasOwnProperty('locationInfo') && data.locationInfo !== null && data.locationInfo !== undefined) {\n obj.setLocationInfo(_common_LocationInfo__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['locationInfo']));\n }\n if (data.hasOwnProperty('deviceId') && data.deviceId !== null && data.deviceId !== undefined) {\n obj.setDeviceId(data['deviceId']);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n/**\n * The requested update version of an LCM entity.\n * @memberof TargetEntity\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nTargetEntity.prototype.version = undefined;\n\n/**\n * @memberof TargetEntity\n */\nTargetEntity.prototype.locationInfo = undefined;\n\n/**\n * Unique identifier of an LCM entity e.g. \\\"HDD serial number\\\".\n * @memberof TargetEntity\n */\nTargetEntity.prototype.deviceId = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/TargetEntity.js?");
|
|
970
|
+
|
|
971
|
+
/***/ }),
|
|
972
|
+
|
|
973
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/UpdateConfigApiResponse.js":
|
|
974
|
+
/*!*******************************************************************************************************!*\
|
|
975
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/UpdateConfigApiResponse.js ***!
|
|
976
|
+
\*******************************************************************************************************/
|
|
977
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
978
|
+
|
|
979
|
+
"use strict";
|
|
980
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ UpdateConfigApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/error/ErrorResponse.js\");\n/* harmony import */ var _prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../prism/v4/config/TaskReference */ \"./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The UpdateConfigApiResponse model module.\n * @module Ntnx/UpdateConfigApiResponse\n * @version 4.0.1-beta-1\n * @class UpdateConfigApiResponse\n */\nvar _UpdateConfigApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar UpdateConfigApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>UpdateConfigApiResponse</code>.\n * REST response for all response codes in API path /lifecycle/v4.0.b1/resources/config Put operation\n * @alias module:Ntnx/UpdateConfigApiResponse\n */\n function UpdateConfigApiResponse() {\n var _this;\n _classCallCheck(this, UpdateConfigApiResponse);\n _this = _callSuper(this, UpdateConfigApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _UpdateConfigApiResponse_brand);\n _this.$objectType = \"lifecycle.v4.resources.UpdateConfigApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>UpdateConfigApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/UpdateConfigApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/UpdateConfigApiResponse} The populated <code>UpdateConfigApiResponse</code> instance.\n */\n _inherits(UpdateConfigApiResponse, _Paginable);\n return _createClass(UpdateConfigApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_UpdateConfigApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_UpdateConfigApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new UpdateConfigApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'prism.v4.config.TaskReference':\n obj.setData(_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'lifecycle.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof UpdateConfigApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nUpdateConfigApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof UpdateConfigApiResponse\n */\nUpdateConfigApiResponse.prototype.data = undefined;\nUpdateConfigApiResponse.prototype.$reserved = undefined;\nUpdateConfigApiResponse.prototype.$objectType = undefined;\nUpdateConfigApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/UpdateConfigApiResponse.js?");
|
|
981
|
+
|
|
982
|
+
/***/ }),
|
|
983
|
+
|
|
984
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/UpdatedTargetEntity.js":
|
|
985
|
+
/*!***************************************************************************************************!*\
|
|
986
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/UpdatedTargetEntity.js ***!
|
|
987
|
+
\***************************************************************************************************/
|
|
988
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
989
|
+
|
|
990
|
+
"use strict";
|
|
991
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ UpdatedTargetEntity)\n/* harmony export */ });\n/* harmony import */ var _common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../common/EntityBaseModel */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityBaseModel.js\");\n/* harmony import */ var _common_EntityType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../common/EntityType */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/EntityType.js\");\n/* harmony import */ var _common_LocationInfo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/LocationInfo */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/common/LocationInfo.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n/**\n * The UpdatedTargetEntity model module.\n * @module Ntnx/UpdatedTargetEntity\n * @version 4.0.1-beta-1\n * @class UpdatedTargetEntity\n */\nvar _UpdatedTargetEntity_brand = /*#__PURE__*/new WeakSet();\nvar UpdatedTargetEntity = /*#__PURE__*/function (_EntityBaseModel) {\n /**\n * Constructs a new <code>UpdatedTargetEntity</code>.\n * Updated LCM target entity in recommendation result.\n * @alias module:Ntnx/UpdatedTargetEntity\n * @extends module:Ntnx/EntityBaseModel\n */\n function UpdatedTargetEntity() {\n var _this;\n _classCallCheck(this, UpdatedTargetEntity);\n _this = _callSuper(this, UpdatedTargetEntity);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _UpdatedTargetEntity_brand);\n _this.$objectType = \"lifecycle.v4.resources.UpdatedTargetEntity\";\n _this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>UpdatedTargetEntity</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/UpdatedTargetEntity} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/UpdatedTargetEntity} The populated <code>UpdatedTargetEntity</code> instance.\n */\n _inherits(UpdatedTargetEntity, _EntityBaseModel);\n return _createClass(UpdatedTargetEntity, [{\n key: \"getLocationInfo\",\n value:\n /**\n * @return {}\n */\n function getLocationInfo() {\n return this.locationInfo;\n }\n\n /**\n * @param {} locationInfo\n */\n }, {\n key: \"setLocationInfo\",\n value: function setLocationInfo(locationInfo) {\n this.locationInfo = locationInfo;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getLocationInfo() !== 'undefined' && this.getLocationInfo() !== null ? {\n 'locationInfo': this.getLocationInfo().toJson(false)\n } : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {\n 'entityClass': this.getEntityClass()\n } : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {\n 'entityModel': this.getEntityModel()\n } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {\n 'entityType': this.getEntityType()\n } : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {\n 'entityVersion': this.getEntityVersion()\n } : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {\n 'hardwareFamily': this.getHardwareFamily()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getLocationInfo() !== 'undefined' && this.getLocationInfo() !== null ? {\n 'locationInfo': this.getLocationInfo().toJson(false)\n } : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {\n 'entityClass': this.getEntityClass()\n } : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {\n 'entityModel': this.getEntityModel()\n } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {\n 'entityType': this.getEntityType()\n } : {}), typeof this.getEntityVersion() !== 'undefined' && this.getEntityVersion() !== null ? {\n 'entityVersion': this.getEntityVersion()\n } : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {\n 'hardwareFamily': this.getHardwareFamily()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"locationInfo\") {\n if (typeof this.locationInfo === 'undefined' || this.locationInfo === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"locationInfo\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new UpdatedTargetEntity();\n _common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('locationInfo') && data.locationInfo !== null && data.locationInfo !== undefined) {\n obj.setLocationInfo(_common_LocationInfo__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['locationInfo']));\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_common_EntityBaseModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n/**\n * @memberof UpdatedTargetEntity\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nUpdatedTargetEntity.prototype.locationInfo = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/UpdatedTargetEntity.js?");
|
|
992
|
+
|
|
993
|
+
/***/ }),
|
|
994
|
+
|
|
995
|
+
/***/ "./target/generated-sources/swagger/src/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js":
|
|
996
|
+
/*!*********************************************************************************************************!*\
|
|
997
|
+
!*** ./target/generated-sources/swagger/src/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js ***!
|
|
998
|
+
\*********************************************************************************************************/
|
|
999
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1000
|
+
|
|
1001
|
+
"use strict";
|
|
1002
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ UpdatedTargetEntityResult)\n/* harmony export */ });\n/* harmony import */ var _UpdatedTargetEntity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UpdatedTargetEntity */ \"./target/generated-sources/swagger/src/models/lifecycle/v4/resources/UpdatedTargetEntity.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The UpdatedTargetEntityResult model module.\n * @module Ntnx/UpdatedTargetEntityResult\n * @version 4.0.1-beta-1\n * @class UpdatedTargetEntityResult\n * \n * @param { String } message Error message for the target entity that failed in the input recommendations specification.\n */\nvar _UpdatedTargetEntityResult_brand = /*#__PURE__*/new WeakSet();\nvar UpdatedTargetEntityResult = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>UpdatedTargetEntityResult</code>.\n * LCM error for target entity\n * @alias module:Ntnx/UpdatedTargetEntityResult\n * \n * @param { String } message Error message for the target entity that failed in the input recommendations specification.\n */\n function UpdatedTargetEntityResult(message) {\n _classCallCheck(this, UpdatedTargetEntityResult);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _UpdatedTargetEntityResult_brand);\n this.message = message;\n this.$objectType = \"lifecycle.v4.resources.UpdatedTargetEntityResult\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>UpdatedTargetEntityResult</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/UpdatedTargetEntityResult} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/UpdatedTargetEntityResult} The populated <code>UpdatedTargetEntityResult</code> instance.\n */\n return _createClass(UpdatedTargetEntityResult, [{\n key: \"getTargetEntity\",\n value:\n /**\n * @return {}\n */\n function getTargetEntity() {\n return this.targetEntity;\n }\n\n /**\n * @param {} targetEntity\n */\n }, {\n key: \"setTargetEntity\",\n value: function setTargetEntity(targetEntity) {\n this.targetEntity = targetEntity;\n }\n\n /**\n * Returns Error message for the target entity that failed in the input recommendations specification.\n * @return {}\n */\n }, {\n key: \"getMessage\",\n value: function getMessage() {\n return this.message;\n }\n\n /**\n * Sets Error message for the target entity that failed in the input recommendations specification.\n * @param {} message Error message for the target entity that failed in the input recommendations specification.\n */\n }, {\n key: \"setMessage\",\n value: function setMessage(message) {\n this.message = message;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getTargetEntity() !== 'undefined' && this.getTargetEntity() !== null ? {\n 'targetEntity': this.getTargetEntity().toJson(false)\n } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getTargetEntity() !== 'undefined' && this.getTargetEntity() !== null ? {\n 'targetEntity': this.getTargetEntity().toJson(false)\n } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [\"message\"];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"targetEntity\") {\n if (typeof this.targetEntity === 'undefined' || this.targetEntity === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"targetEntity\", \"undefined or null\");\n }\n }\n if (property === \"message\") {\n if (typeof this.message === 'undefined' || this.message === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"message\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__[\"default\"].validateMaxLength(this.message, 512)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"message\", \"does not satisfy required maxLength constraint: 512\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new UpdatedTargetEntityResult();\n if (data.hasOwnProperty('targetEntity') && data.targetEntity !== null && data.targetEntity !== undefined) {\n obj.setTargetEntity(_UpdatedTargetEntity__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['targetEntity']));\n }\n if (data.hasOwnProperty('message') && data.message !== null && data.message !== undefined) {\n obj.setMessage(data['message']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * @memberof UpdatedTargetEntityResult\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nUpdatedTargetEntityResult.prototype.targetEntity = undefined;\n\n/**\n * Error message for the target entity that failed in the input recommendations specification.\n * @memberof UpdatedTargetEntityResult\n */\nUpdatedTargetEntityResult.prototype.message = undefined;\nUpdatedTargetEntityResult.prototype.$reserved = undefined;\nUpdatedTargetEntityResult.prototype.$objectType = undefined;\nUpdatedTargetEntityResult.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js?");
|
|
1003
|
+
|
|
1004
|
+
/***/ }),
|
|
1005
|
+
|
|
1006
|
+
/***/ "./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js":
|
|
1007
|
+
/*!**************************************************************************************!*\
|
|
1008
|
+
!*** ./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js ***!
|
|
1009
|
+
\**************************************************************************************/
|
|
1010
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1011
|
+
|
|
1012
|
+
"use strict";
|
|
1013
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TaskReference)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The TaskReference model module.\n * @module Ntnx/TaskReference\n * @version 4.0.1-beta-1\n * @class TaskReference\n */\nvar _TaskReference_brand = /*#__PURE__*/new WeakSet();\nvar TaskReference = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>TaskReference</code>.\n * A reference to a task tracking an asynchronous operation. The status of the task can be queried by making a GET request to the task URI provided in the metadata section of the API response.\n * @alias module:Ntnx/TaskReference\n */\n function TaskReference() {\n _classCallCheck(this, TaskReference);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _TaskReference_brand);\n this.$objectType = \"prism.v4.config.TaskReference\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>TaskReference</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/TaskReference} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/TaskReference} The populated <code>TaskReference</code> instance.\n */\n return _createClass(TaskReference, [{\n key: \"getExtId\",\n value:\n /**\n * Returns A globally unique identifier of a task.\n * @return {}\n */\n function getExtId() {\n return this.extId;\n }\n\n /**\n * Sets A globally unique identifier of a task.\n * @param {} extId A globally unique identifier of a task.\n */\n }, {\n key: \"setExtId\",\n value: function setExtId(extId) {\n this.extId = extId;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread({}, typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread({}, typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"extId\") {\n if (typeof this.extId === 'undefined' || this.extId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"extId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].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}/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"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}/\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new TaskReference();\n if (data.hasOwnProperty('extId') && data.extId !== null && data.extId !== undefined) {\n obj.setExtId(data['extId']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * A globally unique identifier of a task.\n * @memberof TaskReference\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nTaskReference.prototype.extId = undefined;\nTaskReference.prototype.$reserved = undefined;\nTaskReference.prototype.$objectType = undefined;\nTaskReference.prototype.$unknownFields = undefined;\n\n// Implement OneOflifecycle.v4.operations.InventoryApiResponsedata interface:\n// Implement OneOflifecycle.v4.operations.ComputeNotificationsApiResponsedata interface:\n// Implement OneOflifecycle.v4.operations.UpgradeApiResponsedata interface:\n// Implement OneOflifecycle.v4.operations.PrechecksApiResponsedata interface:\n// Implement OneOflifecycle.v4.operations.ComputeRecommendationsApiResponsedata interface:\n// Implement OneOflifecycle.v4.resources.UpdateConfigApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js?");
|
|
1014
|
+
|
|
1015
|
+
/***/ }),
|
|
1016
|
+
|
|
1017
|
+
/***/ "./target/generated-sources/swagger/src/models/validation/ValidationError.js":
|
|
1018
|
+
/*!***********************************************************************************!*\
|
|
1019
|
+
!*** ./target/generated-sources/swagger/src/models/validation/ValidationError.js ***!
|
|
1020
|
+
\***********************************************************************************/
|
|
1021
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1022
|
+
|
|
1023
|
+
"use strict";
|
|
1024
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ValidationError)\n/* harmony export */ });\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\nvar ValidationError = /*#__PURE__*/function () {\n function ValidationError(name, message) {\n _classCallCheck(this, ValidationError);\n this.name = name;\n this.message = message;\n }\n return _createClass(ValidationError, [{\n key: \"getName\",\n value: function getName() {\n return this.name;\n }\n }, {\n key: \"setName\",\n value: function setName(name) {\n this.name = name;\n }\n }, {\n key: \"getMessage\",\n value: function getMessage() {\n return this.message;\n }\n }, {\n key: \"setMessage\",\n value: function setMessage(message) {\n this.message = message;\n }\n }, {\n key: \"toJson\",\n value: function toJson() {\n return {\n 'name': this.getName(),\n 'message': this.getMessage()\n };\n }\n }]);\n}();\n\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/validation/ValidationError.js?");
|
|
1025
|
+
|
|
1026
|
+
/***/ }),
|
|
1027
|
+
|
|
1028
|
+
/***/ "./target/generated-sources/swagger/src/models/validation/ValidationScopes.js":
|
|
1029
|
+
/*!************************************************************************************!*\
|
|
1030
|
+
!*** ./target/generated-sources/swagger/src/models/validation/ValidationScopes.js ***!
|
|
1031
|
+
\************************************************************************************/
|
|
1032
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1033
|
+
|
|
1034
|
+
"use strict";
|
|
1035
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/**\n* Enum class ValidationScopes.\n* @enum {}\n* @readonly\n*/\n\nvar ValidationScopes = {\n /**\n * value: {DEFAULT}\n * @const\n */\n DEFAULT: \"DEFAULT\"\n};\nValidationScopes.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n return ValidationScopes[obj];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\nValidationScopes.validate = function (obj) {\n if (typeof obj !== 'undefined' && obj !== null) {\n switch (obj) {\n case ValidationScopes.DEFAULT:\n return;\n default:\n throw new Error(\"Invalid : must be ValidationScopes.{ }\");\n }\n }\n};\nObject.freeze(ValidationScopes);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ValidationScopes);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/validation/ValidationScopes.js?");
|
|
1036
|
+
|
|
1037
|
+
/***/ }),
|
|
1038
|
+
|
|
1039
|
+
/***/ "./target/generated-sources/swagger/src/utils/ValidationUtils.js":
|
|
1040
|
+
/*!***********************************************************************!*\
|
|
1041
|
+
!*** ./target/generated-sources/swagger/src/utils/ValidationUtils.js ***!
|
|
1042
|
+
\***********************************************************************/
|
|
1043
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1044
|
+
|
|
1045
|
+
"use strict";
|
|
1046
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ValidationUtils)\n/* harmony export */ });\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/*\n * Nutanix Lifecycle Versioned APIs\n *\n * OpenAPI spec version: 4.0.1-beta-1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\nvar ValidationUtils = /*#__PURE__*/function () {\n function ValidationUtils() {\n _classCallCheck(this, ValidationUtils);\n }\n return _createClass(ValidationUtils, null, [{\n key: \"validateMaximum\",\n value: function validateMaximum(value, maximum) {\n return !(maximum === null || value > maximum);\n }\n }, {\n key: \"validateMinimum\",\n value: function validateMinimum(value, minimum) {\n return !(minimum === null || value < minimum);\n }\n }, {\n key: \"validateExclusiveMaximum\",\n value: function validateExclusiveMaximum(value, eMaximum) {\n return !(eMaximum === null || value > eMaximum);\n }\n }, {\n key: \"validateExclusiveMinimum\",\n value: function validateExclusiveMinimum(value, eMinimum) {\n return !(eMinimum === null || value > eMinimum);\n }\n }, {\n key: \"validateMultipleOf\",\n value: function validateMultipleOf(value, multipleOf) {\n return !(multipleOf === null || value % multipleOf === 0);\n }\n }, {\n key: \"validateMaxLength\",\n value: function validateMaxLength(value, maxLength) {\n return !(maxLength === null || value.length > maxLength);\n }\n }, {\n key: \"validateMinLength\",\n value: function validateMinLength(value, minLength) {\n return !(minLength === null || value.length < minLength);\n }\n }, {\n key: \"validatePattern\",\n value: function validatePattern(value, pattern) {\n return !(pattern === null || value.match(pattern) === null);\n }\n }, {\n key: \"validateMaxItems\",\n value: function validateMaxItems(value, maxItems) {\n return !(maxItems === null || value.length > maxItems);\n }\n }, {\n key: \"validateMinItems\",\n value: function validateMinItems(value, minItems) {\n return !(minItems === null || value.length < minItems);\n }\n }, {\n key: \"validateUniqueItems\",\n value: function validateUniqueItems(value, uniqueItems) {\n return !(uniqueItems === null || !uniqueItems || value.length !== new Set(value).size);\n }\n }]);\n}();\n\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/utils/ValidationUtils.js?");
|
|
1047
|
+
|
|
1048
|
+
/***/ }),
|
|
1049
|
+
|
|
1050
|
+
/***/ "?bdc3":
|
|
1051
|
+
/*!************************!*\
|
|
1052
|
+
!*** buffer (ignored) ***!
|
|
1053
|
+
\************************/
|
|
1054
|
+
/***/ (() => {
|
|
1055
|
+
|
|
1056
|
+
eval("/* (ignored) */\n\n//# sourceURL=webpack://Ntnx/buffer_(ignored)?");
|
|
1057
|
+
|
|
1058
|
+
/***/ }),
|
|
1059
|
+
|
|
1060
|
+
/***/ "?e583":
|
|
1061
|
+
/*!********************!*\
|
|
1062
|
+
!*** fs (ignored) ***!
|
|
1063
|
+
\********************/
|
|
1064
|
+
/***/ (() => {
|
|
1065
|
+
|
|
1066
|
+
eval("/* (ignored) */\n\n//# sourceURL=webpack://Ntnx/fs_(ignored)?");
|
|
1067
|
+
|
|
1068
|
+
/***/ }),
|
|
1069
|
+
|
|
1070
|
+
/***/ "?aee4":
|
|
1071
|
+
/*!***********************!*\
|
|
1072
|
+
!*** https (ignored) ***!
|
|
1073
|
+
\***********************/
|
|
1074
|
+
/***/ (() => {
|
|
1075
|
+
|
|
1076
|
+
eval("/* (ignored) */\n\n//# sourceURL=webpack://Ntnx/https_(ignored)?");
|
|
1077
|
+
|
|
1078
|
+
/***/ }),
|
|
1079
|
+
|
|
1080
|
+
/***/ "?fdee":
|
|
1081
|
+
/*!****************************!*\
|
|
1082
|
+
!*** stream/web (ignored) ***!
|
|
1083
|
+
\****************************/
|
|
1084
|
+
/***/ (() => {
|
|
1085
|
+
|
|
1086
|
+
eval("/* (ignored) */\n\n//# sourceURL=webpack://Ntnx/stream/web_(ignored)?");
|
|
1087
|
+
|
|
1088
|
+
/***/ })
|
|
1089
|
+
|
|
1090
|
+
/******/ });
|
|
1091
|
+
/************************************************************************/
|
|
1092
|
+
/******/ // The module cache
|
|
1093
|
+
/******/ var __webpack_module_cache__ = {};
|
|
1094
|
+
/******/
|
|
1095
|
+
/******/ // The require function
|
|
1096
|
+
/******/ function __webpack_require__(moduleId) {
|
|
1097
|
+
/******/ // Check if module is in cache
|
|
1098
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
1099
|
+
/******/ if (cachedModule !== undefined) {
|
|
1100
|
+
/******/ return cachedModule.exports;
|
|
1101
|
+
/******/ }
|
|
1102
|
+
/******/ // Create a new module (and put it into the cache)
|
|
1103
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
1104
|
+
/******/ // no module.id needed
|
|
1105
|
+
/******/ // no module.loaded needed
|
|
1106
|
+
/******/ exports: {}
|
|
1107
|
+
/******/ };
|
|
1108
|
+
/******/
|
|
1109
|
+
/******/ // Execute the module function
|
|
1110
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
1111
|
+
/******/
|
|
1112
|
+
/******/ // Return the exports of the module
|
|
1113
|
+
/******/ return module.exports;
|
|
1114
|
+
/******/ }
|
|
1115
|
+
/******/
|
|
1116
|
+
/************************************************************************/
|
|
1117
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
1118
|
+
/******/ (() => {
|
|
1119
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
1120
|
+
/******/ __webpack_require__.n = (module) => {
|
|
1121
|
+
/******/ var getter = module && module.__esModule ?
|
|
1122
|
+
/******/ () => (module['default']) :
|
|
1123
|
+
/******/ () => (module);
|
|
1124
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
1125
|
+
/******/ return getter;
|
|
1126
|
+
/******/ };
|
|
1127
|
+
/******/ })();
|
|
1128
|
+
/******/
|
|
1129
|
+
/******/ /* webpack/runtime/define property getters */
|
|
1130
|
+
/******/ (() => {
|
|
1131
|
+
/******/ // define getter functions for harmony exports
|
|
1132
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
1133
|
+
/******/ for(var key in definition) {
|
|
1134
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
1135
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
1136
|
+
/******/ }
|
|
1137
|
+
/******/ }
|
|
1138
|
+
/******/ };
|
|
1139
|
+
/******/ })();
|
|
1140
|
+
/******/
|
|
1141
|
+
/******/ /* webpack/runtime/global */
|
|
1142
|
+
/******/ (() => {
|
|
1143
|
+
/******/ __webpack_require__.g = (function() {
|
|
1144
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
1145
|
+
/******/ try {
|
|
1146
|
+
/******/ return this || new Function('return this')();
|
|
1147
|
+
/******/ } catch (e) {
|
|
1148
|
+
/******/ if (typeof window === 'object') return window;
|
|
1149
|
+
/******/ }
|
|
1150
|
+
/******/ })();
|
|
1151
|
+
/******/ })();
|
|
1152
|
+
/******/
|
|
1153
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
1154
|
+
/******/ (() => {
|
|
1155
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
1156
|
+
/******/ })();
|
|
1157
|
+
/******/
|
|
1158
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
1159
|
+
/******/ (() => {
|
|
1160
|
+
/******/ // define __esModule on exports
|
|
1161
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
1162
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
1163
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
1164
|
+
/******/ }
|
|
1165
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
1166
|
+
/******/ };
|
|
1167
|
+
/******/ })();
|
|
1168
|
+
/******/
|
|
1169
|
+
/************************************************************************/
|
|
1170
|
+
/******/
|
|
1171
|
+
/******/ // startup
|
|
1172
|
+
/******/ // Load entry module and return exports
|
|
1173
|
+
/******/ // This entry module can't be inlined because the eval devtool is used.
|
|
1174
|
+
/******/ var __webpack_exports__ = __webpack_require__("./target/generated-sources/swagger/src/index.js");
|
|
1175
|
+
/******/ __webpack_exports__ = __webpack_exports__["default"];
|
|
1176
|
+
/******/
|
|
1177
|
+
/******/ return __webpack_exports__;
|
|
1178
|
+
/******/ })()
|
|
1179
|
+
;
|
|
1180
|
+
});
|