@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,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.EntitiesApi = void 0;
|
|
8
|
+
var _ApiClient = require("../ApiClient");
|
|
9
|
+
var _GetEntityByIdApiResponse = _interopRequireDefault(require("../models/lifecycle/v4/resources/GetEntityByIdApiResponse"));
|
|
10
|
+
var _ListEntitiesApiResponse = _interopRequireDefault(require("../models/lifecycle/v4/resources/ListEntitiesApiResponse"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
|
+
function _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; }
|
|
15
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
|
+
function _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); } }
|
|
17
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
21
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
22
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
23
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
24
|
+
function _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"); } /*
|
|
25
|
+
* Nutanix Lifecycle Versioned APIs
|
|
26
|
+
*
|
|
27
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
28
|
+
*
|
|
29
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
30
|
+
*
|
|
31
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
32
|
+
*
|
|
33
|
+
* Do not edit the class manually.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Entities service.
|
|
38
|
+
* @version 4.0.1-beta-1
|
|
39
|
+
* @class EntitiesApi
|
|
40
|
+
*/
|
|
41
|
+
var _headersToSkip = /*#__PURE__*/new WeakMap();
|
|
42
|
+
var EntitiesApi = exports.EntitiesApi = /*#__PURE__*/function () {
|
|
43
|
+
/**
|
|
44
|
+
* Constructs a new EntitiesApi.
|
|
45
|
+
* @alias module:api/EntitiesApi
|
|
46
|
+
* @class
|
|
47
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
48
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
49
|
+
*/
|
|
50
|
+
function EntitiesApi(apiClient) {
|
|
51
|
+
_classCallCheck(this, EntitiesApi);
|
|
52
|
+
_classPrivateFieldInitSpec(this, _headersToSkip, void 0);
|
|
53
|
+
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
54
|
+
_classPrivateFieldSet(_headersToSkip, this, new Set());
|
|
55
|
+
_classPrivateFieldGet(_headersToSkip, this).add('authorization');
|
|
56
|
+
_classPrivateFieldGet(_headersToSkip, this).add('cookie');
|
|
57
|
+
_classPrivateFieldGet(_headersToSkip, this).add('host');
|
|
58
|
+
_classPrivateFieldGet(_headersToSkip, this).add('user-agent');
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Get details about an LCM entity.
|
|
63
|
+
* Get details about an LCM entity.
|
|
64
|
+
* @param { String } extId ExtId of the LCM entity.
|
|
65
|
+
* @param {Object} args Additional Arguments
|
|
66
|
+
* @return {Promise<GetEntityByIdApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetEntityByIdApiResponse } and HTTP response
|
|
67
|
+
*/
|
|
68
|
+
return _createClass(EntitiesApi, [{
|
|
69
|
+
key: "getEntityById",
|
|
70
|
+
value: function getEntityById(extId) {
|
|
71
|
+
var _this = this;
|
|
72
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
73
|
+
var postBody = null;
|
|
74
|
+
// verify the required parameter 'extId' is set
|
|
75
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
76
|
+
throw new Error("Missing the required parameter 'extId' when calling getEntityById");
|
|
77
|
+
}
|
|
78
|
+
var pathParams = {
|
|
79
|
+
'extId': extId
|
|
80
|
+
};
|
|
81
|
+
var queryParams = {};
|
|
82
|
+
var headersToInclude = {};
|
|
83
|
+
Object.keys(argMap).forEach(function (header) {
|
|
84
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
|
|
85
|
+
headersToInclude[header] = argMap[header];
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
89
|
+
var formParams = {};
|
|
90
|
+
var authNames = ['basicAuthScheme'];
|
|
91
|
+
var contentTypes = [];
|
|
92
|
+
var accepts = ['application/json'];
|
|
93
|
+
var returnType = _GetEntityByIdApiResponse["default"];
|
|
94
|
+
return this.apiClient.callApi('/api/lifecycle/v4.0.b1/resources/entities/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Get details about all LCM entities.
|
|
99
|
+
* Query list of LCM entities.
|
|
100
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
101
|
+
* @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.
|
|
102
|
+
* @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.
|
|
103
|
+
* @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>
|
|
104
|
+
* 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>
|
|
105
|
+
* The filter can be applied to the following fields:<br>
|
|
106
|
+
* - clusterExtId<br>
|
|
107
|
+
* - entityClass<br>
|
|
108
|
+
* - entityModel<br>
|
|
109
|
+
* - entityType
|
|
110
|
+
* @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>
|
|
111
|
+
* The orderby can be applied to the following fields:<br>
|
|
112
|
+
* - entityClass<br>
|
|
113
|
+
* - entityModel<br>
|
|
114
|
+
* - entityType
|
|
115
|
+
* @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.
|
|
116
|
+
- entityClass
|
|
117
|
+
- entityModel
|
|
118
|
+
- entityType
|
|
119
|
+
* @param {Object} args Additional Arguments
|
|
120
|
+
* @return {Promise<ListEntitiesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListEntitiesApiResponse } and HTTP response
|
|
121
|
+
*/
|
|
122
|
+
}, {
|
|
123
|
+
key: "listEntities",
|
|
124
|
+
value: function listEntities(opts) {
|
|
125
|
+
var _this2 = this;
|
|
126
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
127
|
+
opts = opts || {};
|
|
128
|
+
var postBody = null;
|
|
129
|
+
var pathParams = {};
|
|
130
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
131
|
+
'$page': opts['$page']
|
|
132
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
133
|
+
'$limit': opts['$limit']
|
|
134
|
+
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
135
|
+
'$filter': opts['$filter']
|
|
136
|
+
} : {}), opts.hasOwnProperty('$orderby') ? {
|
|
137
|
+
'$orderby': opts['$orderby']
|
|
138
|
+
} : {}), opts.hasOwnProperty('$select') ? {
|
|
139
|
+
'$select': opts['$select']
|
|
140
|
+
} : {});
|
|
141
|
+
var headersToInclude = {};
|
|
142
|
+
Object.keys(argMap).forEach(function (header) {
|
|
143
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
|
|
144
|
+
headersToInclude[header] = argMap[header];
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
148
|
+
var formParams = {};
|
|
149
|
+
var authNames = ['basicAuthScheme'];
|
|
150
|
+
var contentTypes = [];
|
|
151
|
+
var accepts = ['application/json'];
|
|
152
|
+
var returnType = _ListEntitiesApiResponse["default"];
|
|
153
|
+
return this.apiClient.callApi('/api/lifecycle/v4.0.b1/resources/entities', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
154
|
+
}
|
|
155
|
+
}], [{
|
|
156
|
+
key: "ApiClient",
|
|
157
|
+
get:
|
|
158
|
+
/**
|
|
159
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
160
|
+
* their own fetch methods into the SDK
|
|
161
|
+
*/
|
|
162
|
+
function get() {
|
|
163
|
+
return _ApiClient.ApiClient;
|
|
164
|
+
}
|
|
165
|
+
}]);
|
|
166
|
+
}();
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Images service.
|
|
3
|
+
* @version 4.0.1-beta-1
|
|
4
|
+
* @class ImagesApi
|
|
5
|
+
*/
|
|
6
|
+
export class ImagesApi {
|
|
7
|
+
/**
|
|
8
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
9
|
+
* their own fetch methods into the SDK
|
|
10
|
+
*/
|
|
11
|
+
static get ApiClient(): typeof ApiClient;
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new ImagesApi.
|
|
14
|
+
* @alias module:api/ImagesApi
|
|
15
|
+
* @class
|
|
16
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
17
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
18
|
+
*/
|
|
19
|
+
constructor(apiClient?: any);
|
|
20
|
+
apiClient: any;
|
|
21
|
+
/**
|
|
22
|
+
* Get the list of downloaded LCM images.
|
|
23
|
+
* Get the list of downloaded LCM images.
|
|
24
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
25
|
+
* @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.
|
|
26
|
+
|
|
27
|
+
* @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.
|
|
28
|
+
|
|
29
|
+
* @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>
|
|
30
|
+
* 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>
|
|
31
|
+
* The filter can be applied to the following fields:<br>
|
|
32
|
+
* - clusterExtId<br>
|
|
33
|
+
* - entityClass<br>
|
|
34
|
+
* - entityModel<br>
|
|
35
|
+
* - entityVersion
|
|
36
|
+
* @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>
|
|
37
|
+
* The orderby can be applied to the following fields:<br>
|
|
38
|
+
* - entityClass<br>
|
|
39
|
+
* - entityModel<br>
|
|
40
|
+
* - entityVersion
|
|
41
|
+
* @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.
|
|
42
|
+
- entityClass
|
|
43
|
+
- entityModel
|
|
44
|
+
- entityVersion
|
|
45
|
+
|
|
46
|
+
* @param {Object} args Additional Arguments
|
|
47
|
+
* @return {Promise<ListImagesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListImagesApiResponse } and HTTP response
|
|
48
|
+
*/
|
|
49
|
+
listImages(opts: {
|
|
50
|
+
$page: number;
|
|
51
|
+
$limit: number;
|
|
52
|
+
$filter: string;
|
|
53
|
+
$orderby: string;
|
|
54
|
+
$select: string;
|
|
55
|
+
}, ...args: any): Promise<ListImagesApiResponse>;
|
|
56
|
+
#private;
|
|
57
|
+
}
|
|
58
|
+
import ListImagesApiResponse from "../models/lifecycle/v4/resources/ListImagesApiResponse";
|
|
59
|
+
import { ApiClient } from "../ApiClient";
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.ImagesApi = void 0;
|
|
8
|
+
var _ApiClient = require("../ApiClient");
|
|
9
|
+
var _ListImagesApiResponse = _interopRequireDefault(require("../models/lifecycle/v4/resources/ListImagesApiResponse"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
|
+
function _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; }
|
|
14
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
+
function _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); } }
|
|
16
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
20
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
21
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
22
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
23
|
+
function _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"); } /*
|
|
24
|
+
* Nutanix Lifecycle Versioned APIs
|
|
25
|
+
*
|
|
26
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
27
|
+
*
|
|
28
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
29
|
+
*
|
|
30
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
31
|
+
*
|
|
32
|
+
* Do not edit the class manually.
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* Images service.
|
|
37
|
+
* @version 4.0.1-beta-1
|
|
38
|
+
* @class ImagesApi
|
|
39
|
+
*/
|
|
40
|
+
var _headersToSkip = /*#__PURE__*/new WeakMap();
|
|
41
|
+
var ImagesApi = exports.ImagesApi = /*#__PURE__*/function () {
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a new ImagesApi.
|
|
44
|
+
* @alias module:api/ImagesApi
|
|
45
|
+
* @class
|
|
46
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
47
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
48
|
+
*/
|
|
49
|
+
function ImagesApi(apiClient) {
|
|
50
|
+
_classCallCheck(this, ImagesApi);
|
|
51
|
+
_classPrivateFieldInitSpec(this, _headersToSkip, void 0);
|
|
52
|
+
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
53
|
+
_classPrivateFieldSet(_headersToSkip, this, new Set());
|
|
54
|
+
_classPrivateFieldGet(_headersToSkip, this).add('authorization');
|
|
55
|
+
_classPrivateFieldGet(_headersToSkip, this).add('cookie');
|
|
56
|
+
_classPrivateFieldGet(_headersToSkip, this).add('host');
|
|
57
|
+
_classPrivateFieldGet(_headersToSkip, this).add('user-agent');
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Get the list of downloaded LCM images.
|
|
62
|
+
* Get the list of downloaded LCM images.
|
|
63
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
64
|
+
* @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.
|
|
65
|
+
* @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.
|
|
66
|
+
* @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>
|
|
67
|
+
* 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>
|
|
68
|
+
* The filter can be applied to the following fields:<br>
|
|
69
|
+
* - clusterExtId<br>
|
|
70
|
+
* - entityClass<br>
|
|
71
|
+
* - entityModel<br>
|
|
72
|
+
* - entityVersion
|
|
73
|
+
* @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>
|
|
74
|
+
* The orderby can be applied to the following fields:<br>
|
|
75
|
+
* - entityClass<br>
|
|
76
|
+
* - entityModel<br>
|
|
77
|
+
* - entityVersion
|
|
78
|
+
* @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.
|
|
79
|
+
- entityClass
|
|
80
|
+
- entityModel
|
|
81
|
+
- entityVersion
|
|
82
|
+
* @param {Object} args Additional Arguments
|
|
83
|
+
* @return {Promise<ListImagesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListImagesApiResponse } and HTTP response
|
|
84
|
+
*/
|
|
85
|
+
return _createClass(ImagesApi, [{
|
|
86
|
+
key: "listImages",
|
|
87
|
+
value: function listImages(opts) {
|
|
88
|
+
var _this = this;
|
|
89
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
90
|
+
opts = opts || {};
|
|
91
|
+
var postBody = null;
|
|
92
|
+
var pathParams = {};
|
|
93
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
94
|
+
'$page': opts['$page']
|
|
95
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
96
|
+
'$limit': opts['$limit']
|
|
97
|
+
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
98
|
+
'$filter': opts['$filter']
|
|
99
|
+
} : {}), opts.hasOwnProperty('$orderby') ? {
|
|
100
|
+
'$orderby': opts['$orderby']
|
|
101
|
+
} : {}), opts.hasOwnProperty('$select') ? {
|
|
102
|
+
'$select': opts['$select']
|
|
103
|
+
} : {});
|
|
104
|
+
var headersToInclude = {};
|
|
105
|
+
Object.keys(argMap).forEach(function (header) {
|
|
106
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
|
|
107
|
+
headersToInclude[header] = argMap[header];
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
111
|
+
var formParams = {};
|
|
112
|
+
var authNames = ['basicAuthScheme'];
|
|
113
|
+
var contentTypes = [];
|
|
114
|
+
var accepts = ['application/json'];
|
|
115
|
+
var returnType = _ListImagesApiResponse["default"];
|
|
116
|
+
return this.apiClient.callApi('/api/lifecycle/v4.0.b1/resources/images', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
117
|
+
}
|
|
118
|
+
}], [{
|
|
119
|
+
key: "ApiClient",
|
|
120
|
+
get:
|
|
121
|
+
/**
|
|
122
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
123
|
+
* their own fetch methods into the SDK
|
|
124
|
+
*/
|
|
125
|
+
function get() {
|
|
126
|
+
return _ApiClient.ApiClient;
|
|
127
|
+
}
|
|
128
|
+
}]);
|
|
129
|
+
}();
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inventory service.
|
|
3
|
+
* @version 4.0.1-beta-1
|
|
4
|
+
* @class InventoryApi
|
|
5
|
+
*/
|
|
6
|
+
export class InventoryApi {
|
|
7
|
+
/**
|
|
8
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
9
|
+
* their own fetch methods into the SDK
|
|
10
|
+
*/
|
|
11
|
+
static get ApiClient(): typeof ApiClient;
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new InventoryApi.
|
|
14
|
+
* @alias module:api/InventoryApi
|
|
15
|
+
* @class
|
|
16
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
17
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
18
|
+
*/
|
|
19
|
+
constructor(apiClient?: any);
|
|
20
|
+
apiClient: any;
|
|
21
|
+
/**
|
|
22
|
+
* Perform an inventory operation to identify/scan entities on the cluster that can be updated through LCM.
|
|
23
|
+
* Perform an LCM inventory operation.
|
|
24
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
25
|
+
* @param { String } opts.xClusterId Cluster uuid on which the resource is present or operation is being performed.
|
|
26
|
+
* @param {Object} args Additional Arguments
|
|
27
|
+
* @return {Promise<InventoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link InventoryApiResponse } and HTTP response
|
|
28
|
+
*/
|
|
29
|
+
performInventory(opts: {
|
|
30
|
+
xClusterId: string;
|
|
31
|
+
}, ...args: any): Promise<InventoryApiResponse>;
|
|
32
|
+
#private;
|
|
33
|
+
}
|
|
34
|
+
import InventoryApiResponse from "../models/lifecycle/v4/operations/InventoryApiResponse";
|
|
35
|
+
import { ApiClient } from "../ApiClient";
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.InventoryApi = void 0;
|
|
8
|
+
var _ApiClient = require("../ApiClient");
|
|
9
|
+
var _InventoryApiResponse = _interopRequireDefault(require("../models/lifecycle/v4/operations/InventoryApiResponse"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
|
+
function _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; }
|
|
14
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
+
function _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); } }
|
|
16
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
20
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
21
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
22
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
23
|
+
function _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"); } /*
|
|
24
|
+
* Nutanix Lifecycle Versioned APIs
|
|
25
|
+
*
|
|
26
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
27
|
+
*
|
|
28
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
29
|
+
*
|
|
30
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
31
|
+
*
|
|
32
|
+
* Do not edit the class manually.
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* Inventory service.
|
|
37
|
+
* @version 4.0.1-beta-1
|
|
38
|
+
* @class InventoryApi
|
|
39
|
+
*/
|
|
40
|
+
var _headersToSkip = /*#__PURE__*/new WeakMap();
|
|
41
|
+
var InventoryApi = exports.InventoryApi = /*#__PURE__*/function () {
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a new InventoryApi.
|
|
44
|
+
* @alias module:api/InventoryApi
|
|
45
|
+
* @class
|
|
46
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
47
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
48
|
+
*/
|
|
49
|
+
function InventoryApi(apiClient) {
|
|
50
|
+
_classCallCheck(this, InventoryApi);
|
|
51
|
+
_classPrivateFieldInitSpec(this, _headersToSkip, void 0);
|
|
52
|
+
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
53
|
+
_classPrivateFieldSet(_headersToSkip, this, new Set());
|
|
54
|
+
_classPrivateFieldGet(_headersToSkip, this).add('authorization');
|
|
55
|
+
_classPrivateFieldGet(_headersToSkip, this).add('cookie');
|
|
56
|
+
_classPrivateFieldGet(_headersToSkip, this).add('host');
|
|
57
|
+
_classPrivateFieldGet(_headersToSkip, this).add('user-agent');
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Perform an inventory operation to identify/scan entities on the cluster that can be updated through LCM.
|
|
62
|
+
* Perform an LCM inventory operation.
|
|
63
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
64
|
+
* @param { String } opts.xClusterId Cluster uuid on which the resource is present or operation is being performed.
|
|
65
|
+
* @param {Object} args Additional Arguments
|
|
66
|
+
* @return {Promise<InventoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link InventoryApiResponse } and HTTP response
|
|
67
|
+
*/
|
|
68
|
+
return _createClass(InventoryApi, [{
|
|
69
|
+
key: "performInventory",
|
|
70
|
+
value: function performInventory(opts) {
|
|
71
|
+
var _this = this;
|
|
72
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
73
|
+
opts = opts || {};
|
|
74
|
+
var postBody = null;
|
|
75
|
+
var pathParams = {};
|
|
76
|
+
var queryParams = {};
|
|
77
|
+
var headersToInclude = {};
|
|
78
|
+
Object.keys(argMap).forEach(function (header) {
|
|
79
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
|
|
80
|
+
headersToInclude[header] = argMap[header];
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
var headerParams = _objectSpread({
|
|
84
|
+
'X-Cluster-Id': opts['X-Cluster-Id']
|
|
85
|
+
}, headersToInclude);
|
|
86
|
+
var formParams = {};
|
|
87
|
+
var authNames = ['basicAuthScheme'];
|
|
88
|
+
var contentTypes = [];
|
|
89
|
+
var accepts = ['application/json'];
|
|
90
|
+
var returnType = _InventoryApiResponse["default"];
|
|
91
|
+
return this.apiClient.callApi('/api/lifecycle/v4.0.b1/operations/$actions/inventory', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
92
|
+
}
|
|
93
|
+
}], [{
|
|
94
|
+
key: "ApiClient",
|
|
95
|
+
get:
|
|
96
|
+
/**
|
|
97
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
98
|
+
* their own fetch methods into the SDK
|
|
99
|
+
*/
|
|
100
|
+
function get() {
|
|
101
|
+
return _ApiClient.ApiClient;
|
|
102
|
+
}
|
|
103
|
+
}]);
|
|
104
|
+
}();
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notifications service.
|
|
3
|
+
* @version 4.0.1-beta-1
|
|
4
|
+
* @class NotificationsApi
|
|
5
|
+
*/
|
|
6
|
+
export class NotificationsApi {
|
|
7
|
+
/**
|
|
8
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
9
|
+
* their own fetch methods into the SDK
|
|
10
|
+
*/
|
|
11
|
+
static get ApiClient(): typeof ApiClient;
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a new NotificationsApi.
|
|
14
|
+
* @alias module:api/NotificationsApi
|
|
15
|
+
* @class
|
|
16
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
17
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
18
|
+
*/
|
|
19
|
+
constructor(apiClient?: any);
|
|
20
|
+
apiClient: any;
|
|
21
|
+
/**
|
|
22
|
+
* Compute LCM upgrade plan and notifications for a set of entities.
|
|
23
|
+
* Compute LCM upgrade plan and notifications, given a set of entities to update along with a target version.
|
|
24
|
+
* @param { Partial<Array> } body specification
|
|
25
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
26
|
+
* @param { Array } opts.body
|
|
27
|
+
* @param { String } opts.xClusterId Cluster uuid on which the resource is present or operation is being performed.
|
|
28
|
+
* @param {Object} args Additional Arguments
|
|
29
|
+
* @return {Promise<ComputeNotificationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ComputeNotificationsApiResponse } and HTTP response
|
|
30
|
+
*/
|
|
31
|
+
computeNotifications(body: Partial<any[]>, opts: {
|
|
32
|
+
body: any[];
|
|
33
|
+
xClusterId: string;
|
|
34
|
+
}, ...args: any): Promise<ComputeNotificationsApiResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Get LCM upgrade notification details for specified resource UUID.
|
|
37
|
+
* LCM upgrade notification details for UUID.
|
|
38
|
+
* @param { String } extId UUID of LCM Upgrade Notification resource.
|
|
39
|
+
* @param {Object} args Additional Arguments
|
|
40
|
+
* @return {Promise<GetNotificationsByIdApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetNotificationsByIdApiResponse } and HTTP response
|
|
41
|
+
*/
|
|
42
|
+
getNotificationById(extId: string, ...args: any): Promise<GetNotificationsByIdApiResponse>;
|
|
43
|
+
#private;
|
|
44
|
+
}
|
|
45
|
+
import ComputeNotificationsApiResponse from "../models/lifecycle/v4/operations/ComputeNotificationsApiResponse";
|
|
46
|
+
import GetNotificationsByIdApiResponse from "../models/lifecycle/v4/resources/GetNotificationsByIdApiResponse";
|
|
47
|
+
import { ApiClient } from "../ApiClient";
|