@nutanix-scratch/aiops-js-client 4.0.1-alpha.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 +58 -40
- package/dist/Ntnx-Aiops-js-client-prod.js +1 -10
- package/dist/Ntnx-Aiops-js-client.js +1160 -709
- package/dist/es/ApiClient.d.ts +33 -43
- package/dist/es/ApiClient.js +764 -483
- package/dist/es/Paginable.d.ts +9 -9
- package/dist/es/Paginable.js +44 -64
- package/dist/es/apis/scenarios-endpoints.d.ts +217 -0
- package/dist/es/apis/scenarios-endpoints.js +675 -0
- package/dist/es/apis/stats-endpoints.d.ts +102 -0
- package/dist/es/apis/stats-endpoints.js +273 -0
- package/dist/es/index.d.ts +191 -7
- package/dist/es/index.js +754 -45
- package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +110 -0
- package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.js +459 -0
- package/dist/es/models/aiops/v4/capacityplanning/CapacityUnit.d.ts +19 -0
- package/dist/es/models/aiops/v4/capacityplanning/CapacityUnit.js +85 -0
- package/dist/es/models/aiops/v4/capacityplanning/Runway.d.ts +86 -0
- package/dist/es/models/aiops/v4/capacityplanning/Runway.js +340 -0
- package/dist/es/models/aiops/v4/capacityplanning/RunwayDuration.d.ts +19 -0
- package/dist/es/models/aiops/v4/capacityplanning/RunwayDuration.js +91 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Cluster.d.ts +90 -87
- package/dist/es/models/aiops/v4/clusterMetrics/Cluster.js +151 -145
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +171 -152
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.js +241 -268
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +49 -29
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.js +186 -87
- package/dist/es/models/aiops/v4/clusterMetrics/Node.d.ts +48 -45
- package/dist/es/models/aiops/v4/clusterMetrics/Node.js +116 -89
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +2 -1
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.js +61 -58
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.d.ts +48 -45
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.js +116 -89
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.d.ts +2 -1
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.js +61 -58
- package/dist/es/models/aiops/v4/common/ClusterType.d.ts +19 -0
- package/dist/es/models/aiops/v4/common/ClusterType.js +79 -0
- package/dist/es/models/aiops/v4/config/CalculateRunwayApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/CalculateRunwayApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.d.ts +77 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.js +322 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateType.js +85 -0
- package/dist/es/models/aiops/v4/config/CategoryDetail.d.ts +60 -0
- package/dist/es/models/aiops/v4/config/CategoryDetail.js +315 -0
- package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.js +85 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkload.d.ts +83 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkload.js +371 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.js +79 -0
- package/dist/es/models/aiops/v4/config/ClusterConfig.d.ts +107 -0
- package/dist/es/models/aiops/v4/config/ClusterConfig.js +329 -0
- package/dist/es/models/aiops/v4/config/CreateIgnoreWindowApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/CreateIgnoreWindowApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +102 -0
- package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/DataStoreConfig.d.ts +205 -0
- package/dist/es/models/aiops/v4/config/DataStoreConfig.js +673 -0
- package/dist/es/models/aiops/v4/config/DeleteIgnoreWindowApiResponse.d.ts +98 -0
- package/dist/es/models/aiops/v4/config/DeleteIgnoreWindowApiResponse.js +345 -0
- package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +98 -0
- package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.js +345 -0
- package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +98 -0
- package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.js +345 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptor.d.ts +68 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptor.js +454 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +101 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.js +365 -0
- package/dist/es/models/aiops/v4/config/EntityType.d.ts +37 -0
- package/dist/es/models/aiops/v4/config/EntityType.js +275 -0
- package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.js +365 -0
- package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +98 -0
- package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.js +342 -0
- package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/IgnoreWindow.d.ts +111 -0
- package/dist/es/models/aiops/v4/config/IgnoreWindow.js +460 -0
- package/dist/es/models/aiops/v4/config/IgnoreWindowProjection.d.ts +20 -0
- package/dist/es/models/aiops/v4/config/IgnoreWindowProjection.js +173 -0
- package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.d.ts +100 -0
- package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.js +370 -0
- package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +100 -0
- package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.js +370 -0
- package/dist/es/models/aiops/v4/config/MetricDescriptor.d.ts +182 -0
- package/dist/es/models/aiops/v4/config/MetricDescriptor.js +667 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.js +79 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +83 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.js +371 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +79 -0
- package/dist/es/models/aiops/v4/config/NodeConfig.d.ts +143 -0
- package/dist/es/models/aiops/v4/config/NodeConfig.js +490 -0
- package/dist/es/models/aiops/v4/config/NodeSource.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/NodeSource.js +91 -0
- package/dist/es/models/aiops/v4/config/PolicyType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/PolicyType.js +85 -0
- package/dist/es/models/aiops/v4/config/ReplicationFactor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/ReplicationFactor.js +85 -0
- package/dist/es/models/aiops/v4/config/ResourceCapacity.d.ts +126 -0
- package/dist/es/models/aiops/v4/config/ResourceCapacity.js +451 -0
- package/dist/es/models/aiops/v4/config/Runway.d.ts +130 -0
- package/dist/es/models/aiops/v4/config/Runway.js +479 -0
- package/dist/es/models/aiops/v4/config/RunwayParams.d.ts +77 -0
- package/dist/es/models/aiops/v4/config/RunwayParams.js +323 -0
- package/dist/es/models/aiops/v4/config/RunwayParamsProjection.d.ts +14 -0
- package/dist/es/models/aiops/v4/config/RunwayParamsProjection.js +159 -0
- package/dist/es/models/aiops/v4/config/Scenario.d.ts +178 -0
- package/dist/es/models/aiops/v4/config/Scenario.js +579 -0
- package/dist/es/models/aiops/v4/config/ScenarioProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/config/ScenarioProjection.js +156 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +106 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.js +403 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +16 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +162 -0
- package/dist/es/models/aiops/v4/config/Simulation.d.ts +56 -0
- package/dist/es/models/aiops/v4/config/Simulation.js +317 -0
- package/dist/es/models/aiops/v4/config/SimulationProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/config/SimulationProjection.js +153 -0
- package/dist/es/models/aiops/v4/config/Source.d.ts +37 -0
- package/dist/es/models/aiops/v4/config/Source.js +275 -0
- package/dist/es/models/aiops/v4/config/SourceListApiResponse.d.ts +106 -0
- package/dist/es/models/aiops/v4/config/SourceListApiResponse.js +365 -0
- package/dist/es/models/aiops/v4/config/SplunkWorkload.d.ts +118 -0
- package/dist/es/models/aiops/v4/config/SplunkWorkload.js +446 -0
- package/dist/es/models/aiops/v4/config/SqlProfileType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/SqlProfileType.js +91 -0
- package/dist/es/models/aiops/v4/config/SqlTransactionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/SqlTransactionType.js +85 -0
- package/dist/es/models/aiops/v4/config/SqlWorkload.d.ts +110 -0
- package/dist/es/models/aiops/v4/config/SqlWorkload.js +415 -0
- package/dist/es/models/aiops/v4/config/UpdateIgnoreWindowApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/UpdateIgnoreWindowApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/UpdatePolicyTaskApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/UpdatePolicyTaskApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.js +365 -0
- package/dist/es/models/aiops/v4/config/ValueRange.d.ts +64 -0
- package/dist/es/models/aiops/v4/config/ValueRange.js +312 -0
- package/dist/es/models/aiops/v4/config/ValueType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/ValueType.js +121 -0
- package/dist/es/models/aiops/v4/config/VdiProvisionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/VdiProvisionType.js +103 -0
- package/dist/es/models/aiops/v4/config/VdiUserType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/VdiUserType.js +97 -0
- package/dist/es/models/aiops/v4/config/VdiVendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/VdiVendor.js +85 -0
- package/dist/es/models/aiops/v4/config/VdiWorkload.d.ts +109 -0
- package/dist/es/models/aiops/v4/config/VdiWorkload.js +412 -0
- package/dist/es/models/aiops/v4/config/Vendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/Vendor.js +127 -0
- package/dist/es/models/aiops/v4/config/VmCategoryWorkload.d.ts +94 -0
- package/dist/es/models/aiops/v4/config/VmCategoryWorkload.js +370 -0
- package/dist/es/models/aiops/v4/config/VmWorkload.d.ts +80 -0
- package/dist/es/models/aiops/v4/config/VmWorkload.js +335 -0
- package/dist/es/models/aiops/v4/config/Workload.d.ts +122 -0
- package/dist/es/models/aiops/v4/config/Workload.js +447 -0
- package/dist/es/models/aiops/v4/config/XenOperatingSystem.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/XenOperatingSystem.js +85 -0
- package/dist/es/models/aiops/v4/config/XenWorkload.d.ts +151 -0
- package/dist/es/models/aiops/v4/config/XenWorkload.js +532 -0
- package/dist/es/models/aiops/v4/config/XfitPolicy.d.ts +161 -0
- package/dist/es/models/aiops/v4/config/XfitPolicy.js +589 -0
- package/dist/es/models/aiops/v4/config/XfitPolicyProjection.d.ts +16 -0
- package/dist/es/models/aiops/v4/config/XfitPolicyProjection.js +167 -0
- package/dist/es/models/aiops/v4/error/AppMessage.d.ts +69 -51
- package/dist/es/models/aiops/v4/error/AppMessage.js +140 -103
- package/dist/es/models/aiops/v4/error/ErrorResponse.d.ts +25 -22
- package/dist/es/models/aiops/v4/error/ErrorResponse.js +159 -103
- package/dist/es/models/aiops/v4/error/SchemaValidationError.d.ts +65 -44
- package/dist/es/models/aiops/v4/error/SchemaValidationError.js +138 -95
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +42 -33
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.js +115 -72
- package/dist/es/models/aiops/v4/stats/BoolList.d.ts +61 -0
- package/dist/es/models/aiops/v4/stats/BoolList.js +288 -0
- package/dist/es/models/aiops/v4/stats/BoolVal.d.ts +61 -0
- package/dist/es/models/aiops/v4/stats/BoolVal.js +280 -0
- package/dist/es/models/aiops/v4/stats/DoubleList.d.ts +61 -0
- package/dist/es/models/aiops/v4/stats/DoubleList.js +288 -0
- package/dist/es/models/aiops/v4/stats/DoubleVal.d.ts +61 -0
- package/dist/es/models/aiops/v4/stats/DoubleVal.js +280 -0
- package/dist/es/models/aiops/v4/stats/Entity.d.ts +57 -0
- package/dist/es/models/aiops/v4/stats/Entity.js +413 -0
- package/dist/es/models/aiops/v4/stats/EntityListApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/stats/EntityListApiResponse.js +365 -0
- package/dist/es/models/aiops/v4/stats/IntList.d.ts +61 -0
- package/dist/es/models/aiops/v4/stats/IntList.js +288 -0
- package/dist/es/models/aiops/v4/stats/IntVal.d.ts +61 -0
- package/dist/es/models/aiops/v4/stats/IntVal.js +280 -0
- package/dist/es/models/aiops/v4/stats/Metric.d.ts +75 -0
- package/dist/es/models/aiops/v4/stats/Metric.js +312 -0
- package/dist/es/models/aiops/v4/stats/Point.d.ts +72 -0
- package/dist/es/models/aiops/v4/stats/Point.js +356 -0
- package/dist/es/models/aiops/v4/stats/StrList.d.ts +61 -0
- package/dist/es/models/aiops/v4/stats/StrList.js +288 -0
- package/dist/es/models/aiops/v4/stats/StrVal.d.ts +61 -0
- package/dist/es/models/aiops/v4/stats/StrVal.js +280 -0
- package/dist/es/models/aiops/v4/stats/TimeSeries.d.ts +71 -0
- package/dist/es/models/aiops/v4/stats/TimeSeries.js +326 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +34 -27
- package/dist/es/models/common/v1/config/Flag.js +114 -65
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +42 -27
- package/dist/es/models/common/v1/config/IPv4Address.js +112 -69
- package/dist/es/models/common/v1/config/KVPair.d.ts +37 -29
- package/dist/es/models/common/v1/config/KVPair.js +167 -98
- package/dist/es/models/common/v1/config/KVStringPair.d.ts +64 -0
- package/dist/es/models/common/v1/config/KVStringPair.js +318 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/es/models/common/v1/config/Message.d.ts +45 -39
- package/dist/es/models/common/v1/config/Message.js +114 -81
- package/dist/es/models/common/v1/config/MessageSeverity.js +22 -35
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +26 -23
- package/dist/es/models/common/v1/config/TenantAwareModel.js +99 -60
- package/dist/es/models/common/v1/response/ApiLink.d.ts +34 -31
- package/dist/es/models/common/v1/response/ApiLink.js +108 -71
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +91 -47
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +148 -108
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +27 -20
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +126 -95
- package/dist/es/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +109 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +52 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +285 -0
- package/dist/es/models/validation/ValidationError.js +12 -19
- package/dist/es/models/validation/ValidationScopes.js +2 -7
- package/dist/es/utils/ValidationUtils.js +12 -18
- package/dist/lib/ApiClient.d.ts +33 -43
- package/dist/lib/ApiClient.js +764 -483
- package/dist/lib/Paginable.d.ts +9 -9
- package/dist/lib/Paginable.js +44 -64
- package/dist/lib/apis/scenarios-endpoints.d.ts +217 -0
- package/dist/lib/apis/scenarios-endpoints.js +675 -0
- package/dist/lib/apis/stats-endpoints.d.ts +102 -0
- package/dist/lib/apis/stats-endpoints.js +273 -0
- package/dist/lib/index.d.ts +191 -7
- package/dist/lib/index.js +754 -45
- package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +110 -0
- package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.js +459 -0
- package/dist/lib/models/aiops/v4/capacityplanning/CapacityUnit.d.ts +19 -0
- package/dist/lib/models/aiops/v4/capacityplanning/CapacityUnit.js +85 -0
- package/dist/lib/models/aiops/v4/capacityplanning/Runway.d.ts +86 -0
- package/dist/lib/models/aiops/v4/capacityplanning/Runway.js +340 -0
- package/dist/lib/models/aiops/v4/capacityplanning/RunwayDuration.d.ts +19 -0
- package/dist/lib/models/aiops/v4/capacityplanning/RunwayDuration.js +91 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.d.ts +90 -87
- package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.js +151 -145
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +171 -152
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.js +241 -268
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +49 -29
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.js +186 -87
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.d.ts +48 -45
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.js +116 -89
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +2 -1
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.js +61 -58
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.d.ts +48 -45
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.js +116 -89
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.d.ts +2 -1
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.js +61 -58
- package/dist/lib/models/aiops/v4/common/ClusterType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/common/ClusterType.js +79 -0
- package/dist/lib/models/aiops/v4/config/CalculateRunwayApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/CalculateRunwayApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.d.ts +77 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.js +322 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateType.js +85 -0
- package/dist/lib/models/aiops/v4/config/CategoryDetail.d.ts +60 -0
- package/dist/lib/models/aiops/v4/config/CategoryDetail.js +315 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.js +85 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.d.ts +83 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.js +371 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.js +79 -0
- package/dist/lib/models/aiops/v4/config/ClusterConfig.d.ts +107 -0
- package/dist/lib/models/aiops/v4/config/ClusterConfig.js +329 -0
- package/dist/lib/models/aiops/v4/config/CreateIgnoreWindowApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/CreateIgnoreWindowApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +102 -0
- package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/DataStoreConfig.d.ts +205 -0
- package/dist/lib/models/aiops/v4/config/DataStoreConfig.js +673 -0
- package/dist/lib/models/aiops/v4/config/DeleteIgnoreWindowApiResponse.d.ts +98 -0
- package/dist/lib/models/aiops/v4/config/DeleteIgnoreWindowApiResponse.js +345 -0
- package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +98 -0
- package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.js +345 -0
- package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +98 -0
- package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.js +345 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptor.d.ts +68 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptor.js +454 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +101 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.js +365 -0
- package/dist/lib/models/aiops/v4/config/EntityType.d.ts +37 -0
- package/dist/lib/models/aiops/v4/config/EntityType.js +275 -0
- package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.js +365 -0
- package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +98 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.js +342 -0
- package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/IgnoreWindow.d.ts +111 -0
- package/dist/lib/models/aiops/v4/config/IgnoreWindow.js +460 -0
- package/dist/lib/models/aiops/v4/config/IgnoreWindowProjection.d.ts +20 -0
- package/dist/lib/models/aiops/v4/config/IgnoreWindowProjection.js +173 -0
- package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.d.ts +100 -0
- package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.js +370 -0
- package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +100 -0
- package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.js +370 -0
- package/dist/lib/models/aiops/v4/config/MetricDescriptor.d.ts +182 -0
- package/dist/lib/models/aiops/v4/config/MetricDescriptor.js +667 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.js +79 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +83 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.js +371 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +79 -0
- package/dist/lib/models/aiops/v4/config/NodeConfig.d.ts +143 -0
- package/dist/lib/models/aiops/v4/config/NodeConfig.js +490 -0
- package/dist/lib/models/aiops/v4/config/NodeSource.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/NodeSource.js +91 -0
- package/dist/lib/models/aiops/v4/config/PolicyType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/PolicyType.js +85 -0
- package/dist/lib/models/aiops/v4/config/ReplicationFactor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/ReplicationFactor.js +85 -0
- package/dist/lib/models/aiops/v4/config/ResourceCapacity.d.ts +126 -0
- package/dist/lib/models/aiops/v4/config/ResourceCapacity.js +451 -0
- package/dist/lib/models/aiops/v4/config/Runway.d.ts +130 -0
- package/dist/lib/models/aiops/v4/config/Runway.js +479 -0
- package/dist/lib/models/aiops/v4/config/RunwayParams.d.ts +77 -0
- package/dist/lib/models/aiops/v4/config/RunwayParams.js +323 -0
- package/dist/lib/models/aiops/v4/config/RunwayParamsProjection.d.ts +14 -0
- package/dist/lib/models/aiops/v4/config/RunwayParamsProjection.js +159 -0
- package/dist/lib/models/aiops/v4/config/Scenario.d.ts +178 -0
- package/dist/lib/models/aiops/v4/config/Scenario.js +579 -0
- package/dist/lib/models/aiops/v4/config/ScenarioProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/config/ScenarioProjection.js +156 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +106 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.js +403 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +16 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +162 -0
- package/dist/lib/models/aiops/v4/config/Simulation.d.ts +56 -0
- package/dist/lib/models/aiops/v4/config/Simulation.js +317 -0
- package/dist/lib/models/aiops/v4/config/SimulationProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/config/SimulationProjection.js +153 -0
- package/dist/lib/models/aiops/v4/config/Source.d.ts +37 -0
- package/dist/lib/models/aiops/v4/config/Source.js +275 -0
- package/dist/lib/models/aiops/v4/config/SourceListApiResponse.d.ts +106 -0
- package/dist/lib/models/aiops/v4/config/SourceListApiResponse.js +365 -0
- package/dist/lib/models/aiops/v4/config/SplunkWorkload.d.ts +118 -0
- package/dist/lib/models/aiops/v4/config/SplunkWorkload.js +446 -0
- package/dist/lib/models/aiops/v4/config/SqlProfileType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/SqlProfileType.js +91 -0
- package/dist/lib/models/aiops/v4/config/SqlTransactionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/SqlTransactionType.js +85 -0
- package/dist/lib/models/aiops/v4/config/SqlWorkload.d.ts +110 -0
- package/dist/lib/models/aiops/v4/config/SqlWorkload.js +415 -0
- package/dist/lib/models/aiops/v4/config/UpdateIgnoreWindowApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/UpdateIgnoreWindowApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/UpdatePolicyTaskApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/UpdatePolicyTaskApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.js +365 -0
- package/dist/lib/models/aiops/v4/config/ValueRange.d.ts +64 -0
- package/dist/lib/models/aiops/v4/config/ValueRange.js +312 -0
- package/dist/lib/models/aiops/v4/config/ValueType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/ValueType.js +121 -0
- package/dist/lib/models/aiops/v4/config/VdiProvisionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/VdiProvisionType.js +103 -0
- package/dist/lib/models/aiops/v4/config/VdiUserType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/VdiUserType.js +97 -0
- package/dist/lib/models/aiops/v4/config/VdiVendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/VdiVendor.js +85 -0
- package/dist/lib/models/aiops/v4/config/VdiWorkload.d.ts +109 -0
- package/dist/lib/models/aiops/v4/config/VdiWorkload.js +412 -0
- package/dist/lib/models/aiops/v4/config/Vendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/Vendor.js +127 -0
- package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.d.ts +94 -0
- package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.js +370 -0
- package/dist/lib/models/aiops/v4/config/VmWorkload.d.ts +80 -0
- package/dist/lib/models/aiops/v4/config/VmWorkload.js +335 -0
- package/dist/lib/models/aiops/v4/config/Workload.d.ts +122 -0
- package/dist/lib/models/aiops/v4/config/Workload.js +447 -0
- package/dist/lib/models/aiops/v4/config/XenOperatingSystem.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/XenOperatingSystem.js +85 -0
- package/dist/lib/models/aiops/v4/config/XenWorkload.d.ts +151 -0
- package/dist/lib/models/aiops/v4/config/XenWorkload.js +532 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicy.d.ts +161 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicy.js +589 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.d.ts +16 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.js +167 -0
- package/dist/lib/models/aiops/v4/error/AppMessage.d.ts +69 -51
- package/dist/lib/models/aiops/v4/error/AppMessage.js +140 -103
- package/dist/lib/models/aiops/v4/error/ErrorResponse.d.ts +25 -22
- package/dist/lib/models/aiops/v4/error/ErrorResponse.js +159 -103
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.d.ts +65 -44
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.js +138 -95
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +42 -33
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.js +115 -72
- package/dist/lib/models/aiops/v4/stats/BoolList.d.ts +61 -0
- package/dist/lib/models/aiops/v4/stats/BoolList.js +288 -0
- package/dist/lib/models/aiops/v4/stats/BoolVal.d.ts +61 -0
- package/dist/lib/models/aiops/v4/stats/BoolVal.js +280 -0
- package/dist/lib/models/aiops/v4/stats/DoubleList.d.ts +61 -0
- package/dist/lib/models/aiops/v4/stats/DoubleList.js +288 -0
- package/dist/lib/models/aiops/v4/stats/DoubleVal.d.ts +61 -0
- package/dist/lib/models/aiops/v4/stats/DoubleVal.js +280 -0
- package/dist/lib/models/aiops/v4/stats/Entity.d.ts +57 -0
- package/dist/lib/models/aiops/v4/stats/Entity.js +413 -0
- package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.js +365 -0
- package/dist/lib/models/aiops/v4/stats/IntList.d.ts +61 -0
- package/dist/lib/models/aiops/v4/stats/IntList.js +288 -0
- package/dist/lib/models/aiops/v4/stats/IntVal.d.ts +61 -0
- package/dist/lib/models/aiops/v4/stats/IntVal.js +280 -0
- package/dist/lib/models/aiops/v4/stats/Metric.d.ts +75 -0
- package/dist/lib/models/aiops/v4/stats/Metric.js +312 -0
- package/dist/lib/models/aiops/v4/stats/Point.d.ts +72 -0
- package/dist/lib/models/aiops/v4/stats/Point.js +356 -0
- package/dist/lib/models/aiops/v4/stats/StrList.d.ts +61 -0
- package/dist/lib/models/aiops/v4/stats/StrList.js +288 -0
- package/dist/lib/models/aiops/v4/stats/StrVal.d.ts +61 -0
- package/dist/lib/models/aiops/v4/stats/StrVal.js +280 -0
- package/dist/lib/models/aiops/v4/stats/TimeSeries.d.ts +71 -0
- package/dist/lib/models/aiops/v4/stats/TimeSeries.js +326 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +34 -27
- package/dist/lib/models/common/v1/config/Flag.js +114 -65
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +42 -27
- package/dist/lib/models/common/v1/config/IPv4Address.js +112 -69
- package/dist/lib/models/common/v1/config/KVPair.d.ts +37 -29
- package/dist/lib/models/common/v1/config/KVPair.js +167 -98
- package/dist/lib/models/common/v1/config/KVStringPair.d.ts +64 -0
- package/dist/lib/models/common/v1/config/KVStringPair.js +318 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +45 -39
- package/dist/lib/models/common/v1/config/Message.js +114 -81
- package/dist/lib/models/common/v1/config/MessageSeverity.js +22 -35
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +26 -23
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +99 -60
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +34 -31
- package/dist/lib/models/common/v1/response/ApiLink.js +108 -71
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +91 -47
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +148 -108
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +27 -20
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +126 -95
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +109 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +52 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +285 -0
- package/dist/lib/models/validation/ValidationError.js +12 -19
- package/dist/lib/models/validation/ValidationScopes.js +2 -7
- package/dist/lib/utils/ValidationUtils.js +12 -18
- package/package.json +7 -9
- package/dist/es/apis/cluster-endpoints.d.ts +0 -48
- package/dist/es/apis/cluster-endpoints.js +0 -145
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterApiResponse.d.ts +0 -60
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterApiResponse.js +0 -339
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterListApiResponse.d.ts +0 -60
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterListApiResponse.js +0 -351
- package/dist/lib/apis/cluster-endpoints.d.ts +0 -48
- package/dist/lib/apis/cluster-endpoints.js +0 -145
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterApiResponse.d.ts +0 -60
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterApiResponse.js +0 -339
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterListApiResponse.d.ts +0 -60
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterListApiResponse.js +0 -351
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ClusterType = _interopRequireDefault(require("../common/ClusterType"));
|
|
8
|
+
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
9
|
+
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
10
|
+
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
11
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
12
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
13
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
+
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); }
|
|
16
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
17
|
+
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."); }
|
|
18
|
+
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; } }
|
|
19
|
+
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; }
|
|
20
|
+
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; } }
|
|
21
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
22
|
+
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; }
|
|
23
|
+
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; }
|
|
24
|
+
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; }
|
|
25
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
26
|
+
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); } }
|
|
27
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
28
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
29
|
+
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); }
|
|
30
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
31
|
+
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); }
|
|
32
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
33
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
34
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
35
|
+
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); }
|
|
36
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
37
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
38
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
39
|
+
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"); } /*
|
|
40
|
+
* Nutanix AIOps APIs
|
|
41
|
+
*
|
|
42
|
+
* OpenAPI spec version: 4.0.1
|
|
43
|
+
*
|
|
44
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
45
|
+
*
|
|
46
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
47
|
+
*
|
|
48
|
+
* Do not edit the class manually.
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* The IgnoreWindow model module.
|
|
53
|
+
* @module Ntnx/IgnoreWindow
|
|
54
|
+
* @version 4.0.1
|
|
55
|
+
* @class IgnoreWindow
|
|
56
|
+
* @extends ExternalizableAbstractModel
|
|
57
|
+
*
|
|
58
|
+
* @param { string } name Name of an ignore window period.
|
|
59
|
+
*
|
|
60
|
+
* @param { Date } startDateTime Start timestamp of the ignore window. It can be maximum of one year in the past from the current date.
|
|
61
|
+
*
|
|
62
|
+
* @param { Date } endDateTime End timestamp of the ignore window. It can be a maximum of one year in the past from the current date but should be at least one day after the startDateTime.
|
|
63
|
+
*
|
|
64
|
+
* @param { ClusterType } clusterType
|
|
65
|
+
*
|
|
66
|
+
* @param { string } clusterUuid UUID of the cluster to which the ignore window is to be applied.
|
|
67
|
+
*/
|
|
68
|
+
var _IgnoreWindow_brand = /*#__PURE__*/new WeakSet();
|
|
69
|
+
var IgnoreWindow = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
|
|
70
|
+
/**
|
|
71
|
+
* Constructs a new <code>IgnoreWindow</code>.
|
|
72
|
+
* Definition of an ignore window.
|
|
73
|
+
* @alias module:Ntnx/IgnoreWindow
|
|
74
|
+
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
75
|
+
*
|
|
76
|
+
* @param { string } name Name of an ignore window period.
|
|
77
|
+
*
|
|
78
|
+
* @param { Date } startDateTime Start timestamp of the ignore window. It can be maximum of one year in the past from the current date.
|
|
79
|
+
*
|
|
80
|
+
* @param { Date } endDateTime End timestamp of the ignore window. It can be a maximum of one year in the past from the current date but should be at least one day after the startDateTime.
|
|
81
|
+
*
|
|
82
|
+
* @param { ClusterType } clusterType
|
|
83
|
+
*
|
|
84
|
+
* @param { string } clusterUuid UUID of the cluster to which the ignore window is to be applied.
|
|
85
|
+
*/
|
|
86
|
+
function IgnoreWindow(name, startDateTime, endDateTime, clusterType, clusterUuid) {
|
|
87
|
+
var _this;
|
|
88
|
+
_classCallCheck(this, IgnoreWindow);
|
|
89
|
+
_this = _callSuper(this, IgnoreWindow);
|
|
90
|
+
/*
|
|
91
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
92
|
+
* @param {Object} obj
|
|
93
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
94
|
+
* Otherwise, just returns the input object.
|
|
95
|
+
*/
|
|
96
|
+
_classPrivateMethodInitSpec(_this, _IgnoreWindow_brand);
|
|
97
|
+
_this.name = name;
|
|
98
|
+
_this.startDateTime = startDateTime;
|
|
99
|
+
_this.endDateTime = endDateTime;
|
|
100
|
+
_this.clusterType = clusterType;
|
|
101
|
+
_this.clusterUuid = clusterUuid;
|
|
102
|
+
_this.$objectType = "aiops.v4.config.IgnoreWindow";
|
|
103
|
+
/** @type {object<string, any>} */
|
|
104
|
+
_this.$reserved = {
|
|
105
|
+
'$fv': "v4.r0"
|
|
106
|
+
};
|
|
107
|
+
/** @type {object<string, any>} */
|
|
108
|
+
_this.$unknownFields = {};
|
|
109
|
+
return _this;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Constructs a <code>IgnoreWindow</code> from a plain JavaScript object, optionally creating a new instance.
|
|
114
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
115
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
116
|
+
* @param {module:Ntnx/IgnoreWindow} obj Optional instance to populate.
|
|
117
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
118
|
+
* @return {module:Ntnx/IgnoreWindow} The populated <code>IgnoreWindow</code> instance.
|
|
119
|
+
*/
|
|
120
|
+
_inherits(IgnoreWindow, _ExternalizableAbstra);
|
|
121
|
+
return _createClass(IgnoreWindow, [{
|
|
122
|
+
key: "getName",
|
|
123
|
+
value:
|
|
124
|
+
/**
|
|
125
|
+
* Returns Name of an ignore window period.
|
|
126
|
+
* @return {string}
|
|
127
|
+
*/
|
|
128
|
+
function getName() {
|
|
129
|
+
return this.name;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Sets Name of an ignore window period.
|
|
134
|
+
* @param {string} name Name of an ignore window period.
|
|
135
|
+
*/
|
|
136
|
+
}, {
|
|
137
|
+
key: "setName",
|
|
138
|
+
value: function setName(name) {
|
|
139
|
+
this.name = name;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Returns Start timestamp of the ignore window. It can be maximum of one year in the past from the current date.
|
|
144
|
+
* @return {Date}
|
|
145
|
+
*/
|
|
146
|
+
}, {
|
|
147
|
+
key: "getStartDateTime",
|
|
148
|
+
value: function getStartDateTime() {
|
|
149
|
+
return this.startDateTime;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Sets Start timestamp of the ignore window. It can be maximum of one year in the past from the current date.
|
|
154
|
+
* @param {Date} startDateTime Start timestamp of the ignore window. It can be maximum of one year in the past from the current date.
|
|
155
|
+
*/
|
|
156
|
+
}, {
|
|
157
|
+
key: "setStartDateTime",
|
|
158
|
+
value: function setStartDateTime(startDateTime) {
|
|
159
|
+
this.startDateTime = startDateTime;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Returns End timestamp of the ignore window. It can be a maximum of one year in the past from the current date but should be at least one day after the startDateTime.
|
|
164
|
+
* @return {Date}
|
|
165
|
+
*/
|
|
166
|
+
}, {
|
|
167
|
+
key: "getEndDateTime",
|
|
168
|
+
value: function getEndDateTime() {
|
|
169
|
+
return this.endDateTime;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Sets End timestamp of the ignore window. It can be a maximum of one year in the past from the current date but should be at least one day after the startDateTime.
|
|
174
|
+
* @param {Date} endDateTime End timestamp of the ignore window. It can be a maximum of one year in the past from the current date but should be at least one day after the startDateTime.
|
|
175
|
+
*/
|
|
176
|
+
}, {
|
|
177
|
+
key: "setEndDateTime",
|
|
178
|
+
value: function setEndDateTime(endDateTime) {
|
|
179
|
+
this.endDateTime = endDateTime;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @return {ClusterType}
|
|
184
|
+
*/
|
|
185
|
+
}, {
|
|
186
|
+
key: "getClusterType",
|
|
187
|
+
value: function getClusterType() {
|
|
188
|
+
return this.clusterType;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @param {ClusterType} clusterType
|
|
193
|
+
*/
|
|
194
|
+
}, {
|
|
195
|
+
key: "setClusterType",
|
|
196
|
+
value: function setClusterType(clusterType) {
|
|
197
|
+
this.clusterType = clusterType;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Returns UUID of the cluster to which the ignore window is to be applied.
|
|
202
|
+
* @return {string}
|
|
203
|
+
*/
|
|
204
|
+
}, {
|
|
205
|
+
key: "getClusterUuid",
|
|
206
|
+
value: function getClusterUuid() {
|
|
207
|
+
return this.clusterUuid;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Sets UUID of the cluster to which the ignore window is to be applied.
|
|
212
|
+
* @param {string} clusterUuid UUID of the cluster to which the ignore window is to be applied.
|
|
213
|
+
*/
|
|
214
|
+
}, {
|
|
215
|
+
key: "setClusterUuid",
|
|
216
|
+
value: function setClusterUuid(clusterUuid) {
|
|
217
|
+
this.clusterUuid = clusterUuid;
|
|
218
|
+
}
|
|
219
|
+
}, {
|
|
220
|
+
key: "toJson",
|
|
221
|
+
value: function toJson(forMutation) {
|
|
222
|
+
if (forMutation === false) {
|
|
223
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
224
|
+
'name': this.getName()
|
|
225
|
+
} : {}), typeof this.getStartDateTime() !== 'undefined' && this.getStartDateTime() !== null ? {
|
|
226
|
+
'startDateTime': _assertClassBrand(_IgnoreWindow_brand, this, _handleDateType).call(this, this.getStartDateTime(), false)
|
|
227
|
+
} : {}), typeof this.getEndDateTime() !== 'undefined' && this.getEndDateTime() !== null ? {
|
|
228
|
+
'endDateTime': _assertClassBrand(_IgnoreWindow_brand, this, _handleDateType).call(this, this.getEndDateTime(), false)
|
|
229
|
+
} : {}), typeof this.getClusterType() !== 'undefined' && this.getClusterType() !== null ? {
|
|
230
|
+
'clusterType': this.getClusterType()
|
|
231
|
+
} : {}), typeof this.getClusterUuid() !== 'undefined' && this.getClusterUuid() !== null ? {
|
|
232
|
+
'clusterUuid': this.getClusterUuid()
|
|
233
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
234
|
+
'extId': this.getExtId()
|
|
235
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
236
|
+
'links': this.getLinks().map(function (item) {
|
|
237
|
+
return item.toJson(false);
|
|
238
|
+
})
|
|
239
|
+
} : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
240
|
+
'tenantId': this.getTenantId()
|
|
241
|
+
} : {}), {}, {
|
|
242
|
+
'$reserved': this.get$Reserved(),
|
|
243
|
+
'$objectType': this.get$ObjectType(),
|
|
244
|
+
'$unknownFields': this.get$UnknownFields()
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
248
|
+
'name': this.getName()
|
|
249
|
+
} : {}), typeof this.getStartDateTime() !== 'undefined' && this.getStartDateTime() !== null ? {
|
|
250
|
+
'startDateTime': _assertClassBrand(_IgnoreWindow_brand, this, _handleDateType).call(this, this.getStartDateTime(), false)
|
|
251
|
+
} : {}), typeof this.getEndDateTime() !== 'undefined' && this.getEndDateTime() !== null ? {
|
|
252
|
+
'endDateTime': _assertClassBrand(_IgnoreWindow_brand, this, _handleDateType).call(this, this.getEndDateTime(), false)
|
|
253
|
+
} : {}), typeof this.getClusterType() !== 'undefined' && this.getClusterType() !== null ? {
|
|
254
|
+
'clusterType': this.getClusterType()
|
|
255
|
+
} : {}), typeof this.getClusterUuid() !== 'undefined' && this.getClusterUuid() !== null ? {
|
|
256
|
+
'clusterUuid': this.getClusterUuid()
|
|
257
|
+
} : {}), {}, {
|
|
258
|
+
'$reserved': this.get$Reserved(),
|
|
259
|
+
'$objectType': this.get$ObjectType(),
|
|
260
|
+
'$unknownFields': this.get$UnknownFields()
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
}, {
|
|
264
|
+
key: "validate",
|
|
265
|
+
value: function validate(scope, properties) {
|
|
266
|
+
var _this2 = this;
|
|
267
|
+
var propList = [];
|
|
268
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
269
|
+
//cases validate() and validate(scope)
|
|
270
|
+
propList = ["name", "startDateTime", "endDateTime", "clusterType", "clusterUuid"];
|
|
271
|
+
} else if (arguments.length === 1) {
|
|
272
|
+
//case validate(properties)
|
|
273
|
+
propList = arguments[0];
|
|
274
|
+
scope = null;
|
|
275
|
+
} else {
|
|
276
|
+
//case validate(scope, properties)
|
|
277
|
+
propList = arguments[1];
|
|
278
|
+
}
|
|
279
|
+
var res = [];
|
|
280
|
+
var err = null;
|
|
281
|
+
propList.forEach(function (property) {
|
|
282
|
+
err = _this2.validateProperty(property, scope);
|
|
283
|
+
if (err) {
|
|
284
|
+
res.push(err);
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
return new Promise(function (resolve, reject) {
|
|
288
|
+
if (res.length !== 0) {
|
|
289
|
+
reject(err);
|
|
290
|
+
} else {
|
|
291
|
+
resolve();
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
}, {
|
|
296
|
+
key: "validateProperty",
|
|
297
|
+
value: function validateProperty(scope, property) {
|
|
298
|
+
if (property === "name") {
|
|
299
|
+
if (typeof this.name === 'undefined' || this.name === null) {
|
|
300
|
+
return new _ValidationError["default"]("name", "undefined or null");
|
|
301
|
+
}
|
|
302
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.name, 256)) {
|
|
303
|
+
return new _ValidationError["default"]("name", "does not satisfy required maxLength constraint: 256");
|
|
304
|
+
}
|
|
305
|
+
if (!_ValidationUtils["default"].validateMinLength(this.name, 1)) {
|
|
306
|
+
return new _ValidationError["default"]("name", "does not satisfy required minLength constraint: 1");
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
if (property === "startDateTime") {
|
|
310
|
+
if (typeof this.startDateTime === 'undefined' || this.startDateTime === null) {
|
|
311
|
+
return new _ValidationError["default"]("startDateTime", "undefined or null");
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
if (property === "endDateTime") {
|
|
315
|
+
if (typeof this.endDateTime === 'undefined' || this.endDateTime === null) {
|
|
316
|
+
return new _ValidationError["default"]("endDateTime", "undefined or null");
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
if (property === "clusterType") {
|
|
320
|
+
if (typeof this.clusterType === 'undefined' || this.clusterType === null) {
|
|
321
|
+
return new _ValidationError["default"]("clusterType", "undefined or null");
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
if (property === "clusterUuid") {
|
|
325
|
+
if (typeof this.clusterUuid === 'undefined' || this.clusterUuid === null) {
|
|
326
|
+
return new _ValidationError["default"]("clusterUuid", "undefined or null");
|
|
327
|
+
}
|
|
328
|
+
if (!_ValidationUtils["default"].validatePattern(this.clusterUuid, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
329
|
+
return new _ValidationError["default"]("clusterUuid", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
333
|
+
}
|
|
334
|
+
}], [{
|
|
335
|
+
key: "constructFromObject",
|
|
336
|
+
value: function constructFromObject(data) {
|
|
337
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
338
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
339
|
+
var items, item, i, itemArr, discriminator;
|
|
340
|
+
if (data) {
|
|
341
|
+
obj = obj || new IgnoreWindow();
|
|
342
|
+
_ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
|
|
343
|
+
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
344
|
+
obj.setName(data['name']);
|
|
345
|
+
}
|
|
346
|
+
if (data.hasOwnProperty('startDateTime') && data.startDateTime !== null && data.startDateTime !== undefined) {
|
|
347
|
+
obj.setStartDateTime(data['startDateTime']);
|
|
348
|
+
}
|
|
349
|
+
if (data.hasOwnProperty('endDateTime') && data.endDateTime !== null && data.endDateTime !== undefined) {
|
|
350
|
+
obj.setEndDateTime(data['endDateTime']);
|
|
351
|
+
}
|
|
352
|
+
if (data.hasOwnProperty('clusterType') && data.clusterType !== null && data.clusterType !== undefined) {
|
|
353
|
+
obj.setClusterType(_ClusterType["default"].constructFromObject(data['clusterType']));
|
|
354
|
+
}
|
|
355
|
+
if (data.hasOwnProperty('clusterUuid') && data.clusterUuid !== null && data.clusterUuid !== undefined) {
|
|
356
|
+
obj.setClusterUuid(data['clusterUuid']);
|
|
357
|
+
}
|
|
358
|
+
if (!callFromChild) {
|
|
359
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
360
|
+
for (var property in data) {
|
|
361
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
362
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
363
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
364
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
365
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
366
|
+
obj.$unknownFields[property] = data[property];
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
return obj;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Converts a given snake_case string to camelCase.
|
|
376
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
377
|
+
* @returns {string} - The converted string in camelCase format.
|
|
378
|
+
*/
|
|
379
|
+
}, {
|
|
380
|
+
key: "snakeToCamel",
|
|
381
|
+
value: function snakeToCamel(snakeStr) {
|
|
382
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
383
|
+
return match[1].toUpperCase();
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
}]);
|
|
387
|
+
}(_ExternalizableAbstractModel["default"]);
|
|
388
|
+
/**
|
|
389
|
+
* Name of an ignore window period.
|
|
390
|
+
* @memberof IgnoreWindow
|
|
391
|
+
*/
|
|
392
|
+
function _toJsonMapType(obj, forMutation) {
|
|
393
|
+
if (obj instanceof Map) {
|
|
394
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
395
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
396
|
+
k = _ref2[0],
|
|
397
|
+
v = _ref2[1];
|
|
398
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
399
|
+
}));
|
|
400
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
401
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
402
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
403
|
+
}));
|
|
404
|
+
}
|
|
405
|
+
return obj;
|
|
406
|
+
}
|
|
407
|
+
/*
|
|
408
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
409
|
+
* @param {Object} obj Object to serialize
|
|
410
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
411
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
412
|
+
*/
|
|
413
|
+
function _handleDateType(obj, isDateOnly) {
|
|
414
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
415
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
416
|
+
}
|
|
417
|
+
return obj;
|
|
418
|
+
}
|
|
419
|
+
IgnoreWindow.prototype.name = undefined;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Start timestamp of the ignore window. It can be maximum of one year in the past from the current date.
|
|
423
|
+
* @memberof IgnoreWindow
|
|
424
|
+
*/
|
|
425
|
+
IgnoreWindow.prototype.startDateTime = undefined;
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* End timestamp of the ignore window. It can be a maximum of one year in the past from the current date but should be at least one day after the startDateTime.
|
|
429
|
+
* @memberof IgnoreWindow
|
|
430
|
+
*/
|
|
431
|
+
IgnoreWindow.prototype.endDateTime = undefined;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* @memberof IgnoreWindow
|
|
435
|
+
*/
|
|
436
|
+
IgnoreWindow.prototype.clusterType = undefined;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* UUID of the cluster to which the ignore window is to be applied.
|
|
440
|
+
* @memberof IgnoreWindow
|
|
441
|
+
*/
|
|
442
|
+
IgnoreWindow.prototype.clusterUuid = undefined;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
446
|
+
* @memberof IgnoreWindow
|
|
447
|
+
*/
|
|
448
|
+
_ExternalizableAbstractModel["default"].prototype.extId = undefined;
|
|
449
|
+
/**
|
|
450
|
+
* 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.
|
|
451
|
+
* @memberof IgnoreWindow
|
|
452
|
+
*/
|
|
453
|
+
_ExternalizableAbstractModel["default"].prototype.links = undefined;
|
|
454
|
+
/**
|
|
455
|
+
* 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).
|
|
456
|
+
* @memberof IgnoreWindow
|
|
457
|
+
*/
|
|
458
|
+
_TenantAwareModel["default"].prototype.tenantId = undefined;
|
|
459
|
+
// Implement OneOfaiops.v4.config.CreateIgnoreWindowApiResponsedata interface:
|
|
460
|
+
// Implement OneOfaiops.v4.config.UpdateIgnoreWindowApiResponsedata interface:
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The IgnoreWindowProjection model module.
|
|
3
|
+
* @module Ntnx/IgnoreWindowProjection
|
|
4
|
+
* @version 4.0.1
|
|
5
|
+
* @class IgnoreWindowProjection
|
|
6
|
+
* @extends IgnoreWindow
|
|
7
|
+
*
|
|
8
|
+
* @param { string } name Name of an ignore window period.
|
|
9
|
+
*
|
|
10
|
+
* @param { Date } startDateTime Start timestamp of the ignore window. It can be maximum of one year in the past from the current date.
|
|
11
|
+
*
|
|
12
|
+
* @param { Date } endDateTime End timestamp of the ignore window. It can be a maximum of one year in the past from the current date but should be at least one day after the startDateTime.
|
|
13
|
+
*
|
|
14
|
+
* @param { ClusterType } clusterType
|
|
15
|
+
*
|
|
16
|
+
* @param { string } clusterUuid UUID of the cluster to which the ignore window is to be applied.
|
|
17
|
+
*/
|
|
18
|
+
export default class IgnoreWindowProjection extends IgnoreWindow {
|
|
19
|
+
}
|
|
20
|
+
import IgnoreWindow from "./IgnoreWindow";
|
|
@@ -0,0 +1,173 @@
|
|
|
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["default"] = void 0;
|
|
8
|
+
var _ClusterType = _interopRequireDefault(require("../common/ClusterType"));
|
|
9
|
+
var _IgnoreWindow2 = _interopRequireDefault(require("./IgnoreWindow"));
|
|
10
|
+
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
11
|
+
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
12
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
13
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
14
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
|
+
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; }
|
|
17
|
+
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; }
|
|
18
|
+
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; }
|
|
19
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
20
|
+
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); } }
|
|
21
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
22
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
23
|
+
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); }
|
|
24
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
25
|
+
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); }
|
|
26
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
27
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
28
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
29
|
+
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); }
|
|
30
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /*
|
|
31
|
+
* Nutanix AIOps APIs
|
|
32
|
+
*
|
|
33
|
+
* OpenAPI spec version: 4.0.1
|
|
34
|
+
*
|
|
35
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
36
|
+
*
|
|
37
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
38
|
+
*
|
|
39
|
+
* Do not edit the class manually.
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* The IgnoreWindowProjection model module.
|
|
44
|
+
* @module Ntnx/IgnoreWindowProjection
|
|
45
|
+
* @version 4.0.1
|
|
46
|
+
* @class IgnoreWindowProjection
|
|
47
|
+
* @extends IgnoreWindow
|
|
48
|
+
*
|
|
49
|
+
* @param { string } name Name of an ignore window period.
|
|
50
|
+
*
|
|
51
|
+
* @param { Date } startDateTime Start timestamp of the ignore window. It can be maximum of one year in the past from the current date.
|
|
52
|
+
*
|
|
53
|
+
* @param { Date } endDateTime End timestamp of the ignore window. It can be a maximum of one year in the past from the current date but should be at least one day after the startDateTime.
|
|
54
|
+
*
|
|
55
|
+
* @param { ClusterType } clusterType
|
|
56
|
+
*
|
|
57
|
+
* @param { string } clusterUuid UUID of the cluster to which the ignore window is to be applied.
|
|
58
|
+
*/
|
|
59
|
+
var IgnoreWindowProjection = exports["default"] = /*#__PURE__*/function (_IgnoreWindow) {
|
|
60
|
+
/**
|
|
61
|
+
* Constructs a new <code>IgnoreWindowProjection</code>.
|
|
62
|
+
* @alias module:Ntnx/IgnoreWindowProjection
|
|
63
|
+
* @extends module:Ntnx/IgnoreWindow
|
|
64
|
+
*
|
|
65
|
+
* @param { string } name Name of an ignore window period.
|
|
66
|
+
*
|
|
67
|
+
* @param { Date } startDateTime Start timestamp of the ignore window. It can be maximum of one year in the past from the current date.
|
|
68
|
+
*
|
|
69
|
+
* @param { Date } endDateTime End timestamp of the ignore window. It can be a maximum of one year in the past from the current date but should be at least one day after the startDateTime.
|
|
70
|
+
*
|
|
71
|
+
* @param { ClusterType } clusterType
|
|
72
|
+
*
|
|
73
|
+
* @param { string } clusterUuid UUID of the cluster to which the ignore window is to be applied.
|
|
74
|
+
*/
|
|
75
|
+
function IgnoreWindowProjection(name, startDateTime, endDateTime, clusterType, clusterUuid) {
|
|
76
|
+
var _this;
|
|
77
|
+
_classCallCheck(this, IgnoreWindowProjection);
|
|
78
|
+
_this = _callSuper(this, IgnoreWindowProjection, [name, startDateTime, endDateTime, clusterType, clusterUuid]);
|
|
79
|
+
_this.$objectType = "aiops.v4.config.IgnoreWindowProjection";
|
|
80
|
+
/** @type {object<string, any>} */
|
|
81
|
+
_this.$reserved = {
|
|
82
|
+
'$fv': "v4.r0"
|
|
83
|
+
};
|
|
84
|
+
/** @type {object<string, any>} */
|
|
85
|
+
_this.$unknownFields = {};
|
|
86
|
+
return _this;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Constructs a <code>IgnoreWindowProjection</code> from a plain JavaScript object, optionally creating a new instance.
|
|
91
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
92
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
93
|
+
* @param {module:Ntnx/IgnoreWindowProjection} obj Optional instance to populate.
|
|
94
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
95
|
+
* @return {module:Ntnx/IgnoreWindowProjection} The populated <code>IgnoreWindowProjection</code> instance.
|
|
96
|
+
*/
|
|
97
|
+
_inherits(IgnoreWindowProjection, _IgnoreWindow);
|
|
98
|
+
return _createClass(IgnoreWindowProjection, [{
|
|
99
|
+
key: "validate",
|
|
100
|
+
value: function validate(scope, properties) {
|
|
101
|
+
var _this2 = this;
|
|
102
|
+
var propList = [];
|
|
103
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
104
|
+
//cases validate() and validate(scope)
|
|
105
|
+
propList = ["name", "startDateTime", "endDateTime", "clusterType", "clusterUuid"];
|
|
106
|
+
} else if (arguments.length === 1) {
|
|
107
|
+
//case validate(properties)
|
|
108
|
+
propList = arguments[0];
|
|
109
|
+
scope = null;
|
|
110
|
+
} else {
|
|
111
|
+
//case validate(scope, properties)
|
|
112
|
+
propList = arguments[1];
|
|
113
|
+
}
|
|
114
|
+
var res = [];
|
|
115
|
+
var err = null;
|
|
116
|
+
propList.forEach(function (property) {
|
|
117
|
+
err = _this2.validateProperty(property, scope);
|
|
118
|
+
if (err) {
|
|
119
|
+
res.push(err);
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
return new Promise(function (resolve, reject) {
|
|
123
|
+
if (res.length !== 0) {
|
|
124
|
+
reject(err);
|
|
125
|
+
} else {
|
|
126
|
+
resolve();
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}, {
|
|
131
|
+
key: "validateProperty",
|
|
132
|
+
value: function validateProperty(scope, property) {
|
|
133
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
134
|
+
}
|
|
135
|
+
}], [{
|
|
136
|
+
key: "constructFromObject",
|
|
137
|
+
value: function constructFromObject(data) {
|
|
138
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
139
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
140
|
+
var items, item, i, itemArr, discriminator;
|
|
141
|
+
if (data) {
|
|
142
|
+
obj = obj || new IgnoreWindowProjection();
|
|
143
|
+
_IgnoreWindow2["default"].constructFromObject(data, obj, true);
|
|
144
|
+
if (!callFromChild) {
|
|
145
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
146
|
+
for (var property in data) {
|
|
147
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
148
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
149
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
150
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
151
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
152
|
+
obj.$unknownFields[property] = data[property];
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return obj;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Converts a given snake_case string to camelCase.
|
|
162
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
163
|
+
* @returns {string} - The converted string in camelCase format.
|
|
164
|
+
*/
|
|
165
|
+
}, {
|
|
166
|
+
key: "snakeToCamel",
|
|
167
|
+
value: function snakeToCamel(snakeStr) {
|
|
168
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
169
|
+
return match[1].toUpperCase();
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}]);
|
|
173
|
+
}(_IgnoreWindow2["default"]);
|