@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,38 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _IPv4Address = _interopRequireDefault(require("../../../common/v1/config/IPv4Address"));
|
|
8
8
|
var _ArchiveOpts = _interopRequireDefault(require("./ArchiveOpts"));
|
|
9
|
+
var _TagOpts = _interopRequireDefault(require("./TagOpts"));
|
|
9
10
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
10
11
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
11
12
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
13
|
-
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); }
|
|
14
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
15
|
-
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."); }
|
|
16
|
-
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; } }
|
|
17
|
-
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; }
|
|
18
|
-
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; } }
|
|
19
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
20
|
-
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; }
|
|
21
|
-
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; }
|
|
22
|
-
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; }
|
|
23
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
24
|
-
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); } }
|
|
25
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
26
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
27
|
-
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); }
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
28
14
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
29
15
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
30
16
|
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
|
|
31
17
|
* Nutanix Monitoring APIs
|
|
32
18
|
*
|
|
33
|
-
* OpenAPI spec version: 4.
|
|
19
|
+
* OpenAPI spec version: 4.2.2
|
|
34
20
|
*
|
|
35
21
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
36
22
|
*
|
|
37
|
-
* Open API Dev Platform Codegen version: 17.
|
|
23
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
38
24
|
*
|
|
39
25
|
* Do not edit the class manually.
|
|
40
26
|
*
|
|
@@ -42,7 +28,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
42
28
|
/**
|
|
43
29
|
* The LogCollectionSpec model module.
|
|
44
30
|
* @module Ntnx/LogCollectionSpec
|
|
45
|
-
* @version 4.
|
|
31
|
+
* @version 4.2.2
|
|
46
32
|
* @class LogCollectionSpec
|
|
47
33
|
*
|
|
48
34
|
* @param { Date } startTime The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
|
|
@@ -52,7 +38,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
52
38
|
* @param { ArchiveOpts } archiveOpts
|
|
53
39
|
*/
|
|
54
40
|
var _LogCollectionSpec_brand = /*#__PURE__*/new WeakSet();
|
|
55
|
-
|
|
41
|
+
class LogCollectionSpec {
|
|
56
42
|
/**
|
|
57
43
|
* Constructs a new <code>LogCollectionSpec</code>.
|
|
58
44
|
* Input parameters for collecting logs.
|
|
@@ -64,8 +50,7 @@ var LogCollectionSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
64
50
|
*
|
|
65
51
|
* @param { ArchiveOpts } archiveOpts
|
|
66
52
|
*/
|
|
67
|
-
|
|
68
|
-
_classCallCheck(this, LogCollectionSpec);
|
|
53
|
+
constructor(startTime, endTime, archiveOpts) {
|
|
69
54
|
/*
|
|
70
55
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
71
56
|
* @param {Object} obj
|
|
@@ -79,7 +64,7 @@ var LogCollectionSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
79
64
|
this.$objectType = "monitoring.v4.serviceability.LogCollectionSpec";
|
|
80
65
|
/** @type {object<string, any>} */
|
|
81
66
|
this.$reserved = {
|
|
82
|
-
'$fv': "v4.
|
|
67
|
+
'$fv': "v4.r2"
|
|
83
68
|
};
|
|
84
69
|
/** @type {object<string, any>} */
|
|
85
70
|
this.$unknownFields = {};
|
|
@@ -93,465 +78,450 @@ var LogCollectionSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
93
78
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
94
79
|
* @return {module:Ntnx/LogCollectionSpec} The populated <code>LogCollectionSpec</code> instance.
|
|
95
80
|
*/
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
81
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
82
|
+
let items, item, i, itemArr, discriminator;
|
|
83
|
+
if (data) {
|
|
84
|
+
obj = obj || new LogCollectionSpec();
|
|
85
|
+
if (data.hasOwnProperty('startTime') && data.startTime !== null && data.startTime !== undefined) {
|
|
86
|
+
obj.setStartTime(data['startTime']);
|
|
87
|
+
}
|
|
88
|
+
if (data.hasOwnProperty('endTime') && data.endTime !== null && data.endTime !== undefined) {
|
|
89
|
+
obj.setEndTime(data['endTime']);
|
|
90
|
+
}
|
|
91
|
+
if (data.hasOwnProperty('includeTags') && data.includeTags !== null && data.includeTags !== undefined) {
|
|
92
|
+
itemArr = [];
|
|
93
|
+
items = data.includeTags;
|
|
94
|
+
for (i = 0; i < items.length; i++) {
|
|
95
|
+
itemArr.push(items[i]);
|
|
96
|
+
}
|
|
97
|
+
obj.setIncludeTags(itemArr);
|
|
98
|
+
}
|
|
99
|
+
if (data.hasOwnProperty('shouldAnonymize') && data.shouldAnonymize !== null && data.shouldAnonymize !== undefined) {
|
|
100
|
+
obj.setShouldAnonymize(data['shouldAnonymize']);
|
|
101
|
+
}
|
|
102
|
+
if (data.hasOwnProperty('nodeIpList') && data.nodeIpList !== null && data.nodeIpList !== undefined) {
|
|
103
|
+
itemArr = [];
|
|
104
|
+
items = data.nodeIpList;
|
|
105
|
+
for (i = 0; i < items.length; i++) {
|
|
106
|
+
item = _IPv4Address.default.constructFromObject(items[i], undefined);
|
|
107
|
+
itemArr.push(item);
|
|
108
|
+
}
|
|
109
|
+
obj.setNodeIpList(itemArr);
|
|
110
|
+
}
|
|
111
|
+
if (data.hasOwnProperty('shouldCollectFromDisabledNode') && data.shouldCollectFromDisabledNode !== null && data.shouldCollectFromDisabledNode !== undefined) {
|
|
112
|
+
obj.setShouldCollectFromDisabledNode(data['shouldCollectFromDisabledNode']);
|
|
113
|
+
}
|
|
114
|
+
if (data.hasOwnProperty('excludeTags') && data.excludeTags !== null && data.excludeTags !== undefined) {
|
|
115
|
+
itemArr = [];
|
|
116
|
+
items = data.excludeTags;
|
|
117
|
+
for (i = 0; i < items.length; i++) {
|
|
118
|
+
itemArr.push(items[i]);
|
|
119
|
+
}
|
|
120
|
+
obj.setExcludeTags(itemArr);
|
|
121
|
+
}
|
|
122
|
+
if (data.hasOwnProperty('archiveOpts') && data.archiveOpts !== null && data.archiveOpts !== undefined) {
|
|
123
|
+
obj.setArchiveOpts(_ArchiveOpts.default.constructFromObject(data['archiveOpts']));
|
|
124
|
+
}
|
|
125
|
+
if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
|
|
126
|
+
obj.setDescription(data['description']);
|
|
127
|
+
}
|
|
128
|
+
if (data.hasOwnProperty('tagOpts') && data.tagOpts !== null && data.tagOpts !== undefined) {
|
|
129
|
+
obj.setTagOpts(_TagOpts.default.constructFromObject(data['tagOpts']));
|
|
130
|
+
}
|
|
131
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
132
|
+
obj.$reserved = data['$reserved'];
|
|
133
|
+
}
|
|
134
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
135
|
+
obj.$objectType = data['$objectType'];
|
|
136
|
+
}
|
|
137
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
138
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
139
|
+
}
|
|
140
|
+
if (!callFromChild) {
|
|
141
|
+
obj.$unknownFields = {
|
|
142
|
+
...data.$unknownFields
|
|
143
|
+
};
|
|
144
|
+
for (const property in data) {
|
|
145
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
146
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
147
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
148
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
149
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
150
|
+
obj.$unknownFields[property] = data[property];
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
105
154
|
}
|
|
155
|
+
return obj;
|
|
156
|
+
}
|
|
106
157
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
158
|
+
/**
|
|
159
|
+
* Converts a given snake_case string to camelCase.
|
|
160
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
161
|
+
* @returns {string} - The converted string in camelCase format.
|
|
162
|
+
*/
|
|
163
|
+
static snakeToCamel(snakeStr) {
|
|
164
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
165
|
+
}
|
|
116
166
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
return this.endTime;
|
|
125
|
-
}
|
|
167
|
+
/**
|
|
168
|
+
* Returns The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
|
|
169
|
+
* @return {Date}
|
|
170
|
+
*/
|
|
171
|
+
getStartTime() {
|
|
172
|
+
return this.startTime;
|
|
173
|
+
}
|
|
126
174
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
this.endTime = endTime;
|
|
135
|
-
}
|
|
175
|
+
/**
|
|
176
|
+
* Sets The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
|
|
177
|
+
* @param {Date} startTime The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
|
|
178
|
+
*/
|
|
179
|
+
setStartTime(startTime) {
|
|
180
|
+
this.startTime = startTime;
|
|
181
|
+
}
|
|
136
182
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
return this.includeTags;
|
|
145
|
-
}
|
|
183
|
+
/**
|
|
184
|
+
* Returns The time marking the end of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The end time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
|
|
185
|
+
* @return {Date}
|
|
186
|
+
*/
|
|
187
|
+
getEndTime() {
|
|
188
|
+
return this.endTime;
|
|
189
|
+
}
|
|
146
190
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
this.includeTags = includeTags;
|
|
155
|
-
}
|
|
191
|
+
/**
|
|
192
|
+
* Sets The time marking the end of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The end time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
|
|
193
|
+
* @param {Date} endTime The time marking the end of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The end time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
|
|
194
|
+
*/
|
|
195
|
+
setEndTime(endTime) {
|
|
196
|
+
this.endTime = endTime;
|
|
197
|
+
}
|
|
156
198
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
return this.shouldAnonymize;
|
|
165
|
-
}
|
|
199
|
+
/**
|
|
200
|
+
* Returns Collect items associated with the tag IDs. The tag ID can be fetched from the GET tags operation. If no tags are specified, all items will be collected by default, which will take a longer time. It is recommended that at least one tag is selected.
|
|
201
|
+
* @return {string[]}
|
|
202
|
+
*/
|
|
203
|
+
getIncludeTags() {
|
|
204
|
+
return this.includeTags;
|
|
205
|
+
}
|
|
166
206
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
this.shouldAnonymize = shouldAnonymize;
|
|
175
|
-
}
|
|
207
|
+
/**
|
|
208
|
+
* Sets Collect items associated with the tag IDs. The tag ID can be fetched from the GET tags operation. If no tags are specified, all items will be collected by default, which will take a longer time. It is recommended that at least one tag is selected.
|
|
209
|
+
* @param {string[]} includeTags Collect items associated with the tag IDs. The tag ID can be fetched from the GET tags operation. If no tags are specified, all items will be collected by default, which will take a longer time. It is recommended that at least one tag is selected.
|
|
210
|
+
*/
|
|
211
|
+
setIncludeTags(includeTags) {
|
|
212
|
+
this.includeTags = includeTags;
|
|
213
|
+
}
|
|
176
214
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
return this.nodeIpList;
|
|
185
|
-
}
|
|
215
|
+
/**
|
|
216
|
+
* Returns Indicates whether to mask sensitive data in the collected logs or not.
|
|
217
|
+
* @return {boolean}
|
|
218
|
+
*/
|
|
219
|
+
getShouldAnonymize() {
|
|
220
|
+
return this.shouldAnonymize;
|
|
221
|
+
}
|
|
186
222
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
this.nodeIpList = nodeIpList;
|
|
195
|
-
}
|
|
223
|
+
/**
|
|
224
|
+
* Sets Indicates whether to mask sensitive data in the collected logs or not.
|
|
225
|
+
* @param {boolean} shouldAnonymize Indicates whether to mask sensitive data in the collected logs or not.
|
|
226
|
+
*/
|
|
227
|
+
setShouldAnonymize(shouldAnonymize) {
|
|
228
|
+
this.shouldAnonymize = shouldAnonymize;
|
|
229
|
+
}
|
|
196
230
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
return this.shouldCollectFromDisabledNode;
|
|
205
|
-
}
|
|
231
|
+
/**
|
|
232
|
+
* Returns List of node IP addresses from where the logs will be collected.
|
|
233
|
+
* @return {IPv4Address[]}
|
|
234
|
+
*/
|
|
235
|
+
getNodeIpList() {
|
|
236
|
+
return this.nodeIpList;
|
|
237
|
+
}
|
|
206
238
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
this.shouldCollectFromDisabledNode = shouldCollectFromDisabledNode;
|
|
215
|
-
}
|
|
239
|
+
/**
|
|
240
|
+
* Sets List of node IP addresses from where the logs will be collected.
|
|
241
|
+
* @param {IPv4Address[]} nodeIpList List of node IP addresses from where the logs will be collected.
|
|
242
|
+
*/
|
|
243
|
+
setNodeIpList(nodeIpList) {
|
|
244
|
+
this.nodeIpList = nodeIpList;
|
|
245
|
+
}
|
|
216
246
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
return this.excludeTags;
|
|
225
|
-
}
|
|
247
|
+
/**
|
|
248
|
+
* Returns Indicates whether to collect logs from a node where services are down or not. This feature is not supported on PC.
|
|
249
|
+
* @return {boolean}
|
|
250
|
+
*/
|
|
251
|
+
getShouldCollectFromDisabledNode() {
|
|
252
|
+
return this.shouldCollectFromDisabledNode;
|
|
253
|
+
}
|
|
226
254
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
this.excludeTags = excludeTags;
|
|
235
|
-
}
|
|
255
|
+
/**
|
|
256
|
+
* Sets Indicates whether to collect logs from a node where services are down or not. This feature is not supported on PC.
|
|
257
|
+
* @param {boolean} shouldCollectFromDisabledNode Indicates whether to collect logs from a node where services are down or not. This feature is not supported on PC.
|
|
258
|
+
*/
|
|
259
|
+
setShouldCollectFromDisabledNode(shouldCollectFromDisabledNode) {
|
|
260
|
+
this.shouldCollectFromDisabledNode = shouldCollectFromDisabledNode;
|
|
261
|
+
}
|
|
236
262
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
263
|
+
/**
|
|
264
|
+
* Returns Exclude items associated with the tag IDs. The tag ID can be fetched from the GET tags operation.
|
|
265
|
+
* @return {string[]}
|
|
266
|
+
*/
|
|
267
|
+
getExcludeTags() {
|
|
268
|
+
return this.excludeTags;
|
|
269
|
+
}
|
|
245
270
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}
|
|
271
|
+
/**
|
|
272
|
+
* Sets Exclude items associated with the tag IDs. The tag ID can be fetched from the GET tags operation.
|
|
273
|
+
* @param {string[]} excludeTags Exclude items associated with the tag IDs. The tag ID can be fetched from the GET tags operation.
|
|
274
|
+
*/
|
|
275
|
+
setExcludeTags(excludeTags) {
|
|
276
|
+
this.excludeTags = excludeTags;
|
|
277
|
+
}
|
|
254
278
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
value: function getDescription() {
|
|
262
|
-
return this.description;
|
|
263
|
-
}
|
|
279
|
+
/**
|
|
280
|
+
* @return {ArchiveOpts}
|
|
281
|
+
*/
|
|
282
|
+
getArchiveOpts() {
|
|
283
|
+
return this.archiveOpts;
|
|
284
|
+
}
|
|
264
285
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
286
|
+
/**
|
|
287
|
+
* @param {ArchiveOpts} archiveOpts
|
|
288
|
+
*/
|
|
289
|
+
setArchiveOpts(archiveOpts) {
|
|
290
|
+
this.archiveOpts = archiveOpts;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Returns Description to be attached with the associated log collection task.
|
|
295
|
+
* @return {string}
|
|
296
|
+
*/
|
|
297
|
+
getDescription() {
|
|
298
|
+
return this.description;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Sets Description to be attached with the associated log collection task.
|
|
303
|
+
* @param {string} description Description to be attached with the associated log collection task.
|
|
304
|
+
*/
|
|
305
|
+
setDescription(description) {
|
|
306
|
+
this.description = description;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* @return {TagOpts}
|
|
311
|
+
*/
|
|
312
|
+
getTagOpts() {
|
|
313
|
+
return this.tagOpts;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* @param {TagOpts} tagOpts
|
|
318
|
+
*/
|
|
319
|
+
setTagOpts(tagOpts) {
|
|
320
|
+
this.tagOpts = tagOpts;
|
|
321
|
+
}
|
|
322
|
+
get$Reserved() {
|
|
323
|
+
return this.$reserved;
|
|
324
|
+
}
|
|
325
|
+
get$ObjectType() {
|
|
326
|
+
return this.$objectType;
|
|
327
|
+
}
|
|
328
|
+
get$UnknownFields() {
|
|
329
|
+
return this.$unknownFields;
|
|
330
|
+
}
|
|
331
|
+
toJson(forMutation) {
|
|
332
|
+
if (forMutation === false) {
|
|
333
|
+
return {
|
|
334
|
+
...(typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
|
|
294
335
|
'startTime': _assertClassBrand(_LogCollectionSpec_brand, this, _handleDateType).call(this, this.getStartTime(), false)
|
|
295
|
-
} : {}),
|
|
336
|
+
} : {}),
|
|
337
|
+
...(typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
|
|
296
338
|
'endTime': _assertClassBrand(_LogCollectionSpec_brand, this, _handleDateType).call(this, this.getEndTime(), false)
|
|
297
|
-
} : {}),
|
|
339
|
+
} : {}),
|
|
340
|
+
...(typeof this.getIncludeTags() !== 'undefined' && this.getIncludeTags() !== null ? {
|
|
298
341
|
'includeTags': this.getIncludeTags()
|
|
299
|
-
} : {}),
|
|
342
|
+
} : {}),
|
|
343
|
+
...(typeof this.getShouldAnonymize() !== 'undefined' && this.getShouldAnonymize() !== null ? {
|
|
300
344
|
'shouldAnonymize': this.getShouldAnonymize()
|
|
301
|
-
} : {}),
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
345
|
+
} : {}),
|
|
346
|
+
...(typeof this.getNodeIpList() !== 'undefined' && this.getNodeIpList() !== null ? {
|
|
347
|
+
'nodeIpList': this.getNodeIpList().map(item => item.toJson(false))
|
|
348
|
+
} : {}),
|
|
349
|
+
...(typeof this.getShouldCollectFromDisabledNode() !== 'undefined' && this.getShouldCollectFromDisabledNode() !== null ? {
|
|
306
350
|
'shouldCollectFromDisabledNode': this.getShouldCollectFromDisabledNode()
|
|
307
|
-
} : {}),
|
|
351
|
+
} : {}),
|
|
352
|
+
...(typeof this.getExcludeTags() !== 'undefined' && this.getExcludeTags() !== null ? {
|
|
308
353
|
'excludeTags': this.getExcludeTags()
|
|
309
|
-
} : {}),
|
|
354
|
+
} : {}),
|
|
355
|
+
...(typeof this.getArchiveOpts() !== 'undefined' && this.getArchiveOpts() !== null ? {
|
|
310
356
|
'archiveOpts': this.getArchiveOpts().toJson(false)
|
|
311
|
-
} : {}),
|
|
357
|
+
} : {}),
|
|
358
|
+
...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
312
359
|
'description': this.getDescription()
|
|
313
|
-
} : {}),
|
|
314
|
-
|
|
315
|
-
'
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
360
|
+
} : {}),
|
|
361
|
+
...(typeof this.getTagOpts() !== 'undefined' && this.getTagOpts() !== null ? {
|
|
362
|
+
'tagOpts': this.getTagOpts().toJson(false)
|
|
363
|
+
} : {}),
|
|
364
|
+
'$reserved': this.get$Reserved(),
|
|
365
|
+
'$objectType': this.get$ObjectType(),
|
|
366
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
367
|
+
'$unknownFields': {}
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
return {
|
|
371
|
+
...(typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
|
|
320
372
|
'startTime': _assertClassBrand(_LogCollectionSpec_brand, this, _handleDateType).call(this, this.getStartTime(), false)
|
|
321
|
-
} : {}),
|
|
373
|
+
} : {}),
|
|
374
|
+
...(typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
|
|
322
375
|
'endTime': _assertClassBrand(_LogCollectionSpec_brand, this, _handleDateType).call(this, this.getEndTime(), false)
|
|
323
|
-
} : {}),
|
|
376
|
+
} : {}),
|
|
377
|
+
...(typeof this.getIncludeTags() !== 'undefined' && this.getIncludeTags() !== null ? {
|
|
324
378
|
'includeTags': this.getIncludeTags()
|
|
325
|
-
} : {}),
|
|
379
|
+
} : {}),
|
|
380
|
+
...(typeof this.getShouldAnonymize() !== 'undefined' && this.getShouldAnonymize() !== null ? {
|
|
326
381
|
'shouldAnonymize': this.getShouldAnonymize()
|
|
327
|
-
} : {}),
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
382
|
+
} : {}),
|
|
383
|
+
...(typeof this.getNodeIpList() !== 'undefined' && this.getNodeIpList() !== null ? {
|
|
384
|
+
'nodeIpList': this.getNodeIpList().map(item => item.toJson(false))
|
|
385
|
+
} : {}),
|
|
386
|
+
...(typeof this.getShouldCollectFromDisabledNode() !== 'undefined' && this.getShouldCollectFromDisabledNode() !== null ? {
|
|
332
387
|
'shouldCollectFromDisabledNode': this.getShouldCollectFromDisabledNode()
|
|
333
|
-
} : {}),
|
|
388
|
+
} : {}),
|
|
389
|
+
...(typeof this.getExcludeTags() !== 'undefined' && this.getExcludeTags() !== null ? {
|
|
334
390
|
'excludeTags': this.getExcludeTags()
|
|
335
|
-
} : {}),
|
|
391
|
+
} : {}),
|
|
392
|
+
...(typeof this.getArchiveOpts() !== 'undefined' && this.getArchiveOpts() !== null ? {
|
|
336
393
|
'archiveOpts': this.getArchiveOpts().toJson(false)
|
|
337
|
-
} : {}),
|
|
394
|
+
} : {}),
|
|
395
|
+
...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
338
396
|
'description': this.getDescription()
|
|
339
|
-
} : {}),
|
|
340
|
-
|
|
341
|
-
'
|
|
342
|
-
|
|
343
|
-
|
|
397
|
+
} : {}),
|
|
398
|
+
...(typeof this.getTagOpts() !== 'undefined' && this.getTagOpts() !== null ? {
|
|
399
|
+
'tagOpts': this.getTagOpts().toJson(false)
|
|
400
|
+
} : {}),
|
|
401
|
+
'$reserved': this.get$Reserved(),
|
|
402
|
+
'$objectType': this.get$ObjectType(),
|
|
403
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
404
|
+
'$unknownFields': {}
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
validate(scope, properties) {
|
|
408
|
+
let propList = [];
|
|
409
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
410
|
+
//cases validate() and validate(scope)
|
|
411
|
+
propList = ["startTime", "endTime", "archiveOpts"];
|
|
412
|
+
} else if (arguments.length === 1) {
|
|
413
|
+
//case validate(properties)
|
|
414
|
+
propList = arguments[0];
|
|
415
|
+
scope = null;
|
|
416
|
+
} else {
|
|
417
|
+
//case validate(scope, properties)
|
|
418
|
+
propList = arguments[1];
|
|
344
419
|
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
scope = null;
|
|
420
|
+
let res = [];
|
|
421
|
+
let err = null;
|
|
422
|
+
propList.forEach(property => {
|
|
423
|
+
err = this.validateProperty(property, scope);
|
|
424
|
+
if (err) {
|
|
425
|
+
res.push(err);
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
return new Promise(function (resolve, reject) {
|
|
429
|
+
if (res.length !== 0) {
|
|
430
|
+
reject(err);
|
|
357
431
|
} else {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
}
|
|
368
|
-
});
|
|
369
|
-
return new Promise(function (resolve, reject) {
|
|
370
|
-
if (res.length !== 0) {
|
|
371
|
-
reject(err);
|
|
372
|
-
} else {
|
|
373
|
-
resolve();
|
|
374
|
-
}
|
|
375
|
-
});
|
|
432
|
+
resolve();
|
|
433
|
+
}
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
validateProperty(scope, property) {
|
|
437
|
+
if (property === "startTime") {
|
|
438
|
+
if (typeof this.startTime === 'undefined' || this.startTime === null) {
|
|
439
|
+
return new _ValidationError.default("startTime", "undefined or null");
|
|
440
|
+
}
|
|
376
441
|
}
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
if (property === "startTime") {
|
|
381
|
-
if (typeof this.startTime === 'undefined' || this.startTime === null) {
|
|
382
|
-
return new _ValidationError["default"]("startTime", "undefined or null");
|
|
383
|
-
}
|
|
442
|
+
if (property === "endTime") {
|
|
443
|
+
if (typeof this.endTime === 'undefined' || this.endTime === null) {
|
|
444
|
+
return new _ValidationError.default("endTime", "undefined or null");
|
|
384
445
|
}
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
446
|
+
}
|
|
447
|
+
if (property === "includeTags") {
|
|
448
|
+
if (typeof this.includeTags === 'undefined' || this.includeTags === null) {
|
|
449
|
+
return new _ValidationError.default("includeTags", "undefined or null");
|
|
389
450
|
}
|
|
390
|
-
if (
|
|
391
|
-
|
|
392
|
-
return new _ValidationError["default"]("includeTags", "undefined or null");
|
|
393
|
-
}
|
|
394
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.includeTags, 300)) {
|
|
395
|
-
return new _ValidationError["default"]("includeTags", "does not satisfy required maxItems constraint: 300");
|
|
396
|
-
}
|
|
451
|
+
if (!_ValidationUtils.default.validateMaxItems(this.includeTags, 300)) {
|
|
452
|
+
return new _ValidationError.default("includeTags", "does not satisfy required maxItems constraint: 300");
|
|
397
453
|
}
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
454
|
+
}
|
|
455
|
+
if (property === "shouldAnonymize") {
|
|
456
|
+
if (typeof this.shouldAnonymize === 'undefined' || this.shouldAnonymize === null) {
|
|
457
|
+
return new _ValidationError.default("shouldAnonymize", "undefined or null");
|
|
402
458
|
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.nodeIpList, 48)) {
|
|
408
|
-
return new _ValidationError["default"]("nodeIpList", "does not satisfy required maxItems constraint: 48");
|
|
409
|
-
}
|
|
459
|
+
}
|
|
460
|
+
if (property === "nodeIpList") {
|
|
461
|
+
if (typeof this.nodeIpList === 'undefined' || this.nodeIpList === null) {
|
|
462
|
+
return new _ValidationError.default("nodeIpList", "undefined or null");
|
|
410
463
|
}
|
|
411
|
-
if (
|
|
412
|
-
|
|
413
|
-
return new _ValidationError["default"]("shouldCollectFromDisabledNode", "undefined or null");
|
|
414
|
-
}
|
|
464
|
+
if (!_ValidationUtils.default.validateMaxItems(this.nodeIpList, 48)) {
|
|
465
|
+
return new _ValidationError.default("nodeIpList", "does not satisfy required maxItems constraint: 48");
|
|
415
466
|
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.excludeTags, 50)) {
|
|
421
|
-
return new _ValidationError["default"]("excludeTags", "does not satisfy required maxItems constraint: 50");
|
|
422
|
-
}
|
|
467
|
+
}
|
|
468
|
+
if (property === "shouldCollectFromDisabledNode") {
|
|
469
|
+
if (typeof this.shouldCollectFromDisabledNode === 'undefined' || this.shouldCollectFromDisabledNode === null) {
|
|
470
|
+
return new _ValidationError.default("shouldCollectFromDisabledNode", "undefined or null");
|
|
423
471
|
}
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
472
|
+
}
|
|
473
|
+
if (property === "excludeTags") {
|
|
474
|
+
if (typeof this.excludeTags === 'undefined' || this.excludeTags === null) {
|
|
475
|
+
return new _ValidationError.default("excludeTags", "undefined or null");
|
|
428
476
|
}
|
|
429
|
-
if (
|
|
430
|
-
|
|
431
|
-
return new _ValidationError["default"]("description", "undefined or null");
|
|
432
|
-
}
|
|
477
|
+
if (!_ValidationUtils.default.validateMaxItems(this.excludeTags, 50)) {
|
|
478
|
+
return new _ValidationError.default("excludeTags", "does not satisfy required maxItems constraint: 50");
|
|
433
479
|
}
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
480
|
+
}
|
|
481
|
+
if (property === "archiveOpts") {
|
|
482
|
+
if (typeof this.archiveOpts === 'undefined' || this.archiveOpts === null) {
|
|
483
|
+
return new _ValidationError.default("archiveOpts", "undefined or null");
|
|
438
484
|
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
485
|
+
}
|
|
486
|
+
if (property === "description") {
|
|
487
|
+
if (typeof this.description === 'undefined' || this.description === null) {
|
|
488
|
+
return new _ValidationError.default("description", "undefined or null");
|
|
443
489
|
}
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
490
|
+
}
|
|
491
|
+
if (property === "tagOpts") {
|
|
492
|
+
if (typeof this.tagOpts === 'undefined' || this.tagOpts === null) {
|
|
493
|
+
return new _ValidationError.default("tagOpts", "undefined or null");
|
|
448
494
|
}
|
|
449
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
450
495
|
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
455
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
456
|
-
var items, item, i, itemArr, discriminator;
|
|
457
|
-
if (data) {
|
|
458
|
-
obj = obj || new LogCollectionSpec();
|
|
459
|
-
if (data.hasOwnProperty('startTime') && data.startTime !== null && data.startTime !== undefined) {
|
|
460
|
-
obj.setStartTime(data['startTime']);
|
|
461
|
-
}
|
|
462
|
-
if (data.hasOwnProperty('endTime') && data.endTime !== null && data.endTime !== undefined) {
|
|
463
|
-
obj.setEndTime(data['endTime']);
|
|
464
|
-
}
|
|
465
|
-
if (data.hasOwnProperty('includeTags') && data.includeTags !== null && data.includeTags !== undefined) {
|
|
466
|
-
itemArr = [];
|
|
467
|
-
items = data.includeTags;
|
|
468
|
-
for (i = 0; i < items.length; i++) {
|
|
469
|
-
itemArr.push(items[i]);
|
|
470
|
-
}
|
|
471
|
-
obj.setIncludeTags(itemArr);
|
|
472
|
-
}
|
|
473
|
-
if (data.hasOwnProperty('shouldAnonymize') && data.shouldAnonymize !== null && data.shouldAnonymize !== undefined) {
|
|
474
|
-
obj.setShouldAnonymize(data['shouldAnonymize']);
|
|
475
|
-
}
|
|
476
|
-
if (data.hasOwnProperty('nodeIpList') && data.nodeIpList !== null && data.nodeIpList !== undefined) {
|
|
477
|
-
itemArr = [];
|
|
478
|
-
items = data.nodeIpList;
|
|
479
|
-
for (i = 0; i < items.length; i++) {
|
|
480
|
-
item = _IPv4Address["default"].constructFromObject(items[i], undefined);
|
|
481
|
-
itemArr.push(item);
|
|
482
|
-
}
|
|
483
|
-
obj.setNodeIpList(itemArr);
|
|
484
|
-
}
|
|
485
|
-
if (data.hasOwnProperty('shouldCollectFromDisabledNode') && data.shouldCollectFromDisabledNode !== null && data.shouldCollectFromDisabledNode !== undefined) {
|
|
486
|
-
obj.setShouldCollectFromDisabledNode(data['shouldCollectFromDisabledNode']);
|
|
487
|
-
}
|
|
488
|
-
if (data.hasOwnProperty('excludeTags') && data.excludeTags !== null && data.excludeTags !== undefined) {
|
|
489
|
-
itemArr = [];
|
|
490
|
-
items = data.excludeTags;
|
|
491
|
-
for (i = 0; i < items.length; i++) {
|
|
492
|
-
itemArr.push(items[i]);
|
|
493
|
-
}
|
|
494
|
-
obj.setExcludeTags(itemArr);
|
|
495
|
-
}
|
|
496
|
-
if (data.hasOwnProperty('archiveOpts') && data.archiveOpts !== null && data.archiveOpts !== undefined) {
|
|
497
|
-
obj.setArchiveOpts(_ArchiveOpts["default"].constructFromObject(data['archiveOpts']));
|
|
498
|
-
}
|
|
499
|
-
if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
|
|
500
|
-
obj.setDescription(data['description']);
|
|
501
|
-
}
|
|
502
|
-
if (data.hasOwnProperty('$reserved')) {
|
|
503
|
-
obj.$reserved = data['$reserved'];
|
|
504
|
-
}
|
|
505
|
-
if (data.hasOwnProperty('$objectType')) {
|
|
506
|
-
obj.$objectType = data['$objectType'];
|
|
507
|
-
}
|
|
508
|
-
if (data.hasOwnProperty('$unknownFields')) {
|
|
509
|
-
obj.$unknownFields = data['$unknownFields'];
|
|
510
|
-
}
|
|
511
|
-
if (!callFromChild) {
|
|
512
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
513
|
-
for (var property in data) {
|
|
514
|
-
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
515
|
-
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
516
|
-
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
517
|
-
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
518
|
-
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
519
|
-
obj.$unknownFields[property] = data[property];
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
}
|
|
496
|
+
if (property === "$reserved") {
|
|
497
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
498
|
+
return new _ValidationError.default("$reserved", "undefined or null");
|
|
523
499
|
}
|
|
524
|
-
return obj;
|
|
525
500
|
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
536
|
-
return match[1].toUpperCase();
|
|
537
|
-
});
|
|
501
|
+
if (property === "$objectType") {
|
|
502
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
503
|
+
return new _ValidationError.default("$objectType", "undefined or null");
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
if (property === "$unknownFields") {
|
|
507
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
508
|
+
return new _ValidationError.default("$unknownFields", "undefined or null");
|
|
509
|
+
}
|
|
538
510
|
}
|
|
539
|
-
|
|
540
|
-
}
|
|
511
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
541
515
|
/**
|
|
542
516
|
* The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
|
|
543
517
|
* @memberof LogCollectionSpec
|
|
544
518
|
*/
|
|
519
|
+
exports.default = LogCollectionSpec;
|
|
545
520
|
function _toJsonMapType(obj, forMutation) {
|
|
546
521
|
if (obj instanceof Map) {
|
|
547
|
-
return Object.fromEntries(Array.from(obj,
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
v = _ref2[1];
|
|
551
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
552
|
-
}));
|
|
553
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
554
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
522
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
523
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
524
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
555
525
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
556
526
|
}));
|
|
557
527
|
}
|
|
@@ -620,6 +590,11 @@ LogCollectionSpec.prototype.archiveOpts = undefined;
|
|
|
620
590
|
* @default 'Log collection via V4 API'
|
|
621
591
|
*/
|
|
622
592
|
LogCollectionSpec.prototype.description = 'Log collection via V4 API';
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* @memberof LogCollectionSpec
|
|
596
|
+
*/
|
|
597
|
+
LogCollectionSpec.prototype.tagOpts = undefined;
|
|
623
598
|
LogCollectionSpec.prototype.$reserved = undefined;
|
|
624
599
|
LogCollectionSpec.prototype.$objectType = undefined;
|
|
625
600
|
LogCollectionSpec.prototype.$unknownFields = undefined;
|