datadog_api_client 2.48.0 → 2.49.0
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.
- checksums.yaml +4 -4
- data/.generator/schemas/v1/openapi.yaml +424 -44
- data/.generator/schemas/v2/openapi.yaml +2290 -500
- data/CHANGELOG.md +25 -0
- data/examples/v1/dashboards/CreateDashboard_1093147852.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_1442588603.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1617893815.rb +61 -0
- data/examples/v1/dashboards/CreateDashboard_1712853070.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_2345541687.rb +65 -0
- data/examples/v1/dashboards/CreateDashboard_252716965.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2617251399.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_2823363212.rb +55 -0
- data/examples/v1/dashboards/CreateDashboard_3882428227.rb +1 -1
- data/examples/v1/monitors/CreateMonitor_3626832481.rb +33 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_2106135939.rb +49 -0
- data/examples/v1/tags/GetHostTags.rb +1 -1
- data/examples/v1/tags/ListHostTags.rb +1 -1
- data/examples/v2/aws-integration/CreateAWSAccount.rb +0 -11
- data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +0 -11
- data/examples/v2/aws-integration/UpdateAWSAccount.rb +0 -11
- data/examples/v2/observability-pipelines/CreatePipeline.rb +1 -1
- data/examples/v2/observability-pipelines/UpdatePipeline.rb +1 -1
- data/examples/v2/observability-pipelines/ValidatePipeline.rb +1 -1
- data/examples/v2/reference-tables/UpdateReferenceTable.rb +0 -1
- data/examples/v2/reference-tables/UpsertRows.rb +1 -3
- data/examples/v2/security-monitoring/CreateSecurityMonitoringCriticalAsset.rb +20 -0
- data/examples/v2/security-monitoring/DeleteSecurityMonitoringCriticalAsset.rb +8 -0
- data/examples/v2/security-monitoring/GetCriticalAssetsAffectingRule.rb +8 -0
- data/examples/v2/security-monitoring/GetSecurityMonitoringCriticalAsset.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityFindings.rb +5 -0
- data/examples/v2/security-monitoring/ListSecurityFindings_2925663885.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityMonitoringCriticalAssets.rb +5 -0
- data/examples/v2/security-monitoring/SearchSecurityFindings.rb +13 -0
- data/examples/v2/security-monitoring/SearchSecurityFindings_3678541639.rb +16 -0
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringCriticalAsset.rb +24 -0
- data/examples/v2/spa/GetSPARecommendations.rb +1 -1
- data/examples/v2/spa/GetSPARecommendationsWithShard.rb +8 -0
- data/lib/datadog_api_client/configuration.rb +7 -6
- data/lib/datadog_api_client/inflector.rb +79 -6
- data/lib/datadog_api_client/v1/api/tags_api.rb +17 -17
- data/lib/datadog_api_client/v1/models/bar_chart_widget_definition.rb +216 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_definition_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_display.rb +63 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_flat.rb +123 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_flat_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_legend.rb +28 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_request.rb +261 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_scaling.rb +27 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_stacked.rb +133 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_stacked_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_style.rb +125 -0
- data/lib/datadog_api_client/v1/models/distribution_widget_request.rb +36 -2
- data/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb +29 -1
- data/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb +23 -1
- data/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +21 -1
- data/lib/datadog_api_client/v1/models/heat_map_widget_x_axis.rb +107 -0
- data/lib/datadog_api_client/v1/models/host_tags.rb +2 -2
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_data_source.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_model_type_override.rb +28 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_monitor_options.rb +147 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_query_definition.rb +232 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +2 -1
- data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/split_graph_source_widget_definition.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_api_step.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_api_subtest_step.rb +236 -0
- data/lib/datadog_api_client/v1/models/synthetics_api_subtest_step_subtype.rb +26 -0
- data/lib/datadog_api_client/v1/models/tag_to_hosts.rb +2 -2
- data/lib/datadog_api_client/v1/models/widget_definition.rb +1 -0
- data/lib/datadog_api_client/v1/models/{distribution_widget_histogram_request_type.rb → widget_histogram_request_type.rb} +1 -1
- data/lib/datadog_api_client/v1/models/widget_marker.rb +3 -1
- data/lib/datadog_api_client/v2/api/events_api.rb +0 -2
- data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/observability_pipelines_api.rb +6 -6
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +597 -0
- data/lib/datadog_api_client/v2/api/spa_api.rb +86 -11
- data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/azure_storage_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes_value.rb +63 -0
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +23 -1
- data/lib/datadog_api_client/v2/models/list_security_findings_response.rb +127 -0
- data/lib/datadog_api_client/v2/models/microsoft_sentinel_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_hostname_processor.rb +198 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_hostname_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_data_firehose_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb +169 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +25 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +17 -13
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_pipeline_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb +14 -10
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +11 -10
- data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_logs_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_metrics_destination.rb +169 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_metrics_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination.rb +13 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination_data_stream.rb +125 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +15 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_reference_table.rb +156 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +6 -4
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluent_bit_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluentd_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination.rb +220 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_auth_strategy.rb +28 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_compression.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_compression_algorithm.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_encoding.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source_auth_strategy.rb +1 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_server_source.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination.rb +361 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination_compression.rb +30 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination_encoding.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{observability_pipeline_kafka_source_librdkafka_option.rb → observability_pipeline_kafka_librdkafka_option.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{observability_pipeline_kafka_source_sasl.rb → observability_pipeline_kafka_sasl.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{observability_pipeline_pipeline_kafka_source_sasl_mechanism.rb → observability_pipeline_kafka_sasl_mechanism.rb} +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source.rb +5 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_logstash_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor.rb +229 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_rule.rb +188 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_rule_action.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_rule_mode.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_new_relic_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_open_search_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_opentelemetry_source.rb +176 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_opentelemetry_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_xml_processor.rb +300 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_xml_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +21 -6
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_overflow_action.rb +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +35 -20
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_library_pattern_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sentinel_one_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_split_array_processor.rb +229 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_split_array_processor_array_config.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_split_array_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_tcp_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/recommendation_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_findings_attributes.rb +127 -0
- data/lib/datadog_api_client/v2/models/security_findings_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/security_findings_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_findings_links.rb +105 -0
- data/lib/datadog_api_client/v2/models/{data_export_config.rb → security_findings_meta.rb} +32 -42
- data/lib/datadog_api_client/v2/models/security_findings_page.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_findings_search_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_findings_search_request_data.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_findings_search_request_data_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/security_findings_search_request_page.rb +137 -0
- data/lib/datadog_api_client/v2/models/security_findings_sort.rb +27 -0
- data/lib/datadog_api_client/v2/models/security_findings_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset.rb +125 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_attributes.rb +235 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_attributes.rb +187 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_severity.rb +32 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{awsccm_config.rb → security_monitoring_critical_assets_response.rb} +12 -12
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +99 -7
|
@@ -18,19 +18,21 @@ require 'time'
|
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
20
|
# The `remove_fields` processor deletes specified fields from logs.
|
|
21
|
+
#
|
|
22
|
+
# **Supported pipeline types:** logs
|
|
21
23
|
class ObservabilityPipelineRemoveFieldsProcessor
|
|
22
24
|
include BaseGenericModel
|
|
23
25
|
|
|
24
26
|
# The display name for a component.
|
|
25
27
|
attr_accessor :display_name
|
|
26
28
|
|
|
27
|
-
#
|
|
29
|
+
# Indicates whether the processor is enabled.
|
|
28
30
|
attr_reader :enabled
|
|
29
31
|
|
|
30
32
|
# A list of field names to be removed from each log event.
|
|
31
33
|
attr_reader :fields
|
|
32
34
|
|
|
33
|
-
# The unique identifier for this component. Used
|
|
35
|
+
# The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
|
|
34
36
|
attr_reader :id
|
|
35
37
|
|
|
36
38
|
# A Datadog search query used to determine which logs this processor targets.
|
|
@@ -18,13 +18,15 @@ require 'time'
|
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
20
|
# The `rename_fields` processor changes field names.
|
|
21
|
+
#
|
|
22
|
+
# **Supported pipeline types:** logs
|
|
21
23
|
class ObservabilityPipelineRenameFieldsProcessor
|
|
22
24
|
include BaseGenericModel
|
|
23
25
|
|
|
24
26
|
# The display name for a component.
|
|
25
27
|
attr_accessor :display_name
|
|
26
28
|
|
|
27
|
-
#
|
|
29
|
+
# Indicates whether the processor is enabled.
|
|
28
30
|
attr_reader :enabled
|
|
29
31
|
|
|
30
32
|
# A list of rename rules specifying which fields to rename in the event, what to rename them to, and whether to preserve the original fields.
|
|
@@ -18,6 +18,8 @@ require 'time'
|
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
20
|
# The `rsyslog` destination forwards logs to an external `rsyslog` server over TCP or UDP using the syslog protocol.
|
|
21
|
+
#
|
|
22
|
+
# **Supported pipeline types:** logs
|
|
21
23
|
class ObservabilityPipelineRsyslogDestination
|
|
22
24
|
include BaseGenericModel
|
|
23
25
|
|
|
@@ -18,10 +18,12 @@ require 'time'
|
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
20
|
# The `rsyslog` source listens for logs over TCP or UDP from an `rsyslog` server using the syslog protocol.
|
|
21
|
+
#
|
|
22
|
+
# **Supported pipeline types:** logs
|
|
21
23
|
class ObservabilityPipelineRsyslogSource
|
|
22
24
|
include BaseGenericModel
|
|
23
25
|
|
|
24
|
-
# The unique identifier for this component. Used
|
|
26
|
+
# The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
|
|
25
27
|
attr_reader :id
|
|
26
28
|
|
|
27
29
|
# Protocol used by the syslog source to receive messages.
|
|
@@ -18,26 +18,28 @@ require 'time'
|
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
20
|
# The `sample` processor allows probabilistic sampling of logs at a fixed rate.
|
|
21
|
+
#
|
|
22
|
+
# **Supported pipeline types:** logs
|
|
21
23
|
class ObservabilityPipelineSampleProcessor
|
|
22
24
|
include BaseGenericModel
|
|
23
25
|
|
|
24
26
|
# The display name for a component.
|
|
25
27
|
attr_accessor :display_name
|
|
26
28
|
|
|
27
|
-
#
|
|
29
|
+
# Indicates whether the processor is enabled.
|
|
28
30
|
attr_reader :enabled
|
|
29
31
|
|
|
30
|
-
#
|
|
32
|
+
# Optional list of fields to group events by. Each group is sampled independently.
|
|
33
|
+
attr_reader :group_by
|
|
34
|
+
|
|
35
|
+
# The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
|
|
31
36
|
attr_reader :id
|
|
32
37
|
|
|
33
38
|
# A Datadog search query used to determine which logs this processor targets.
|
|
34
39
|
attr_reader :include
|
|
35
40
|
|
|
36
41
|
# The percentage of logs to sample.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
# Number of events to sample (1 in N).
|
|
40
|
-
attr_reader :rate
|
|
42
|
+
attr_reader :percentage
|
|
41
43
|
|
|
42
44
|
# The processor type. The value should always be `sample`.
|
|
43
45
|
attr_reader :type
|
|
@@ -50,10 +52,10 @@ module DatadogAPIClient::V2
|
|
|
50
52
|
{
|
|
51
53
|
:'display_name' => :'display_name',
|
|
52
54
|
:'enabled' => :'enabled',
|
|
55
|
+
:'group_by' => :'group_by',
|
|
53
56
|
:'id' => :'id',
|
|
54
57
|
:'include' => :'include',
|
|
55
58
|
:'percentage' => :'percentage',
|
|
56
|
-
:'rate' => :'rate',
|
|
57
59
|
:'type' => :'type'
|
|
58
60
|
}
|
|
59
61
|
end
|
|
@@ -64,10 +66,10 @@ module DatadogAPIClient::V2
|
|
|
64
66
|
{
|
|
65
67
|
:'display_name' => :'String',
|
|
66
68
|
:'enabled' => :'Boolean',
|
|
69
|
+
:'group_by' => :'Array<String>',
|
|
67
70
|
:'id' => :'String',
|
|
68
71
|
:'include' => :'String',
|
|
69
72
|
:'percentage' => :'Float',
|
|
70
|
-
:'rate' => :'Integer',
|
|
71
73
|
:'type' => :'ObservabilityPipelineSampleProcessorType'
|
|
72
74
|
}
|
|
73
75
|
end
|
|
@@ -98,6 +100,12 @@ module DatadogAPIClient::V2
|
|
|
98
100
|
self.enabled = attributes[:'enabled']
|
|
99
101
|
end
|
|
100
102
|
|
|
103
|
+
if attributes.key?(:'group_by')
|
|
104
|
+
if (value = attributes[:'group_by']).is_a?(Array)
|
|
105
|
+
self.group_by = value
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
101
109
|
if attributes.key?(:'id')
|
|
102
110
|
self.id = attributes[:'id']
|
|
103
111
|
end
|
|
@@ -110,10 +118,6 @@ module DatadogAPIClient::V2
|
|
|
110
118
|
self.percentage = attributes[:'percentage']
|
|
111
119
|
end
|
|
112
120
|
|
|
113
|
-
if attributes.key?(:'rate')
|
|
114
|
-
self.rate = attributes[:'rate']
|
|
115
|
-
end
|
|
116
|
-
|
|
117
121
|
if attributes.key?(:'type')
|
|
118
122
|
self.type = attributes[:'type']
|
|
119
123
|
end
|
|
@@ -124,9 +128,10 @@ module DatadogAPIClient::V2
|
|
|
124
128
|
# @!visibility private
|
|
125
129
|
def valid?
|
|
126
130
|
return false if @enabled.nil?
|
|
131
|
+
return false if !@group_by.nil? && @group_by.length < 1
|
|
127
132
|
return false if @id.nil?
|
|
128
133
|
return false if @include.nil?
|
|
129
|
-
return false if
|
|
134
|
+
return false if @percentage.nil?
|
|
130
135
|
return false if @type.nil?
|
|
131
136
|
true
|
|
132
137
|
end
|
|
@@ -141,6 +146,16 @@ module DatadogAPIClient::V2
|
|
|
141
146
|
@enabled = enabled
|
|
142
147
|
end
|
|
143
148
|
|
|
149
|
+
# Custom attribute writer method with validation
|
|
150
|
+
# @param group_by [Object] Object to be assigned
|
|
151
|
+
# @!visibility private
|
|
152
|
+
def group_by=(group_by)
|
|
153
|
+
if !group_by.nil? && group_by.length < 1
|
|
154
|
+
fail ArgumentError, 'invalid value for "group_by", number of items must be greater than or equal to 1.'
|
|
155
|
+
end
|
|
156
|
+
@group_by = group_by
|
|
157
|
+
end
|
|
158
|
+
|
|
144
159
|
# Custom attribute writer method with validation
|
|
145
160
|
# @param id [Object] Object to be assigned
|
|
146
161
|
# @!visibility private
|
|
@@ -162,13 +177,13 @@ module DatadogAPIClient::V2
|
|
|
162
177
|
end
|
|
163
178
|
|
|
164
179
|
# Custom attribute writer method with validation
|
|
165
|
-
# @param
|
|
180
|
+
# @param percentage [Object] Object to be assigned
|
|
166
181
|
# @!visibility private
|
|
167
|
-
def
|
|
168
|
-
if
|
|
169
|
-
fail ArgumentError, 'invalid value for "
|
|
182
|
+
def percentage=(percentage)
|
|
183
|
+
if percentage.nil?
|
|
184
|
+
fail ArgumentError, 'invalid value for "percentage", percentage cannot be nil.'
|
|
170
185
|
end
|
|
171
|
-
@
|
|
186
|
+
@percentage = percentage
|
|
172
187
|
end
|
|
173
188
|
|
|
174
189
|
# Custom attribute writer method with validation
|
|
@@ -209,10 +224,10 @@ module DatadogAPIClient::V2
|
|
|
209
224
|
self.class == o.class &&
|
|
210
225
|
display_name == o.display_name &&
|
|
211
226
|
enabled == o.enabled &&
|
|
227
|
+
group_by == o.group_by &&
|
|
212
228
|
id == o.id &&
|
|
213
229
|
include == o.include &&
|
|
214
230
|
percentage == o.percentage &&
|
|
215
|
-
rate == o.rate &&
|
|
216
231
|
type == o.type &&
|
|
217
232
|
additional_properties == o.additional_properties
|
|
218
233
|
end
|
|
@@ -221,7 +236,7 @@ module DatadogAPIClient::V2
|
|
|
221
236
|
# @return [Integer] Hash code
|
|
222
237
|
# @!visibility private
|
|
223
238
|
def hash
|
|
224
|
-
[display_name, enabled, id, include, percentage,
|
|
239
|
+
[display_name, enabled, group_by, id, include, percentage, type, additional_properties].hash
|
|
225
240
|
end
|
|
226
241
|
end
|
|
227
242
|
end
|
data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb
CHANGED
|
@@ -18,16 +18,18 @@ require 'time'
|
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
20
|
# The `sensitive_data_scanner` processor detects and optionally redacts sensitive data in log events.
|
|
21
|
+
#
|
|
22
|
+
# **Supported pipeline types:** logs
|
|
21
23
|
class ObservabilityPipelineSensitiveDataScannerProcessor
|
|
22
24
|
include BaseGenericModel
|
|
23
25
|
|
|
24
26
|
# The display name for a component.
|
|
25
27
|
attr_accessor :display_name
|
|
26
28
|
|
|
27
|
-
#
|
|
29
|
+
# Indicates whether the processor is enabled.
|
|
28
30
|
attr_reader :enabled
|
|
29
31
|
|
|
30
|
-
# The unique identifier for this component. Used
|
|
32
|
+
# The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
|
|
31
33
|
attr_reader :id
|
|
32
34
|
|
|
33
35
|
# A Datadog search query used to determine which logs this processor targets.
|
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Human-readable description providing context about a sensitive data scanner rule
|
|
25
|
+
attr_accessor :description
|
|
26
|
+
|
|
24
27
|
# A regular expression used to detect sensitive values. Must be a valid regex.
|
|
25
28
|
attr_reader :rule
|
|
26
29
|
|
|
@@ -30,6 +33,7 @@ module DatadogAPIClient::V2
|
|
|
30
33
|
# @!visibility private
|
|
31
34
|
def self.attribute_map
|
|
32
35
|
{
|
|
36
|
+
:'description' => :'description',
|
|
33
37
|
:'rule' => :'rule'
|
|
34
38
|
}
|
|
35
39
|
end
|
|
@@ -38,6 +42,7 @@ module DatadogAPIClient::V2
|
|
|
38
42
|
# @!visibility private
|
|
39
43
|
def self.openapi_types
|
|
40
44
|
{
|
|
45
|
+
:'description' => :'String',
|
|
41
46
|
:'rule' => :'String'
|
|
42
47
|
}
|
|
43
48
|
end
|
|
@@ -60,6 +65,10 @@ module DatadogAPIClient::V2
|
|
|
60
65
|
end
|
|
61
66
|
}
|
|
62
67
|
|
|
68
|
+
if attributes.key?(:'description')
|
|
69
|
+
self.description = attributes[:'description']
|
|
70
|
+
end
|
|
71
|
+
|
|
63
72
|
if attributes.key?(:'rule')
|
|
64
73
|
self.rule = attributes[:'rule']
|
|
65
74
|
end
|
|
@@ -109,6 +118,7 @@ module DatadogAPIClient::V2
|
|
|
109
118
|
def ==(o)
|
|
110
119
|
return true if self.equal?(o)
|
|
111
120
|
self.class == o.class &&
|
|
121
|
+
description == o.description &&
|
|
112
122
|
rule == o.rule &&
|
|
113
123
|
additional_properties == o.additional_properties
|
|
114
124
|
end
|
|
@@ -117,7 +127,7 @@ module DatadogAPIClient::V2
|
|
|
117
127
|
# @return [Integer] Hash code
|
|
118
128
|
# @!visibility private
|
|
119
129
|
def hash
|
|
120
|
-
[rule, additional_properties].hash
|
|
130
|
+
[description, rule, additional_properties].hash
|
|
121
131
|
end
|
|
122
132
|
end
|
|
123
133
|
end
|
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Human-readable description providing context about a sensitive data scanner rule
|
|
25
|
+
attr_accessor :description
|
|
26
|
+
|
|
24
27
|
# Identifier for a predefined pattern from the sensitive data scanner pattern library.
|
|
25
28
|
attr_reader :id
|
|
26
29
|
|
|
@@ -33,6 +36,7 @@ module DatadogAPIClient::V2
|
|
|
33
36
|
# @!visibility private
|
|
34
37
|
def self.attribute_map
|
|
35
38
|
{
|
|
39
|
+
:'description' => :'description',
|
|
36
40
|
:'id' => :'id',
|
|
37
41
|
:'use_recommended_keywords' => :'use_recommended_keywords'
|
|
38
42
|
}
|
|
@@ -42,6 +46,7 @@ module DatadogAPIClient::V2
|
|
|
42
46
|
# @!visibility private
|
|
43
47
|
def self.openapi_types
|
|
44
48
|
{
|
|
49
|
+
:'description' => :'String',
|
|
45
50
|
:'id' => :'String',
|
|
46
51
|
:'use_recommended_keywords' => :'Boolean'
|
|
47
52
|
}
|
|
@@ -65,6 +70,10 @@ module DatadogAPIClient::V2
|
|
|
65
70
|
end
|
|
66
71
|
}
|
|
67
72
|
|
|
73
|
+
if attributes.key?(:'description')
|
|
74
|
+
self.description = attributes[:'description']
|
|
75
|
+
end
|
|
76
|
+
|
|
68
77
|
if attributes.key?(:'id')
|
|
69
78
|
self.id = attributes[:'id']
|
|
70
79
|
end
|
|
@@ -118,6 +127,7 @@ module DatadogAPIClient::V2
|
|
|
118
127
|
def ==(o)
|
|
119
128
|
return true if self.equal?(o)
|
|
120
129
|
self.class == o.class &&
|
|
130
|
+
description == o.description &&
|
|
121
131
|
id == o.id &&
|
|
122
132
|
use_recommended_keywords == o.use_recommended_keywords &&
|
|
123
133
|
additional_properties == o.additional_properties
|
|
@@ -127,7 +137,7 @@ module DatadogAPIClient::V2
|
|
|
127
137
|
# @return [Integer] Hash code
|
|
128
138
|
# @!visibility private
|
|
129
139
|
def hash
|
|
130
|
-
[id, use_recommended_keywords, additional_properties].hash
|
|
140
|
+
[description, id, use_recommended_keywords, additional_properties].hash
|
|
131
141
|
end
|
|
132
142
|
end
|
|
133
143
|
end
|
|
@@ -18,13 +18,15 @@ require 'time'
|
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
20
|
# The `socket` source ingests logs over TCP or UDP.
|
|
21
|
+
#
|
|
22
|
+
# **Supported pipeline types:** logs
|
|
21
23
|
class ObservabilityPipelineSocketSource
|
|
22
24
|
include BaseGenericModel
|
|
23
25
|
|
|
24
26
|
# Framing method configuration for the socket source.
|
|
25
27
|
attr_reader :framing
|
|
26
28
|
|
|
27
|
-
# The unique identifier for this component. Used
|
|
29
|
+
# The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
|
|
28
30
|
attr_reader :id
|
|
29
31
|
|
|
30
32
|
# Protocol used to receive logs.
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# The `split_array` processor splits array fields into separate events based on configured rules.
|
|
21
|
+
#
|
|
22
|
+
# **Supported pipeline types:** logs
|
|
23
|
+
class ObservabilityPipelineSplitArrayProcessor
|
|
24
|
+
include BaseGenericModel
|
|
25
|
+
|
|
26
|
+
# A list of array split configurations.
|
|
27
|
+
attr_reader :arrays
|
|
28
|
+
|
|
29
|
+
# The display name for a component.
|
|
30
|
+
attr_accessor :display_name
|
|
31
|
+
|
|
32
|
+
# Indicates whether the processor is enabled.
|
|
33
|
+
attr_reader :enabled
|
|
34
|
+
|
|
35
|
+
# The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
|
|
36
|
+
attr_reader :id
|
|
37
|
+
|
|
38
|
+
# A Datadog search query used to determine which logs this processor targets. For split_array, this should typically be `*`.
|
|
39
|
+
attr_reader :include
|
|
40
|
+
|
|
41
|
+
# The processor type. The value should always be `split_array`.
|
|
42
|
+
attr_reader :type
|
|
43
|
+
|
|
44
|
+
attr_accessor :additional_properties
|
|
45
|
+
|
|
46
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
47
|
+
# @!visibility private
|
|
48
|
+
def self.attribute_map
|
|
49
|
+
{
|
|
50
|
+
:'arrays' => :'arrays',
|
|
51
|
+
:'display_name' => :'display_name',
|
|
52
|
+
:'enabled' => :'enabled',
|
|
53
|
+
:'id' => :'id',
|
|
54
|
+
:'include' => :'include',
|
|
55
|
+
:'type' => :'type'
|
|
56
|
+
}
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Attribute type mapping.
|
|
60
|
+
# @!visibility private
|
|
61
|
+
def self.openapi_types
|
|
62
|
+
{
|
|
63
|
+
:'arrays' => :'Array<ObservabilityPipelineSplitArrayProcessorArrayConfig>',
|
|
64
|
+
:'display_name' => :'String',
|
|
65
|
+
:'enabled' => :'Boolean',
|
|
66
|
+
:'id' => :'String',
|
|
67
|
+
:'include' => :'String',
|
|
68
|
+
:'type' => :'ObservabilityPipelineSplitArrayProcessorType'
|
|
69
|
+
}
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Initializes the object
|
|
73
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
74
|
+
# @!visibility private
|
|
75
|
+
def initialize(attributes = {})
|
|
76
|
+
if (!attributes.is_a?(Hash))
|
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ObservabilityPipelineSplitArrayProcessor` initialize method"
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
self.additional_properties = {}
|
|
81
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
82
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
83
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
84
|
+
self.additional_properties[k.to_sym] = v
|
|
85
|
+
else
|
|
86
|
+
h[k.to_sym] = v
|
|
87
|
+
end
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'arrays')
|
|
91
|
+
if (value = attributes[:'arrays']).is_a?(Array)
|
|
92
|
+
self.arrays = value
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'display_name')
|
|
97
|
+
self.display_name = attributes[:'display_name']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'enabled')
|
|
101
|
+
self.enabled = attributes[:'enabled']
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'id')
|
|
105
|
+
self.id = attributes[:'id']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'include')
|
|
109
|
+
self.include = attributes[:'include']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'type')
|
|
113
|
+
self.type = attributes[:'type']
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Check to see if the all the properties in the model are valid
|
|
118
|
+
# @return true if the model is valid
|
|
119
|
+
# @!visibility private
|
|
120
|
+
def valid?
|
|
121
|
+
return false if @arrays.nil?
|
|
122
|
+
return false if @arrays.length > 15
|
|
123
|
+
return false if @arrays.length < 1
|
|
124
|
+
return false if @enabled.nil?
|
|
125
|
+
return false if @id.nil?
|
|
126
|
+
return false if @include.nil?
|
|
127
|
+
return false if @type.nil?
|
|
128
|
+
true
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Custom attribute writer method with validation
|
|
132
|
+
# @param arrays [Object] Object to be assigned
|
|
133
|
+
# @!visibility private
|
|
134
|
+
def arrays=(arrays)
|
|
135
|
+
if arrays.nil?
|
|
136
|
+
fail ArgumentError, 'invalid value for "arrays", arrays cannot be nil.'
|
|
137
|
+
end
|
|
138
|
+
if arrays.length > 15
|
|
139
|
+
fail ArgumentError, 'invalid value for "arrays", number of items must be less than or equal to 15.'
|
|
140
|
+
end
|
|
141
|
+
if arrays.length < 1
|
|
142
|
+
fail ArgumentError, 'invalid value for "arrays", number of items must be greater than or equal to 1.'
|
|
143
|
+
end
|
|
144
|
+
@arrays = arrays
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Custom attribute writer method with validation
|
|
148
|
+
# @param enabled [Object] Object to be assigned
|
|
149
|
+
# @!visibility private
|
|
150
|
+
def enabled=(enabled)
|
|
151
|
+
if enabled.nil?
|
|
152
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
153
|
+
end
|
|
154
|
+
@enabled = enabled
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Custom attribute writer method with validation
|
|
158
|
+
# @param id [Object] Object to be assigned
|
|
159
|
+
# @!visibility private
|
|
160
|
+
def id=(id)
|
|
161
|
+
if id.nil?
|
|
162
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
|
163
|
+
end
|
|
164
|
+
@id = id
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Custom attribute writer method with validation
|
|
168
|
+
# @param include [Object] Object to be assigned
|
|
169
|
+
# @!visibility private
|
|
170
|
+
def include=(include)
|
|
171
|
+
if include.nil?
|
|
172
|
+
fail ArgumentError, 'invalid value for "include", include cannot be nil.'
|
|
173
|
+
end
|
|
174
|
+
@include = include
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Custom attribute writer method with validation
|
|
178
|
+
# @param type [Object] Object to be assigned
|
|
179
|
+
# @!visibility private
|
|
180
|
+
def type=(type)
|
|
181
|
+
if type.nil?
|
|
182
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
183
|
+
end
|
|
184
|
+
@type = type
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
|
189
|
+
# @!visibility private
|
|
190
|
+
def to_hash
|
|
191
|
+
hash = {}
|
|
192
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
193
|
+
value = self.send(attr)
|
|
194
|
+
if value.nil?
|
|
195
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
196
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
hash[param] = _to_hash(value)
|
|
200
|
+
end
|
|
201
|
+
self.additional_properties.each_pair do |attr, value|
|
|
202
|
+
hash[attr] = value
|
|
203
|
+
end
|
|
204
|
+
hash
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Checks equality by comparing each attribute.
|
|
208
|
+
# @param o [Object] Object to be compared
|
|
209
|
+
# @!visibility private
|
|
210
|
+
def ==(o)
|
|
211
|
+
return true if self.equal?(o)
|
|
212
|
+
self.class == o.class &&
|
|
213
|
+
arrays == o.arrays &&
|
|
214
|
+
display_name == o.display_name &&
|
|
215
|
+
enabled == o.enabled &&
|
|
216
|
+
id == o.id &&
|
|
217
|
+
include == o.include &&
|
|
218
|
+
type == o.type &&
|
|
219
|
+
additional_properties == o.additional_properties
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Calculates hash code according to all attributes.
|
|
223
|
+
# @return [Integer] Hash code
|
|
224
|
+
# @!visibility private
|
|
225
|
+
def hash
|
|
226
|
+
[arrays, display_name, enabled, id, include, type, additional_properties].hash
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
end
|