@nutanix-scratch/monitoring-js-client 4.1.1 → 4.2.2
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/README.md +19 -7
- package/dist/Ntnx-Monitoring-js-client-prod.js +1 -1
- package/dist/Ntnx-Monitoring-js-client.js +651 -623
- package/dist/es/ApiClient.d.ts +29 -7
- package/dist/es/ApiClient.js +854 -667
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +144 -183
- package/dist/es/apis/alertemailconfiguration-endpoints.d.ts +1 -1
- package/dist/es/apis/alertemailconfiguration-endpoints.js +82 -99
- package/dist/es/apis/alerts-endpoints.d.ts +2 -2
- package/dist/es/apis/alerts-endpoints.js +97 -108
- package/dist/es/apis/audits-endpoints.d.ts +2 -2
- package/dist/es/apis/audits-endpoints.js +97 -108
- package/dist/es/apis/clusterlogs-endpoints.d.ts +2 -2
- package/dist/es/apis/clusterlogs-endpoints.js +114 -125
- package/dist/es/apis/events-endpoints.d.ts +2 -2
- package/dist/es/apis/events-endpoints.js +97 -108
- package/dist/es/apis/managealerts-endpoints.d.ts +1 -1
- package/dist/es/apis/managealerts-endpoints.js +60 -76
- package/dist/es/apis/systemdefinedchecks-endpoints.d.ts +1 -1
- package/dist/es/apis/systemdefinedchecks-endpoints.js +60 -76
- package/dist/es/apis/systemdefinedpolicies-endpoints.d.ts +3 -3
- package/dist/es/apis/systemdefinedpolicies-endpoints.js +237 -245
- package/dist/es/apis/userdefinedpolicies-endpoints.d.ts +2 -2
- package/dist/es/apis/userdefinedpolicies-endpoints.js +247 -262
- package/dist/es/index.d.ts +5 -1
- package/dist/es/index.js +380 -364
- package/dist/es/models/common/v1/config/FQDN.d.ts +2 -7
- package/dist/es/models/common/v1/config/FQDN.js +141 -180
- package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/es/models/common/v1/config/Flag.js +170 -211
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +2 -26
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +196 -247
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +2 -8
- package/dist/es/models/common/v1/config/IPv6Address.js +174 -215
- package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/es/models/common/v1/config/KVPair.js +225 -270
- package/dist/es/models/common/v1/config/KVStringPair.d.ts +2 -8
- package/dist/es/models/common/v1/config/KVStringPair.js +170 -211
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/es/models/common/v1/config/Message.d.ts +2 -10
- package/dist/es/models/common/v1/config/Message.js +213 -258
- package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
- package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
- package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/es/models/common/v1/response/ApiLink.js +165 -206
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
- package/dist/es/models/monitoring/v4/common/AlertEntityReference.d.ts +2 -9
- package/dist/es/models/monitoring/v4/common/AlertEntityReference.js +195 -238
- package/dist/es/models/monitoring/v4/common/BoolValue.d.ts +2 -7
- package/dist/es/models/monitoring/v4/common/BoolValue.js +140 -179
- package/dist/es/models/monitoring/v4/common/CauseAndResolution.d.ts +2 -8
- package/dist/es/models/monitoring/v4/common/CauseAndResolution.js +171 -212
- package/dist/es/models/monitoring/v4/common/ComparisonOperator.js +7 -9
- package/dist/es/models/monitoring/v4/common/ConditionType.js +7 -9
- package/dist/es/models/monitoring/v4/common/DataType.js +7 -9
- package/dist/es/models/monitoring/v4/common/DoubleValue.d.ts +2 -7
- package/dist/es/models/monitoring/v4/common/DoubleValue.js +140 -179
- package/dist/es/models/monitoring/v4/common/EntityReference.d.ts +2 -9
- package/dist/es/models/monitoring/v4/common/EntityReference.js +195 -238
- package/dist/es/models/monitoring/v4/common/FloatValue.d.ts +2 -7
- package/dist/es/models/monitoring/v4/common/FloatValue.js +140 -179
- package/dist/es/models/monitoring/v4/common/ImpactType.js +7 -9
- package/dist/es/models/monitoring/v4/common/IntValue.d.ts +2 -7
- package/dist/es/models/monitoring/v4/common/IntValue.js +140 -179
- package/dist/es/models/monitoring/v4/common/MetricDetail.d.ts +2 -17
- package/dist/es/models/monitoring/v4/common/MetricDetail.js +435 -502
- package/dist/es/models/monitoring/v4/common/OperationType.js +15 -11
- package/dist/es/models/monitoring/v4/common/Parameter.d.ts +2 -8
- package/dist/es/models/monitoring/v4/common/Parameter.js +186 -231
- package/dist/es/models/monitoring/v4/common/Severity.js +7 -9
- package/dist/es/models/monitoring/v4/common/StringValue.d.ts +2 -7
- package/dist/es/models/monitoring/v4/common/StringValue.js +140 -179
- package/dist/es/models/monitoring/v4/error/AppMessage.d.ts +2 -12
- package/dist/es/models/monitoring/v4/error/AppMessage.js +264 -313
- package/dist/es/models/monitoring/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/es/models/monitoring/v4/error/ErrorResponse.js +175 -218
- package/dist/es/models/monitoring/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/es/models/monitoring/v4/error/SchemaValidationError.js +249 -300
- package/dist/es/models/monitoring/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/es/models/monitoring/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/es/models/monitoring/v4/serviceability/ActionType.js +7 -9
- package/dist/es/models/monitoring/v4/serviceability/Alert.d.ts +34 -88
- package/dist/es/models/monitoring/v4/serviceability/Alert.js +929 -919
- package/dist/es/models/monitoring/v4/serviceability/AlertActionSpec.d.ts +2 -7
- package/dist/es/models/monitoring/v4/serviceability/AlertActionSpec.js +138 -177
- package/dist/es/models/monitoring/v4/serviceability/AlertConfig.d.ts +2 -52
- package/dist/es/models/monitoring/v4/serviceability/AlertConfig.js +208 -253
- package/dist/es/models/monitoring/v4/serviceability/AlertEmailConfiguration.d.ts +1 -138
- package/dist/es/models/monitoring/v4/serviceability/AlertEmailConfiguration.js +393 -459
- package/dist/es/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.d.ts +2 -10
- package/dist/es/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.js +241 -292
- package/dist/es/models/monitoring/v4/serviceability/ArchiveOpts.d.ts +2 -8
- package/dist/es/models/monitoring/v4/serviceability/ArchiveOpts.js +189 -234
- package/dist/es/models/monitoring/v4/serviceability/Audit.d.ts +1 -64
- package/dist/es/models/monitoring/v4/serviceability/Audit.js +444 -518
- package/dist/es/models/monitoring/v4/serviceability/AuditEntityReference.d.ts +2 -9
- package/dist/es/models/monitoring/v4/serviceability/AuditEntityReference.js +195 -238
- package/dist/es/models/monitoring/v4/serviceability/AutoResolveState.js +7 -9
- package/dist/es/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.d.ts +2 -8
- package/dist/es/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.js +163 -205
- package/dist/es/models/monitoring/v4/serviceability/ClusterConfig.d.ts +1 -79
- package/dist/es/models/monitoring/v4/serviceability/ClusterConfig.js +256 -314
- package/dist/es/models/monitoring/v4/serviceability/ClusterConfigProjection.d.ts +1 -1
- package/dist/es/models/monitoring/v4/serviceability/ClusterConfigProjection.js +74 -103
- package/dist/es/models/monitoring/v4/serviceability/ClusterType.js +7 -9
- package/dist/es/models/monitoring/v4/serviceability/CollectLogsApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/CollectLogsApiResponse.js +187 -242
- package/dist/es/models/monitoring/v4/serviceability/CommunicationStatus.d.ts +2 -23
- package/dist/es/models/monitoring/v4/serviceability/CommunicationStatus.js +237 -284
- package/dist/es/models/monitoring/v4/serviceability/Condition.d.ts +2 -9
- package/dist/es/models/monitoring/v4/serviceability/Condition.js +210 -257
- package/dist/es/models/monitoring/v4/serviceability/ConfigurableParamValueRange.d.ts +2 -8
- package/dist/es/models/monitoring/v4/serviceability/ConfigurableParamValueRange.js +190 -239
- package/dist/es/models/monitoring/v4/serviceability/ConflictingPolicy.d.ts +2 -7
- package/dist/es/models/monitoring/v4/serviceability/ConflictingPolicy.js +142 -181
- package/dist/es/models/monitoring/v4/serviceability/ConnectionStatus.js +7 -9
- package/dist/es/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.js +187 -242
- package/dist/es/models/monitoring/v4/serviceability/Credential.d.ts +2 -9
- package/dist/es/models/monitoring/v4/serviceability/Credential.js +198 -241
- package/dist/es/models/monitoring/v4/serviceability/CustomServerUploadParams.d.ts +2 -42
- package/dist/es/models/monitoring/v4/serviceability/CustomServerUploadParams.js +237 -284
- package/dist/es/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.d.ts +2 -45
- package/dist/es/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.js +190 -245
- package/dist/es/models/monitoring/v4/serviceability/EmailConfigurationRule.d.ts +2 -13
- package/dist/es/models/monitoring/v4/serviceability/EmailConfigurationRule.js +327 -378
- package/dist/es/models/monitoring/v4/serviceability/EmailTemplate.d.ts +2 -8
- package/dist/es/models/monitoring/v4/serviceability/EmailTemplate.js +168 -209
- package/dist/es/models/monitoring/v4/serviceability/EntityFilter.d.ts +2 -7
- package/dist/es/models/monitoring/v4/serviceability/EntityFilter.js +142 -181
- package/dist/es/models/monitoring/v4/serviceability/EntityType.js +7 -9
- package/dist/es/models/monitoring/v4/serviceability/Event.d.ts +22 -61
- package/dist/es/models/monitoring/v4/serviceability/Event.js +500 -501
- package/dist/es/models/monitoring/v4/serviceability/EventEntityReference.d.ts +2 -9
- package/dist/es/models/monitoring/v4/serviceability/EventEntityReference.js +195 -238
- package/dist/es/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.js +209 -264
- package/dist/es/models/monitoring/v4/serviceability/FloatConfigurableParamValue.d.ts +2 -15
- package/dist/es/models/monitoring/v4/serviceability/FloatConfigurableParamValue.js +195 -242
- package/dist/es/models/monitoring/v4/serviceability/GetAlertApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/GetAlertApiResponse.js +187 -242
- package/dist/es/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.js +187 -242
- package/dist/es/models/monitoring/v4/serviceability/GetAuditApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/GetAuditApiResponse.js +187 -242
- package/dist/es/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.js +187 -242
- package/dist/es/models/monitoring/v4/serviceability/GetEventApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/GetEventApiResponse.js +187 -242
- package/dist/es/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.js +187 -242
- package/dist/es/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.js +187 -242
- package/dist/es/models/monitoring/v4/serviceability/GroupEntityType.js +7 -9
- package/dist/es/models/monitoring/v4/serviceability/GroupFilter.d.ts +2 -8
- package/dist/es/models/monitoring/v4/serviceability/GroupFilter.js +166 -207
- package/dist/es/models/monitoring/v4/serviceability/HttpProxy.d.ts +2 -40
- package/dist/es/models/monitoring/v4/serviceability/HttpProxy.js +285 -334
- package/dist/es/models/monitoring/v4/serviceability/IntConfigurableParamValue.d.ts +2 -15
- package/dist/es/models/monitoring/v4/serviceability/IntConfigurableParamValue.js +195 -242
- package/dist/es/models/monitoring/v4/serviceability/ListAlertsApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/ListAlertsApiResponse.js +209 -264
- package/dist/es/models/monitoring/v4/serviceability/ListAuditsApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/ListAuditsApiResponse.js +209 -264
- package/dist/es/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.js +213 -268
- package/dist/es/models/monitoring/v4/serviceability/ListEventsApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/ListEventsApiResponse.js +209 -264
- package/dist/es/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.js +209 -264
- package/dist/es/models/monitoring/v4/serviceability/ListTagsApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/ListTagsApiResponse.js +209 -264
- package/dist/es/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.js +209 -264
- package/dist/es/models/monitoring/v4/serviceability/LocalUploadParams.d.ts +2 -7
- package/dist/es/models/monitoring/v4/serviceability/LocalUploadParams.js +142 -181
- package/dist/es/models/monitoring/v4/serviceability/LogCollectionSpec.d.ts +12 -27
- package/dist/es/models/monitoring/v4/serviceability/LogCollectionSpec.js +399 -424
- package/dist/es/models/monitoring/v4/serviceability/ManageAlertApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/ManageAlertApiResponse.js +187 -242
- package/dist/es/models/monitoring/v4/serviceability/MspOpts.d.ts +47 -0
- package/dist/es/models/monitoring/v4/serviceability/MspOpts.js +246 -0
- package/dist/es/models/monitoring/v4/serviceability/NtnxServerUploadParams.d.ts +2 -8
- package/dist/es/models/monitoring/v4/serviceability/NtnxServerUploadParams.js +167 -208
- package/dist/es/models/monitoring/v4/serviceability/ParameterizedMessage.d.ts +2 -14
- package/dist/es/models/monitoring/v4/serviceability/ParameterizedMessage.js +175 -220
- package/dist/es/models/monitoring/v4/serviceability/PolicySeverityLevel.js +7 -9
- package/dist/es/models/monitoring/v4/serviceability/PropertyState.js +7 -9
- package/dist/es/models/monitoring/v4/serviceability/ProxyType.js +7 -9
- package/dist/es/models/monitoring/v4/serviceability/RelatedPolicy.d.ts +2 -8
- package/dist/es/models/monitoring/v4/serviceability/RelatedPolicy.js +176 -217
- package/dist/es/models/monitoring/v4/serviceability/RemoteTunnelDetails.d.ts +2 -94
- package/dist/es/models/monitoring/v4/serviceability/RemoteTunnelDetails.js +208 -253
- package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysis.d.ts +2 -9
- package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysis.js +191 -234
- package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.d.ts +1 -1
- package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.js +74 -103
- package/dist/es/models/monitoring/v4/serviceability/RunSystemDefinedChecksApiResponse.d.ts +2 -47
- package/dist/es/models/monitoring/v4/serviceability/RunSystemDefinedChecksApiResponse.js +187 -242
- package/dist/es/models/monitoring/v4/serviceability/RunSystemDefinedChecksSpec.d.ts +8 -24
- package/dist/es/models/monitoring/v4/serviceability/RunSystemDefinedChecksSpec.js +302 -355
- package/dist/es/models/monitoring/v4/serviceability/Scope.js +7 -9
- package/dist/es/models/monitoring/v4/serviceability/SdaSubType.js +7 -9
- package/dist/es/models/monitoring/v4/serviceability/SdaType.js +7 -9
- package/dist/es/models/monitoring/v4/serviceability/ServerUploadProtocol.js +7 -9
- package/dist/es/models/monitoring/v4/serviceability/ServiceCenter.d.ts +2 -10
- package/dist/es/models/monitoring/v4/serviceability/ServiceCenter.js +231 -276
- package/dist/es/models/monitoring/v4/serviceability/SeverityConfig.d.ts +2 -16
- package/dist/es/models/monitoring/v4/serviceability/SeverityConfig.js +173 -218
- package/dist/es/models/monitoring/v4/serviceability/SeverityTrail.d.ts +2 -8
- package/dist/es/models/monitoring/v4/serviceability/SeverityTrail.js +164 -205
- package/dist/es/models/monitoring/v4/serviceability/Status.js +7 -9
- package/dist/es/models/monitoring/v4/serviceability/StorageContainerUploadParams.d.ts +2 -23
- package/dist/es/models/monitoring/v4/serviceability/StorageContainerUploadParams.js +214 -259
- package/dist/es/models/monitoring/v4/serviceability/StringConfigurableParamValue.d.ts +2 -8
- package/dist/es/models/monitoring/v4/serviceability/StringConfigurableParamValue.js +163 -205
- package/dist/es/models/monitoring/v4/serviceability/SystemDefinedPolicy.d.ts +4 -121
- package/dist/es/models/monitoring/v4/serviceability/SystemDefinedPolicy.js +569 -645
- package/dist/es/models/monitoring/v4/serviceability/Tag.d.ts +1 -17
- package/dist/es/models/monitoring/v4/serviceability/Tag.js +157 -201
- package/dist/es/models/monitoring/v4/serviceability/TagOpts.d.ts +46 -0
- package/dist/es/models/monitoring/v4/serviceability/TagOpts.js +233 -0
- package/dist/es/models/monitoring/v4/serviceability/TriggerCondition.d.ts +2 -16
- package/dist/es/models/monitoring/v4/serviceability/TriggerCondition.js +185 -228
- package/dist/es/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.js +209 -264
- package/dist/es/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.js +187 -242
- package/dist/es/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.d.ts +2 -43
- package/dist/es/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.js +209 -264
- package/dist/es/models/monitoring/v4/serviceability/UserDefinedPolicy.d.ts +1 -49
- package/dist/es/models/monitoring/v4/serviceability/UserDefinedPolicy.js +547 -629
- package/dist/es/models/monitoring/v4/serviceability/UserReference.d.ts +2 -9
- package/dist/es/models/monitoring/v4/serviceability/UserReference.js +198 -241
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/es/models/validation/ValidationError.js +26 -42
- package/dist/es/models/validation/ValidationScopes.js +3 -3
- package/dist/es/utils/ValidationUtils.js +39 -69
- package/dist/lib/ApiClient.d.ts +29 -7
- package/dist/lib/ApiClient.js +854 -667
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +144 -183
- package/dist/lib/apis/alertemailconfiguration-endpoints.d.ts +1 -1
- package/dist/lib/apis/alertemailconfiguration-endpoints.js +82 -99
- package/dist/lib/apis/alerts-endpoints.d.ts +2 -2
- package/dist/lib/apis/alerts-endpoints.js +97 -108
- package/dist/lib/apis/audits-endpoints.d.ts +2 -2
- package/dist/lib/apis/audits-endpoints.js +97 -108
- package/dist/lib/apis/clusterlogs-endpoints.d.ts +2 -2
- package/dist/lib/apis/clusterlogs-endpoints.js +114 -125
- package/dist/lib/apis/events-endpoints.d.ts +2 -2
- package/dist/lib/apis/events-endpoints.js +97 -108
- package/dist/lib/apis/managealerts-endpoints.d.ts +1 -1
- package/dist/lib/apis/managealerts-endpoints.js +60 -76
- package/dist/lib/apis/systemdefinedchecks-endpoints.d.ts +1 -1
- package/dist/lib/apis/systemdefinedchecks-endpoints.js +60 -76
- package/dist/lib/apis/systemdefinedpolicies-endpoints.d.ts +3 -3
- package/dist/lib/apis/systemdefinedpolicies-endpoints.js +237 -245
- package/dist/lib/apis/userdefinedpolicies-endpoints.d.ts +2 -2
- package/dist/lib/apis/userdefinedpolicies-endpoints.js +247 -262
- package/dist/lib/index.d.ts +5 -1
- package/dist/lib/index.js +380 -364
- package/dist/lib/models/common/v1/config/FQDN.d.ts +2 -7
- package/dist/lib/models/common/v1/config/FQDN.js +141 -180
- package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/lib/models/common/v1/config/Flag.js +170 -211
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +2 -26
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +196 -247
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +2 -8
- package/dist/lib/models/common/v1/config/IPv6Address.js +174 -215
- package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/lib/models/common/v1/config/KVPair.js +225 -270
- package/dist/lib/models/common/v1/config/KVStringPair.d.ts +2 -8
- package/dist/lib/models/common/v1/config/KVStringPair.js +170 -211
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
- package/dist/lib/models/common/v1/config/Message.js +213 -258
- package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
- package/dist/lib/models/monitoring/v4/common/AlertEntityReference.d.ts +2 -9
- package/dist/lib/models/monitoring/v4/common/AlertEntityReference.js +195 -238
- package/dist/lib/models/monitoring/v4/common/BoolValue.d.ts +2 -7
- package/dist/lib/models/monitoring/v4/common/BoolValue.js +140 -179
- package/dist/lib/models/monitoring/v4/common/CauseAndResolution.d.ts +2 -8
- package/dist/lib/models/monitoring/v4/common/CauseAndResolution.js +171 -212
- package/dist/lib/models/monitoring/v4/common/ComparisonOperator.js +7 -9
- package/dist/lib/models/monitoring/v4/common/ConditionType.js +7 -9
- package/dist/lib/models/monitoring/v4/common/DataType.js +7 -9
- package/dist/lib/models/monitoring/v4/common/DoubleValue.d.ts +2 -7
- package/dist/lib/models/monitoring/v4/common/DoubleValue.js +140 -179
- package/dist/lib/models/monitoring/v4/common/EntityReference.d.ts +2 -9
- package/dist/lib/models/monitoring/v4/common/EntityReference.js +195 -238
- package/dist/lib/models/monitoring/v4/common/FloatValue.d.ts +2 -7
- package/dist/lib/models/monitoring/v4/common/FloatValue.js +140 -179
- package/dist/lib/models/monitoring/v4/common/ImpactType.js +7 -9
- package/dist/lib/models/monitoring/v4/common/IntValue.d.ts +2 -7
- package/dist/lib/models/monitoring/v4/common/IntValue.js +140 -179
- package/dist/lib/models/monitoring/v4/common/MetricDetail.d.ts +2 -17
- package/dist/lib/models/monitoring/v4/common/MetricDetail.js +435 -502
- package/dist/lib/models/monitoring/v4/common/OperationType.js +15 -11
- package/dist/lib/models/monitoring/v4/common/Parameter.d.ts +2 -8
- package/dist/lib/models/monitoring/v4/common/Parameter.js +186 -231
- package/dist/lib/models/monitoring/v4/common/Severity.js +7 -9
- package/dist/lib/models/monitoring/v4/common/StringValue.d.ts +2 -7
- package/dist/lib/models/monitoring/v4/common/StringValue.js +140 -179
- package/dist/lib/models/monitoring/v4/error/AppMessage.d.ts +2 -12
- package/dist/lib/models/monitoring/v4/error/AppMessage.js +264 -313
- package/dist/lib/models/monitoring/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/lib/models/monitoring/v4/error/ErrorResponse.js +175 -218
- package/dist/lib/models/monitoring/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/lib/models/monitoring/v4/error/SchemaValidationError.js +249 -300
- package/dist/lib/models/monitoring/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/lib/models/monitoring/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/lib/models/monitoring/v4/serviceability/ActionType.js +7 -9
- package/dist/lib/models/monitoring/v4/serviceability/Alert.d.ts +34 -88
- package/dist/lib/models/monitoring/v4/serviceability/Alert.js +929 -919
- package/dist/lib/models/monitoring/v4/serviceability/AlertActionSpec.d.ts +2 -7
- package/dist/lib/models/monitoring/v4/serviceability/AlertActionSpec.js +138 -177
- package/dist/lib/models/monitoring/v4/serviceability/AlertConfig.d.ts +2 -52
- package/dist/lib/models/monitoring/v4/serviceability/AlertConfig.js +208 -253
- package/dist/lib/models/monitoring/v4/serviceability/AlertEmailConfiguration.d.ts +1 -138
- package/dist/lib/models/monitoring/v4/serviceability/AlertEmailConfiguration.js +393 -459
- package/dist/lib/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.d.ts +2 -10
- package/dist/lib/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.js +241 -292
- package/dist/lib/models/monitoring/v4/serviceability/ArchiveOpts.d.ts +2 -8
- package/dist/lib/models/monitoring/v4/serviceability/ArchiveOpts.js +189 -234
- package/dist/lib/models/monitoring/v4/serviceability/Audit.d.ts +1 -64
- package/dist/lib/models/monitoring/v4/serviceability/Audit.js +444 -518
- package/dist/lib/models/monitoring/v4/serviceability/AuditEntityReference.d.ts +2 -9
- package/dist/lib/models/monitoring/v4/serviceability/AuditEntityReference.js +195 -238
- package/dist/lib/models/monitoring/v4/serviceability/AutoResolveState.js +7 -9
- package/dist/lib/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.d.ts +2 -8
- package/dist/lib/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.js +163 -205
- package/dist/lib/models/monitoring/v4/serviceability/ClusterConfig.d.ts +1 -79
- package/dist/lib/models/monitoring/v4/serviceability/ClusterConfig.js +256 -314
- package/dist/lib/models/monitoring/v4/serviceability/ClusterConfigProjection.d.ts +1 -1
- package/dist/lib/models/monitoring/v4/serviceability/ClusterConfigProjection.js +74 -103
- package/dist/lib/models/monitoring/v4/serviceability/ClusterType.js +7 -9
- package/dist/lib/models/monitoring/v4/serviceability/CollectLogsApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/CollectLogsApiResponse.js +187 -242
- package/dist/lib/models/monitoring/v4/serviceability/CommunicationStatus.d.ts +2 -23
- package/dist/lib/models/monitoring/v4/serviceability/CommunicationStatus.js +237 -284
- package/dist/lib/models/monitoring/v4/serviceability/Condition.d.ts +2 -9
- package/dist/lib/models/monitoring/v4/serviceability/Condition.js +210 -257
- package/dist/lib/models/monitoring/v4/serviceability/ConfigurableParamValueRange.d.ts +2 -8
- package/dist/lib/models/monitoring/v4/serviceability/ConfigurableParamValueRange.js +190 -239
- package/dist/lib/models/monitoring/v4/serviceability/ConflictingPolicy.d.ts +2 -7
- package/dist/lib/models/monitoring/v4/serviceability/ConflictingPolicy.js +142 -181
- package/dist/lib/models/monitoring/v4/serviceability/ConnectionStatus.js +7 -9
- package/dist/lib/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.js +187 -242
- package/dist/lib/models/monitoring/v4/serviceability/Credential.d.ts +2 -9
- package/dist/lib/models/monitoring/v4/serviceability/Credential.js +198 -241
- package/dist/lib/models/monitoring/v4/serviceability/CustomServerUploadParams.d.ts +2 -42
- package/dist/lib/models/monitoring/v4/serviceability/CustomServerUploadParams.js +237 -284
- package/dist/lib/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.d.ts +2 -45
- package/dist/lib/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.js +190 -245
- package/dist/lib/models/monitoring/v4/serviceability/EmailConfigurationRule.d.ts +2 -13
- package/dist/lib/models/monitoring/v4/serviceability/EmailConfigurationRule.js +327 -378
- package/dist/lib/models/monitoring/v4/serviceability/EmailTemplate.d.ts +2 -8
- package/dist/lib/models/monitoring/v4/serviceability/EmailTemplate.js +168 -209
- package/dist/lib/models/monitoring/v4/serviceability/EntityFilter.d.ts +2 -7
- package/dist/lib/models/monitoring/v4/serviceability/EntityFilter.js +142 -181
- package/dist/lib/models/monitoring/v4/serviceability/EntityType.js +7 -9
- package/dist/lib/models/monitoring/v4/serviceability/Event.d.ts +22 -61
- package/dist/lib/models/monitoring/v4/serviceability/Event.js +500 -501
- package/dist/lib/models/monitoring/v4/serviceability/EventEntityReference.d.ts +2 -9
- package/dist/lib/models/monitoring/v4/serviceability/EventEntityReference.js +195 -238
- package/dist/lib/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.js +209 -264
- package/dist/lib/models/monitoring/v4/serviceability/FloatConfigurableParamValue.d.ts +2 -15
- package/dist/lib/models/monitoring/v4/serviceability/FloatConfigurableParamValue.js +195 -242
- package/dist/lib/models/monitoring/v4/serviceability/GetAlertApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/GetAlertApiResponse.js +187 -242
- package/dist/lib/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.js +187 -242
- package/dist/lib/models/monitoring/v4/serviceability/GetAuditApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/GetAuditApiResponse.js +187 -242
- package/dist/lib/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.js +187 -242
- package/dist/lib/models/monitoring/v4/serviceability/GetEventApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/GetEventApiResponse.js +187 -242
- package/dist/lib/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.js +187 -242
- package/dist/lib/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.js +187 -242
- package/dist/lib/models/monitoring/v4/serviceability/GroupEntityType.js +7 -9
- package/dist/lib/models/monitoring/v4/serviceability/GroupFilter.d.ts +2 -8
- package/dist/lib/models/monitoring/v4/serviceability/GroupFilter.js +166 -207
- package/dist/lib/models/monitoring/v4/serviceability/HttpProxy.d.ts +2 -40
- package/dist/lib/models/monitoring/v4/serviceability/HttpProxy.js +285 -334
- package/dist/lib/models/monitoring/v4/serviceability/IntConfigurableParamValue.d.ts +2 -15
- package/dist/lib/models/monitoring/v4/serviceability/IntConfigurableParamValue.js +195 -242
- package/dist/lib/models/monitoring/v4/serviceability/ListAlertsApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/ListAlertsApiResponse.js +209 -264
- package/dist/lib/models/monitoring/v4/serviceability/ListAuditsApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/ListAuditsApiResponse.js +209 -264
- package/dist/lib/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.js +213 -268
- package/dist/lib/models/monitoring/v4/serviceability/ListEventsApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/ListEventsApiResponse.js +209 -264
- package/dist/lib/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.js +209 -264
- package/dist/lib/models/monitoring/v4/serviceability/ListTagsApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/ListTagsApiResponse.js +209 -264
- package/dist/lib/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.js +209 -264
- package/dist/lib/models/monitoring/v4/serviceability/LocalUploadParams.d.ts +2 -7
- package/dist/lib/models/monitoring/v4/serviceability/LocalUploadParams.js +142 -181
- package/dist/lib/models/monitoring/v4/serviceability/LogCollectionSpec.d.ts +12 -27
- package/dist/lib/models/monitoring/v4/serviceability/LogCollectionSpec.js +399 -424
- package/dist/lib/models/monitoring/v4/serviceability/ManageAlertApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/ManageAlertApiResponse.js +187 -242
- package/dist/lib/models/monitoring/v4/serviceability/MspOpts.d.ts +47 -0
- package/dist/lib/models/monitoring/v4/serviceability/MspOpts.js +246 -0
- package/dist/lib/models/monitoring/v4/serviceability/NtnxServerUploadParams.d.ts +2 -8
- package/dist/lib/models/monitoring/v4/serviceability/NtnxServerUploadParams.js +167 -208
- package/dist/lib/models/monitoring/v4/serviceability/ParameterizedMessage.d.ts +2 -14
- package/dist/lib/models/monitoring/v4/serviceability/ParameterizedMessage.js +175 -220
- package/dist/lib/models/monitoring/v4/serviceability/PolicySeverityLevel.js +7 -9
- package/dist/lib/models/monitoring/v4/serviceability/PropertyState.js +7 -9
- package/dist/lib/models/monitoring/v4/serviceability/ProxyType.js +7 -9
- package/dist/lib/models/monitoring/v4/serviceability/RelatedPolicy.d.ts +2 -8
- package/dist/lib/models/monitoring/v4/serviceability/RelatedPolicy.js +176 -217
- package/dist/lib/models/monitoring/v4/serviceability/RemoteTunnelDetails.d.ts +2 -94
- package/dist/lib/models/monitoring/v4/serviceability/RemoteTunnelDetails.js +208 -253
- package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysis.d.ts +2 -9
- package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysis.js +191 -234
- package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.d.ts +1 -1
- package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.js +74 -103
- package/dist/lib/models/monitoring/v4/serviceability/RunSystemDefinedChecksApiResponse.d.ts +2 -47
- package/dist/lib/models/monitoring/v4/serviceability/RunSystemDefinedChecksApiResponse.js +187 -242
- package/dist/lib/models/monitoring/v4/serviceability/RunSystemDefinedChecksSpec.d.ts +8 -24
- package/dist/lib/models/monitoring/v4/serviceability/RunSystemDefinedChecksSpec.js +302 -355
- package/dist/lib/models/monitoring/v4/serviceability/Scope.js +7 -9
- package/dist/lib/models/monitoring/v4/serviceability/SdaSubType.js +7 -9
- package/dist/lib/models/monitoring/v4/serviceability/SdaType.js +7 -9
- package/dist/lib/models/monitoring/v4/serviceability/ServerUploadProtocol.js +7 -9
- package/dist/lib/models/monitoring/v4/serviceability/ServiceCenter.d.ts +2 -10
- package/dist/lib/models/monitoring/v4/serviceability/ServiceCenter.js +231 -276
- package/dist/lib/models/monitoring/v4/serviceability/SeverityConfig.d.ts +2 -16
- package/dist/lib/models/monitoring/v4/serviceability/SeverityConfig.js +173 -218
- package/dist/lib/models/monitoring/v4/serviceability/SeverityTrail.d.ts +2 -8
- package/dist/lib/models/monitoring/v4/serviceability/SeverityTrail.js +164 -205
- package/dist/lib/models/monitoring/v4/serviceability/Status.js +7 -9
- package/dist/lib/models/monitoring/v4/serviceability/StorageContainerUploadParams.d.ts +2 -23
- package/dist/lib/models/monitoring/v4/serviceability/StorageContainerUploadParams.js +214 -259
- package/dist/lib/models/monitoring/v4/serviceability/StringConfigurableParamValue.d.ts +2 -8
- package/dist/lib/models/monitoring/v4/serviceability/StringConfigurableParamValue.js +163 -205
- package/dist/lib/models/monitoring/v4/serviceability/SystemDefinedPolicy.d.ts +4 -121
- package/dist/lib/models/monitoring/v4/serviceability/SystemDefinedPolicy.js +569 -645
- package/dist/lib/models/monitoring/v4/serviceability/Tag.d.ts +1 -17
- package/dist/lib/models/monitoring/v4/serviceability/Tag.js +157 -201
- package/dist/lib/models/monitoring/v4/serviceability/TagOpts.d.ts +46 -0
- package/dist/lib/models/monitoring/v4/serviceability/TagOpts.js +233 -0
- package/dist/lib/models/monitoring/v4/serviceability/TriggerCondition.d.ts +2 -16
- package/dist/lib/models/monitoring/v4/serviceability/TriggerCondition.js +185 -228
- package/dist/lib/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.js +209 -264
- package/dist/lib/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.js +187 -242
- package/dist/lib/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.d.ts +2 -43
- package/dist/lib/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.js +209 -264
- package/dist/lib/models/monitoring/v4/serviceability/UserDefinedPolicy.d.ts +1 -49
- package/dist/lib/models/monitoring/v4/serviceability/UserDefinedPolicy.js +547 -629
- package/dist/lib/models/monitoring/v4/serviceability/UserReference.d.ts +2 -9
- package/dist/lib/models/monitoring/v4/serviceability/UserReference.js +198 -241
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/lib/models/validation/ValidationError.js +26 -42
- package/dist/lib/models/validation/ValidationScopes.js +3 -3
- package/dist/lib/utils/ValidationUtils.js +39 -69
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
var
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
8
8
|
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
9
9
|
var _ImpactType = _interopRequireDefault(require("../common/ImpactType"));
|
|
10
10
|
var _ClusterConfig = _interopRequireDefault(require("./ClusterConfig"));
|
|
@@ -16,38 +16,16 @@ var _SdaType = _interopRequireDefault(require("./SdaType"));
|
|
|
16
16
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
17
17
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
18
18
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
19
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
20
|
-
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); }
|
|
21
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
22
|
-
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."); }
|
|
23
|
-
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; } }
|
|
24
|
-
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; }
|
|
25
|
-
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; } }
|
|
26
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
27
|
-
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; }
|
|
28
|
-
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; }
|
|
29
|
-
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; }
|
|
30
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
31
|
-
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); } }
|
|
32
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
33
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
34
|
-
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); }
|
|
35
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
36
|
-
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); }
|
|
37
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
38
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
39
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
40
|
-
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); }
|
|
41
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
19
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
42
20
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
43
21
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
44
22
|
* Nutanix Monitoring APIs
|
|
45
23
|
*
|
|
46
|
-
* OpenAPI spec version: 4.
|
|
24
|
+
* OpenAPI spec version: 4.2.2
|
|
47
25
|
*
|
|
48
26
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
49
27
|
*
|
|
50
|
-
* Open API Dev Platform Codegen version: 17.
|
|
28
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
51
29
|
*
|
|
52
30
|
* Do not edit the class manually.
|
|
53
31
|
*
|
|
@@ -55,37 +33,34 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
55
33
|
/**
|
|
56
34
|
* The SystemDefinedPolicy model module.
|
|
57
35
|
* @module Ntnx/SystemDefinedPolicy
|
|
58
|
-
* @version 4.
|
|
36
|
+
* @version 4.2.2
|
|
59
37
|
* @class SystemDefinedPolicy
|
|
60
38
|
* @extends TenantAwareModel
|
|
61
39
|
*/
|
|
62
40
|
var _SystemDefinedPolicy_brand = /*#__PURE__*/new WeakSet();
|
|
63
|
-
|
|
41
|
+
class SystemDefinedPolicy extends _TenantAwareModel.default {
|
|
64
42
|
/**
|
|
65
43
|
* Constructs a new <code>SystemDefinedPolicy</code>.
|
|
66
44
|
* Attributes of System-Defined Alert Policy across all clusters.
|
|
67
45
|
* @alias module:Ntnx/SystemDefinedPolicy
|
|
68
46
|
* @extends module:Ntnx/TenantAwareModel
|
|
69
47
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
_classCallCheck(this, SystemDefinedPolicy);
|
|
73
|
-
_this = _callSuper(this, SystemDefinedPolicy);
|
|
48
|
+
constructor() {
|
|
49
|
+
super();
|
|
74
50
|
/*
|
|
75
51
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
76
52
|
* @param {Object} obj
|
|
77
53
|
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
78
54
|
* Otherwise, just returns the input object.
|
|
79
55
|
*/
|
|
80
|
-
_classPrivateMethodInitSpec(
|
|
81
|
-
|
|
56
|
+
_classPrivateMethodInitSpec(this, _SystemDefinedPolicy_brand);
|
|
57
|
+
this.$objectType = "monitoring.v4.serviceability.SystemDefinedPolicy";
|
|
82
58
|
/** @type {object<string, any>} */
|
|
83
|
-
|
|
84
|
-
'$fv': "v4.
|
|
59
|
+
this.$reserved = {
|
|
60
|
+
'$fv': "v4.r2"
|
|
85
61
|
};
|
|
86
62
|
/** @type {object<string, any>} */
|
|
87
|
-
|
|
88
|
-
return _this;
|
|
63
|
+
this.$unknownFields = {};
|
|
89
64
|
}
|
|
90
65
|
|
|
91
66
|
/**
|
|
@@ -96,699 +71,648 @@ var SystemDefinedPolicy = exports["default"] = /*#__PURE__*/function (_TenantAwa
|
|
|
96
71
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
97
72
|
* @return {module:Ntnx/SystemDefinedPolicy} The populated <code>SystemDefinedPolicy</code> instance.
|
|
98
73
|
*/
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
74
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
75
|
+
let items, item, i, itemArr, discriminator;
|
|
76
|
+
if (data) {
|
|
77
|
+
obj = obj || new SystemDefinedPolicy();
|
|
78
|
+
_TenantAwareModel.default.constructFromObject(data, obj, true);
|
|
79
|
+
if (data.hasOwnProperty('extId') && data.extId !== null && data.extId !== undefined) {
|
|
80
|
+
obj.setExtId(data['extId']);
|
|
81
|
+
}
|
|
82
|
+
if (data.hasOwnProperty('links') && data.links !== null && data.links !== undefined) {
|
|
83
|
+
itemArr = [];
|
|
84
|
+
items = data.links;
|
|
85
|
+
for (i = 0; i < items.length; i++) {
|
|
86
|
+
item = _ApiLink.default.constructFromObject(items[i], undefined);
|
|
87
|
+
itemArr.push(item);
|
|
88
|
+
}
|
|
89
|
+
obj.setLinks(itemArr);
|
|
90
|
+
}
|
|
91
|
+
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
92
|
+
obj.setName(data['name']);
|
|
93
|
+
}
|
|
94
|
+
if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
|
|
95
|
+
obj.setDescription(data['description']);
|
|
96
|
+
}
|
|
97
|
+
if (data.hasOwnProperty('policyId') && data.policyId !== null && data.policyId !== undefined) {
|
|
98
|
+
obj.setPolicyId(data['policyId']);
|
|
99
|
+
}
|
|
100
|
+
if (data.hasOwnProperty('title') && data.title !== null && data.title !== undefined) {
|
|
101
|
+
obj.setTitle(data['title']);
|
|
102
|
+
}
|
|
103
|
+
if (data.hasOwnProperty('type') && data.type !== null && data.type !== undefined) {
|
|
104
|
+
obj.setType(_SdaType.default.constructFromObject(data['type']));
|
|
105
|
+
}
|
|
106
|
+
if (data.hasOwnProperty('subType') && data.subType !== null && data.subType !== undefined) {
|
|
107
|
+
obj.setSubType(_SdaSubType.default.constructFromObject(data['subType']));
|
|
108
|
+
}
|
|
109
|
+
if (data.hasOwnProperty('scope') && data.scope !== null && data.scope !== undefined) {
|
|
110
|
+
obj.setScope(_Scope.default.constructFromObject(data['scope']));
|
|
111
|
+
}
|
|
112
|
+
if (data.hasOwnProperty('entityType') && data.entityType !== null && data.entityType !== undefined) {
|
|
113
|
+
obj.setEntityType(_EntityType.default.constructFromObject(data['entityType']));
|
|
114
|
+
}
|
|
115
|
+
if (data.hasOwnProperty('classifications') && data.classifications !== null && data.classifications !== undefined) {
|
|
116
|
+
itemArr = [];
|
|
117
|
+
items = data.classifications;
|
|
118
|
+
for (i = 0; i < items.length; i++) {
|
|
119
|
+
itemArr.push(items[i]);
|
|
120
|
+
}
|
|
121
|
+
obj.setClassifications(itemArr);
|
|
122
|
+
}
|
|
123
|
+
if (data.hasOwnProperty('impactTypes') && data.impactTypes !== null && data.impactTypes !== undefined) {
|
|
124
|
+
itemArr = [];
|
|
125
|
+
items = data.impactTypes;
|
|
126
|
+
for (i = 0; i < items.length; i++) {
|
|
127
|
+
item = _ImpactType.default.constructFromObject(items[i], undefined);
|
|
128
|
+
itemArr.push(item);
|
|
129
|
+
}
|
|
130
|
+
obj.setImpactTypes(itemArr);
|
|
131
|
+
}
|
|
132
|
+
if (data.hasOwnProperty('kbArticles') && data.kbArticles !== null && data.kbArticles !== undefined) {
|
|
133
|
+
itemArr = [];
|
|
134
|
+
items = data.kbArticles;
|
|
135
|
+
for (i = 0; i < items.length; i++) {
|
|
136
|
+
itemArr.push(items[i]);
|
|
137
|
+
}
|
|
138
|
+
obj.setKbArticles(itemArr);
|
|
139
|
+
}
|
|
140
|
+
if (data.hasOwnProperty('targetClusters') && data.targetClusters !== null && data.targetClusters !== undefined) {
|
|
141
|
+
itemArr = [];
|
|
142
|
+
items = data.targetClusters;
|
|
143
|
+
for (i = 0; i < items.length; i++) {
|
|
144
|
+
item = _ClusterType.default.constructFromObject(items[i], undefined);
|
|
145
|
+
itemArr.push(item);
|
|
146
|
+
}
|
|
147
|
+
obj.setTargetClusters(itemArr);
|
|
148
|
+
}
|
|
149
|
+
if (data.hasOwnProperty('publisher') && data.publisher !== null && data.publisher !== undefined) {
|
|
150
|
+
obj.setPublisher(data['publisher']);
|
|
151
|
+
}
|
|
152
|
+
if (data.hasOwnProperty('clusterConfigs') && data.clusterConfigs !== null && data.clusterConfigs !== undefined) {
|
|
153
|
+
itemArr = [];
|
|
154
|
+
items = data.clusterConfigs;
|
|
155
|
+
for (i = 0; i < items.length; i++) {
|
|
156
|
+
item = _ClusterConfig.default.constructFromObject(items[i], undefined);
|
|
157
|
+
itemArr.push(item);
|
|
158
|
+
}
|
|
159
|
+
obj.setClusterConfigs(itemArr);
|
|
160
|
+
}
|
|
161
|
+
if (!callFromChild) {
|
|
162
|
+
obj.$unknownFields = {
|
|
163
|
+
...data.$unknownFields
|
|
164
|
+
};
|
|
165
|
+
for (const property in data) {
|
|
166
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
167
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
168
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
169
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
170
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
171
|
+
obj.$unknownFields[property] = data[property];
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
109
175
|
}
|
|
176
|
+
return obj;
|
|
177
|
+
}
|
|
110
178
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
179
|
+
/**
|
|
180
|
+
* Converts a given snake_case string to camelCase.
|
|
181
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
182
|
+
* @returns {string} - The converted string in camelCase format.
|
|
183
|
+
*/
|
|
184
|
+
static snakeToCamel(snakeStr) {
|
|
185
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
186
|
+
}
|
|
120
187
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
return this.links;
|
|
129
|
-
}
|
|
188
|
+
/**
|
|
189
|
+
* Returns Unique ID of the System-Defined Alert Policy.
|
|
190
|
+
* @return {string}
|
|
191
|
+
*/
|
|
192
|
+
getExtId() {
|
|
193
|
+
return this.extId;
|
|
194
|
+
}
|
|
130
195
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
this.links = links;
|
|
139
|
-
}
|
|
196
|
+
/**
|
|
197
|
+
* Sets Unique ID of the System-Defined Alert Policy.
|
|
198
|
+
* @param {string} extId Unique ID of the System-Defined Alert Policy.
|
|
199
|
+
*/
|
|
200
|
+
setExtId(extId) {
|
|
201
|
+
this.extId = extId;
|
|
202
|
+
}
|
|
140
203
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
return this.name;
|
|
149
|
-
}
|
|
204
|
+
/**
|
|
205
|
+
* Returns A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
|
|
206
|
+
* @return {ApiLink[]}
|
|
207
|
+
*/
|
|
208
|
+
getLinks() {
|
|
209
|
+
return this.links;
|
|
210
|
+
}
|
|
150
211
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
this.name = name;
|
|
159
|
-
}
|
|
212
|
+
/**
|
|
213
|
+
* Sets A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
|
|
214
|
+
* @param {ApiLink[]} links A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
|
|
215
|
+
*/
|
|
216
|
+
setLinks(links) {
|
|
217
|
+
this.links = links;
|
|
218
|
+
}
|
|
160
219
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
return this.description;
|
|
169
|
-
}
|
|
220
|
+
/**
|
|
221
|
+
* Returns Name of the System-Defined Alert Policy.
|
|
222
|
+
* @return {string}
|
|
223
|
+
*/
|
|
224
|
+
getName() {
|
|
225
|
+
return this.name;
|
|
226
|
+
}
|
|
170
227
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
this.description = description;
|
|
179
|
-
}
|
|
228
|
+
/**
|
|
229
|
+
* Sets Name of the System-Defined Alert Policy.
|
|
230
|
+
* @param {string} name Name of the System-Defined Alert Policy.
|
|
231
|
+
*/
|
|
232
|
+
setName(name) {
|
|
233
|
+
this.name = name;
|
|
234
|
+
}
|
|
180
235
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
return this.policyId;
|
|
189
|
-
}
|
|
236
|
+
/**
|
|
237
|
+
* Returns System-defined alert policy description.
|
|
238
|
+
* @return {string}
|
|
239
|
+
*/
|
|
240
|
+
getDescription() {
|
|
241
|
+
return this.description;
|
|
242
|
+
}
|
|
190
243
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
this.policyId = policyId;
|
|
199
|
-
}
|
|
244
|
+
/**
|
|
245
|
+
* Sets System-defined alert policy description.
|
|
246
|
+
* @param {string} description System-defined alert policy description.
|
|
247
|
+
*/
|
|
248
|
+
setDescription(description) {
|
|
249
|
+
this.description = description;
|
|
250
|
+
}
|
|
200
251
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
return this.title;
|
|
209
|
-
}
|
|
252
|
+
/**
|
|
253
|
+
* Returns Unique ID associated with the policy.
|
|
254
|
+
* @return {string}
|
|
255
|
+
*/
|
|
256
|
+
getPolicyId() {
|
|
257
|
+
return this.policyId;
|
|
258
|
+
}
|
|
210
259
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
this.title = title;
|
|
219
|
-
}
|
|
260
|
+
/**
|
|
261
|
+
* Sets Unique ID associated with the policy.
|
|
262
|
+
* @param {string} policyId Unique ID associated with the policy.
|
|
263
|
+
*/
|
|
264
|
+
setPolicyId(policyId) {
|
|
265
|
+
this.policyId = policyId;
|
|
266
|
+
}
|
|
220
267
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
}
|
|
268
|
+
/**
|
|
269
|
+
* Returns Title of a System-Defined Alert Policy.
|
|
270
|
+
* @return {string}
|
|
271
|
+
*/
|
|
272
|
+
getTitle() {
|
|
273
|
+
return this.title;
|
|
274
|
+
}
|
|
229
275
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
276
|
+
/**
|
|
277
|
+
* Sets Title of a System-Defined Alert Policy.
|
|
278
|
+
* @param {string} title Title of a System-Defined Alert Policy.
|
|
279
|
+
*/
|
|
280
|
+
setTitle(title) {
|
|
281
|
+
this.title = title;
|
|
282
|
+
}
|
|
238
283
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
return this.subType;
|
|
246
|
-
}
|
|
284
|
+
/**
|
|
285
|
+
* @return {SdaType}
|
|
286
|
+
*/
|
|
287
|
+
getType() {
|
|
288
|
+
return this.type;
|
|
289
|
+
}
|
|
247
290
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
this.subType = subType;
|
|
255
|
-
}
|
|
291
|
+
/**
|
|
292
|
+
* @param {SdaType} type
|
|
293
|
+
*/
|
|
294
|
+
setType(type) {
|
|
295
|
+
this.type = type;
|
|
296
|
+
}
|
|
256
297
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
return this.scope;
|
|
264
|
-
}
|
|
298
|
+
/**
|
|
299
|
+
* @return {SdaSubType}
|
|
300
|
+
*/
|
|
301
|
+
getSubType() {
|
|
302
|
+
return this.subType;
|
|
303
|
+
}
|
|
265
304
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
this.scope = scope;
|
|
273
|
-
}
|
|
305
|
+
/**
|
|
306
|
+
* @param {SdaSubType} subType
|
|
307
|
+
*/
|
|
308
|
+
setSubType(subType) {
|
|
309
|
+
this.subType = subType;
|
|
310
|
+
}
|
|
274
311
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
return this.entityType;
|
|
282
|
-
}
|
|
312
|
+
/**
|
|
313
|
+
* @return {Scope}
|
|
314
|
+
*/
|
|
315
|
+
getScope() {
|
|
316
|
+
return this.scope;
|
|
317
|
+
}
|
|
283
318
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
this.entityType = entityType;
|
|
291
|
-
}
|
|
319
|
+
/**
|
|
320
|
+
* @param {Scope} scope
|
|
321
|
+
*/
|
|
322
|
+
setScope(scope) {
|
|
323
|
+
this.scope = scope;
|
|
324
|
+
}
|
|
292
325
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
value: function getClassifications() {
|
|
300
|
-
return this.classifications;
|
|
301
|
-
}
|
|
326
|
+
/**
|
|
327
|
+
* @return {EntityType}
|
|
328
|
+
*/
|
|
329
|
+
getEntityType() {
|
|
330
|
+
return this.entityType;
|
|
331
|
+
}
|
|
302
332
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
value: function setClassifications(classifications) {
|
|
310
|
-
this.classifications = classifications;
|
|
311
|
-
}
|
|
333
|
+
/**
|
|
334
|
+
* @param {EntityType} entityType
|
|
335
|
+
*/
|
|
336
|
+
setEntityType(entityType) {
|
|
337
|
+
this.entityType = entityType;
|
|
338
|
+
}
|
|
312
339
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
return this.impactTypes;
|
|
321
|
-
}
|
|
340
|
+
/**
|
|
341
|
+
* Returns Various categories into which this alert type can be classified. For example, hardware, storage, or license.
|
|
342
|
+
* @return {string[]}
|
|
343
|
+
*/
|
|
344
|
+
getClassifications() {
|
|
345
|
+
return this.classifications;
|
|
346
|
+
}
|
|
322
347
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
this.impactTypes = impactTypes;
|
|
331
|
-
}
|
|
348
|
+
/**
|
|
349
|
+
* Sets Various categories into which this alert type can be classified. For example, hardware, storage, or license.
|
|
350
|
+
* @param {string[]} classifications Various categories into which this alert type can be classified. For example, hardware, storage, or license.
|
|
351
|
+
*/
|
|
352
|
+
setClassifications(classifications) {
|
|
353
|
+
this.classifications = classifications;
|
|
354
|
+
}
|
|
332
355
|
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
return this.kbArticles;
|
|
341
|
-
}
|
|
356
|
+
/**
|
|
357
|
+
* Returns Impact types to which this rule applies.
|
|
358
|
+
* @return {ImpactType[]}
|
|
359
|
+
*/
|
|
360
|
+
getImpactTypes() {
|
|
361
|
+
return this.impactTypes;
|
|
362
|
+
}
|
|
342
363
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
this.kbArticles = kbArticles;
|
|
351
|
-
}
|
|
364
|
+
/**
|
|
365
|
+
* Sets Impact types to which this rule applies.
|
|
366
|
+
* @param {ImpactType[]} impactTypes Impact types to which this rule applies.
|
|
367
|
+
*/
|
|
368
|
+
setImpactTypes(impactTypes) {
|
|
369
|
+
this.impactTypes = impactTypes;
|
|
370
|
+
}
|
|
352
371
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
return this.targetClusters;
|
|
361
|
-
}
|
|
372
|
+
/**
|
|
373
|
+
* Returns List of knowledge base article links.
|
|
374
|
+
* @return {string[]}
|
|
375
|
+
*/
|
|
376
|
+
getKbArticles() {
|
|
377
|
+
return this.kbArticles;
|
|
378
|
+
}
|
|
362
379
|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
this.targetClusters = targetClusters;
|
|
371
|
-
}
|
|
380
|
+
/**
|
|
381
|
+
* Sets List of knowledge base article links.
|
|
382
|
+
* @param {string[]} kbArticles List of knowledge base article links.
|
|
383
|
+
*/
|
|
384
|
+
setKbArticles(kbArticles) {
|
|
385
|
+
this.kbArticles = kbArticles;
|
|
386
|
+
}
|
|
372
387
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
return this.publisher;
|
|
381
|
-
}
|
|
388
|
+
/**
|
|
389
|
+
* Returns Indicates the cluster type against which this policy can be executed.
|
|
390
|
+
* @return {ClusterType[]}
|
|
391
|
+
*/
|
|
392
|
+
getTargetClusters() {
|
|
393
|
+
return this.targetClusters;
|
|
394
|
+
}
|
|
382
395
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
this.publisher = publisher;
|
|
391
|
-
}
|
|
396
|
+
/**
|
|
397
|
+
* Sets Indicates the cluster type against which this policy can be executed.
|
|
398
|
+
* @param {ClusterType[]} targetClusters Indicates the cluster type against which this policy can be executed.
|
|
399
|
+
*/
|
|
400
|
+
setTargetClusters(targetClusters) {
|
|
401
|
+
this.targetClusters = targetClusters;
|
|
402
|
+
}
|
|
392
403
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
return this.clusterConfigs;
|
|
401
|
-
}
|
|
404
|
+
/**
|
|
405
|
+
* Returns Publisher of the policy. For example, NCC for all health check policies.
|
|
406
|
+
* @return {string}
|
|
407
|
+
*/
|
|
408
|
+
getPublisher() {
|
|
409
|
+
return this.publisher;
|
|
410
|
+
}
|
|
402
411
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
412
|
+
/**
|
|
413
|
+
* Sets Publisher of the policy. For example, NCC for all health check policies.
|
|
414
|
+
* @param {string} publisher Publisher of the policy. For example, NCC for all health check policies.
|
|
415
|
+
*/
|
|
416
|
+
setPublisher(publisher) {
|
|
417
|
+
this.publisher = publisher;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Returns SDA policy parameters that may differ across clusters since each cluster can run on different NCC versions. Each cluster will have an individual entry.
|
|
422
|
+
* @return {ClusterConfig[]}
|
|
423
|
+
*/
|
|
424
|
+
getClusterConfigs() {
|
|
425
|
+
return this.clusterConfigs;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Sets SDA policy parameters that may differ across clusters since each cluster can run on different NCC versions. Each cluster will have an individual entry.
|
|
430
|
+
* @param {ClusterConfig[]} clusterConfigs SDA policy parameters that may differ across clusters since each cluster can run on different NCC versions. Each cluster will have an individual entry.
|
|
431
|
+
*/
|
|
432
|
+
setClusterConfigs(clusterConfigs) {
|
|
433
|
+
this.clusterConfigs = clusterConfigs;
|
|
434
|
+
}
|
|
435
|
+
toJson(forMutation) {
|
|
436
|
+
if (forMutation === false) {
|
|
437
|
+
return {
|
|
438
|
+
...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
417
439
|
'extId': this.getExtId()
|
|
418
|
-
} : {}),
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
440
|
+
} : {}),
|
|
441
|
+
...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
442
|
+
'links': this.getLinks().map(item => item.toJson(false))
|
|
443
|
+
} : {}),
|
|
444
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
423
445
|
'name': this.getName()
|
|
424
|
-
} : {}),
|
|
446
|
+
} : {}),
|
|
447
|
+
...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
425
448
|
'description': this.getDescription()
|
|
426
|
-
} : {}),
|
|
449
|
+
} : {}),
|
|
450
|
+
...(typeof this.getPolicyId() !== 'undefined' && this.getPolicyId() !== null ? {
|
|
427
451
|
'policyId': this.getPolicyId()
|
|
428
|
-
} : {}),
|
|
452
|
+
} : {}),
|
|
453
|
+
...(typeof this.getTitle() !== 'undefined' && this.getTitle() !== null ? {
|
|
429
454
|
'title': this.getTitle()
|
|
430
|
-
} : {}),
|
|
455
|
+
} : {}),
|
|
456
|
+
...(typeof this.getType() !== 'undefined' && this.getType() !== null ? {
|
|
431
457
|
'type': this.getType()
|
|
432
|
-
} : {}),
|
|
458
|
+
} : {}),
|
|
459
|
+
...(typeof this.getSubType() !== 'undefined' && this.getSubType() !== null ? {
|
|
433
460
|
'subType': this.getSubType()
|
|
434
|
-
} : {}),
|
|
461
|
+
} : {}),
|
|
462
|
+
...(typeof this.getScope() !== 'undefined' && this.getScope() !== null ? {
|
|
435
463
|
'scope': this.getScope()
|
|
436
|
-
} : {}),
|
|
464
|
+
} : {}),
|
|
465
|
+
...(typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {
|
|
437
466
|
'entityType': this.getEntityType()
|
|
438
|
-
} : {}),
|
|
467
|
+
} : {}),
|
|
468
|
+
...(typeof this.getClassifications() !== 'undefined' && this.getClassifications() !== null ? {
|
|
439
469
|
'classifications': this.getClassifications()
|
|
440
|
-
} : {}),
|
|
470
|
+
} : {}),
|
|
471
|
+
...(typeof this.getImpactTypes() !== 'undefined' && this.getImpactTypes() !== null ? {
|
|
441
472
|
'impactTypes': this.getImpactTypes()
|
|
442
|
-
} : {}),
|
|
473
|
+
} : {}),
|
|
474
|
+
...(typeof this.getKbArticles() !== 'undefined' && this.getKbArticles() !== null ? {
|
|
443
475
|
'kbArticles': this.getKbArticles()
|
|
444
|
-
} : {}),
|
|
476
|
+
} : {}),
|
|
477
|
+
...(typeof this.getTargetClusters() !== 'undefined' && this.getTargetClusters() !== null ? {
|
|
445
478
|
'targetClusters': this.getTargetClusters()
|
|
446
|
-
} : {}),
|
|
479
|
+
} : {}),
|
|
480
|
+
...(typeof this.getPublisher() !== 'undefined' && this.getPublisher() !== null ? {
|
|
447
481
|
'publisher': this.getPublisher()
|
|
448
|
-
} : {}),
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
482
|
+
} : {}),
|
|
483
|
+
...(typeof this.getClusterConfigs() !== 'undefined' && this.getClusterConfigs() !== null ? {
|
|
484
|
+
'clusterConfigs': this.getClusterConfigs().map(item => item.toJson(false))
|
|
485
|
+
} : {}),
|
|
486
|
+
...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
453
487
|
'tenantId': this.getTenantId()
|
|
454
|
-
} : {}),
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
|
|
488
|
+
} : {}),
|
|
489
|
+
'$reserved': this.get$Reserved(),
|
|
490
|
+
'$objectType': this.get$ObjectType(),
|
|
491
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
492
|
+
'$unknownFields': {}
|
|
493
|
+
};
|
|
494
|
+
}
|
|
495
|
+
return {
|
|
496
|
+
...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
461
497
|
'extId': this.getExtId()
|
|
462
|
-
} : {}),
|
|
498
|
+
} : {}),
|
|
499
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
463
500
|
'name': this.getName()
|
|
464
|
-
} : {}),
|
|
501
|
+
} : {}),
|
|
502
|
+
...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
465
503
|
'description': this.getDescription()
|
|
466
|
-
} : {}),
|
|
504
|
+
} : {}),
|
|
505
|
+
...(typeof this.getPolicyId() !== 'undefined' && this.getPolicyId() !== null ? {
|
|
467
506
|
'policyId': this.getPolicyId()
|
|
468
|
-
} : {}),
|
|
507
|
+
} : {}),
|
|
508
|
+
...(typeof this.getTitle() !== 'undefined' && this.getTitle() !== null ? {
|
|
469
509
|
'title': this.getTitle()
|
|
470
|
-
} : {}),
|
|
510
|
+
} : {}),
|
|
511
|
+
...(typeof this.getType() !== 'undefined' && this.getType() !== null ? {
|
|
471
512
|
'type': this.getType()
|
|
472
|
-
} : {}),
|
|
513
|
+
} : {}),
|
|
514
|
+
...(typeof this.getSubType() !== 'undefined' && this.getSubType() !== null ? {
|
|
473
515
|
'subType': this.getSubType()
|
|
474
|
-
} : {}),
|
|
516
|
+
} : {}),
|
|
517
|
+
...(typeof this.getScope() !== 'undefined' && this.getScope() !== null ? {
|
|
475
518
|
'scope': this.getScope()
|
|
476
|
-
} : {}),
|
|
519
|
+
} : {}),
|
|
520
|
+
...(typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {
|
|
477
521
|
'entityType': this.getEntityType()
|
|
478
|
-
} : {}),
|
|
522
|
+
} : {}),
|
|
523
|
+
...(typeof this.getClassifications() !== 'undefined' && this.getClassifications() !== null ? {
|
|
479
524
|
'classifications': this.getClassifications()
|
|
480
|
-
} : {}),
|
|
525
|
+
} : {}),
|
|
526
|
+
...(typeof this.getImpactTypes() !== 'undefined' && this.getImpactTypes() !== null ? {
|
|
481
527
|
'impactTypes': this.getImpactTypes()
|
|
482
|
-
} : {}),
|
|
528
|
+
} : {}),
|
|
529
|
+
...(typeof this.getKbArticles() !== 'undefined' && this.getKbArticles() !== null ? {
|
|
483
530
|
'kbArticles': this.getKbArticles()
|
|
484
|
-
} : {}),
|
|
531
|
+
} : {}),
|
|
532
|
+
...(typeof this.getTargetClusters() !== 'undefined' && this.getTargetClusters() !== null ? {
|
|
485
533
|
'targetClusters': this.getTargetClusters()
|
|
486
|
-
} : {}),
|
|
534
|
+
} : {}),
|
|
535
|
+
...(typeof this.getPublisher() !== 'undefined' && this.getPublisher() !== null ? {
|
|
487
536
|
'publisher': this.getPublisher()
|
|
488
|
-
} : {}),
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
537
|
+
} : {}),
|
|
538
|
+
...(typeof this.getClusterConfigs() !== 'undefined' && this.getClusterConfigs() !== null ? {
|
|
539
|
+
'clusterConfigs': this.getClusterConfigs().map(item => item.toJson(false))
|
|
540
|
+
} : {}),
|
|
541
|
+
'$reserved': this.get$Reserved(),
|
|
542
|
+
'$objectType': this.get$ObjectType(),
|
|
543
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
544
|
+
'$unknownFields': {}
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
validate(scope, properties) {
|
|
548
|
+
let propList = [];
|
|
549
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
550
|
+
//cases validate() and validate(scope)
|
|
551
|
+
propList = [];
|
|
552
|
+
} else if (arguments.length === 1) {
|
|
553
|
+
//case validate(properties)
|
|
554
|
+
propList = arguments[0];
|
|
555
|
+
scope = null;
|
|
556
|
+
} else {
|
|
557
|
+
//case validate(scope, properties)
|
|
558
|
+
propList = arguments[1];
|
|
559
|
+
}
|
|
560
|
+
let res = [];
|
|
561
|
+
let err = null;
|
|
562
|
+
propList.forEach(property => {
|
|
563
|
+
err = this.validateProperty(property, scope);
|
|
564
|
+
if (err) {
|
|
565
|
+
res.push(err);
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
return new Promise(function (resolve, reject) {
|
|
569
|
+
if (res.length !== 0) {
|
|
570
|
+
reject(err);
|
|
510
571
|
} else {
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
resolve();
|
|
527
|
-
}
|
|
528
|
-
});
|
|
572
|
+
resolve();
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
validateProperty(scope, property) {
|
|
577
|
+
if (property === "extId") {
|
|
578
|
+
if (typeof this.extId === 'undefined' || this.extId === null) {
|
|
579
|
+
return new _ValidationError.default("extId", "undefined or null");
|
|
580
|
+
}
|
|
581
|
+
if (!_ValidationUtils.default.validateMaxLength(this.extId, 100)) {
|
|
582
|
+
return new _ValidationError.default("extId", "does not satisfy required maxLength constraint: 100");
|
|
583
|
+
}
|
|
584
|
+
if (!_ValidationUtils.default.validatePattern(this.extId, /^\\d+$/)) {
|
|
585
|
+
return new _ValidationError.default("extId", "does not satisfy required pattern: /^\\d+$/");
|
|
586
|
+
}
|
|
529
587
|
}
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
if (property === "extId") {
|
|
534
|
-
if (typeof this.extId === 'undefined' || this.extId === null) {
|
|
535
|
-
return new _ValidationError["default"]("extId", "undefined or null");
|
|
536
|
-
}
|
|
537
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.extId, 100)) {
|
|
538
|
-
return new _ValidationError["default"]("extId", "does not satisfy required maxLength constraint: 100");
|
|
539
|
-
}
|
|
540
|
-
if (!_ValidationUtils["default"].validatePattern(this.extId, /^\\d+$/)) {
|
|
541
|
-
return new _ValidationError["default"]("extId", "does not satisfy required pattern: /^\\d+$/");
|
|
542
|
-
}
|
|
588
|
+
if (property === "links") {
|
|
589
|
+
if (typeof this.links === 'undefined' || this.links === null) {
|
|
590
|
+
return new _ValidationError.default("links", "undefined or null");
|
|
543
591
|
}
|
|
544
|
-
if (
|
|
545
|
-
|
|
546
|
-
return new _ValidationError["default"]("links", "undefined or null");
|
|
547
|
-
}
|
|
548
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.links, 20)) {
|
|
549
|
-
return new _ValidationError["default"]("links", "does not satisfy required maxItems constraint: 20");
|
|
550
|
-
}
|
|
592
|
+
if (!_ValidationUtils.default.validateMaxItems(this.links, 20)) {
|
|
593
|
+
return new _ValidationError.default("links", "does not satisfy required maxItems constraint: 20");
|
|
551
594
|
}
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.name, 1000)) {
|
|
557
|
-
return new _ValidationError["default"]("name", "does not satisfy required maxLength constraint: 1000");
|
|
558
|
-
}
|
|
595
|
+
}
|
|
596
|
+
if (property === "name") {
|
|
597
|
+
if (typeof this.name === 'undefined' || this.name === null) {
|
|
598
|
+
return new _ValidationError.default("name", "undefined or null");
|
|
559
599
|
}
|
|
560
|
-
if (
|
|
561
|
-
|
|
562
|
-
return new _ValidationError["default"]("description", "undefined or null");
|
|
563
|
-
}
|
|
564
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.description, 400)) {
|
|
565
|
-
return new _ValidationError["default"]("description", "does not satisfy required maxLength constraint: 400");
|
|
566
|
-
}
|
|
600
|
+
if (!_ValidationUtils.default.validateMaxLength(this.name, 1000)) {
|
|
601
|
+
return new _ValidationError.default("name", "does not satisfy required maxLength constraint: 1000");
|
|
567
602
|
}
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
if (!_ValidationUtils["default"].validatePattern(this.policyId, /^{A}\\d+$/)) {
|
|
573
|
-
return new _ValidationError["default"]("policyId", "does not satisfy required pattern: /^{A}\\d+$/");
|
|
574
|
-
}
|
|
603
|
+
}
|
|
604
|
+
if (property === "description") {
|
|
605
|
+
if (typeof this.description === 'undefined' || this.description === null) {
|
|
606
|
+
return new _ValidationError.default("description", "undefined or null");
|
|
575
607
|
}
|
|
576
|
-
if (
|
|
577
|
-
|
|
578
|
-
return new _ValidationError["default"]("title", "undefined or null");
|
|
579
|
-
}
|
|
580
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.title, 250)) {
|
|
581
|
-
return new _ValidationError["default"]("title", "does not satisfy required maxLength constraint: 250");
|
|
582
|
-
}
|
|
608
|
+
if (!_ValidationUtils.default.validateMaxLength(this.description, 400)) {
|
|
609
|
+
return new _ValidationError.default("description", "does not satisfy required maxLength constraint: 400");
|
|
583
610
|
}
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
611
|
+
}
|
|
612
|
+
if (property === "policyId") {
|
|
613
|
+
if (typeof this.policyId === 'undefined' || this.policyId === null) {
|
|
614
|
+
return new _ValidationError.default("policyId", "undefined or null");
|
|
588
615
|
}
|
|
589
|
-
if (
|
|
590
|
-
|
|
591
|
-
return new _ValidationError["default"]("subType", "undefined or null");
|
|
592
|
-
}
|
|
616
|
+
if (!_ValidationUtils.default.validatePattern(this.policyId, /^{A}\\d+$/)) {
|
|
617
|
+
return new _ValidationError.default("policyId", "does not satisfy required pattern: /^{A}\\d+$/");
|
|
593
618
|
}
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
619
|
+
}
|
|
620
|
+
if (property === "title") {
|
|
621
|
+
if (typeof this.title === 'undefined' || this.title === null) {
|
|
622
|
+
return new _ValidationError.default("title", "undefined or null");
|
|
598
623
|
}
|
|
599
|
-
if (
|
|
600
|
-
|
|
601
|
-
return new _ValidationError["default"]("entityType", "undefined or null");
|
|
602
|
-
}
|
|
624
|
+
if (!_ValidationUtils.default.validateMaxLength(this.title, 250)) {
|
|
625
|
+
return new _ValidationError.default("title", "does not satisfy required maxLength constraint: 250");
|
|
603
626
|
}
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.classifications, 15)) {
|
|
609
|
-
return new _ValidationError["default"]("classifications", "does not satisfy required maxItems constraint: 15");
|
|
610
|
-
}
|
|
627
|
+
}
|
|
628
|
+
if (property === "type") {
|
|
629
|
+
if (typeof this.type === 'undefined' || this.type === null) {
|
|
630
|
+
return new _ValidationError.default("type", "undefined or null");
|
|
611
631
|
}
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.impactTypes, 8)) {
|
|
617
|
-
return new _ValidationError["default"]("impactTypes", "does not satisfy required maxItems constraint: 8");
|
|
618
|
-
}
|
|
632
|
+
}
|
|
633
|
+
if (property === "subType") {
|
|
634
|
+
if (typeof this.subType === 'undefined' || this.subType === null) {
|
|
635
|
+
return new _ValidationError.default("subType", "undefined or null");
|
|
619
636
|
}
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
637
|
+
}
|
|
638
|
+
if (property === "scope") {
|
|
639
|
+
if (typeof this.scope === 'undefined' || this.scope === null) {
|
|
640
|
+
return new _ValidationError.default("scope", "undefined or null");
|
|
624
641
|
}
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.targetClusters, 2)) {
|
|
630
|
-
return new _ValidationError["default"]("targetClusters", "does not satisfy required maxItems constraint: 2");
|
|
631
|
-
}
|
|
632
|
-
if (!_ValidationUtils["default"].validateMinItems(this.targetClusters, 1)) {
|
|
633
|
-
return new _ValidationError["default"]("targetClusters", "does not satisfy required minItems constraint: 1");
|
|
634
|
-
}
|
|
642
|
+
}
|
|
643
|
+
if (property === "entityType") {
|
|
644
|
+
if (typeof this.entityType === 'undefined' || this.entityType === null) {
|
|
645
|
+
return new _ValidationError.default("entityType", "undefined or null");
|
|
635
646
|
}
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
if (!_ValidationUtils["default"].validateMinLength(this.publisher, 1)) {
|
|
641
|
-
return new _ValidationError["default"]("publisher", "does not satisfy required minLength constraint: 1");
|
|
642
|
-
}
|
|
647
|
+
}
|
|
648
|
+
if (property === "classifications") {
|
|
649
|
+
if (typeof this.classifications === 'undefined' || this.classifications === null) {
|
|
650
|
+
return new _ValidationError.default("classifications", "undefined or null");
|
|
643
651
|
}
|
|
644
|
-
if (
|
|
645
|
-
|
|
646
|
-
return new _ValidationError["default"]("clusterConfigs", "undefined or null");
|
|
647
|
-
}
|
|
648
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.clusterConfigs, 350)) {
|
|
649
|
-
return new _ValidationError["default"]("clusterConfigs", "does not satisfy required maxItems constraint: 350");
|
|
650
|
-
}
|
|
651
|
-
if (!_ValidationUtils["default"].validateMinItems(this.clusterConfigs, 1)) {
|
|
652
|
-
return new _ValidationError["default"]("clusterConfigs", "does not satisfy required minItems constraint: 1");
|
|
653
|
-
}
|
|
652
|
+
if (!_ValidationUtils.default.validateMaxItems(this.classifications, 15)) {
|
|
653
|
+
return new _ValidationError.default("classifications", "does not satisfy required maxItems constraint: 15");
|
|
654
654
|
}
|
|
655
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
656
655
|
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
if (data) {
|
|
664
|
-
obj = obj || new SystemDefinedPolicy();
|
|
665
|
-
_TenantAwareModel2["default"].constructFromObject(data, obj, true);
|
|
666
|
-
if (data.hasOwnProperty('extId') && data.extId !== null && data.extId !== undefined) {
|
|
667
|
-
obj.setExtId(data['extId']);
|
|
668
|
-
}
|
|
669
|
-
if (data.hasOwnProperty('links') && data.links !== null && data.links !== undefined) {
|
|
670
|
-
itemArr = [];
|
|
671
|
-
items = data.links;
|
|
672
|
-
for (i = 0; i < items.length; i++) {
|
|
673
|
-
item = _ApiLink["default"].constructFromObject(items[i], undefined);
|
|
674
|
-
itemArr.push(item);
|
|
675
|
-
}
|
|
676
|
-
obj.setLinks(itemArr);
|
|
677
|
-
}
|
|
678
|
-
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
679
|
-
obj.setName(data['name']);
|
|
680
|
-
}
|
|
681
|
-
if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
|
|
682
|
-
obj.setDescription(data['description']);
|
|
683
|
-
}
|
|
684
|
-
if (data.hasOwnProperty('policyId') && data.policyId !== null && data.policyId !== undefined) {
|
|
685
|
-
obj.setPolicyId(data['policyId']);
|
|
686
|
-
}
|
|
687
|
-
if (data.hasOwnProperty('title') && data.title !== null && data.title !== undefined) {
|
|
688
|
-
obj.setTitle(data['title']);
|
|
689
|
-
}
|
|
690
|
-
if (data.hasOwnProperty('type') && data.type !== null && data.type !== undefined) {
|
|
691
|
-
obj.setType(_SdaType["default"].constructFromObject(data['type']));
|
|
692
|
-
}
|
|
693
|
-
if (data.hasOwnProperty('subType') && data.subType !== null && data.subType !== undefined) {
|
|
694
|
-
obj.setSubType(_SdaSubType["default"].constructFromObject(data['subType']));
|
|
695
|
-
}
|
|
696
|
-
if (data.hasOwnProperty('scope') && data.scope !== null && data.scope !== undefined) {
|
|
697
|
-
obj.setScope(_Scope["default"].constructFromObject(data['scope']));
|
|
698
|
-
}
|
|
699
|
-
if (data.hasOwnProperty('entityType') && data.entityType !== null && data.entityType !== undefined) {
|
|
700
|
-
obj.setEntityType(_EntityType["default"].constructFromObject(data['entityType']));
|
|
701
|
-
}
|
|
702
|
-
if (data.hasOwnProperty('classifications') && data.classifications !== null && data.classifications !== undefined) {
|
|
703
|
-
itemArr = [];
|
|
704
|
-
items = data.classifications;
|
|
705
|
-
for (i = 0; i < items.length; i++) {
|
|
706
|
-
itemArr.push(items[i]);
|
|
707
|
-
}
|
|
708
|
-
obj.setClassifications(itemArr);
|
|
709
|
-
}
|
|
710
|
-
if (data.hasOwnProperty('impactTypes') && data.impactTypes !== null && data.impactTypes !== undefined) {
|
|
711
|
-
itemArr = [];
|
|
712
|
-
items = data.impactTypes;
|
|
713
|
-
for (i = 0; i < items.length; i++) {
|
|
714
|
-
item = _ImpactType["default"].constructFromObject(items[i], undefined);
|
|
715
|
-
itemArr.push(item);
|
|
716
|
-
}
|
|
717
|
-
obj.setImpactTypes(itemArr);
|
|
718
|
-
}
|
|
719
|
-
if (data.hasOwnProperty('kbArticles') && data.kbArticles !== null && data.kbArticles !== undefined) {
|
|
720
|
-
itemArr = [];
|
|
721
|
-
items = data.kbArticles;
|
|
722
|
-
for (i = 0; i < items.length; i++) {
|
|
723
|
-
itemArr.push(items[i]);
|
|
724
|
-
}
|
|
725
|
-
obj.setKbArticles(itemArr);
|
|
726
|
-
}
|
|
727
|
-
if (data.hasOwnProperty('targetClusters') && data.targetClusters !== null && data.targetClusters !== undefined) {
|
|
728
|
-
itemArr = [];
|
|
729
|
-
items = data.targetClusters;
|
|
730
|
-
for (i = 0; i < items.length; i++) {
|
|
731
|
-
item = _ClusterType["default"].constructFromObject(items[i], undefined);
|
|
732
|
-
itemArr.push(item);
|
|
733
|
-
}
|
|
734
|
-
obj.setTargetClusters(itemArr);
|
|
735
|
-
}
|
|
736
|
-
if (data.hasOwnProperty('publisher') && data.publisher !== null && data.publisher !== undefined) {
|
|
737
|
-
obj.setPublisher(data['publisher']);
|
|
738
|
-
}
|
|
739
|
-
if (data.hasOwnProperty('clusterConfigs') && data.clusterConfigs !== null && data.clusterConfigs !== undefined) {
|
|
740
|
-
itemArr = [];
|
|
741
|
-
items = data.clusterConfigs;
|
|
742
|
-
for (i = 0; i < items.length; i++) {
|
|
743
|
-
item = _ClusterConfig["default"].constructFromObject(items[i], undefined);
|
|
744
|
-
itemArr.push(item);
|
|
745
|
-
}
|
|
746
|
-
obj.setClusterConfigs(itemArr);
|
|
747
|
-
}
|
|
748
|
-
if (!callFromChild) {
|
|
749
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
750
|
-
for (var property in data) {
|
|
751
|
-
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
752
|
-
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
753
|
-
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
754
|
-
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
755
|
-
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
756
|
-
obj.$unknownFields[property] = data[property];
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
}
|
|
656
|
+
if (property === "impactTypes") {
|
|
657
|
+
if (typeof this.impactTypes === 'undefined' || this.impactTypes === null) {
|
|
658
|
+
return new _ValidationError.default("impactTypes", "undefined or null");
|
|
659
|
+
}
|
|
660
|
+
if (!_ValidationUtils.default.validateMaxItems(this.impactTypes, 8)) {
|
|
661
|
+
return new _ValidationError.default("impactTypes", "does not satisfy required maxItems constraint: 8");
|
|
760
662
|
}
|
|
761
|
-
return obj;
|
|
762
663
|
}
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
key: "snakeToCamel",
|
|
771
|
-
value: function snakeToCamel(snakeStr) {
|
|
772
|
-
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
773
|
-
return match[1].toUpperCase();
|
|
774
|
-
});
|
|
664
|
+
if (property === "kbArticles") {
|
|
665
|
+
if (typeof this.kbArticles === 'undefined' || this.kbArticles === null) {
|
|
666
|
+
return new _ValidationError.default("kbArticles", "undefined or null");
|
|
667
|
+
}
|
|
668
|
+
if (!_ValidationUtils.default.validateMaxItems(this.kbArticles, 10)) {
|
|
669
|
+
return new _ValidationError.default("kbArticles", "does not satisfy required maxItems constraint: 10");
|
|
670
|
+
}
|
|
775
671
|
}
|
|
776
|
-
|
|
777
|
-
|
|
672
|
+
if (property === "targetClusters") {
|
|
673
|
+
if (typeof this.targetClusters === 'undefined' || this.targetClusters === null) {
|
|
674
|
+
return new _ValidationError.default("targetClusters", "undefined or null");
|
|
675
|
+
}
|
|
676
|
+
if (!_ValidationUtils.default.validateMaxItems(this.targetClusters, 2)) {
|
|
677
|
+
return new _ValidationError.default("targetClusters", "does not satisfy required maxItems constraint: 2");
|
|
678
|
+
}
|
|
679
|
+
if (!_ValidationUtils.default.validateMinItems(this.targetClusters, 1)) {
|
|
680
|
+
return new _ValidationError.default("targetClusters", "does not satisfy required minItems constraint: 1");
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
if (property === "publisher") {
|
|
684
|
+
if (typeof this.publisher === 'undefined' || this.publisher === null) {
|
|
685
|
+
return new _ValidationError.default("publisher", "undefined or null");
|
|
686
|
+
}
|
|
687
|
+
if (!_ValidationUtils.default.validateMinLength(this.publisher, 1)) {
|
|
688
|
+
return new _ValidationError.default("publisher", "does not satisfy required minLength constraint: 1");
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
if (property === "clusterConfigs") {
|
|
692
|
+
if (typeof this.clusterConfigs === 'undefined' || this.clusterConfigs === null) {
|
|
693
|
+
return new _ValidationError.default("clusterConfigs", "undefined or null");
|
|
694
|
+
}
|
|
695
|
+
if (!_ValidationUtils.default.validateMaxItems(this.clusterConfigs, 350)) {
|
|
696
|
+
return new _ValidationError.default("clusterConfigs", "does not satisfy required maxItems constraint: 350");
|
|
697
|
+
}
|
|
698
|
+
if (!_ValidationUtils.default.validateMinItems(this.clusterConfigs, 1)) {
|
|
699
|
+
return new _ValidationError.default("clusterConfigs", "does not satisfy required minItems constraint: 1");
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
|
|
778
706
|
/**
|
|
779
707
|
* Unique ID of the System-Defined Alert Policy.
|
|
780
708
|
* @memberof SystemDefinedPolicy
|
|
781
709
|
*/
|
|
710
|
+
exports.default = SystemDefinedPolicy;
|
|
782
711
|
function _toJsonMapType(obj, forMutation) {
|
|
783
712
|
if (obj instanceof Map) {
|
|
784
|
-
return Object.fromEntries(Array.from(obj,
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
v = _ref2[1];
|
|
788
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
789
|
-
}));
|
|
790
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
791
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
713
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
714
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
715
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
792
716
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
793
717
|
}));
|
|
794
718
|
}
|
|
@@ -871,7 +795,7 @@ SystemDefinedPolicy.prototype.classifications = undefined;
|
|
|
871
795
|
SystemDefinedPolicy.prototype.impactTypes = undefined;
|
|
872
796
|
|
|
873
797
|
/**
|
|
874
|
-
* List of knowledge base article
|
|
798
|
+
* List of knowledge base article links.
|
|
875
799
|
* @memberof SystemDefinedPolicy
|
|
876
800
|
*/
|
|
877
801
|
SystemDefinedPolicy.prototype.kbArticles = undefined;
|
|
@@ -900,5 +824,5 @@ SystemDefinedPolicy.prototype.clusterConfigs = undefined;
|
|
|
900
824
|
* 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).
|
|
901
825
|
* @memberof SystemDefinedPolicy
|
|
902
826
|
*/
|
|
903
|
-
|
|
827
|
+
_TenantAwareModel.default.prototype.tenantId = undefined;
|
|
904
828
|
// Implement OneOfmonitoring.v4.serviceability.GetSdaPolicyApiResponsedata interface:
|