@nutanix-scratch/lifecycle-js-client 4.0.1-beta.1 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +202 -49
- package/README.md +37 -21
- package/dist/Ntnx-Lifecycle-js-client-prod.js +1 -1
- package/dist/Ntnx-Lifecycle-js-client.js +317 -75
- package/dist/es/ApiClient.d.ts +8 -1
- package/dist/es/ApiClient.js +246 -191
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +10 -10
- package/dist/es/apis/bundles-endpoints.d.ts +83 -0
- package/dist/es/apis/bundles-endpoints.js +241 -0
- package/dist/es/apis/config-endpoints.d.ts +1 -3
- package/dist/es/apis/config-endpoints.js +21 -18
- package/dist/es/apis/entities-endpoints.d.ts +21 -3
- package/dist/es/apis/entities-endpoints.js +68 -17
- package/dist/es/apis/images-endpoints.d.ts +1 -1
- package/dist/es/apis/images-endpoints.js +13 -13
- package/dist/es/apis/inventory-endpoints.d.ts +1 -1
- package/dist/es/apis/inventory-endpoints.js +14 -14
- package/dist/es/apis/lcmsummaries-endpoints.d.ts +74 -0
- package/dist/es/apis/lcmsummaries-endpoints.js +172 -0
- package/dist/es/apis/notifications-endpoints.d.ts +6 -7
- package/dist/es/apis/notifications-endpoints.js +25 -22
- package/dist/es/apis/prechecks-endpoints.d.ts +1 -3
- package/dist/es/apis/prechecks-endpoints.js +18 -15
- package/dist/es/apis/recommendations-endpoints.d.ts +4 -6
- package/dist/es/apis/recommendations-endpoints.js +23 -20
- package/dist/es/apis/status-endpoints.d.ts +1 -1
- package/dist/es/apis/status-endpoints.js +14 -14
- package/dist/es/apis/upgrades-endpoints.d.ts +1 -3
- package/dist/es/apis/upgrades-endpoints.js +18 -15
- package/dist/es/index.d.ts +47 -3
- package/dist/es/index.js +179 -3
- package/dist/es/models/common/v1/config/Flag.d.ts +32 -26
- package/dist/es/models/common/v1/config/Flag.js +66 -22
- package/dist/es/models/common/v1/config/KVPair.d.ts +35 -26
- package/dist/es/models/common/v1/config/KVPair.js +71 -25
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/es/models/common/v1/config/Message.d.ts +41 -38
- package/dist/es/models/common/v1/config/Message.js +58 -26
- package/dist/es/models/common/v1/config/MessageSeverity.js +8 -8
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +22 -20
- package/dist/es/models/common/v1/config/TenantAwareModel.js +52 -20
- package/dist/es/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/es/models/common/v1/response/ApiLink.js +54 -22
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +72 -28
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
- package/dist/es/models/lifecycle/v4/common/AvailableVersionStatus.js +18 -12
- package/dist/es/models/lifecycle/v4/common/CheckSumType.js +9 -9
- package/dist/es/models/lifecycle/v4/common/DeploySpec.d.ts +86 -0
- package/dist/es/models/lifecycle/v4/common/DeploySpec.js +293 -0
- package/dist/es/models/lifecycle/v4/common/EntityBaseModel.d.ts +44 -38
- package/dist/es/models/lifecycle/v4/common/EntityBaseModel.js +109 -37
- package/dist/es/models/lifecycle/v4/common/EntityDeploySpec.d.ts +39 -19
- package/dist/es/models/lifecycle/v4/common/EntityDeploySpec.js +52 -20
- package/dist/es/models/lifecycle/v4/common/EntityType.js +8 -8
- package/dist/es/models/lifecycle/v4/common/EntityUpdateSpec.d.ts +30 -28
- package/dist/es/models/lifecycle/v4/common/EntityUpdateSpec.js +64 -26
- package/dist/es/models/lifecycle/v4/common/HypervisorType.js +8 -8
- package/dist/es/models/lifecycle/v4/common/InProgressOpDetails.d.ts +63 -0
- package/dist/es/models/lifecycle/v4/common/InProgressOpDetails.js +313 -0
- package/dist/es/models/lifecycle/v4/common/LcmMd5Sum.d.ts +62 -0
- package/dist/es/models/lifecycle/v4/common/LcmMd5Sum.js +284 -0
- package/dist/es/models/lifecycle/v4/common/LcmSha256Sum.d.ts +62 -0
- package/dist/es/models/lifecycle/v4/common/LcmSha256Sum.js +284 -0
- package/dist/es/models/lifecycle/v4/common/LocationInfo.d.ts +31 -26
- package/dist/es/models/lifecycle/v4/common/LocationInfo.js +57 -22
- package/dist/es/models/lifecycle/v4/common/LocationType.js +9 -9
- package/dist/es/models/lifecycle/v4/common/ManagementServer.d.ts +44 -42
- package/dist/es/models/lifecycle/v4/common/ManagementServer.js +77 -33
- package/dist/es/models/lifecycle/v4/common/NotificationType.js +8 -8
- package/dist/es/models/lifecycle/v4/common/OperationType.js +8 -8
- package/dist/es/models/lifecycle/v4/common/PrechecksSpec.d.ts +59 -35
- package/dist/es/models/lifecycle/v4/common/PrechecksSpec.js +61 -26
- package/dist/es/models/lifecycle/v4/common/PreloadSpec.d.ts +69 -0
- package/dist/es/models/lifecycle/v4/common/PreloadSpec.js +293 -0
- package/dist/es/models/lifecycle/v4/common/SystemAutoMgmtFlag.js +8 -8
- package/dist/es/models/lifecycle/v4/common/UpgradeSpec.d.ts +35 -21
- package/dist/es/models/lifecycle/v4/common/UpgradeSpec.js +78 -30
- package/dist/es/models/lifecycle/v4/error/AppMessage.d.ts +57 -48
- package/dist/es/models/lifecycle/v4/error/AppMessage.js +62 -30
- package/dist/es/models/lifecycle/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/es/models/lifecycle/v4/error/ErrorResponse.js +66 -26
- package/dist/es/models/lifecycle/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/es/models/lifecycle/v4/error/SchemaValidationError.js +63 -30
- package/dist/es/models/lifecycle/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/es/models/lifecycle/v4/error/SchemaValidationErrorMessage.js +56 -24
- package/dist/es/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/operations/DeployArtifactsApiResponse.d.ts +99 -0
- package/dist/es/models/lifecycle/v4/operations/DeployArtifactsApiResponse.js +343 -0
- package/dist/es/models/lifecycle/v4/operations/InventoryApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/operations/InventoryApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/operations/PrechecksApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/operations/PrechecksApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/operations/PreloadArtifactsApiResponse.d.ts +99 -0
- package/dist/es/models/lifecycle/v4/operations/PreloadArtifactsApiResponse.js +343 -0
- package/dist/es/models/lifecycle/v4/operations/UpgradeApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/operations/UpgradeApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/AvailableVersion.d.ts +114 -85
- package/dist/es/models/lifecycle/v4/resources/AvailableVersion.js +89 -44
- package/dist/es/models/lifecycle/v4/resources/Bundle.d.ts +159 -0
- package/dist/es/models/lifecycle/v4/resources/Bundle.js +551 -0
- package/dist/es/models/lifecycle/v4/resources/BundleType.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/resources/BundleType.js +97 -0
- package/dist/es/models/lifecycle/v4/resources/BundleVendor.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/resources/BundleVendor.js +85 -0
- package/dist/es/models/lifecycle/v4/resources/Capability.d.ts +19 -0
- package/dist/es/models/lifecycle/v4/resources/Capability.js +79 -0
- package/dist/es/models/lifecycle/v4/resources/Config.d.ts +80 -74
- package/dist/es/models/lifecycle/v4/resources/Config.js +101 -48
- package/dist/es/models/lifecycle/v4/resources/ConnectivityType.js +8 -8
- package/dist/es/models/lifecycle/v4/resources/CreateBundleApiResponse.d.ts +102 -0
- package/dist/es/models/lifecycle/v4/resources/CreateBundleApiResponse.js +343 -0
- package/dist/es/models/lifecycle/v4/resources/DeleteBundleByIdApiResponse.d.ts +99 -0
- package/dist/es/models/lifecycle/v4/resources/DeleteBundleByIdApiResponse.js +343 -0
- package/dist/es/models/lifecycle/v4/resources/DependentEntity.d.ts +31 -19
- package/dist/es/models/lifecycle/v4/resources/DependentEntity.js +102 -29
- package/dist/es/models/lifecycle/v4/resources/DeployableVersion.d.ts +37 -25
- package/dist/es/models/lifecycle/v4/resources/DeployableVersion.js +107 -31
- package/dist/es/models/lifecycle/v4/resources/Entity.d.ts +169 -78
- package/dist/es/models/lifecycle/v4/resources/Entity.js +181 -49
- package/dist/es/models/lifecycle/v4/resources/FrameworkVersionInfo.d.ts +34 -32
- package/dist/es/models/lifecycle/v4/resources/FrameworkVersionInfo.js +62 -24
- package/dist/es/models/lifecycle/v4/resources/GetBundleByIdApiResponse.d.ts +99 -0
- package/dist/es/models/lifecycle/v4/resources/GetBundleByIdApiResponse.js +343 -0
- package/dist/es/models/lifecycle/v4/resources/GetConfigApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/resources/GetConfigApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/GetEntityByIdApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/GetLcmSummaryByIdApiResponse.d.ts +99 -0
- package/dist/es/models/lifecycle/v4/resources/GetLcmSummaryByIdApiResponse.js +343 -0
- package/dist/es/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.d.ts +68 -25
- package/dist/es/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/GetStatusApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/resources/GetStatusApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/Image.d.ts +69 -55
- package/dist/es/models/lifecycle/v4/resources/Image.js +122 -54
- package/dist/es/models/lifecycle/v4/resources/ImageFile.d.ts +52 -50
- package/dist/es/models/lifecycle/v4/resources/ImageFile.js +73 -32
- package/dist/es/models/lifecycle/v4/resources/InProgressOpInfo.d.ts +29 -26
- package/dist/es/models/lifecycle/v4/resources/InProgressOpInfo.js +54 -22
- package/dist/es/models/lifecycle/v4/resources/LcmSummary.d.ts +103 -0
- package/dist/es/models/lifecycle/v4/resources/LcmSummary.js +493 -0
- package/dist/es/models/lifecycle/v4/resources/ListBundlesApiResponse.d.ts +99 -0
- package/dist/es/models/lifecycle/v4/resources/ListBundlesApiResponse.js +365 -0
- package/dist/es/models/lifecycle/v4/resources/ListEntitiesApiResponse.d.ts +69 -25
- package/dist/es/models/lifecycle/v4/resources/ListEntitiesApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/ListImagesApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/resources/ListImagesApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/ListLcmSummariesApiResponse.d.ts +99 -0
- package/dist/es/models/lifecycle/v4/resources/ListLcmSummariesApiResponse.js +365 -0
- package/dist/es/models/lifecycle/v4/resources/Notification.d.ts +61 -20
- package/dist/es/models/lifecycle/v4/resources/Notification.js +77 -30
- package/dist/es/models/lifecycle/v4/resources/NotificationDetail.d.ts +29 -26
- package/dist/es/models/lifecycle/v4/resources/NotificationDetail.js +57 -22
- package/dist/es/models/lifecycle/v4/resources/NotificationItem.d.ts +64 -43
- package/dist/es/models/lifecycle/v4/resources/NotificationItem.js +116 -37
- package/dist/es/models/lifecycle/v4/resources/NotificationsSpec.d.ts +69 -0
- package/dist/es/models/lifecycle/v4/resources/NotificationsSpec.js +293 -0
- package/dist/es/models/lifecycle/v4/resources/RecommendationResult.d.ts +177 -44
- package/dist/es/models/lifecycle/v4/resources/RecommendationResult.js +85 -38
- package/dist/es/models/lifecycle/v4/resources/RecommendationSpec.d.ts +25 -21
- package/dist/es/models/lifecycle/v4/resources/RecommendationSpec.js +57 -22
- package/dist/es/models/lifecycle/v4/resources/SeverityLevel.js +8 -8
- package/dist/es/models/lifecycle/v4/resources/StatusInfo.d.ts +54 -52
- package/dist/es/models/lifecycle/v4/resources/StatusInfo.js +107 -77
- package/dist/es/models/lifecycle/v4/resources/TargetEntity.d.ts +44 -32
- package/dist/es/models/lifecycle/v4/resources/TargetEntity.js +114 -35
- package/dist/es/models/lifecycle/v4/resources/UpdateConfigApiResponse.d.ts +65 -25
- package/dist/es/models/lifecycle/v4/resources/UpdateConfigApiResponse.js +60 -28
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntity.d.ts +31 -19
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntity.js +102 -29
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntityResult.d.ts +55 -27
- package/dist/es/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js +59 -24
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +22 -20
- package/dist/es/models/prism/v4/config/TaskReference.js +59 -23
- package/dist/es/models/validation/ValidationError.js +6 -6
- package/dist/es/utils/ValidationUtils.js +6 -6
- package/dist/lib/ApiClient.d.ts +8 -1
- package/dist/lib/ApiClient.js +246 -191
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +10 -10
- package/dist/lib/apis/bundles-endpoints.d.ts +83 -0
- package/dist/lib/apis/bundles-endpoints.js +241 -0
- package/dist/lib/apis/config-endpoints.d.ts +1 -3
- package/dist/lib/apis/config-endpoints.js +21 -18
- package/dist/lib/apis/entities-endpoints.d.ts +21 -3
- package/dist/lib/apis/entities-endpoints.js +68 -17
- package/dist/lib/apis/images-endpoints.d.ts +1 -1
- package/dist/lib/apis/images-endpoints.js +13 -13
- package/dist/lib/apis/inventory-endpoints.d.ts +1 -1
- package/dist/lib/apis/inventory-endpoints.js +14 -14
- package/dist/lib/apis/lcmsummaries-endpoints.d.ts +74 -0
- package/dist/lib/apis/lcmsummaries-endpoints.js +172 -0
- package/dist/lib/apis/notifications-endpoints.d.ts +6 -7
- package/dist/lib/apis/notifications-endpoints.js +25 -22
- package/dist/lib/apis/prechecks-endpoints.d.ts +1 -3
- package/dist/lib/apis/prechecks-endpoints.js +18 -15
- package/dist/lib/apis/recommendations-endpoints.d.ts +4 -6
- package/dist/lib/apis/recommendations-endpoints.js +23 -20
- package/dist/lib/apis/status-endpoints.d.ts +1 -1
- package/dist/lib/apis/status-endpoints.js +14 -14
- package/dist/lib/apis/upgrades-endpoints.d.ts +1 -3
- package/dist/lib/apis/upgrades-endpoints.js +18 -15
- package/dist/lib/index.d.ts +47 -3
- package/dist/lib/index.js +179 -3
- package/dist/lib/models/common/v1/config/Flag.d.ts +32 -26
- package/dist/lib/models/common/v1/config/Flag.js +66 -22
- package/dist/lib/models/common/v1/config/KVPair.d.ts +35 -26
- package/dist/lib/models/common/v1/config/KVPair.js +71 -25
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +41 -38
- package/dist/lib/models/common/v1/config/Message.js +58 -26
- package/dist/lib/models/common/v1/config/MessageSeverity.js +8 -8
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +22 -20
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +52 -20
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/lib/models/common/v1/response/ApiLink.js +54 -22
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +72 -28
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
- package/dist/lib/models/lifecycle/v4/common/AvailableVersionStatus.js +18 -12
- package/dist/lib/models/lifecycle/v4/common/CheckSumType.js +9 -9
- package/dist/lib/models/lifecycle/v4/common/DeploySpec.d.ts +86 -0
- package/dist/lib/models/lifecycle/v4/common/DeploySpec.js +293 -0
- package/dist/lib/models/lifecycle/v4/common/EntityBaseModel.d.ts +44 -38
- package/dist/lib/models/lifecycle/v4/common/EntityBaseModel.js +109 -37
- package/dist/lib/models/lifecycle/v4/common/EntityDeploySpec.d.ts +39 -19
- package/dist/lib/models/lifecycle/v4/common/EntityDeploySpec.js +52 -20
- package/dist/lib/models/lifecycle/v4/common/EntityType.js +8 -8
- package/dist/lib/models/lifecycle/v4/common/EntityUpdateSpec.d.ts +30 -28
- package/dist/lib/models/lifecycle/v4/common/EntityUpdateSpec.js +64 -26
- package/dist/lib/models/lifecycle/v4/common/HypervisorType.js +8 -8
- package/dist/lib/models/lifecycle/v4/common/InProgressOpDetails.d.ts +63 -0
- package/dist/lib/models/lifecycle/v4/common/InProgressOpDetails.js +313 -0
- package/dist/lib/models/lifecycle/v4/common/LcmMd5Sum.d.ts +62 -0
- package/dist/lib/models/lifecycle/v4/common/LcmMd5Sum.js +284 -0
- package/dist/lib/models/lifecycle/v4/common/LcmSha256Sum.d.ts +62 -0
- package/dist/lib/models/lifecycle/v4/common/LcmSha256Sum.js +284 -0
- package/dist/lib/models/lifecycle/v4/common/LocationInfo.d.ts +31 -26
- package/dist/lib/models/lifecycle/v4/common/LocationInfo.js +57 -22
- package/dist/lib/models/lifecycle/v4/common/LocationType.js +9 -9
- package/dist/lib/models/lifecycle/v4/common/ManagementServer.d.ts +44 -42
- package/dist/lib/models/lifecycle/v4/common/ManagementServer.js +77 -33
- package/dist/lib/models/lifecycle/v4/common/NotificationType.js +8 -8
- package/dist/lib/models/lifecycle/v4/common/OperationType.js +8 -8
- package/dist/lib/models/lifecycle/v4/common/PrechecksSpec.d.ts +59 -35
- package/dist/lib/models/lifecycle/v4/common/PrechecksSpec.js +61 -26
- package/dist/lib/models/lifecycle/v4/common/PreloadSpec.d.ts +69 -0
- package/dist/lib/models/lifecycle/v4/common/PreloadSpec.js +293 -0
- package/dist/lib/models/lifecycle/v4/common/SystemAutoMgmtFlag.js +8 -8
- package/dist/lib/models/lifecycle/v4/common/UpgradeSpec.d.ts +35 -21
- package/dist/lib/models/lifecycle/v4/common/UpgradeSpec.js +78 -30
- package/dist/lib/models/lifecycle/v4/error/AppMessage.d.ts +57 -48
- package/dist/lib/models/lifecycle/v4/error/AppMessage.js +62 -30
- package/dist/lib/models/lifecycle/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/lib/models/lifecycle/v4/error/ErrorResponse.js +66 -26
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationError.js +63 -30
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/lib/models/lifecycle/v4/error/SchemaValidationErrorMessage.js +56 -24
- package/dist/lib/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/operations/ComputeNotificationsApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/operations/ComputeRecommendationsApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/operations/DeployArtifactsApiResponse.d.ts +99 -0
- package/dist/lib/models/lifecycle/v4/operations/DeployArtifactsApiResponse.js +343 -0
- package/dist/lib/models/lifecycle/v4/operations/InventoryApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/operations/InventoryApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/operations/PrechecksApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/operations/PrechecksApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/operations/PreloadArtifactsApiResponse.d.ts +99 -0
- package/dist/lib/models/lifecycle/v4/operations/PreloadArtifactsApiResponse.js +343 -0
- package/dist/lib/models/lifecycle/v4/operations/UpgradeApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/operations/UpgradeApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/AvailableVersion.d.ts +114 -85
- package/dist/lib/models/lifecycle/v4/resources/AvailableVersion.js +89 -44
- package/dist/lib/models/lifecycle/v4/resources/Bundle.d.ts +159 -0
- package/dist/lib/models/lifecycle/v4/resources/Bundle.js +551 -0
- package/dist/lib/models/lifecycle/v4/resources/BundleType.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/resources/BundleType.js +97 -0
- package/dist/lib/models/lifecycle/v4/resources/BundleVendor.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/resources/BundleVendor.js +85 -0
- package/dist/lib/models/lifecycle/v4/resources/Capability.d.ts +19 -0
- package/dist/lib/models/lifecycle/v4/resources/Capability.js +79 -0
- package/dist/lib/models/lifecycle/v4/resources/Config.d.ts +80 -74
- package/dist/lib/models/lifecycle/v4/resources/Config.js +101 -48
- package/dist/lib/models/lifecycle/v4/resources/ConnectivityType.js +8 -8
- package/dist/lib/models/lifecycle/v4/resources/CreateBundleApiResponse.d.ts +102 -0
- package/dist/lib/models/lifecycle/v4/resources/CreateBundleApiResponse.js +343 -0
- package/dist/lib/models/lifecycle/v4/resources/DeleteBundleByIdApiResponse.d.ts +99 -0
- package/dist/lib/models/lifecycle/v4/resources/DeleteBundleByIdApiResponse.js +343 -0
- package/dist/lib/models/lifecycle/v4/resources/DependentEntity.d.ts +31 -19
- package/dist/lib/models/lifecycle/v4/resources/DependentEntity.js +102 -29
- package/dist/lib/models/lifecycle/v4/resources/DeployableVersion.d.ts +37 -25
- package/dist/lib/models/lifecycle/v4/resources/DeployableVersion.js +107 -31
- package/dist/lib/models/lifecycle/v4/resources/Entity.d.ts +169 -78
- package/dist/lib/models/lifecycle/v4/resources/Entity.js +181 -49
- package/dist/lib/models/lifecycle/v4/resources/FrameworkVersionInfo.d.ts +34 -32
- package/dist/lib/models/lifecycle/v4/resources/FrameworkVersionInfo.js +62 -24
- package/dist/lib/models/lifecycle/v4/resources/GetBundleByIdApiResponse.d.ts +99 -0
- package/dist/lib/models/lifecycle/v4/resources/GetBundleByIdApiResponse.js +343 -0
- package/dist/lib/models/lifecycle/v4/resources/GetConfigApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/resources/GetConfigApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/GetEntityByIdApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/resources/GetEntityByIdApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/GetLcmSummaryByIdApiResponse.d.ts +99 -0
- package/dist/lib/models/lifecycle/v4/resources/GetLcmSummaryByIdApiResponse.js +343 -0
- package/dist/lib/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.d.ts +68 -25
- package/dist/lib/models/lifecycle/v4/resources/GetNotificationsByIdApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/resources/GetRecommendationByIdApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/GetStatusApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/resources/GetStatusApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/Image.d.ts +69 -55
- package/dist/lib/models/lifecycle/v4/resources/Image.js +122 -54
- package/dist/lib/models/lifecycle/v4/resources/ImageFile.d.ts +52 -50
- package/dist/lib/models/lifecycle/v4/resources/ImageFile.js +73 -32
- package/dist/lib/models/lifecycle/v4/resources/InProgressOpInfo.d.ts +29 -26
- package/dist/lib/models/lifecycle/v4/resources/InProgressOpInfo.js +54 -22
- package/dist/lib/models/lifecycle/v4/resources/LcmSummary.d.ts +103 -0
- package/dist/lib/models/lifecycle/v4/resources/LcmSummary.js +493 -0
- package/dist/lib/models/lifecycle/v4/resources/ListBundlesApiResponse.d.ts +99 -0
- package/dist/lib/models/lifecycle/v4/resources/ListBundlesApiResponse.js +365 -0
- package/dist/lib/models/lifecycle/v4/resources/ListEntitiesApiResponse.d.ts +69 -25
- package/dist/lib/models/lifecycle/v4/resources/ListEntitiesApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/ListImagesApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/resources/ListImagesApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/ListLcmSummariesApiResponse.d.ts +99 -0
- package/dist/lib/models/lifecycle/v4/resources/ListLcmSummariesApiResponse.js +365 -0
- package/dist/lib/models/lifecycle/v4/resources/Notification.d.ts +61 -20
- package/dist/lib/models/lifecycle/v4/resources/Notification.js +77 -30
- package/dist/lib/models/lifecycle/v4/resources/NotificationDetail.d.ts +29 -26
- package/dist/lib/models/lifecycle/v4/resources/NotificationDetail.js +57 -22
- package/dist/lib/models/lifecycle/v4/resources/NotificationItem.d.ts +64 -43
- package/dist/lib/models/lifecycle/v4/resources/NotificationItem.js +116 -37
- package/dist/lib/models/lifecycle/v4/resources/NotificationsSpec.d.ts +69 -0
- package/dist/lib/models/lifecycle/v4/resources/NotificationsSpec.js +293 -0
- package/dist/lib/models/lifecycle/v4/resources/RecommendationResult.d.ts +177 -44
- package/dist/lib/models/lifecycle/v4/resources/RecommendationResult.js +85 -38
- package/dist/lib/models/lifecycle/v4/resources/RecommendationSpec.d.ts +25 -21
- package/dist/lib/models/lifecycle/v4/resources/RecommendationSpec.js +57 -22
- package/dist/lib/models/lifecycle/v4/resources/SeverityLevel.js +8 -8
- package/dist/lib/models/lifecycle/v4/resources/StatusInfo.d.ts +54 -52
- package/dist/lib/models/lifecycle/v4/resources/StatusInfo.js +107 -77
- package/dist/lib/models/lifecycle/v4/resources/TargetEntity.d.ts +44 -32
- package/dist/lib/models/lifecycle/v4/resources/TargetEntity.js +114 -35
- package/dist/lib/models/lifecycle/v4/resources/UpdateConfigApiResponse.d.ts +65 -25
- package/dist/lib/models/lifecycle/v4/resources/UpdateConfigApiResponse.js +60 -28
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntity.d.ts +31 -19
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntity.js +102 -29
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntityResult.d.ts +55 -27
- package/dist/lib/models/lifecycle/v4/resources/UpdatedTargetEntityResult.js +59 -24
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +22 -20
- package/dist/lib/models/prism/v4/config/TaskReference.js +59 -23
- package/dist/lib/models/validation/ValidationError.js +6 -6
- package/dist/lib/utils/ValidationUtils.js +6 -6
- package/package.json +3 -3
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _KVPair = _interopRequireDefault(require("../../../common/v1/config/KVPair"));
|
|
8
|
+
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
9
|
+
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
8
10
|
var _EntityBaseModel2 = _interopRequireDefault(require("../common/EntityBaseModel"));
|
|
9
11
|
var _EntityType = _interopRequireDefault(require("../common/EntityType"));
|
|
10
12
|
var _LocationInfo = _interopRequireDefault(require("../common/LocationInfo"));
|
|
@@ -12,38 +14,39 @@ var _AvailableVersion = _interopRequireDefault(require("./AvailableVersion"));
|
|
|
12
14
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
13
15
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
14
16
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
15
|
-
function _interopRequireDefault(
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
18
|
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); }
|
|
17
|
-
function _slicedToArray(
|
|
19
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
18
20
|
function _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."); }
|
|
19
|
-
function _unsupportedIterableToArray(
|
|
20
|
-
function _arrayLikeToArray(
|
|
21
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
22
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
21
23
|
function _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; } }
|
|
22
|
-
function _arrayWithHoles(
|
|
24
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
23
25
|
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; }
|
|
24
26
|
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; }
|
|
25
|
-
function _defineProperty(
|
|
26
|
-
function _classCallCheck(
|
|
27
|
-
function _defineProperties(
|
|
28
|
-
function _createClass(
|
|
27
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
28
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
29
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
30
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
29
31
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
30
32
|
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); }
|
|
31
33
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
32
|
-
function _possibleConstructorReturn(
|
|
33
|
-
function _assertThisInitialized(
|
|
34
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
35
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
34
36
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
35
|
-
function _getPrototypeOf(
|
|
36
|
-
function _inherits(
|
|
37
|
-
function _setPrototypeOf(
|
|
38
|
-
function _classPrivateMethodInitSpec(
|
|
39
|
-
function _checkPrivateRedeclaration(
|
|
40
|
-
|
|
37
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
38
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
39
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
40
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
41
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
42
|
+
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"); } /*
|
|
43
|
+
* Nutanix Lifecycle Management APIs
|
|
41
44
|
*
|
|
42
|
-
* OpenAPI spec version: 4.0.1
|
|
45
|
+
* OpenAPI spec version: 4.0.1
|
|
43
46
|
*
|
|
44
47
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
45
48
|
*
|
|
46
|
-
* Open API Dev Platform Codegen version: 16.
|
|
49
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
47
50
|
*
|
|
48
51
|
* Do not edit the class manually.
|
|
49
52
|
*
|
|
@@ -51,8 +54,9 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
|
51
54
|
/**
|
|
52
55
|
* The Entity model module.
|
|
53
56
|
* @module Ntnx/Entity
|
|
54
|
-
* @version 4.0.1
|
|
57
|
+
* @version 4.0.1
|
|
55
58
|
* @class Entity
|
|
59
|
+
* @extends EntityBaseModel
|
|
56
60
|
*/
|
|
57
61
|
var _Entity_brand = /*#__PURE__*/new WeakSet();
|
|
58
62
|
var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
@@ -74,9 +78,11 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
74
78
|
*/
|
|
75
79
|
_classPrivateMethodInitSpec(_this, _Entity_brand);
|
|
76
80
|
_this.$objectType = "lifecycle.v4.resources.Entity";
|
|
81
|
+
/** @type {object<string, any>} */
|
|
77
82
|
_this.$reserved = {
|
|
78
|
-
'$fv': "v4.r0
|
|
83
|
+
'$fv': "v4.r0"
|
|
79
84
|
};
|
|
85
|
+
/** @type {object<string, any>} */
|
|
80
86
|
_this.$unknownFields = {};
|
|
81
87
|
return _this;
|
|
82
88
|
}
|
|
@@ -95,7 +101,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
95
101
|
value:
|
|
96
102
|
/**
|
|
97
103
|
* Returns Description of an LCM entity.
|
|
98
|
-
* @return {}
|
|
104
|
+
* @return {string}
|
|
99
105
|
*/
|
|
100
106
|
function getEntityDescription() {
|
|
101
107
|
return this.entityDescription;
|
|
@@ -103,7 +109,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
103
109
|
|
|
104
110
|
/**
|
|
105
111
|
* Sets Description of an LCM entity.
|
|
106
|
-
* @param {} entityDescription Description of an LCM entity.
|
|
112
|
+
* @param {string} entityDescription Description of an LCM entity.
|
|
107
113
|
*/
|
|
108
114
|
}, {
|
|
109
115
|
key: "setEntityDescription",
|
|
@@ -112,7 +118,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
112
118
|
}
|
|
113
119
|
|
|
114
120
|
/**
|
|
115
|
-
* @return {}
|
|
121
|
+
* @return {LocationInfo}
|
|
116
122
|
*/
|
|
117
123
|
}, {
|
|
118
124
|
key: "getLocationInfo",
|
|
@@ -121,7 +127,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
121
127
|
}
|
|
122
128
|
|
|
123
129
|
/**
|
|
124
|
-
* @param {} locationInfo
|
|
130
|
+
* @param {LocationInfo} locationInfo
|
|
125
131
|
*/
|
|
126
132
|
}, {
|
|
127
133
|
key: "setLocationInfo",
|
|
@@ -131,7 +137,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
131
137
|
|
|
132
138
|
/**
|
|
133
139
|
* Returns The requested update version of an LCM entity.
|
|
134
|
-
* @return {}
|
|
140
|
+
* @return {string}
|
|
135
141
|
*/
|
|
136
142
|
}, {
|
|
137
143
|
key: "getTargetVersion",
|
|
@@ -141,7 +147,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
141
147
|
|
|
142
148
|
/**
|
|
143
149
|
* Sets The requested update version of an LCM entity.
|
|
144
|
-
* @param {} targetVersion The requested update version of an LCM entity.
|
|
150
|
+
* @param {string} targetVersion The requested update version of an LCM entity.
|
|
145
151
|
*/
|
|
146
152
|
}, {
|
|
147
153
|
key: "setTargetVersion",
|
|
@@ -151,7 +157,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
151
157
|
|
|
152
158
|
/**
|
|
153
159
|
* Returns UTC date and time in RFC-3339 format when the task was last updated.
|
|
154
|
-
* @return {}
|
|
160
|
+
* @return {Date}
|
|
155
161
|
*/
|
|
156
162
|
}, {
|
|
157
163
|
key: "getLastUpdatedTime",
|
|
@@ -161,7 +167,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
161
167
|
|
|
162
168
|
/**
|
|
163
169
|
* Sets UTC date and time in RFC-3339 format when the task was last updated.
|
|
164
|
-
* @param {} lastUpdatedTime UTC date and time in RFC-3339 format when the task was last updated.
|
|
170
|
+
* @param {Date} lastUpdatedTime UTC date and time in RFC-3339 format when the task was last updated.
|
|
165
171
|
*/
|
|
166
172
|
}, {
|
|
167
173
|
key: "setLastUpdatedTime",
|
|
@@ -171,7 +177,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
171
177
|
|
|
172
178
|
/**
|
|
173
179
|
* Returns Unique identifier of an LCM entity e.g. \"HDD serial number\".
|
|
174
|
-
* @return {}
|
|
180
|
+
* @return {string}
|
|
175
181
|
*/
|
|
176
182
|
}, {
|
|
177
183
|
key: "getDeviceId",
|
|
@@ -181,7 +187,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
181
187
|
|
|
182
188
|
/**
|
|
183
189
|
* Sets Unique identifier of an LCM entity e.g. \"HDD serial number\".
|
|
184
|
-
* @param {} deviceId Unique identifier of an LCM entity e.g. \"HDD serial number\".
|
|
190
|
+
* @param {string} deviceId Unique identifier of an LCM entity e.g. \"HDD serial number\".
|
|
185
191
|
*/
|
|
186
192
|
}, {
|
|
187
193
|
key: "setDeviceId",
|
|
@@ -191,7 +197,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
191
197
|
|
|
192
198
|
/**
|
|
193
199
|
* Returns UUID of the group that this LCM entity is part of.
|
|
194
|
-
* @return {}
|
|
200
|
+
* @return {string}
|
|
195
201
|
*/
|
|
196
202
|
}, {
|
|
197
203
|
key: "getGroupUuid",
|
|
@@ -201,7 +207,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
201
207
|
|
|
202
208
|
/**
|
|
203
209
|
* Sets UUID of the group that this LCM entity is part of.
|
|
204
|
-
* @param {} groupUuid UUID of the group that this LCM entity is part of.
|
|
210
|
+
* @param {string} groupUuid UUID of the group that this LCM entity is part of.
|
|
205
211
|
*/
|
|
206
212
|
}, {
|
|
207
213
|
key: "setGroupUuid",
|
|
@@ -211,7 +217,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
211
217
|
|
|
212
218
|
/**
|
|
213
219
|
* Returns Detailed information for the LCM entity. For example, firmware entities contain additional information about NIC and so on.
|
|
214
|
-
* @return {}
|
|
220
|
+
* @return {KVPair[]}
|
|
215
221
|
*/
|
|
216
222
|
}, {
|
|
217
223
|
key: "getEntityDetails",
|
|
@@ -221,7 +227,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
221
227
|
|
|
222
228
|
/**
|
|
223
229
|
* Sets Detailed information for the LCM entity. For example, firmware entities contain additional information about NIC and so on.
|
|
224
|
-
* @param {} entityDetails Detailed information for the LCM entity. For example, firmware entities contain additional information about NIC and so on.
|
|
230
|
+
* @param {KVPair[]} entityDetails Detailed information for the LCM entity. For example, firmware entities contain additional information about NIC and so on.
|
|
225
231
|
*/
|
|
226
232
|
}, {
|
|
227
233
|
key: "setEntityDetails",
|
|
@@ -231,7 +237,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
231
237
|
|
|
232
238
|
/**
|
|
233
239
|
* Returns Component information for the payload based entity.
|
|
234
|
-
* @return {}
|
|
240
|
+
* @return {string[]}
|
|
235
241
|
*/
|
|
236
242
|
}, {
|
|
237
243
|
key: "getChildEntities",
|
|
@@ -241,7 +247,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
241
247
|
|
|
242
248
|
/**
|
|
243
249
|
* Sets Component information for the payload based entity.
|
|
244
|
-
* @param {} childEntities Component information for the payload based entity.
|
|
250
|
+
* @param {string[]} childEntities Component information for the payload based entity.
|
|
245
251
|
*/
|
|
246
252
|
}, {
|
|
247
253
|
key: "setChildEntities",
|
|
@@ -251,7 +257,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
251
257
|
|
|
252
258
|
/**
|
|
253
259
|
* Returns List of available versions for an LCM entity to update.
|
|
254
|
-
* @return {}
|
|
260
|
+
* @return {AvailableVersion[]}
|
|
255
261
|
*/
|
|
256
262
|
}, {
|
|
257
263
|
key: "getAvailableVersions",
|
|
@@ -261,7 +267,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
261
267
|
|
|
262
268
|
/**
|
|
263
269
|
* Sets List of available versions for an LCM entity to update.
|
|
264
|
-
* @param {} availableVersions List of available versions for an LCM entity to update.
|
|
270
|
+
* @param {AvailableVersion[]} availableVersions List of available versions for an LCM entity to update.
|
|
265
271
|
*/
|
|
266
272
|
}, {
|
|
267
273
|
key: "setAvailableVersions",
|
|
@@ -271,7 +277,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
271
277
|
|
|
272
278
|
/**
|
|
273
279
|
* Returns A list of sub-entities applicable to the entity.
|
|
274
|
-
* @return {}
|
|
280
|
+
* @return {EntityBaseModel[]}
|
|
275
281
|
*/
|
|
276
282
|
}, {
|
|
277
283
|
key: "getSubEntities",
|
|
@@ -281,7 +287,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
281
287
|
|
|
282
288
|
/**
|
|
283
289
|
* Sets A list of sub-entities applicable to the entity.
|
|
284
|
-
* @param {} subEntities A list of sub-entities applicable to the entity.
|
|
290
|
+
* @param {EntityBaseModel[]} subEntities A list of sub-entities applicable to the entity.
|
|
285
291
|
*/
|
|
286
292
|
}, {
|
|
287
293
|
key: "setSubEntities",
|
|
@@ -291,7 +297,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
291
297
|
|
|
292
298
|
/**
|
|
293
299
|
* Returns Cluster uuid on which the resource is present or operation is being performed.
|
|
294
|
-
* @return {}
|
|
300
|
+
* @return {string}
|
|
295
301
|
*/
|
|
296
302
|
}, {
|
|
297
303
|
key: "getClusterExtId",
|
|
@@ -301,25 +307,45 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
301
307
|
|
|
302
308
|
/**
|
|
303
309
|
* Sets Cluster uuid on which the resource is present or operation is being performed.
|
|
304
|
-
* @param {} clusterExtId Cluster uuid on which the resource is present or operation is being performed.
|
|
310
|
+
* @param {string} clusterExtId Cluster uuid on which the resource is present or operation is being performed.
|
|
305
311
|
*/
|
|
306
312
|
}, {
|
|
307
313
|
key: "setClusterExtId",
|
|
308
314
|
value: function setClusterExtId(clusterExtId) {
|
|
309
315
|
this.clusterExtId = clusterExtId;
|
|
310
316
|
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Returns Hardware vendor information.
|
|
320
|
+
* @return {string}
|
|
321
|
+
*/
|
|
322
|
+
}, {
|
|
323
|
+
key: "getHardwareVendor",
|
|
324
|
+
value: function getHardwareVendor() {
|
|
325
|
+
return this.hardwareVendor;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Sets Hardware vendor information.
|
|
330
|
+
* @param {string} hardwareVendor Hardware vendor information.
|
|
331
|
+
*/
|
|
332
|
+
}, {
|
|
333
|
+
key: "setHardwareVendor",
|
|
334
|
+
value: function setHardwareVendor(hardwareVendor) {
|
|
335
|
+
this.hardwareVendor = hardwareVendor;
|
|
336
|
+
}
|
|
311
337
|
}, {
|
|
312
338
|
key: "toJson",
|
|
313
339
|
value: function toJson(forMutation) {
|
|
314
340
|
if (forMutation === false) {
|
|
315
|
-
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 ? {
|
|
341
|
+
return _objectSpread(_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 ? {
|
|
316
342
|
'entityDescription': this.getEntityDescription()
|
|
317
343
|
} : {}), typeof this.getLocationInfo() !== 'undefined' && this.getLocationInfo() !== null ? {
|
|
318
344
|
'locationInfo': this.getLocationInfo().toJson(false)
|
|
319
345
|
} : {}), typeof this.getTargetVersion() !== 'undefined' && this.getTargetVersion() !== null ? {
|
|
320
346
|
'targetVersion': this.getTargetVersion()
|
|
321
347
|
} : {}), typeof this.getLastUpdatedTime() !== 'undefined' && this.getLastUpdatedTime() !== null ? {
|
|
322
|
-
'lastUpdatedTime': this.getLastUpdatedTime()
|
|
348
|
+
'lastUpdatedTime': _assertClassBrand(_Entity_brand, this, _handleDateType).call(this, this.getLastUpdatedTime(), false)
|
|
323
349
|
} : {}), typeof this.getDeviceId() !== 'undefined' && this.getDeviceId() !== null ? {
|
|
324
350
|
'deviceId': this.getDeviceId()
|
|
325
351
|
} : {}), typeof this.getGroupUuid() !== 'undefined' && this.getGroupUuid() !== null ? {
|
|
@@ -340,6 +366,8 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
340
366
|
})
|
|
341
367
|
} : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
342
368
|
'clusterExtId': this.getClusterExtId()
|
|
369
|
+
} : {}), typeof this.getHardwareVendor() !== 'undefined' && this.getHardwareVendor() !== null ? {
|
|
370
|
+
'hardwareVendor': this.getHardwareVendor()
|
|
343
371
|
} : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {
|
|
344
372
|
'entityClass': this.getEntityClass()
|
|
345
373
|
} : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {
|
|
@@ -372,6 +400,8 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
372
400
|
})
|
|
373
401
|
} : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
374
402
|
'clusterExtId': this.getClusterExtId()
|
|
403
|
+
} : {}), typeof this.getHardwareVendor() !== 'undefined' && this.getHardwareVendor() !== null ? {
|
|
404
|
+
'hardwareVendor': this.getHardwareVendor()
|
|
375
405
|
} : {}), typeof this.getEntityClass() !== 'undefined' && this.getEntityClass() !== null ? {
|
|
376
406
|
'entityClass': this.getEntityClass()
|
|
377
407
|
} : {}), typeof this.getEntityModel() !== 'undefined' && this.getEntityModel() !== null ? {
|
|
@@ -382,8 +412,6 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
382
412
|
'entityVersion': this.getEntityVersion()
|
|
383
413
|
} : {}), typeof this.getHardwareFamily() !== 'undefined' && this.getHardwareFamily() !== null ? {
|
|
384
414
|
'hardwareFamily': this.getHardwareFamily()
|
|
385
|
-
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
386
|
-
'extId': this.getExtId()
|
|
387
415
|
} : {}), {}, {
|
|
388
416
|
'$reserved': this.get$Reserved(),
|
|
389
417
|
'$objectType': this.get$ObjectType(),
|
|
@@ -432,6 +460,9 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
432
460
|
if (!_ValidationUtils["default"].validateMaxLength(this.entityDescription, 256)) {
|
|
433
461
|
return new _ValidationError["default"]("entityDescription", "does not satisfy required maxLength constraint: 256");
|
|
434
462
|
}
|
|
463
|
+
if (!_ValidationUtils["default"].validateMinLength(this.entityDescription, 1)) {
|
|
464
|
+
return new _ValidationError["default"]("entityDescription", "does not satisfy required minLength constraint: 1");
|
|
465
|
+
}
|
|
435
466
|
}
|
|
436
467
|
if (property === "locationInfo") {
|
|
437
468
|
if (typeof this.locationInfo === 'undefined' || this.locationInfo === null) {
|
|
@@ -442,6 +473,12 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
442
473
|
if (typeof this.targetVersion === 'undefined' || this.targetVersion === null) {
|
|
443
474
|
return new _ValidationError["default"]("targetVersion", "undefined or null");
|
|
444
475
|
}
|
|
476
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.targetVersion, 128)) {
|
|
477
|
+
return new _ValidationError["default"]("targetVersion", "does not satisfy required maxLength constraint: 128");
|
|
478
|
+
}
|
|
479
|
+
if (!_ValidationUtils["default"].validateMinLength(this.targetVersion, 1)) {
|
|
480
|
+
return new _ValidationError["default"]("targetVersion", "does not satisfy required minLength constraint: 1");
|
|
481
|
+
}
|
|
445
482
|
}
|
|
446
483
|
if (property === "lastUpdatedTime") {
|
|
447
484
|
if (typeof this.lastUpdatedTime === 'undefined' || this.lastUpdatedTime === null) {
|
|
@@ -452,6 +489,12 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
452
489
|
if (typeof this.deviceId === 'undefined' || this.deviceId === null) {
|
|
453
490
|
return new _ValidationError["default"]("deviceId", "undefined or null");
|
|
454
491
|
}
|
|
492
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.deviceId, 128)) {
|
|
493
|
+
return new _ValidationError["default"]("deviceId", "does not satisfy required maxLength constraint: 128");
|
|
494
|
+
}
|
|
495
|
+
if (!_ValidationUtils["default"].validateMinLength(this.deviceId, 1)) {
|
|
496
|
+
return new _ValidationError["default"]("deviceId", "does not satisfy required minLength constraint: 1");
|
|
497
|
+
}
|
|
455
498
|
}
|
|
456
499
|
if (property === "groupUuid") {
|
|
457
500
|
if (typeof this.groupUuid === 'undefined' || this.groupUuid === null) {
|
|
@@ -501,11 +544,23 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
501
544
|
return new _ValidationError["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}$/");
|
|
502
545
|
}
|
|
503
546
|
}
|
|
547
|
+
if (property === "hardwareVendor") {
|
|
548
|
+
if (typeof this.hardwareVendor === 'undefined' || this.hardwareVendor === null) {
|
|
549
|
+
return new _ValidationError["default"]("hardwareVendor", "undefined or null");
|
|
550
|
+
}
|
|
551
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.hardwareVendor, 256)) {
|
|
552
|
+
return new _ValidationError["default"]("hardwareVendor", "does not satisfy required maxLength constraint: 256");
|
|
553
|
+
}
|
|
554
|
+
if (!_ValidationUtils["default"].validateMinLength(this.hardwareVendor, 1)) {
|
|
555
|
+
return new _ValidationError["default"]("hardwareVendor", "does not satisfy required minLength constraint: 1");
|
|
556
|
+
}
|
|
557
|
+
}
|
|
504
558
|
return new _ValidationError["default"](property, "no such property exists");
|
|
505
559
|
}
|
|
506
560
|
}], [{
|
|
507
561
|
key: "constructFromObject",
|
|
508
|
-
value: function constructFromObject(data
|
|
562
|
+
value: function constructFromObject(data) {
|
|
563
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
509
564
|
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
510
565
|
var items, item, i, itemArr, discriminator;
|
|
511
566
|
if (data) {
|
|
@@ -567,10 +622,17 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
567
622
|
if (data.hasOwnProperty('clusterExtId') && data.clusterExtId !== null && data.clusterExtId !== undefined) {
|
|
568
623
|
obj.setClusterExtId(data['clusterExtId']);
|
|
569
624
|
}
|
|
625
|
+
if (data.hasOwnProperty('hardwareVendor') && data.hardwareVendor !== null && data.hardwareVendor !== undefined) {
|
|
626
|
+
obj.setHardwareVendor(data['hardwareVendor']);
|
|
627
|
+
}
|
|
570
628
|
if (!callFromChild) {
|
|
571
629
|
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
572
630
|
for (var property in data) {
|
|
573
|
-
if
|
|
631
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
632
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
633
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
634
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
635
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
574
636
|
obj.$unknownFields[property] = data[property];
|
|
575
637
|
}
|
|
576
638
|
}
|
|
@@ -578,6 +640,19 @@ var Entity = exports["default"] = /*#__PURE__*/function (_EntityBaseModel) {
|
|
|
578
640
|
}
|
|
579
641
|
return obj;
|
|
580
642
|
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Converts a given snake_case string to camelCase.
|
|
646
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
647
|
+
* @returns {string} - The converted string in camelCase format.
|
|
648
|
+
*/
|
|
649
|
+
}, {
|
|
650
|
+
key: "snakeToCamel",
|
|
651
|
+
value: function snakeToCamel(snakeStr) {
|
|
652
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
653
|
+
return match[1].toUpperCase();
|
|
654
|
+
});
|
|
655
|
+
}
|
|
581
656
|
}]);
|
|
582
657
|
}(_EntityBaseModel2["default"]);
|
|
583
658
|
/**
|
|
@@ -599,6 +674,18 @@ function _toJsonMapType(obj, forMutation) {
|
|
|
599
674
|
}
|
|
600
675
|
return obj;
|
|
601
676
|
}
|
|
677
|
+
/*
|
|
678
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
679
|
+
* @param {Object} obj Object to serialize
|
|
680
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
681
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
682
|
+
*/
|
|
683
|
+
function _handleDateType(obj, isDateOnly) {
|
|
684
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
685
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
686
|
+
}
|
|
687
|
+
return obj;
|
|
688
|
+
}
|
|
602
689
|
Entity.prototype.entityDescription = undefined;
|
|
603
690
|
|
|
604
691
|
/**
|
|
@@ -660,4 +747,49 @@ Entity.prototype.subEntities = undefined;
|
|
|
660
747
|
*/
|
|
661
748
|
Entity.prototype.clusterExtId = undefined;
|
|
662
749
|
|
|
750
|
+
/**
|
|
751
|
+
* Hardware vendor information.
|
|
752
|
+
* @memberof Entity
|
|
753
|
+
*/
|
|
754
|
+
Entity.prototype.hardwareVendor = undefined;
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* LCM entity class.
|
|
758
|
+
* @memberof Entity
|
|
759
|
+
*/
|
|
760
|
+
_EntityBaseModel2["default"].prototype.entityClass = undefined;
|
|
761
|
+
/**
|
|
762
|
+
* LCM entity model.
|
|
763
|
+
* @memberof Entity
|
|
764
|
+
*/
|
|
765
|
+
_EntityBaseModel2["default"].prototype.entityModel = undefined;
|
|
766
|
+
/**
|
|
767
|
+
* @memberof Entity
|
|
768
|
+
*/
|
|
769
|
+
_EntityBaseModel2["default"].prototype.entityType = undefined;
|
|
770
|
+
/**
|
|
771
|
+
* Current version of an LCM entity.
|
|
772
|
+
* @memberof Entity
|
|
773
|
+
*/
|
|
774
|
+
_EntityBaseModel2["default"].prototype.entityVersion = undefined;
|
|
775
|
+
/**
|
|
776
|
+
* A hardware family for a LCM entity.
|
|
777
|
+
* @memberof Entity
|
|
778
|
+
*/
|
|
779
|
+
_EntityBaseModel2["default"].prototype.hardwareFamily = undefined;
|
|
780
|
+
/**
|
|
781
|
+
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
782
|
+
* @memberof Entity
|
|
783
|
+
*/
|
|
784
|
+
_ExternalizableAbstractModel["default"].prototype.extId = undefined;
|
|
785
|
+
/**
|
|
786
|
+
* 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.
|
|
787
|
+
* @memberof Entity
|
|
788
|
+
*/
|
|
789
|
+
_ExternalizableAbstractModel["default"].prototype.links = undefined;
|
|
790
|
+
/**
|
|
791
|
+
* 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).
|
|
792
|
+
* @memberof Entity
|
|
793
|
+
*/
|
|
794
|
+
_TenantAwareModel["default"].prototype.tenantId = undefined;
|
|
663
795
|
// Implement OneOflifecycle.v4.resources.GetEntityByIdApiResponsedata interface:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The FrameworkVersionInfo model module.
|
|
3
3
|
* @module Ntnx/FrameworkVersionInfo
|
|
4
|
-
* @version 4.0.1
|
|
4
|
+
* @version 4.0.1
|
|
5
5
|
* @class FrameworkVersionInfo
|
|
6
6
|
*/
|
|
7
7
|
export default class FrameworkVersionInfo {
|
|
@@ -13,59 +13,61 @@ export default class FrameworkVersionInfo {
|
|
|
13
13
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
14
|
* @return {module:Ntnx/FrameworkVersionInfo} The populated <code>FrameworkVersionInfo</code> instance.
|
|
15
15
|
*/
|
|
16
|
-
static constructFromObject(data: any, obj
|
|
16
|
+
static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any;
|
|
17
|
+
/**
|
|
18
|
+
* Converts a given snake_case string to camelCase.
|
|
19
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
20
|
+
* @returns {string} - The converted string in camelCase format.
|
|
21
|
+
*/
|
|
22
|
+
static snakeToCamel(snakeStr: string): string;
|
|
17
23
|
$objectType: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
$unknownFields:
|
|
24
|
+
/** @type {object<string, any>} */
|
|
25
|
+
$reserved: object;
|
|
26
|
+
/** @type {object<string, any>} */
|
|
27
|
+
$unknownFields: object;
|
|
22
28
|
/**
|
|
23
29
|
* Returns Current LCM Version.
|
|
24
|
-
* @return {}
|
|
30
|
+
* @return {string}
|
|
25
31
|
*/
|
|
26
|
-
getCurrentVersion():
|
|
32
|
+
getCurrentVersion(): string;
|
|
27
33
|
/**
|
|
28
34
|
* Sets Current LCM Version.
|
|
29
|
-
* @param {} currentVersion Current LCM Version.
|
|
35
|
+
* @param {string} currentVersion Current LCM Version.
|
|
30
36
|
*/
|
|
31
|
-
setCurrentVersion(currentVersion:
|
|
32
|
-
currentVersion:
|
|
37
|
+
setCurrentVersion(currentVersion: string): void;
|
|
38
|
+
currentVersion: string;
|
|
33
39
|
/**
|
|
34
40
|
* Returns LCM framework version present in the LCM URL.
|
|
35
|
-
* @return {}
|
|
41
|
+
* @return {string}
|
|
36
42
|
*/
|
|
37
|
-
getAvailableVersion():
|
|
43
|
+
getAvailableVersion(): string;
|
|
38
44
|
/**
|
|
39
45
|
* Sets LCM framework version present in the LCM URL.
|
|
40
|
-
* @param {} availableVersion LCM framework version present in the LCM URL.
|
|
46
|
+
* @param {string} availableVersion LCM framework version present in the LCM URL.
|
|
41
47
|
*/
|
|
42
|
-
setAvailableVersion(availableVersion:
|
|
43
|
-
availableVersion:
|
|
48
|
+
setAvailableVersion(availableVersion: string): void;
|
|
49
|
+
availableVersion: string;
|
|
44
50
|
/**
|
|
45
51
|
* Returns Boolean that indicates if LCM framework update is needed.
|
|
46
|
-
* @return {}
|
|
52
|
+
* @return {boolean}
|
|
47
53
|
*/
|
|
48
|
-
getIsUpdateNeeded():
|
|
54
|
+
getIsUpdateNeeded(): boolean;
|
|
49
55
|
/**
|
|
50
56
|
* Sets Boolean that indicates if LCM framework update is needed.
|
|
51
|
-
* @param {} isUpdateNeeded Boolean that indicates if LCM framework update is needed.
|
|
57
|
+
* @param {boolean} isUpdateNeeded Boolean that indicates if LCM framework update is needed.
|
|
52
58
|
*/
|
|
53
|
-
setIsUpdateNeeded(isUpdateNeeded:
|
|
54
|
-
isUpdateNeeded:
|
|
55
|
-
get$Reserved():
|
|
56
|
-
$fv: string;
|
|
57
|
-
};
|
|
59
|
+
setIsUpdateNeeded(isUpdateNeeded: boolean): void;
|
|
60
|
+
isUpdateNeeded: boolean;
|
|
61
|
+
get$Reserved(): any;
|
|
58
62
|
get$ObjectType(): string;
|
|
59
|
-
get$UnknownFields():
|
|
63
|
+
get$UnknownFields(): any;
|
|
60
64
|
toJson(forMutation: any): {
|
|
61
|
-
$reserved:
|
|
62
|
-
$fv: string;
|
|
63
|
-
};
|
|
65
|
+
$reserved: any;
|
|
64
66
|
$objectType: string;
|
|
65
|
-
$unknownFields:
|
|
66
|
-
isUpdateNeeded?:
|
|
67
|
-
availableVersion?:
|
|
68
|
-
currentVersion?:
|
|
67
|
+
$unknownFields: any;
|
|
68
|
+
isUpdateNeeded?: boolean;
|
|
69
|
+
availableVersion?: string;
|
|
70
|
+
currentVersion?: string;
|
|
69
71
|
};
|
|
70
72
|
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
71
73
|
validateProperty(scope: any, property: any): ValidationError;
|