From 6b26a855a1e1e722d8115364ffdc2df5cd56e071 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 22 Apr 2025 11:53:32 +0000 Subject: [PATCH] Regenerate client from commit 4b3f3948 of spec repo --- .apigentools-info | 8 +- .generator/schemas/v2/openapi.yaml | 776 ++++++++++++++++++ docs/datadog_api_client.v2.model.rst | 350 ++++++++ .../v2/model/azure_storage_destination.py | 75 ++ .../model/azure_storage_destination_type.py | 35 + .../model/microsoft_sentinel_destination.py | 86 ++ .../microsoft_sentinel_destination_type.py | 35 + .../v2/model/observability_pipeline_config.py | 37 +- ...bility_pipeline_config_destination_item.py | 65 ++ ...vability_pipeline_config_processor_item.py | 7 + ...servability_pipeline_config_source_item.py | 13 + ...lity_pipeline_elasticsearch_destination.py | 86 ++ ...e_elasticsearch_destination_api_version.py | 52 ++ ...pipeline_elasticsearch_destination_type.py | 37 + ...ervability_pipeline_rsyslog_destination.py | 88 ++ ...ility_pipeline_rsyslog_destination_type.py | 35 + .../observability_pipeline_rsyslog_source.py | 80 ++ ...ervability_pipeline_rsyslog_source_type.py | 35 + ...peline_sensitive_data_scanner_processor.py | 82 ++ ...sensitive_data_scanner_processor_action.py | 51 ++ ...tive_data_scanner_processor_action_hash.py | 58 ++ ...ta_scanner_processor_action_hash_action.py | 37 + ...scanner_processor_action_partial_redact.py | 61 ++ ..._processor_action_partial_redact_action.py | 37 + ...processor_action_partial_redact_options.py | 55 ++ ...action_partial_redact_options_direction.py | 42 + ...ve_data_scanner_processor_action_redact.py | 61 ++ ..._scanner_processor_action_redact_action.py | 37 + ...scanner_processor_action_redact_options.py | 33 + ...e_data_scanner_processor_custom_pattern.py | 61 ++ ...canner_processor_custom_pattern_options.py | 33 + ...a_scanner_processor_custom_pattern_type.py | 37 + ..._data_scanner_processor_keyword_options.py | 40 + ..._data_scanner_processor_library_pattern.py | 61 ++ ...anner_processor_library_pattern_options.py | 43 + ..._scanner_processor_library_pattern_type.py | 37 + ...ensitive_data_scanner_processor_pattern.py | 47 ++ ...e_sensitive_data_scanner_processor_rule.py | 142 ++++ ..._sensitive_data_scanner_processor_scope.py | 51 ++ ...sitive_data_scanner_processor_scope_all.py | 44 + ...data_scanner_processor_scope_all_target.py | 37 + ...ve_data_scanner_processor_scope_exclude.py | 61 ++ ..._scanner_processor_scope_exclude_target.py | 37 + ...ve_data_scanner_processor_scope_include.py | 61 ++ ..._scanner_processor_scope_include_target.py | 37 + ...ve_data_scanner_processor_scope_options.py | 34 + ...e_sensitive_data_scanner_processor_type.py | 37 + ...ability_pipeline_sumo_logic_destination.py | 118 +++ ...ipeline_sumo_logic_destination_encoding.py | 43 + ...c_destination_header_custom_fields_item.py | 39 + ...ty_pipeline_sumo_logic_destination_type.py | 35 + ...bservability_pipeline_sumo_logic_source.py | 50 ++ ...ability_pipeline_sumo_logic_source_type.py | 35 + ...vability_pipeline_syslog_ng_destination.py | 88 ++ ...ity_pipeline_syslog_ng_destination_type.py | 35 + ...observability_pipeline_syslog_ng_source.py | 80 ++ ...vability_pipeline_syslog_ng_source_type.py | 35 + ...servability_pipeline_syslog_source_mode.py | 38 + src/datadog_api_client/v2/models/__init__.py | 188 +++++ tests/v2/features/on-call.feature | 4 +- 60 files changed, 4135 insertions(+), 7 deletions(-) create mode 100644 src/datadog_api_client/v2/model/azure_storage_destination.py create mode 100644 src/datadog_api_client/v2/model/azure_storage_destination_type.py create mode 100644 src/datadog_api_client/v2/model/microsoft_sentinel_destination.py create mode 100644 src/datadog_api_client/v2/model/microsoft_sentinel_destination_type.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_elasticsearch_destination.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_elasticsearch_destination_api_version.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_elasticsearch_destination_type.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_rsyslog_destination.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_rsyslog_destination_type.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_rsyslog_source.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_rsyslog_source_type.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_hash.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_hash_action.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_action.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options_direction.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_redact.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_redact_action.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_redact_options.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_custom_pattern.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_options.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_type.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_keyword_options.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_library_pattern.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_library_pattern_options.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_library_pattern_type.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_pattern.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_rule.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_all.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_all_target.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_exclude.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_exclude_target.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_include.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_include_target.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_options.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_type.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_destination.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_destination_encoding.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_destination_header_custom_fields_item.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_destination_type.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_source.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_source_type.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_syslog_ng_destination.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_syslog_ng_destination_type.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_syslog_ng_source.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_syslog_ng_source_type.py create mode 100644 src/datadog_api_client/v2/model/observability_pipeline_syslog_source_mode.py diff --git a/.apigentools-info b/.apigentools-info index aac3ee0d8e..65d81e19f5 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-04-17 13:26:11.571880", - "spec_repo_commit": "12ab5180" + "regenerated": "2025-04-22 11:52:54.396874", + "spec_repo_commit": "4b3f3948" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-04-17 13:26:11.587151", - "spec_repo_commit": "12ab5180" + "regenerated": "2025-04-22 11:52:54.414775", + "spec_repo_commit": "4b3f3948" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index a191ada020..f1132a55be 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -4343,6 +4343,48 @@ components: required: - data type: object + AzureStorageDestination: + description: The `azure_storage` destination forwards logs to an Azure Blob + Storage container. + properties: + blob_prefix: + description: Optional prefix for blobs written to the container. + example: logs/ + type: string + container_name: + description: The name of the Azure Blob Storage container to store logs + in. + example: my-log-container + type: string + id: + description: The unique identifier for this component. + example: azure-storage-destination + type: string + inputs: + description: A list of component IDs whose output is used as the `input` + for this component. + example: + - processor-id + items: + type: string + type: array + type: + $ref: '#/components/schemas/AzureStorageDestinationType' + required: + - id + - type + - inputs + - container_name + type: object + AzureStorageDestinationType: + default: azure_storage + description: The destination type. The value should always be `azure_storage`. + enum: + - azure_storage + example: azure_storage + type: string + x-enum-varnames: + - AZURE_STORAGE AzureUCConfig: description: Azure config. properties: @@ -21391,6 +21433,58 @@ components: - data_source - query type: object + MicrosoftSentinelDestination: + description: The `microsoft_sentinel` destination forwards logs to Microsoft + Sentinel. + properties: + client_id: + description: Azure AD client ID used for authentication. + example: a1b2c3d4-5678-90ab-cdef-1234567890ab + type: string + dcr_immutable_id: + description: The immutable ID of the Data Collection Rule (DCR). + example: dcr-uuid-1234 + type: string + id: + description: The unique identifier for this component. + example: sentinel-destination + type: string + inputs: + description: A list of component IDs whose output is used as the `input` + for this component. + example: + - filter-processor + items: + type: string + type: array + table: + description: The name of the Log Analytics table where logs will be sent. + example: CustomLogsTable + type: string + tenant_id: + description: Azure AD tenant ID. + example: abcdef12-3456-7890-abcd-ef1234567890 + type: string + type: + $ref: '#/components/schemas/MicrosoftSentinelDestinationType' + required: + - id + - type + - inputs + - client_id + - tenant_id + - dcr_immutable_id + - table + type: object + MicrosoftSentinelDestinationType: + default: microsoft_sentinel + description: The destination type. The value should always be `microsoft_sentinel`. + enum: + - microsoft_sentinel + example: microsoft_sentinel + type: string + x-enum-varnames: + - MICROSOFT_SENTINEL MicrosoftTeamsChannelInfoResponseAttributes: description: Channel attributes. properties: @@ -22583,6 +22677,12 @@ components: description: A destination for the pipeline. oneOf: - $ref: '#/components/schemas/ObservabilityPipelineDatadogLogsDestination' + - $ref: '#/components/schemas/ObservabilityPipelineSumoLogicDestination' + - $ref: '#/components/schemas/ObservabilityPipelineElasticsearchDestination' + - $ref: '#/components/schemas/ObservabilityPipelineRsyslogDestination' + - $ref: '#/components/schemas/ObservabilityPipelineSyslogNgDestination' + - $ref: '#/components/schemas/AzureStorageDestination' + - $ref: '#/components/schemas/MicrosoftSentinelDestination' ObservabilityPipelineConfigProcessorItem: description: A processor for the pipeline. oneOf: @@ -22592,11 +22692,15 @@ components: - $ref: '#/components/schemas/ObservabilityPipelineAddFieldsProcessor' - $ref: '#/components/schemas/ObservabilityPipelineRemoveFieldsProcessor' - $ref: '#/components/schemas/ObservabilityPipelineRenameFieldsProcessor' + - $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessor' ObservabilityPipelineConfigSourceItem: description: A data source for the pipeline. oneOf: - $ref: '#/components/schemas/ObservabilityPipelineKafkaSource' - $ref: '#/components/schemas/ObservabilityPipelineDatadogAgentSource' + - $ref: '#/components/schemas/ObservabilityPipelineSumoLogicSource' + - $ref: '#/components/schemas/ObservabilityPipelineRsyslogSource' + - $ref: '#/components/schemas/ObservabilityPipelineSyslogNgSource' ObservabilityPipelineCreateRequest: description: Top-level schema representing a pipeline. properties: @@ -22711,6 +22815,58 @@ components: type: string x-enum-varnames: - DATADOG_LOGS + ObservabilityPipelineElasticsearchDestination: + description: The `elasticsearch` destination writes logs to an Elasticsearch + cluster. + properties: + api_version: + $ref: '#/components/schemas/ObservabilityPipelineElasticsearchDestinationApiVersion' + bulk_index: + description: The index or datastream to write logs to in Elasticsearch. + example: logs-datastream + type: string + id: + description: The unique identifier for this component. + example: elasticsearch-destination + type: string + inputs: + description: A list of component IDs whose output is used as the `input` + for this component. + example: + - filter-processor + items: + type: string + type: array + type: + $ref: '#/components/schemas/ObservabilityPipelineElasticsearchDestinationType' + required: + - id + - type + - inputs + type: object + ObservabilityPipelineElasticsearchDestinationApiVersion: + description: The Elasticsearch API version to use. Set to `auto` to auto-detect. + enum: + - auto + - v6 + - v7 + - v8 + example: auto + type: string + x-enum-varnames: + - AUTO + - V6 + - V7 + - V8 + ObservabilityPipelineElasticsearchDestinationType: + default: elasticsearch + description: The destination type. The value should always be `elasticsearch`. + enum: + - elasticsearch + example: elasticsearch + type: string + x-enum-varnames: + - ELASTICSEARCH ObservabilityPipelineFieldValue: description: Represents a static key-value pair used in various processors. properties: @@ -23130,6 +23286,626 @@ components: type: string x-enum-varnames: - RENAME_FIELDS + ObservabilityPipelineRsyslogDestination: + description: The `rsyslog` destination forwards logs to an external `rsyslog` + server over TCP or UDP using the syslog protocol. + properties: + id: + description: The unique identifier for this component. + example: rsyslog-destination + type: string + inputs: + description: A list of component IDs whose output is used as the `input` + for this component. + example: + - filter-processor + items: + type: string + type: array + keepalive: + description: Optional socket keepalive duration in milliseconds. + example: 60000 + format: int64 + minimum: 0 + type: integer + tls: + $ref: '#/components/schemas/ObservabilityPipelineTls' + type: + $ref: '#/components/schemas/ObservabilityPipelineRsyslogDestinationType' + required: + - id + - type + - inputs + type: object + ObservabilityPipelineRsyslogDestinationType: + default: rsyslog + description: The destination type. The value should always be `rsyslog`. + enum: + - rsyslog + example: rsyslog + type: string + x-enum-varnames: + - RSYSLOG + ObservabilityPipelineRsyslogSource: + description: The `rsyslog` source listens for logs over TCP or UDP from an `rsyslog` + server using the syslog protocol. + properties: + id: + description: The unique identifier for this component. Used to reference + this component in other parts of the pipeline (e.g., as input to downstream + components). + example: rsyslog-source + type: string + mode: + $ref: '#/components/schemas/ObservabilityPipelineSyslogSourceMode' + tls: + $ref: '#/components/schemas/ObservabilityPipelineTls' + type: + $ref: '#/components/schemas/ObservabilityPipelineRsyslogSourceType' + required: + - id + - type + - mode + type: object + ObservabilityPipelineRsyslogSourceType: + default: rsyslog + description: The source type. The value should always be `rsyslog`. + enum: + - rsyslog + example: rsyslog + type: string + x-enum-varnames: + - RSYSLOG + ObservabilityPipelineSensitiveDataScannerProcessor: + description: The `sensitive_data_scanner` processor detects and optionally redacts + sensitive data in log events. + properties: + id: + description: The unique identifier for this component. Used to reference + this component in other parts of the pipeline (e.g., as input to downstream + components). + example: sensitive-scanner + type: string + include: + description: A Datadog search query used to determine which logs this processor + targets. + example: source:prod + type: string + inputs: + description: A list of component IDs whose output is used as the `input` + for this component. + example: + - parse-json-processor + items: + type: string + type: array + rules: + description: A list of rules for identifying and acting on sensitive data + patterns. + items: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorRule' + type: array + type: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorType' + required: + - id + - type + - include + - inputs + - rules + type: object + ObservabilityPipelineSensitiveDataScannerProcessorAction: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorAction` + object. + oneOf: + - $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorActionRedact' + - $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorActionHash' + - $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedact' + ObservabilityPipelineSensitiveDataScannerProcessorActionHash: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorActionHash` + object. + properties: + action: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction' + options: + description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionHash` + `options`. + type: object + required: + - action + type: object + ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction` + object. + enum: + - hash + example: hash + type: string + x-enum-varnames: + - HASH + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedact: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedact` + object. + properties: + action: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactAction' + options: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions' + required: + - action + - options + type: object + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactAction: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactAction` + object. + enum: + - partial_redact + example: partial_redact + type: string + x-enum-varnames: + - PARTIAL_REDACT + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions` + object. + properties: + characters: + description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions` + `characters`. + example: 4 + format: int64 + type: integer + direction: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection' + required: + - characters + - direction + type: object + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection` + object. + enum: + - first + - last + example: last + type: string + x-enum-varnames: + - FIRST + - LAST + ObservabilityPipelineSensitiveDataScannerProcessorActionRedact: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorActionRedact` + object. + properties: + action: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction' + options: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions' + required: + - action + - options + type: object + ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction` + object. + enum: + - redact + example: redact + type: string + x-enum-varnames: + - REDACT + ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions` + object. + properties: + replace: + description: The `ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions` + `replace`. + example: '***' + type: string + required: + - replace + type: object + ObservabilityPipelineSensitiveDataScannerProcessorCustomPattern: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorCustomPattern` + object. + properties: + options: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions' + type: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType' + required: + - type + - options + type: object + ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions` + object. + properties: + rule: + description: A regular expression used to detect sensitive values. Must + be a valid regex. + example: \b\d{16}\b + type: string + required: + - rule + type: object + ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType` + object. + enum: + - custom + example: custom + type: string + x-enum-varnames: + - CUSTOM + ObservabilityPipelineSensitiveDataScannerProcessorKeywordOptions: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorKeywordOptions` + object. + properties: + keywords: + description: A list of keywords to match near the sensitive pattern. + example: + - ssn + - card + - account + items: + type: string + type: array + proximity: + description: Maximum number of tokens between a keyword and a sensitive + value match. + example: 5 + format: int64 + type: integer + required: + - keywords + - proximity + type: object + ObservabilityPipelineSensitiveDataScannerProcessorLibraryPattern: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorLibraryPattern` + object. + properties: + options: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions' + type: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternType' + required: + - type + - options + type: object + ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions` + object. + properties: + id: + description: Identifier for a predefined pattern from the sensitive data + scanner pattern library. + example: credit_card + type: string + use_recommended_keywords: + description: Whether to augment the pattern with recommended keywords (optional). + type: boolean + required: + - id + type: object + ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternType: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternType` + object. + enum: + - library + example: library + type: string + x-enum-varnames: + - LIBRARY + ObservabilityPipelineSensitiveDataScannerProcessorPattern: + description: Pattern detection configuration for identifying sensitive data + using either a custom regex or a library reference. + oneOf: + - $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorCustomPattern' + - $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorLibraryPattern' + ObservabilityPipelineSensitiveDataScannerProcessorRule: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorRule` + object. + properties: + keyword_options: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorKeywordOptions' + name: + description: A name identifying the rule. + example: Redact Credit Card Numbers + type: string + on_match: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorAction' + pattern: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorPattern' + scope: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorScope' + tags: + description: Tags assigned to this rule for filtering and classification. + example: + - pii + - ccn + items: + type: string + type: array + required: + - name + - tags + - pattern + - scope + - on_match + type: object + ObservabilityPipelineSensitiveDataScannerProcessorScope: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorScope` + object. + oneOf: + - $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorScopeInclude' + - $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorScopeExclude' + - $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorScopeAll' + ObservabilityPipelineSensitiveDataScannerProcessorScopeAll: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorScopeAll` + object. + properties: + target: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorScopeAllTarget' + required: + - target + type: object + ObservabilityPipelineSensitiveDataScannerProcessorScopeAllTarget: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorScopeAllTarget` + object. + enum: + - all + example: all + type: string + x-enum-varnames: + - ALL + ObservabilityPipelineSensitiveDataScannerProcessorScopeExclude: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorScopeExclude` + object. + properties: + options: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions' + target: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorScopeExcludeTarget' + required: + - target + - options + type: object + ObservabilityPipelineSensitiveDataScannerProcessorScopeExcludeTarget: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorScopeExcludeTarget` + object. + enum: + - exclude + example: exclude + type: string + x-enum-varnames: + - EXCLUDE + ObservabilityPipelineSensitiveDataScannerProcessorScopeInclude: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorScopeInclude` + object. + properties: + options: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions' + target: + $ref: '#/components/schemas/ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget' + required: + - target + - options + type: object + ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget` + object. + enum: + - include + example: include + type: string + x-enum-varnames: + - INCLUDE + ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions: + description: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions` + object. + properties: + fields: + description: The `ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions` + `fields`. + example: + - '' + items: + type: string + type: array + required: + - fields + type: object + ObservabilityPipelineSensitiveDataScannerProcessorType: + default: sensitive_data_scanner + description: The processor type. The value should always be `sensitive_data_scanner`. + enum: + - sensitive_data_scanner + example: sensitive_data_scanner + type: string + x-enum-varnames: + - SENSITIVE_DATA_SCANNER + ObservabilityPipelineSumoLogicDestination: + description: The `sumo_logic` destination forwards logs to Sumo Logic. + properties: + encoding: + $ref: '#/components/schemas/ObservabilityPipelineSumoLogicDestinationEncoding' + header_custom_fields: + description: A list of custom headers to include in the request to Sumo + Logic. + items: + $ref: '#/components/schemas/ObservabilityPipelineSumoLogicDestinationHeaderCustomFieldsItem' + type: array + header_host_name: + description: Optional override for the host name header. + example: host-123 + type: string + header_source_category: + description: Optional override for the source category header. + example: source-category + type: string + header_source_name: + description: Optional override for the source name header. + example: source-name + type: string + id: + description: The unique identifier for this component. + example: sumo-logic-destination + type: string + inputs: + description: A list of component IDs whose output is used as the `input` + for this component. + example: + - filter-processor + items: + type: string + type: array + type: + $ref: '#/components/schemas/ObservabilityPipelineSumoLogicDestinationType' + required: + - id + - type + - inputs + type: object + ObservabilityPipelineSumoLogicDestinationEncoding: + description: The output encoding format. + enum: + - json + - raw_message + - logfmt + example: json + type: string + x-enum-varnames: + - JSON + - RAW_MESSAGE + - LOGFMT + ObservabilityPipelineSumoLogicDestinationHeaderCustomFieldsItem: + description: Single name-value pair used as a custom log header for Sumo Logic. + properties: + name: + description: The header field name. + example: X-Sumo-Category + type: string + value: + description: The header field value. + example: my-app-logs + type: string + required: + - name + - value + type: object + ObservabilityPipelineSumoLogicDestinationType: + default: sumo_logic + description: The destination type. The value should always be `sumo_logic`. + enum: + - sumo_logic + example: sumo_logic + type: string + x-enum-varnames: + - SUMO_LOGIC + ObservabilityPipelineSumoLogicSource: + description: The `sumo_logic` source receives logs from Sumo Logic collectors. + properties: + id: + description: The unique identifier for this component. Used to reference + this component in other parts of the pipeline (e.g., as input to downstream + components). + example: sumo-logic-source + type: string + type: + $ref: '#/components/schemas/ObservabilityPipelineSumoLogicSourceType' + required: + - id + - type + type: object + ObservabilityPipelineSumoLogicSourceType: + default: sumo_logic + description: The source type. The value should always be `sumo_logic`. + enum: + - sumo_logic + example: sumo_logic + type: string + x-enum-varnames: + - SUMO_LOGIC + ObservabilityPipelineSyslogNgDestination: + description: The `syslog_ng` destination forwards logs to an external `syslog-ng` + server over TCP or UDP using the syslog protocol. + properties: + id: + description: The unique identifier for this component. + example: syslog-ng-destination + type: string + inputs: + description: A list of component IDs whose output is used as the `input` + for this component. + example: + - filter-processor + items: + type: string + type: array + keepalive: + description: Optional socket keepalive duration in milliseconds. + example: 60000 + format: int64 + minimum: 0 + type: integer + tls: + $ref: '#/components/schemas/ObservabilityPipelineTls' + type: + $ref: '#/components/schemas/ObservabilityPipelineSyslogNgDestinationType' + required: + - id + - type + - inputs + type: object + ObservabilityPipelineSyslogNgDestinationType: + default: syslog_ng + description: The destination type. The value should always be `syslog_ng`. + enum: + - syslog_ng + example: syslog_ng + type: string + x-enum-varnames: + - SYSLOG_NG + ObservabilityPipelineSyslogNgSource: + description: The `syslog_ng` source listens for logs over TCP or UDP from a + `syslog-ng` server using the syslog protocol. + properties: + id: + description: The unique identifier for this component. Used to reference + this component in other parts of the pipeline (e.g., as input to downstream + components). + example: syslog-ng-source + type: string + mode: + $ref: '#/components/schemas/ObservabilityPipelineSyslogSourceMode' + tls: + $ref: '#/components/schemas/ObservabilityPipelineTls' + type: + $ref: '#/components/schemas/ObservabilityPipelineSyslogNgSourceType' + required: + - id + - type + - mode + type: object + ObservabilityPipelineSyslogNgSourceType: + default: syslog_ng + description: The source type. The value should always be `syslog_ng`. + enum: + - syslog_ng + example: syslog_ng + type: string + x-enum-varnames: + - SYSLOG_NG + ObservabilityPipelineSyslogSourceMode: + description: Protocol used by the syslog source to receive messages. + enum: + - tcp + - udp + example: tcp + type: string + x-enum-varnames: + - TCP + - UDP ObservabilityPipelineTls: description: Configuration for enabling TLS encryption. properties: diff --git a/docs/datadog_api_client.v2.model.rst b/docs/datadog_api_client.v2.model.rst index f733108751..e13b044589 100644 --- a/docs/datadog_api_client.v2.model.rst +++ b/docs/datadog_api_client.v2.model.rst @@ -1642,6 +1642,20 @@ datadog\_api\_client.v2.model.aws\_traces\_config module :members: :show-inheritance: +datadog\_api\_client.v2.model.azure\_storage\_destination module +---------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.azure_storage_destination + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.azure\_storage\_destination\_type module +---------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.azure_storage_destination_type + :members: + :show-inheritance: + datadog\_api\_client.v2.model.azure\_uc\_config module ------------------------------------------------------ @@ -9167,6 +9181,20 @@ datadog\_api\_client.v2.model.metrics\_timeseries\_query module :members: :show-inheritance: +datadog\_api\_client.v2.model.microsoft\_sentinel\_destination module +--------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.microsoft_sentinel_destination + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.microsoft\_sentinel\_destination\_type module +--------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.microsoft_sentinel_destination_type + :members: + :show-inheritance: + datadog\_api\_client.v2.model.microsoft\_teams\_channel\_info\_response\_attributes module ------------------------------------------------------------------------------------------ @@ -9853,6 +9881,20 @@ datadog\_api\_client.v2.model.observability\_pipeline\_datadog\_logs\_destinatio :members: :show-inheritance: +datadog\_api\_client.v2.model.observability\_pipeline\_elasticsearch\_destination module +---------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_elasticsearch_destination + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_elasticsearch\_destination\_type module +---------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_elasticsearch_destination_type + :members: + :show-inheritance: + datadog\_api\_client.v2.model.observability\_pipeline\_field\_value module -------------------------------------------------------------------------- @@ -9993,6 +10035,314 @@ datadog\_api\_client.v2.model.observability\_pipeline\_rename\_fields\_processor :members: :show-inheritance: +datadog\_api\_client.v2.model.observability\_pipeline\_rsyslog\_destination module +---------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_rsyslog_destination + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_rsyslog\_destination\_type module +---------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_rsyslog_destination_type + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_rsyslog\_source module +----------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_rsyslog_source + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_rsyslog\_source\_type module +----------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_rsyslog_source_type + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor module +------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_action module +--------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_action\_hash module +--------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_hash + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_action\_hash\_action module +----------------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_hash_action + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_action\_partial\_redact module +-------------------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_partial_redact + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_action\_partial\_redact\_action module +---------------------------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_action + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_action\_partial\_redact\_options module +----------------------------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_action\_partial\_redact\_options\_direction module +---------------------------------------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options_direction + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_action\_redact module +----------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_redact + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_action\_redact\_action module +------------------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_redact_action + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_action\_redact\_options module +-------------------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_redact_options + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_custom\_pattern module +------------------------------------------------------------------------------------------------------------------ + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_custom_pattern + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_custom\_pattern\_options module +--------------------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_custom_pattern_options + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_custom\_pattern\_type module +------------------------------------------------------------------------------------------------------------------------ + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_custom_pattern_type + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_keyword\_options module +------------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_keyword_options + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_library\_pattern module +------------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_library_pattern + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_library\_pattern\_options module +---------------------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_library_pattern_options + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_library\_pattern\_type module +------------------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_library_pattern_type + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_pattern module +---------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_pattern + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_rule module +------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_rule + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_scope module +-------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_scope\_all module +------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_all + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_scope\_all\_target module +--------------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_all_target + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_scope\_exclude module +----------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_exclude + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_scope\_exclude\_target module +------------------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_exclude_target + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_scope\_include module +----------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_include + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_scope\_include\_target module +------------------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_include_target + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_scope\_options module +----------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_options + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sensitive\_data\_scanner\_processor\_type module +------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_type + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sumo\_logic\_destination module +-------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sumo_logic_destination + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sumo\_logic\_destination\_encoding module +------------------------------------------------------------------------------------------------ + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sumo_logic_destination_encoding + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sumo\_logic\_destination\_header\_custom\_fields\_item module +-------------------------------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sumo_logic_destination_header_custom_fields_item + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sumo\_logic\_destination\_type module +-------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sumo_logic_destination_type + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sumo\_logic\_source module +--------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sumo_logic_source + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_sumo\_logic\_source\_type module +--------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_sumo_logic_source_type + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_syslog\_ng\_destination module +------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_syslog_ng_destination + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_syslog\_ng\_destination\_type module +------------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_syslog_ng_destination_type + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_syslog\_ng\_source module +-------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_syslog_ng_source + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_syslog\_ng\_source\_type module +-------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_syslog_ng_source_type + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.observability\_pipeline\_syslog\_source\_mode module +---------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.observability_pipeline_syslog_source_mode + :members: + :show-inheritance: + datadog\_api\_client.v2.model.observability\_pipeline\_tls module ----------------------------------------------------------------- diff --git a/src/datadog_api_client/v2/model/azure_storage_destination.py b/src/datadog_api_client/v2/model/azure_storage_destination.py new file mode 100644 index 0000000000..283e2df4aa --- /dev/null +++ b/src/datadog_api_client/v2/model/azure_storage_destination.py @@ -0,0 +1,75 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.azure_storage_destination_type import AzureStorageDestinationType + + +class AzureStorageDestination(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.azure_storage_destination_type import AzureStorageDestinationType + + return { + "blob_prefix": (str,), + "container_name": (str,), + "id": (str,), + "inputs": ([str],), + "type": (AzureStorageDestinationType,), + } + + attribute_map = { + "blob_prefix": "blob_prefix", + "container_name": "container_name", + "id": "id", + "inputs": "inputs", + "type": "type", + } + + def __init__( + self_, + container_name: str, + id: str, + inputs: List[str], + type: AzureStorageDestinationType, + blob_prefix: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + The ``azure_storage`` destination forwards logs to an Azure Blob Storage container. + + :param blob_prefix: Optional prefix for blobs written to the container. + :type blob_prefix: str, optional + + :param container_name: The name of the Azure Blob Storage container to store logs in. + :type container_name: str + + :param id: The unique identifier for this component. + :type id: str + + :param inputs: A list of component IDs whose output is used as the ``input`` for this component. + :type inputs: [str] + + :param type: The destination type. The value should always be ``azure_storage``. + :type type: AzureStorageDestinationType + """ + if blob_prefix is not unset: + kwargs["blob_prefix"] = blob_prefix + super().__init__(kwargs) + + self_.container_name = container_name + self_.id = id + self_.inputs = inputs + self_.type = type diff --git a/src/datadog_api_client/v2/model/azure_storage_destination_type.py b/src/datadog_api_client/v2/model/azure_storage_destination_type.py new file mode 100644 index 0000000000..2a42adb254 --- /dev/null +++ b/src/datadog_api_client/v2/model/azure_storage_destination_type.py @@ -0,0 +1,35 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class AzureStorageDestinationType(ModelSimple): + """ + The destination type. The value should always be `azure_storage`. + + :param value: If omitted defaults to "azure_storage". Must be one of ["azure_storage"]. + :type value: str + """ + + allowed_values = { + "azure_storage", + } + AZURE_STORAGE: ClassVar["AzureStorageDestinationType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +AzureStorageDestinationType.AZURE_STORAGE = AzureStorageDestinationType("azure_storage") diff --git a/src/datadog_api_client/v2/model/microsoft_sentinel_destination.py b/src/datadog_api_client/v2/model/microsoft_sentinel_destination.py new file mode 100644 index 0000000000..7d345f9ea4 --- /dev/null +++ b/src/datadog_api_client/v2/model/microsoft_sentinel_destination.py @@ -0,0 +1,86 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.microsoft_sentinel_destination_type import MicrosoftSentinelDestinationType + + +class MicrosoftSentinelDestination(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.microsoft_sentinel_destination_type import MicrosoftSentinelDestinationType + + return { + "client_id": (str,), + "dcr_immutable_id": (str,), + "id": (str,), + "inputs": ([str],), + "table": (str,), + "tenant_id": (str,), + "type": (MicrosoftSentinelDestinationType,), + } + + attribute_map = { + "client_id": "client_id", + "dcr_immutable_id": "dcr_immutable_id", + "id": "id", + "inputs": "inputs", + "table": "table", + "tenant_id": "tenant_id", + "type": "type", + } + + def __init__( + self_, + client_id: str, + dcr_immutable_id: str, + id: str, + inputs: List[str], + table: str, + tenant_id: str, + type: MicrosoftSentinelDestinationType, + **kwargs, + ): + """ + The ``microsoft_sentinel`` destination forwards logs to Microsoft Sentinel. + + :param client_id: Azure AD client ID used for authentication. + :type client_id: str + + :param dcr_immutable_id: The immutable ID of the Data Collection Rule (DCR). + :type dcr_immutable_id: str + + :param id: The unique identifier for this component. + :type id: str + + :param inputs: A list of component IDs whose output is used as the ``input`` for this component. + :type inputs: [str] + + :param table: The name of the Log Analytics table where logs will be sent. + :type table: str + + :param tenant_id: Azure AD tenant ID. + :type tenant_id: str + + :param type: The destination type. The value should always be ``microsoft_sentinel``. + :type type: MicrosoftSentinelDestinationType + """ + super().__init__(kwargs) + + self_.client_id = client_id + self_.dcr_immutable_id = dcr_immutable_id + self_.id = id + self_.inputs = inputs + self_.table = table + self_.tenant_id = tenant_id + self_.type = type diff --git a/src/datadog_api_client/v2/model/microsoft_sentinel_destination_type.py b/src/datadog_api_client/v2/model/microsoft_sentinel_destination_type.py new file mode 100644 index 0000000000..0b3bc49c33 --- /dev/null +++ b/src/datadog_api_client/v2/model/microsoft_sentinel_destination_type.py @@ -0,0 +1,35 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class MicrosoftSentinelDestinationType(ModelSimple): + """ + The destination type. The value should always be `microsoft_sentinel`. + + :param value: If omitted defaults to "microsoft_sentinel". Must be one of ["microsoft_sentinel"]. + :type value: str + """ + + allowed_values = { + "microsoft_sentinel", + } + MICROSOFT_SENTINEL: ClassVar["MicrosoftSentinelDestinationType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +MicrosoftSentinelDestinationType.MICROSOFT_SENTINEL = MicrosoftSentinelDestinationType("microsoft_sentinel") diff --git a/src/datadog_api_client/v2/model/observability_pipeline_config.py b/src/datadog_api_client/v2/model/observability_pipeline_config.py index af1d64f311..bca3cc165c 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_config.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_config.py @@ -24,6 +24,20 @@ from datadog_api_client.v2.model.observability_pipeline_datadog_logs_destination import ( ObservabilityPipelineDatadogLogsDestination, ) + from datadog_api_client.v2.model.observability_pipeline_sumo_logic_destination import ( + ObservabilityPipelineSumoLogicDestination, + ) + from datadog_api_client.v2.model.observability_pipeline_elasticsearch_destination import ( + ObservabilityPipelineElasticsearchDestination, + ) + from datadog_api_client.v2.model.observability_pipeline_rsyslog_destination import ( + ObservabilityPipelineRsyslogDestination, + ) + from datadog_api_client.v2.model.observability_pipeline_syslog_ng_destination import ( + ObservabilityPipelineSyslogNgDestination, + ) + from datadog_api_client.v2.model.azure_storage_destination import AzureStorageDestination + from datadog_api_client.v2.model.microsoft_sentinel_destination import MicrosoftSentinelDestination from datadog_api_client.v2.model.observability_pipeline_filter_processor import ObservabilityPipelineFilterProcessor from datadog_api_client.v2.model.observability_pipeline_parse_json_processor import ( ObservabilityPipelineParseJSONProcessor, @@ -38,10 +52,18 @@ from datadog_api_client.v2.model.observability_pipeline_rename_fields_processor import ( ObservabilityPipelineRenameFieldsProcessor, ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor import ( + ObservabilityPipelineSensitiveDataScannerProcessor, + ) from datadog_api_client.v2.model.observability_pipeline_kafka_source import ObservabilityPipelineKafkaSource from datadog_api_client.v2.model.observability_pipeline_datadog_agent_source import ( ObservabilityPipelineDatadogAgentSource, ) + from datadog_api_client.v2.model.observability_pipeline_sumo_logic_source import ( + ObservabilityPipelineSumoLogicSource, + ) + from datadog_api_client.v2.model.observability_pipeline_rsyslog_source import ObservabilityPipelineRsyslogSource + from datadog_api_client.v2.model.observability_pipeline_syslog_ng_source import ObservabilityPipelineSyslogNgSource class ObservabilityPipelineConfig(ModelNormal): @@ -72,7 +94,16 @@ def openapi_types(_): def __init__( self_, destinations: List[ - Union[ObservabilityPipelineConfigDestinationItem, ObservabilityPipelineDatadogLogsDestination] + Union[ + ObservabilityPipelineConfigDestinationItem, + ObservabilityPipelineDatadogLogsDestination, + ObservabilityPipelineSumoLogicDestination, + ObservabilityPipelineElasticsearchDestination, + ObservabilityPipelineRsyslogDestination, + ObservabilityPipelineSyslogNgDestination, + AzureStorageDestination, + MicrosoftSentinelDestination, + ] ], processors: List[ Union[ @@ -83,6 +114,7 @@ def __init__( ObservabilityPipelineAddFieldsProcessor, ObservabilityPipelineRemoveFieldsProcessor, ObservabilityPipelineRenameFieldsProcessor, + ObservabilityPipelineSensitiveDataScannerProcessor, ] ], sources: List[ @@ -90,6 +122,9 @@ def __init__( ObservabilityPipelineConfigSourceItem, ObservabilityPipelineKafkaSource, ObservabilityPipelineDatadogAgentSource, + ObservabilityPipelineSumoLogicSource, + ObservabilityPipelineRsyslogSource, + ObservabilityPipelineSyslogNgSource, ] ], **kwargs, diff --git a/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py b/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py index 01cf940587..3b6acca697 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_config_destination_item.py @@ -23,6 +23,51 @@ def __init__(self, **kwargs): :param type: The destination type. The value should always be `datadog_logs`. :type type: ObservabilityPipelineDatadogLogsDestinationType + + :param encoding: The output encoding format. + :type encoding: ObservabilityPipelineSumoLogicDestinationEncoding, optional + + :param header_custom_fields: A list of custom headers to include in the request to Sumo Logic. + :type header_custom_fields: [ObservabilityPipelineSumoLogicDestinationHeaderCustomFieldsItem], optional + + :param header_host_name: Optional override for the host name header. + :type header_host_name: str, optional + + :param header_source_category: Optional override for the source category header. + :type header_source_category: str, optional + + :param header_source_name: Optional override for the source name header. + :type header_source_name: str, optional + + :param api_version: The Elasticsearch API version to use. Set to `auto` to auto-detect. + :type api_version: ObservabilityPipelineElasticsearchDestinationApiVersion, optional + + :param bulk_index: The index or datastream to write logs to in Elasticsearch. + :type bulk_index: str, optional + + :param keepalive: Optional socket keepalive duration in milliseconds. + :type keepalive: int, optional + + :param tls: Configuration for enabling TLS encryption. + :type tls: ObservabilityPipelineTls, optional + + :param blob_prefix: Optional prefix for blobs written to the container. + :type blob_prefix: str, optional + + :param container_name: The name of the Azure Blob Storage container to store logs in. + :type container_name: str + + :param client_id: Azure AD client ID used for authentication. + :type client_id: str + + :param dcr_immutable_id: The immutable ID of the Data Collection Rule (DCR). + :type dcr_immutable_id: str + + :param table: The name of the Log Analytics table where logs will be sent. + :type table: str + + :param tenant_id: Azure AD tenant ID. + :type tenant_id: str """ super().__init__(kwargs) @@ -38,9 +83,29 @@ def _composed_schemas(_): from datadog_api_client.v2.model.observability_pipeline_datadog_logs_destination import ( ObservabilityPipelineDatadogLogsDestination, ) + from datadog_api_client.v2.model.observability_pipeline_sumo_logic_destination import ( + ObservabilityPipelineSumoLogicDestination, + ) + from datadog_api_client.v2.model.observability_pipeline_elasticsearch_destination import ( + ObservabilityPipelineElasticsearchDestination, + ) + from datadog_api_client.v2.model.observability_pipeline_rsyslog_destination import ( + ObservabilityPipelineRsyslogDestination, + ) + from datadog_api_client.v2.model.observability_pipeline_syslog_ng_destination import ( + ObservabilityPipelineSyslogNgDestination, + ) + from datadog_api_client.v2.model.azure_storage_destination import AzureStorageDestination + from datadog_api_client.v2.model.microsoft_sentinel_destination import MicrosoftSentinelDestination return { "oneOf": [ ObservabilityPipelineDatadogLogsDestination, + ObservabilityPipelineSumoLogicDestination, + ObservabilityPipelineElasticsearchDestination, + ObservabilityPipelineRsyslogDestination, + ObservabilityPipelineSyslogNgDestination, + AzureStorageDestination, + MicrosoftSentinelDestination, ], } diff --git a/src/datadog_api_client/v2/model/observability_pipeline_config_processor_item.py b/src/datadog_api_client/v2/model/observability_pipeline_config_processor_item.py index 174a2ff327..493e464ad3 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_config_processor_item.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_config_processor_item.py @@ -50,6 +50,9 @@ def __init__(self, **kwargs): :param fields: A list of static fields (key-value pairs) that is added to each log event processed by this component. :type fields: [ObservabilityPipelineFieldValue] + + :param rules: A list of rules for identifying and acting on sensitive data patterns. + :type rules: [ObservabilityPipelineSensitiveDataScannerProcessorRule] """ super().__init__(kwargs) @@ -80,6 +83,9 @@ def _composed_schemas(_): from datadog_api_client.v2.model.observability_pipeline_rename_fields_processor import ( ObservabilityPipelineRenameFieldsProcessor, ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor import ( + ObservabilityPipelineSensitiveDataScannerProcessor, + ) return { "oneOf": [ @@ -89,5 +95,6 @@ def _composed_schemas(_): ObservabilityPipelineAddFieldsProcessor, ObservabilityPipelineRemoveFieldsProcessor, ObservabilityPipelineRenameFieldsProcessor, + ObservabilityPipelineSensitiveDataScannerProcessor, ], } diff --git a/src/datadog_api_client/v2/model/observability_pipeline_config_source_item.py b/src/datadog_api_client/v2/model/observability_pipeline_config_source_item.py index 77d5f5f430..0dd11a5391 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_config_source_item.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_config_source_item.py @@ -35,6 +35,9 @@ def __init__(self, **kwargs): :param type: The source type. The value should always be `kafka`. :type type: ObservabilityPipelineKafkaSourceType + + :param mode: Protocol used by the syslog source to receive messages. + :type mode: ObservabilityPipelineSyslogSourceMode """ super().__init__(kwargs) @@ -51,10 +54,20 @@ def _composed_schemas(_): from datadog_api_client.v2.model.observability_pipeline_datadog_agent_source import ( ObservabilityPipelineDatadogAgentSource, ) + from datadog_api_client.v2.model.observability_pipeline_sumo_logic_source import ( + ObservabilityPipelineSumoLogicSource, + ) + from datadog_api_client.v2.model.observability_pipeline_rsyslog_source import ObservabilityPipelineRsyslogSource + from datadog_api_client.v2.model.observability_pipeline_syslog_ng_source import ( + ObservabilityPipelineSyslogNgSource, + ) return { "oneOf": [ ObservabilityPipelineKafkaSource, ObservabilityPipelineDatadogAgentSource, + ObservabilityPipelineSumoLogicSource, + ObservabilityPipelineRsyslogSource, + ObservabilityPipelineSyslogNgSource, ], } diff --git a/src/datadog_api_client/v2/model/observability_pipeline_elasticsearch_destination.py b/src/datadog_api_client/v2/model/observability_pipeline_elasticsearch_destination.py new file mode 100644 index 0000000000..48df0eb4f9 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_elasticsearch_destination.py @@ -0,0 +1,86 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_elasticsearch_destination_api_version import ( + ObservabilityPipelineElasticsearchDestinationApiVersion, + ) + from datadog_api_client.v2.model.observability_pipeline_elasticsearch_destination_type import ( + ObservabilityPipelineElasticsearchDestinationType, + ) + + +class ObservabilityPipelineElasticsearchDestination(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_elasticsearch_destination_api_version import ( + ObservabilityPipelineElasticsearchDestinationApiVersion, + ) + from datadog_api_client.v2.model.observability_pipeline_elasticsearch_destination_type import ( + ObservabilityPipelineElasticsearchDestinationType, + ) + + return { + "api_version": (ObservabilityPipelineElasticsearchDestinationApiVersion,), + "bulk_index": (str,), + "id": (str,), + "inputs": ([str],), + "type": (ObservabilityPipelineElasticsearchDestinationType,), + } + + attribute_map = { + "api_version": "api_version", + "bulk_index": "bulk_index", + "id": "id", + "inputs": "inputs", + "type": "type", + } + + def __init__( + self_, + id: str, + inputs: List[str], + type: ObservabilityPipelineElasticsearchDestinationType, + api_version: Union[ObservabilityPipelineElasticsearchDestinationApiVersion, UnsetType] = unset, + bulk_index: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + The ``elasticsearch`` destination writes logs to an Elasticsearch cluster. + + :param api_version: The Elasticsearch API version to use. Set to ``auto`` to auto-detect. + :type api_version: ObservabilityPipelineElasticsearchDestinationApiVersion, optional + + :param bulk_index: The index or datastream to write logs to in Elasticsearch. + :type bulk_index: str, optional + + :param id: The unique identifier for this component. + :type id: str + + :param inputs: A list of component IDs whose output is used as the ``input`` for this component. + :type inputs: [str] + + :param type: The destination type. The value should always be ``elasticsearch``. + :type type: ObservabilityPipelineElasticsearchDestinationType + """ + if api_version is not unset: + kwargs["api_version"] = api_version + if bulk_index is not unset: + kwargs["bulk_index"] = bulk_index + super().__init__(kwargs) + + self_.id = id + self_.inputs = inputs + self_.type = type diff --git a/src/datadog_api_client/v2/model/observability_pipeline_elasticsearch_destination_api_version.py b/src/datadog_api_client/v2/model/observability_pipeline_elasticsearch_destination_api_version.py new file mode 100644 index 0000000000..a38d49ddff --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_elasticsearch_destination_api_version.py @@ -0,0 +1,52 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineElasticsearchDestinationApiVersion(ModelSimple): + """ + The Elasticsearch API version to use. Set to `auto` to auto-detect. + + :param value: Must be one of ["auto", "v6", "v7", "v8"]. + :type value: str + """ + + allowed_values = { + "auto", + "v6", + "v7", + "v8", + } + AUTO: ClassVar["ObservabilityPipelineElasticsearchDestinationApiVersion"] + V6: ClassVar["ObservabilityPipelineElasticsearchDestinationApiVersion"] + V7: ClassVar["ObservabilityPipelineElasticsearchDestinationApiVersion"] + V8: ClassVar["ObservabilityPipelineElasticsearchDestinationApiVersion"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineElasticsearchDestinationApiVersion.AUTO = ObservabilityPipelineElasticsearchDestinationApiVersion( + "auto" +) +ObservabilityPipelineElasticsearchDestinationApiVersion.V6 = ObservabilityPipelineElasticsearchDestinationApiVersion( + "v6" +) +ObservabilityPipelineElasticsearchDestinationApiVersion.V7 = ObservabilityPipelineElasticsearchDestinationApiVersion( + "v7" +) +ObservabilityPipelineElasticsearchDestinationApiVersion.V8 = ObservabilityPipelineElasticsearchDestinationApiVersion( + "v8" +) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_elasticsearch_destination_type.py b/src/datadog_api_client/v2/model/observability_pipeline_elasticsearch_destination_type.py new file mode 100644 index 0000000000..550bb330da --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_elasticsearch_destination_type.py @@ -0,0 +1,37 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineElasticsearchDestinationType(ModelSimple): + """ + The destination type. The value should always be `elasticsearch`. + + :param value: If omitted defaults to "elasticsearch". Must be one of ["elasticsearch"]. + :type value: str + """ + + allowed_values = { + "elasticsearch", + } + ELASTICSEARCH: ClassVar["ObservabilityPipelineElasticsearchDestinationType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineElasticsearchDestinationType.ELASTICSEARCH = ObservabilityPipelineElasticsearchDestinationType( + "elasticsearch" +) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_rsyslog_destination.py b/src/datadog_api_client/v2/model/observability_pipeline_rsyslog_destination.py new file mode 100644 index 0000000000..fb7e49b765 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_rsyslog_destination.py @@ -0,0 +1,88 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls + from datadog_api_client.v2.model.observability_pipeline_rsyslog_destination_type import ( + ObservabilityPipelineRsyslogDestinationType, + ) + + +class ObservabilityPipelineRsyslogDestination(ModelNormal): + validations = { + "keepalive": { + "inclusive_minimum": 0, + }, + } + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls + from datadog_api_client.v2.model.observability_pipeline_rsyslog_destination_type import ( + ObservabilityPipelineRsyslogDestinationType, + ) + + return { + "id": (str,), + "inputs": ([str],), + "keepalive": (int,), + "tls": (ObservabilityPipelineTls,), + "type": (ObservabilityPipelineRsyslogDestinationType,), + } + + attribute_map = { + "id": "id", + "inputs": "inputs", + "keepalive": "keepalive", + "tls": "tls", + "type": "type", + } + + def __init__( + self_, + id: str, + inputs: List[str], + type: ObservabilityPipelineRsyslogDestinationType, + keepalive: Union[int, UnsetType] = unset, + tls: Union[ObservabilityPipelineTls, UnsetType] = unset, + **kwargs, + ): + """ + The ``rsyslog`` destination forwards logs to an external ``rsyslog`` server over TCP or UDP using the syslog protocol. + + :param id: The unique identifier for this component. + :type id: str + + :param inputs: A list of component IDs whose output is used as the ``input`` for this component. + :type inputs: [str] + + :param keepalive: Optional socket keepalive duration in milliseconds. + :type keepalive: int, optional + + :param tls: Configuration for enabling TLS encryption. + :type tls: ObservabilityPipelineTls, optional + + :param type: The destination type. The value should always be ``rsyslog``. + :type type: ObservabilityPipelineRsyslogDestinationType + """ + if keepalive is not unset: + kwargs["keepalive"] = keepalive + if tls is not unset: + kwargs["tls"] = tls + super().__init__(kwargs) + + self_.id = id + self_.inputs = inputs + self_.type = type diff --git a/src/datadog_api_client/v2/model/observability_pipeline_rsyslog_destination_type.py b/src/datadog_api_client/v2/model/observability_pipeline_rsyslog_destination_type.py new file mode 100644 index 0000000000..77bf9956e8 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_rsyslog_destination_type.py @@ -0,0 +1,35 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineRsyslogDestinationType(ModelSimple): + """ + The destination type. The value should always be `rsyslog`. + + :param value: If omitted defaults to "rsyslog". Must be one of ["rsyslog"]. + :type value: str + """ + + allowed_values = { + "rsyslog", + } + RSYSLOG: ClassVar["ObservabilityPipelineRsyslogDestinationType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineRsyslogDestinationType.RSYSLOG = ObservabilityPipelineRsyslogDestinationType("rsyslog") diff --git a/src/datadog_api_client/v2/model/observability_pipeline_rsyslog_source.py b/src/datadog_api_client/v2/model/observability_pipeline_rsyslog_source.py new file mode 100644 index 0000000000..5d11306724 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_rsyslog_source.py @@ -0,0 +1,80 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_syslog_source_mode import ( + ObservabilityPipelineSyslogSourceMode, + ) + from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls + from datadog_api_client.v2.model.observability_pipeline_rsyslog_source_type import ( + ObservabilityPipelineRsyslogSourceType, + ) + + +class ObservabilityPipelineRsyslogSource(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_syslog_source_mode import ( + ObservabilityPipelineSyslogSourceMode, + ) + from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls + from datadog_api_client.v2.model.observability_pipeline_rsyslog_source_type import ( + ObservabilityPipelineRsyslogSourceType, + ) + + return { + "id": (str,), + "mode": (ObservabilityPipelineSyslogSourceMode,), + "tls": (ObservabilityPipelineTls,), + "type": (ObservabilityPipelineRsyslogSourceType,), + } + + attribute_map = { + "id": "id", + "mode": "mode", + "tls": "tls", + "type": "type", + } + + def __init__( + self_, + id: str, + mode: ObservabilityPipelineSyslogSourceMode, + type: ObservabilityPipelineRsyslogSourceType, + tls: Union[ObservabilityPipelineTls, UnsetType] = unset, + **kwargs, + ): + """ + The ``rsyslog`` source listens for logs over TCP or UDP from an ``rsyslog`` server using the syslog protocol. + + :param id: The unique identifier for this component. Used to reference this component in other parts of the pipeline (e.g., as input to downstream components). + :type id: str + + :param mode: Protocol used by the syslog source to receive messages. + :type mode: ObservabilityPipelineSyslogSourceMode + + :param tls: Configuration for enabling TLS encryption. + :type tls: ObservabilityPipelineTls, optional + + :param type: The source type. The value should always be ``rsyslog``. + :type type: ObservabilityPipelineRsyslogSourceType + """ + if tls is not unset: + kwargs["tls"] = tls + super().__init__(kwargs) + + self_.id = id + self_.mode = mode + self_.type = type diff --git a/src/datadog_api_client/v2/model/observability_pipeline_rsyslog_source_type.py b/src/datadog_api_client/v2/model/observability_pipeline_rsyslog_source_type.py new file mode 100644 index 0000000000..0263bcebf1 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_rsyslog_source_type.py @@ -0,0 +1,35 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineRsyslogSourceType(ModelSimple): + """ + The source type. The value should always be `rsyslog`. + + :param value: If omitted defaults to "rsyslog". Must be one of ["rsyslog"]. + :type value: str + """ + + allowed_values = { + "rsyslog", + } + RSYSLOG: ClassVar["ObservabilityPipelineRsyslogSourceType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineRsyslogSourceType.RSYSLOG = ObservabilityPipelineRsyslogSourceType("rsyslog") diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor.py new file mode 100644 index 0000000000..9d78e97932 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor.py @@ -0,0 +1,82 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_rule import ( + ObservabilityPipelineSensitiveDataScannerProcessorRule, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_type import ( + ObservabilityPipelineSensitiveDataScannerProcessorType, + ) + + +class ObservabilityPipelineSensitiveDataScannerProcessor(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_rule import ( + ObservabilityPipelineSensitiveDataScannerProcessorRule, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_type import ( + ObservabilityPipelineSensitiveDataScannerProcessorType, + ) + + return { + "id": (str,), + "include": (str,), + "inputs": ([str],), + "rules": ([ObservabilityPipelineSensitiveDataScannerProcessorRule],), + "type": (ObservabilityPipelineSensitiveDataScannerProcessorType,), + } + + attribute_map = { + "id": "id", + "include": "include", + "inputs": "inputs", + "rules": "rules", + "type": "type", + } + + def __init__( + self_, + id: str, + include: str, + inputs: List[str], + rules: List[ObservabilityPipelineSensitiveDataScannerProcessorRule], + type: ObservabilityPipelineSensitiveDataScannerProcessorType, + **kwargs, + ): + """ + The ``sensitive_data_scanner`` processor detects and optionally redacts sensitive data in log events. + + :param id: The unique identifier for this component. Used to reference this component in other parts of the pipeline (e.g., as input to downstream components). + :type id: str + + :param include: A Datadog search query used to determine which logs this processor targets. + :type include: str + + :param inputs: A list of component IDs whose output is used as the ``input`` for this component. + :type inputs: [str] + + :param rules: A list of rules for identifying and acting on sensitive data patterns. + :type rules: [ObservabilityPipelineSensitiveDataScannerProcessorRule] + + :param type: The processor type. The value should always be ``sensitive_data_scanner``. + :type type: ObservabilityPipelineSensitiveDataScannerProcessorType + """ + super().__init__(kwargs) + + self_.id = id + self_.include = include + self_.inputs = inputs + self_.rules = rules + self_.type = type diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action.py new file mode 100644 index 0000000000..0fc9b956eb --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action.py @@ -0,0 +1,51 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelComposed, + cached_property, +) + + +class ObservabilityPipelineSensitiveDataScannerProcessorAction(ModelComposed): + def __init__(self, **kwargs): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorAction`` object. + + :param action: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction` object. + :type action: ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction + + :param options: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions` object. + :type options: ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions + """ + super().__init__(kwargs) + + @cached_property + def _composed_schemas(_): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_redact import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionRedact, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_hash import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionHash, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_partial_redact import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedact, + ) + + return { + "oneOf": [ + ObservabilityPipelineSensitiveDataScannerProcessorActionRedact, + ObservabilityPipelineSensitiveDataScannerProcessorActionHash, + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedact, + ], + } diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_hash.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_hash.py new file mode 100644 index 0000000000..3065e495ae --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_hash.py @@ -0,0 +1,58 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_hash_action import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction, + ) + + +class ObservabilityPipelineSensitiveDataScannerProcessorActionHash(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_hash_action import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction, + ) + + return { + "action": (ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction,), + "options": (dict,), + } + + attribute_map = { + "action": "action", + "options": "options", + } + + def __init__( + self_, + action: ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction, + options: Union[dict, UnsetType] = unset, + **kwargs, + ): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorActionHash`` object. + + :param action: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction`` object. + :type action: ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction + + :param options: The ``ObservabilityPipelineSensitiveDataScannerProcessorActionHash`` ``options``. + :type options: dict, optional + """ + if options is not unset: + kwargs["options"] = options + super().__init__(kwargs) + + self_.action = action diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_hash_action.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_hash_action.py new file mode 100644 index 0000000000..dc57709a5f --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_hash_action.py @@ -0,0 +1,37 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction(ModelSimple): + """ + The definition of `ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction` object. + + :param value: If omitted defaults to "hash". Must be one of ["hash"]. + :type value: str + """ + + allowed_values = { + "hash", + } + HASH: ClassVar["ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction.HASH = ( + ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction("hash") +) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact.py new file mode 100644 index 0000000000..86b79cda23 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact.py @@ -0,0 +1,61 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_action import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactAction, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions, + ) + + +class ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedact(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_action import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactAction, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions, + ) + + return { + "action": (ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactAction,), + "options": (ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions,), + } + + attribute_map = { + "action": "action", + "options": "options", + } + + def __init__( + self_, + action: ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactAction, + options: ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions, + **kwargs, + ): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedact`` object. + + :param action: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactAction`` object. + :type action: ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactAction + + :param options: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions`` object. + :type options: ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions + """ + super().__init__(kwargs) + + self_.action = action + self_.options = options diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_action.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_action.py new file mode 100644 index 0000000000..06c0377eec --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_action.py @@ -0,0 +1,37 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactAction(ModelSimple): + """ + The definition of `ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactAction` object. + + :param value: If omitted defaults to "partial_redact". Must be one of ["partial_redact"]. + :type value: str + """ + + allowed_values = { + "partial_redact", + } + PARTIAL_REDACT: ClassVar["ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactAction"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactAction.PARTIAL_REDACT = ( + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactAction("partial_redact") +) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options.py new file mode 100644 index 0000000000..6512920d00 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options.py @@ -0,0 +1,55 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options_direction import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection, + ) + + +class ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options_direction import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection, + ) + + return { + "characters": (int,), + "direction": (ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection,), + } + + attribute_map = { + "characters": "characters", + "direction": "direction", + } + + def __init__( + self_, + characters: int, + direction: ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection, + **kwargs, + ): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions`` object. + + :param characters: The ``ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions`` ``characters``. + :type characters: int + + :param direction: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection`` object. + :type direction: ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection + """ + super().__init__(kwargs) + + self_.characters = characters + self_.direction = direction diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options_direction.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options_direction.py new file mode 100644 index 0000000000..220312e805 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options_direction.py @@ -0,0 +1,42 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection(ModelSimple): + """ + The definition of `ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection` object. + + :param value: Must be one of ["first", "last"]. + :type value: str + """ + + allowed_values = { + "first", + "last", + } + FIRST: ClassVar["ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection"] + LAST: ClassVar["ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection.FIRST = ( + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection("first") +) +ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection.LAST = ( + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection("last") +) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_redact.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_redact.py new file mode 100644 index 0000000000..777f23e177 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_redact.py @@ -0,0 +1,61 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_redact_action import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_redact_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions, + ) + + +class ObservabilityPipelineSensitiveDataScannerProcessorActionRedact(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_redact_action import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_redact_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions, + ) + + return { + "action": (ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction,), + "options": (ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions,), + } + + attribute_map = { + "action": "action", + "options": "options", + } + + def __init__( + self_, + action: ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction, + options: ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions, + **kwargs, + ): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorActionRedact`` object. + + :param action: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction`` object. + :type action: ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction + + :param options: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions`` object. + :type options: ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions + """ + super().__init__(kwargs) + + self_.action = action + self_.options = options diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_redact_action.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_redact_action.py new file mode 100644 index 0000000000..86795f74a9 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_redact_action.py @@ -0,0 +1,37 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction(ModelSimple): + """ + The definition of `ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction` object. + + :param value: If omitted defaults to "redact". Must be one of ["redact"]. + :type value: str + """ + + allowed_values = { + "redact", + } + REDACT: ClassVar["ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction.REDACT = ( + ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction("redact") +) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_redact_options.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_redact_options.py new file mode 100644 index 0000000000..0f8805d712 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_action_redact_options.py @@ -0,0 +1,33 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +class ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions(ModelNormal): + @cached_property + def openapi_types(_): + return { + "replace": (str,), + } + + attribute_map = { + "replace": "replace", + } + + def __init__(self_, replace: str, **kwargs): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions`` object. + + :param replace: The ``ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions`` ``replace``. + :type replace: str + """ + super().__init__(kwargs) + + self_.replace = replace diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_custom_pattern.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_custom_pattern.py new file mode 100644 index 0000000000..6fabb2e25a --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_custom_pattern.py @@ -0,0 +1,61 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_custom_pattern_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_custom_pattern_type import ( + ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType, + ) + + +class ObservabilityPipelineSensitiveDataScannerProcessorCustomPattern(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_custom_pattern_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_custom_pattern_type import ( + ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType, + ) + + return { + "options": (ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions,), + "type": (ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType,), + } + + attribute_map = { + "options": "options", + "type": "type", + } + + def __init__( + self_, + options: ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions, + type: ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType, + **kwargs, + ): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorCustomPattern`` object. + + :param options: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions`` object. + :type options: ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions + + :param type: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType`` object. + :type type: ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType + """ + super().__init__(kwargs) + + self_.options = options + self_.type = type diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_options.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_options.py new file mode 100644 index 0000000000..11d6d1d01c --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_options.py @@ -0,0 +1,33 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +class ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions(ModelNormal): + @cached_property + def openapi_types(_): + return { + "rule": (str,), + } + + attribute_map = { + "rule": "rule", + } + + def __init__(self_, rule: str, **kwargs): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions`` object. + + :param rule: A regular expression used to detect sensitive values. Must be a valid regex. + :type rule: str + """ + super().__init__(kwargs) + + self_.rule = rule diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_type.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_type.py new file mode 100644 index 0000000000..51a59a30de --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_type.py @@ -0,0 +1,37 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType(ModelSimple): + """ + The definition of `ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType` object. + + :param value: If omitted defaults to "custom". Must be one of ["custom"]. + :type value: str + """ + + allowed_values = { + "custom", + } + CUSTOM: ClassVar["ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType.CUSTOM = ( + ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType("custom") +) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_keyword_options.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_keyword_options.py new file mode 100644 index 0000000000..6e35fb3536 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_keyword_options.py @@ -0,0 +1,40 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +class ObservabilityPipelineSensitiveDataScannerProcessorKeywordOptions(ModelNormal): + @cached_property + def openapi_types(_): + return { + "keywords": ([str],), + "proximity": (int,), + } + + attribute_map = { + "keywords": "keywords", + "proximity": "proximity", + } + + def __init__(self_, keywords: List[str], proximity: int, **kwargs): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorKeywordOptions`` object. + + :param keywords: A list of keywords to match near the sensitive pattern. + :type keywords: [str] + + :param proximity: Maximum number of tokens between a keyword and a sensitive value match. + :type proximity: int + """ + super().__init__(kwargs) + + self_.keywords = keywords + self_.proximity = proximity diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_library_pattern.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_library_pattern.py new file mode 100644 index 0000000000..c3a9145ee8 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_library_pattern.py @@ -0,0 +1,61 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_library_pattern_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_library_pattern_type import ( + ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternType, + ) + + +class ObservabilityPipelineSensitiveDataScannerProcessorLibraryPattern(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_library_pattern_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_library_pattern_type import ( + ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternType, + ) + + return { + "options": (ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions,), + "type": (ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternType,), + } + + attribute_map = { + "options": "options", + "type": "type", + } + + def __init__( + self_, + options: ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions, + type: ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternType, + **kwargs, + ): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorLibraryPattern`` object. + + :param options: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions`` object. + :type options: ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions + + :param type: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternType`` object. + :type type: ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternType + """ + super().__init__(kwargs) + + self_.options = options + self_.type = type diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_library_pattern_options.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_library_pattern_options.py new file mode 100644 index 0000000000..7569e50cd1 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_library_pattern_options.py @@ -0,0 +1,43 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import Union + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions(ModelNormal): + @cached_property + def openapi_types(_): + return { + "id": (str,), + "use_recommended_keywords": (bool,), + } + + attribute_map = { + "id": "id", + "use_recommended_keywords": "use_recommended_keywords", + } + + def __init__(self_, id: str, use_recommended_keywords: Union[bool, UnsetType] = unset, **kwargs): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions`` object. + + :param id: Identifier for a predefined pattern from the sensitive data scanner pattern library. + :type id: str + + :param use_recommended_keywords: Whether to augment the pattern with recommended keywords (optional). + :type use_recommended_keywords: bool, optional + """ + if use_recommended_keywords is not unset: + kwargs["use_recommended_keywords"] = use_recommended_keywords + super().__init__(kwargs) + + self_.id = id diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_library_pattern_type.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_library_pattern_type.py new file mode 100644 index 0000000000..18613257bb --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_library_pattern_type.py @@ -0,0 +1,37 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternType(ModelSimple): + """ + The definition of `ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternType` object. + + :param value: If omitted defaults to "library". Must be one of ["library"]. + :type value: str + """ + + allowed_values = { + "library", + } + LIBRARY: ClassVar["ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternType.LIBRARY = ( + ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternType("library") +) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_pattern.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_pattern.py new file mode 100644 index 0000000000..612b066125 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_pattern.py @@ -0,0 +1,47 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelComposed, + cached_property, +) + + +class ObservabilityPipelineSensitiveDataScannerProcessorPattern(ModelComposed): + def __init__(self, **kwargs): + """ + Pattern detection configuration for identifying sensitive data using either a custom regex or a library reference. + + :param options: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions` object. + :type options: ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions + + :param type: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType` object. + :type type: ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType + """ + super().__init__(kwargs) + + @cached_property + def _composed_schemas(_): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_custom_pattern import ( + ObservabilityPipelineSensitiveDataScannerProcessorCustomPattern, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_library_pattern import ( + ObservabilityPipelineSensitiveDataScannerProcessorLibraryPattern, + ) + + return { + "oneOf": [ + ObservabilityPipelineSensitiveDataScannerProcessorCustomPattern, + ObservabilityPipelineSensitiveDataScannerProcessorLibraryPattern, + ], + } diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_rule.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_rule.py new file mode 100644 index 0000000000..12841d1ab5 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_rule.py @@ -0,0 +1,142 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_keyword_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorKeywordOptions, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action import ( + ObservabilityPipelineSensitiveDataScannerProcessorAction, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_pattern import ( + ObservabilityPipelineSensitiveDataScannerProcessorPattern, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope import ( + ObservabilityPipelineSensitiveDataScannerProcessorScope, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_redact import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionRedact, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_hash import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionHash, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_partial_redact import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedact, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_custom_pattern import ( + ObservabilityPipelineSensitiveDataScannerProcessorCustomPattern, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_library_pattern import ( + ObservabilityPipelineSensitiveDataScannerProcessorLibraryPattern, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_include import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeInclude, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_exclude import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeExclude, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_all import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeAll, + ) + + +class ObservabilityPipelineSensitiveDataScannerProcessorRule(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_keyword_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorKeywordOptions, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action import ( + ObservabilityPipelineSensitiveDataScannerProcessorAction, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_pattern import ( + ObservabilityPipelineSensitiveDataScannerProcessorPattern, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope import ( + ObservabilityPipelineSensitiveDataScannerProcessorScope, + ) + + return { + "keyword_options": (ObservabilityPipelineSensitiveDataScannerProcessorKeywordOptions,), + "name": (str,), + "on_match": (ObservabilityPipelineSensitiveDataScannerProcessorAction,), + "pattern": (ObservabilityPipelineSensitiveDataScannerProcessorPattern,), + "scope": (ObservabilityPipelineSensitiveDataScannerProcessorScope,), + "tags": ([str],), + } + + attribute_map = { + "keyword_options": "keyword_options", + "name": "name", + "on_match": "on_match", + "pattern": "pattern", + "scope": "scope", + "tags": "tags", + } + + def __init__( + self_, + name: str, + on_match: Union[ + ObservabilityPipelineSensitiveDataScannerProcessorAction, + ObservabilityPipelineSensitiveDataScannerProcessorActionRedact, + ObservabilityPipelineSensitiveDataScannerProcessorActionHash, + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedact, + ], + pattern: Union[ + ObservabilityPipelineSensitiveDataScannerProcessorPattern, + ObservabilityPipelineSensitiveDataScannerProcessorCustomPattern, + ObservabilityPipelineSensitiveDataScannerProcessorLibraryPattern, + ], + scope: Union[ + ObservabilityPipelineSensitiveDataScannerProcessorScope, + ObservabilityPipelineSensitiveDataScannerProcessorScopeInclude, + ObservabilityPipelineSensitiveDataScannerProcessorScopeExclude, + ObservabilityPipelineSensitiveDataScannerProcessorScopeAll, + ], + tags: List[str], + keyword_options: Union[ObservabilityPipelineSensitiveDataScannerProcessorKeywordOptions, UnsetType] = unset, + **kwargs, + ): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorRule`` object. + + :param keyword_options: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorKeywordOptions`` object. + :type keyword_options: ObservabilityPipelineSensitiveDataScannerProcessorKeywordOptions, optional + + :param name: A name identifying the rule. + :type name: str + + :param on_match: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorAction`` object. + :type on_match: ObservabilityPipelineSensitiveDataScannerProcessorAction + + :param pattern: Pattern detection configuration for identifying sensitive data using either a custom regex or a library reference. + :type pattern: ObservabilityPipelineSensitiveDataScannerProcessorPattern + + :param scope: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorScope`` object. + :type scope: ObservabilityPipelineSensitiveDataScannerProcessorScope + + :param tags: Tags assigned to this rule for filtering and classification. + :type tags: [str] + """ + if keyword_options is not unset: + kwargs["keyword_options"] = keyword_options + super().__init__(kwargs) + + self_.name = name + self_.on_match = on_match + self_.pattern = pattern + self_.scope = scope + self_.tags = tags diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope.py new file mode 100644 index 0000000000..82974d7f40 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope.py @@ -0,0 +1,51 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelComposed, + cached_property, +) + + +class ObservabilityPipelineSensitiveDataScannerProcessorScope(ModelComposed): + def __init__(self, **kwargs): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorScope`` object. + + :param options: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions` object. + :type options: ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions + + :param target: The definition of `ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget` object. + :type target: ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget + """ + super().__init__(kwargs) + + @cached_property + def _composed_schemas(_): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_include import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeInclude, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_exclude import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeExclude, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_all import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeAll, + ) + + return { + "oneOf": [ + ObservabilityPipelineSensitiveDataScannerProcessorScopeInclude, + ObservabilityPipelineSensitiveDataScannerProcessorScopeExclude, + ObservabilityPipelineSensitiveDataScannerProcessorScopeAll, + ], + } diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_all.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_all.py new file mode 100644 index 0000000000..a9bfd645ca --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_all.py @@ -0,0 +1,44 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_all_target import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeAllTarget, + ) + + +class ObservabilityPipelineSensitiveDataScannerProcessorScopeAll(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_all_target import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeAllTarget, + ) + + return { + "target": (ObservabilityPipelineSensitiveDataScannerProcessorScopeAllTarget,), + } + + attribute_map = { + "target": "target", + } + + def __init__(self_, target: ObservabilityPipelineSensitiveDataScannerProcessorScopeAllTarget, **kwargs): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorScopeAll`` object. + + :param target: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorScopeAllTarget`` object. + :type target: ObservabilityPipelineSensitiveDataScannerProcessorScopeAllTarget + """ + super().__init__(kwargs) + + self_.target = target diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_all_target.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_all_target.py new file mode 100644 index 0000000000..d0cc8194ca --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_all_target.py @@ -0,0 +1,37 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineSensitiveDataScannerProcessorScopeAllTarget(ModelSimple): + """ + The definition of `ObservabilityPipelineSensitiveDataScannerProcessorScopeAllTarget` object. + + :param value: If omitted defaults to "all". Must be one of ["all"]. + :type value: str + """ + + allowed_values = { + "all", + } + ALL: ClassVar["ObservabilityPipelineSensitiveDataScannerProcessorScopeAllTarget"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineSensitiveDataScannerProcessorScopeAllTarget.ALL = ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeAllTarget("all") +) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_exclude.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_exclude.py new file mode 100644 index 0000000000..d6c9cc3e32 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_exclude.py @@ -0,0 +1,61 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_exclude_target import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeExcludeTarget, + ) + + +class ObservabilityPipelineSensitiveDataScannerProcessorScopeExclude(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_exclude_target import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeExcludeTarget, + ) + + return { + "options": (ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions,), + "target": (ObservabilityPipelineSensitiveDataScannerProcessorScopeExcludeTarget,), + } + + attribute_map = { + "options": "options", + "target": "target", + } + + def __init__( + self_, + options: ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions, + target: ObservabilityPipelineSensitiveDataScannerProcessorScopeExcludeTarget, + **kwargs, + ): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorScopeExclude`` object. + + :param options: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions`` object. + :type options: ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions + + :param target: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorScopeExcludeTarget`` object. + :type target: ObservabilityPipelineSensitiveDataScannerProcessorScopeExcludeTarget + """ + super().__init__(kwargs) + + self_.options = options + self_.target = target diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_exclude_target.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_exclude_target.py new file mode 100644 index 0000000000..c031b047db --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_exclude_target.py @@ -0,0 +1,37 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineSensitiveDataScannerProcessorScopeExcludeTarget(ModelSimple): + """ + The definition of `ObservabilityPipelineSensitiveDataScannerProcessorScopeExcludeTarget` object. + + :param value: If omitted defaults to "exclude". Must be one of ["exclude"]. + :type value: str + """ + + allowed_values = { + "exclude", + } + EXCLUDE: ClassVar["ObservabilityPipelineSensitiveDataScannerProcessorScopeExcludeTarget"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineSensitiveDataScannerProcessorScopeExcludeTarget.EXCLUDE = ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeExcludeTarget("exclude") +) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_include.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_include.py new file mode 100644 index 0000000000..3bdc143f32 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_include.py @@ -0,0 +1,61 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_include_target import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget, + ) + + +class ObservabilityPipelineSensitiveDataScannerProcessorScopeInclude(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions, + ) + from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_include_target import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget, + ) + + return { + "options": (ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions,), + "target": (ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget,), + } + + attribute_map = { + "options": "options", + "target": "target", + } + + def __init__( + self_, + options: ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions, + target: ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget, + **kwargs, + ): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorScopeInclude`` object. + + :param options: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions`` object. + :type options: ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions + + :param target: The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget`` object. + :type target: ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget + """ + super().__init__(kwargs) + + self_.options = options + self_.target = target diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_include_target.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_include_target.py new file mode 100644 index 0000000000..c03a20f9ab --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_include_target.py @@ -0,0 +1,37 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget(ModelSimple): + """ + The definition of `ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget` object. + + :param value: If omitted defaults to "include". Must be one of ["include"]. + :type value: str + """ + + allowed_values = { + "include", + } + INCLUDE: ClassVar["ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget.INCLUDE = ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget("include") +) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_options.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_options.py new file mode 100644 index 0000000000..86cca4be53 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_scope_options.py @@ -0,0 +1,34 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +class ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions(ModelNormal): + @cached_property + def openapi_types(_): + return { + "fields": ([str],), + } + + attribute_map = { + "fields": "fields", + } + + def __init__(self_, fields: List[str], **kwargs): + """ + The definition of ``ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions`` object. + + :param fields: The ``ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions`` ``fields``. + :type fields: [str] + """ + super().__init__(kwargs) + + self_.fields = fields diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_type.py b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_type.py new file mode 100644 index 0000000000..2eb255bb6e --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sensitive_data_scanner_processor_type.py @@ -0,0 +1,37 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineSensitiveDataScannerProcessorType(ModelSimple): + """ + The processor type. The value should always be `sensitive_data_scanner`. + + :param value: If omitted defaults to "sensitive_data_scanner". Must be one of ["sensitive_data_scanner"]. + :type value: str + """ + + allowed_values = { + "sensitive_data_scanner", + } + SENSITIVE_DATA_SCANNER: ClassVar["ObservabilityPipelineSensitiveDataScannerProcessorType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineSensitiveDataScannerProcessorType.SENSITIVE_DATA_SCANNER = ( + ObservabilityPipelineSensitiveDataScannerProcessorType("sensitive_data_scanner") +) diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_destination.py b/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_destination.py new file mode 100644 index 0000000000..d49e3044f8 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_destination.py @@ -0,0 +1,118 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_sumo_logic_destination_encoding import ( + ObservabilityPipelineSumoLogicDestinationEncoding, + ) + from datadog_api_client.v2.model.observability_pipeline_sumo_logic_destination_header_custom_fields_item import ( + ObservabilityPipelineSumoLogicDestinationHeaderCustomFieldsItem, + ) + from datadog_api_client.v2.model.observability_pipeline_sumo_logic_destination_type import ( + ObservabilityPipelineSumoLogicDestinationType, + ) + + +class ObservabilityPipelineSumoLogicDestination(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_sumo_logic_destination_encoding import ( + ObservabilityPipelineSumoLogicDestinationEncoding, + ) + from datadog_api_client.v2.model.observability_pipeline_sumo_logic_destination_header_custom_fields_item import ( + ObservabilityPipelineSumoLogicDestinationHeaderCustomFieldsItem, + ) + from datadog_api_client.v2.model.observability_pipeline_sumo_logic_destination_type import ( + ObservabilityPipelineSumoLogicDestinationType, + ) + + return { + "encoding": (ObservabilityPipelineSumoLogicDestinationEncoding,), + "header_custom_fields": ([ObservabilityPipelineSumoLogicDestinationHeaderCustomFieldsItem],), + "header_host_name": (str,), + "header_source_category": (str,), + "header_source_name": (str,), + "id": (str,), + "inputs": ([str],), + "type": (ObservabilityPipelineSumoLogicDestinationType,), + } + + attribute_map = { + "encoding": "encoding", + "header_custom_fields": "header_custom_fields", + "header_host_name": "header_host_name", + "header_source_category": "header_source_category", + "header_source_name": "header_source_name", + "id": "id", + "inputs": "inputs", + "type": "type", + } + + def __init__( + self_, + id: str, + inputs: List[str], + type: ObservabilityPipelineSumoLogicDestinationType, + encoding: Union[ObservabilityPipelineSumoLogicDestinationEncoding, UnsetType] = unset, + header_custom_fields: Union[ + List[ObservabilityPipelineSumoLogicDestinationHeaderCustomFieldsItem], UnsetType + ] = unset, + header_host_name: Union[str, UnsetType] = unset, + header_source_category: Union[str, UnsetType] = unset, + header_source_name: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + The ``sumo_logic`` destination forwards logs to Sumo Logic. + + :param encoding: The output encoding format. + :type encoding: ObservabilityPipelineSumoLogicDestinationEncoding, optional + + :param header_custom_fields: A list of custom headers to include in the request to Sumo Logic. + :type header_custom_fields: [ObservabilityPipelineSumoLogicDestinationHeaderCustomFieldsItem], optional + + :param header_host_name: Optional override for the host name header. + :type header_host_name: str, optional + + :param header_source_category: Optional override for the source category header. + :type header_source_category: str, optional + + :param header_source_name: Optional override for the source name header. + :type header_source_name: str, optional + + :param id: The unique identifier for this component. + :type id: str + + :param inputs: A list of component IDs whose output is used as the ``input`` for this component. + :type inputs: [str] + + :param type: The destination type. The value should always be ``sumo_logic``. + :type type: ObservabilityPipelineSumoLogicDestinationType + """ + if encoding is not unset: + kwargs["encoding"] = encoding + if header_custom_fields is not unset: + kwargs["header_custom_fields"] = header_custom_fields + if header_host_name is not unset: + kwargs["header_host_name"] = header_host_name + if header_source_category is not unset: + kwargs["header_source_category"] = header_source_category + if header_source_name is not unset: + kwargs["header_source_name"] = header_source_name + super().__init__(kwargs) + + self_.id = id + self_.inputs = inputs + self_.type = type diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_destination_encoding.py b/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_destination_encoding.py new file mode 100644 index 0000000000..10d126e168 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_destination_encoding.py @@ -0,0 +1,43 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineSumoLogicDestinationEncoding(ModelSimple): + """ + The output encoding format. + + :param value: Must be one of ["json", "raw_message", "logfmt"]. + :type value: str + """ + + allowed_values = { + "json", + "raw_message", + "logfmt", + } + JSON: ClassVar["ObservabilityPipelineSumoLogicDestinationEncoding"] + RAW_MESSAGE: ClassVar["ObservabilityPipelineSumoLogicDestinationEncoding"] + LOGFMT: ClassVar["ObservabilityPipelineSumoLogicDestinationEncoding"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineSumoLogicDestinationEncoding.JSON = ObservabilityPipelineSumoLogicDestinationEncoding("json") +ObservabilityPipelineSumoLogicDestinationEncoding.RAW_MESSAGE = ObservabilityPipelineSumoLogicDestinationEncoding( + "raw_message" +) +ObservabilityPipelineSumoLogicDestinationEncoding.LOGFMT = ObservabilityPipelineSumoLogicDestinationEncoding("logfmt") diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_destination_header_custom_fields_item.py b/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_destination_header_custom_fields_item.py new file mode 100644 index 0000000000..d520a36e0a --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_destination_header_custom_fields_item.py @@ -0,0 +1,39 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +class ObservabilityPipelineSumoLogicDestinationHeaderCustomFieldsItem(ModelNormal): + @cached_property + def openapi_types(_): + return { + "name": (str,), + "value": (str,), + } + + attribute_map = { + "name": "name", + "value": "value", + } + + def __init__(self_, name: str, value: str, **kwargs): + """ + Single name-value pair used as a custom log header for Sumo Logic. + + :param name: The header field name. + :type name: str + + :param value: The header field value. + :type value: str + """ + super().__init__(kwargs) + + self_.name = name + self_.value = value diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_destination_type.py b/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_destination_type.py new file mode 100644 index 0000000000..337f00fee9 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_destination_type.py @@ -0,0 +1,35 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineSumoLogicDestinationType(ModelSimple): + """ + The destination type. The value should always be `sumo_logic`. + + :param value: If omitted defaults to "sumo_logic". Must be one of ["sumo_logic"]. + :type value: str + """ + + allowed_values = { + "sumo_logic", + } + SUMO_LOGIC: ClassVar["ObservabilityPipelineSumoLogicDestinationType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineSumoLogicDestinationType.SUMO_LOGIC = ObservabilityPipelineSumoLogicDestinationType("sumo_logic") diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_source.py b/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_source.py new file mode 100644 index 0000000000..c02e14c8c1 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_source.py @@ -0,0 +1,50 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_sumo_logic_source_type import ( + ObservabilityPipelineSumoLogicSourceType, + ) + + +class ObservabilityPipelineSumoLogicSource(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_sumo_logic_source_type import ( + ObservabilityPipelineSumoLogicSourceType, + ) + + return { + "id": (str,), + "type": (ObservabilityPipelineSumoLogicSourceType,), + } + + attribute_map = { + "id": "id", + "type": "type", + } + + def __init__(self_, id: str, type: ObservabilityPipelineSumoLogicSourceType, **kwargs): + """ + The ``sumo_logic`` source receives logs from Sumo Logic collectors. + + :param id: The unique identifier for this component. Used to reference this component in other parts of the pipeline (e.g., as input to downstream components). + :type id: str + + :param type: The source type. The value should always be ``sumo_logic``. + :type type: ObservabilityPipelineSumoLogicSourceType + """ + super().__init__(kwargs) + + self_.id = id + self_.type = type diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_source_type.py b/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_source_type.py new file mode 100644 index 0000000000..9742e87d23 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_sumo_logic_source_type.py @@ -0,0 +1,35 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineSumoLogicSourceType(ModelSimple): + """ + The source type. The value should always be `sumo_logic`. + + :param value: If omitted defaults to "sumo_logic". Must be one of ["sumo_logic"]. + :type value: str + """ + + allowed_values = { + "sumo_logic", + } + SUMO_LOGIC: ClassVar["ObservabilityPipelineSumoLogicSourceType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineSumoLogicSourceType.SUMO_LOGIC = ObservabilityPipelineSumoLogicSourceType("sumo_logic") diff --git a/src/datadog_api_client/v2/model/observability_pipeline_syslog_ng_destination.py b/src/datadog_api_client/v2/model/observability_pipeline_syslog_ng_destination.py new file mode 100644 index 0000000000..d1940a4dec --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_syslog_ng_destination.py @@ -0,0 +1,88 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls + from datadog_api_client.v2.model.observability_pipeline_syslog_ng_destination_type import ( + ObservabilityPipelineSyslogNgDestinationType, + ) + + +class ObservabilityPipelineSyslogNgDestination(ModelNormal): + validations = { + "keepalive": { + "inclusive_minimum": 0, + }, + } + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls + from datadog_api_client.v2.model.observability_pipeline_syslog_ng_destination_type import ( + ObservabilityPipelineSyslogNgDestinationType, + ) + + return { + "id": (str,), + "inputs": ([str],), + "keepalive": (int,), + "tls": (ObservabilityPipelineTls,), + "type": (ObservabilityPipelineSyslogNgDestinationType,), + } + + attribute_map = { + "id": "id", + "inputs": "inputs", + "keepalive": "keepalive", + "tls": "tls", + "type": "type", + } + + def __init__( + self_, + id: str, + inputs: List[str], + type: ObservabilityPipelineSyslogNgDestinationType, + keepalive: Union[int, UnsetType] = unset, + tls: Union[ObservabilityPipelineTls, UnsetType] = unset, + **kwargs, + ): + """ + The ``syslog_ng`` destination forwards logs to an external ``syslog-ng`` server over TCP or UDP using the syslog protocol. + + :param id: The unique identifier for this component. + :type id: str + + :param inputs: A list of component IDs whose output is used as the ``input`` for this component. + :type inputs: [str] + + :param keepalive: Optional socket keepalive duration in milliseconds. + :type keepalive: int, optional + + :param tls: Configuration for enabling TLS encryption. + :type tls: ObservabilityPipelineTls, optional + + :param type: The destination type. The value should always be ``syslog_ng``. + :type type: ObservabilityPipelineSyslogNgDestinationType + """ + if keepalive is not unset: + kwargs["keepalive"] = keepalive + if tls is not unset: + kwargs["tls"] = tls + super().__init__(kwargs) + + self_.id = id + self_.inputs = inputs + self_.type = type diff --git a/src/datadog_api_client/v2/model/observability_pipeline_syslog_ng_destination_type.py b/src/datadog_api_client/v2/model/observability_pipeline_syslog_ng_destination_type.py new file mode 100644 index 0000000000..4f17a09c03 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_syslog_ng_destination_type.py @@ -0,0 +1,35 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineSyslogNgDestinationType(ModelSimple): + """ + The destination type. The value should always be `syslog_ng`. + + :param value: If omitted defaults to "syslog_ng". Must be one of ["syslog_ng"]. + :type value: str + """ + + allowed_values = { + "syslog_ng", + } + SYSLOG_NG: ClassVar["ObservabilityPipelineSyslogNgDestinationType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineSyslogNgDestinationType.SYSLOG_NG = ObservabilityPipelineSyslogNgDestinationType("syslog_ng") diff --git a/src/datadog_api_client/v2/model/observability_pipeline_syslog_ng_source.py b/src/datadog_api_client/v2/model/observability_pipeline_syslog_ng_source.py new file mode 100644 index 0000000000..61bf12ab2d --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_syslog_ng_source.py @@ -0,0 +1,80 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.observability_pipeline_syslog_source_mode import ( + ObservabilityPipelineSyslogSourceMode, + ) + from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls + from datadog_api_client.v2.model.observability_pipeline_syslog_ng_source_type import ( + ObservabilityPipelineSyslogNgSourceType, + ) + + +class ObservabilityPipelineSyslogNgSource(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.observability_pipeline_syslog_source_mode import ( + ObservabilityPipelineSyslogSourceMode, + ) + from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls + from datadog_api_client.v2.model.observability_pipeline_syslog_ng_source_type import ( + ObservabilityPipelineSyslogNgSourceType, + ) + + return { + "id": (str,), + "mode": (ObservabilityPipelineSyslogSourceMode,), + "tls": (ObservabilityPipelineTls,), + "type": (ObservabilityPipelineSyslogNgSourceType,), + } + + attribute_map = { + "id": "id", + "mode": "mode", + "tls": "tls", + "type": "type", + } + + def __init__( + self_, + id: str, + mode: ObservabilityPipelineSyslogSourceMode, + type: ObservabilityPipelineSyslogNgSourceType, + tls: Union[ObservabilityPipelineTls, UnsetType] = unset, + **kwargs, + ): + """ + The ``syslog_ng`` source listens for logs over TCP or UDP from a ``syslog-ng`` server using the syslog protocol. + + :param id: The unique identifier for this component. Used to reference this component in other parts of the pipeline (e.g., as input to downstream components). + :type id: str + + :param mode: Protocol used by the syslog source to receive messages. + :type mode: ObservabilityPipelineSyslogSourceMode + + :param tls: Configuration for enabling TLS encryption. + :type tls: ObservabilityPipelineTls, optional + + :param type: The source type. The value should always be ``syslog_ng``. + :type type: ObservabilityPipelineSyslogNgSourceType + """ + if tls is not unset: + kwargs["tls"] = tls + super().__init__(kwargs) + + self_.id = id + self_.mode = mode + self_.type = type diff --git a/src/datadog_api_client/v2/model/observability_pipeline_syslog_ng_source_type.py b/src/datadog_api_client/v2/model/observability_pipeline_syslog_ng_source_type.py new file mode 100644 index 0000000000..3edc780615 --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_syslog_ng_source_type.py @@ -0,0 +1,35 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineSyslogNgSourceType(ModelSimple): + """ + The source type. The value should always be `syslog_ng`. + + :param value: If omitted defaults to "syslog_ng". Must be one of ["syslog_ng"]. + :type value: str + """ + + allowed_values = { + "syslog_ng", + } + SYSLOG_NG: ClassVar["ObservabilityPipelineSyslogNgSourceType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineSyslogNgSourceType.SYSLOG_NG = ObservabilityPipelineSyslogNgSourceType("syslog_ng") diff --git a/src/datadog_api_client/v2/model/observability_pipeline_syslog_source_mode.py b/src/datadog_api_client/v2/model/observability_pipeline_syslog_source_mode.py new file mode 100644 index 0000000000..1e4f2f846a --- /dev/null +++ b/src/datadog_api_client/v2/model/observability_pipeline_syslog_source_mode.py @@ -0,0 +1,38 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ObservabilityPipelineSyslogSourceMode(ModelSimple): + """ + Protocol used by the syslog source to receive messages. + + :param value: Must be one of ["tcp", "udp"]. + :type value: str + """ + + allowed_values = { + "tcp", + "udp", + } + TCP: ClassVar["ObservabilityPipelineSyslogSourceMode"] + UDP: ClassVar["ObservabilityPipelineSyslogSourceMode"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ObservabilityPipelineSyslogSourceMode.TCP = ObservabilityPipelineSyslogSourceMode("tcp") +ObservabilityPipelineSyslogSourceMode.UDP = ObservabilityPipelineSyslogSourceMode("udp") diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index 570b73af40..81ae5a58c3 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -305,6 +305,8 @@ from datadog_api_client.v2.model.aws_scan_options_update_attributes import AwsScanOptionsUpdateAttributes from datadog_api_client.v2.model.aws_scan_options_update_data import AwsScanOptionsUpdateData from datadog_api_client.v2.model.aws_scan_options_update_request import AwsScanOptionsUpdateRequest +from datadog_api_client.v2.model.azure_storage_destination import AzureStorageDestination +from datadog_api_client.v2.model.azure_storage_destination_type import AzureStorageDestinationType from datadog_api_client.v2.model.azure_uc_config import AzureUCConfig from datadog_api_client.v2.model.azure_uc_config_pair import AzureUCConfigPair from datadog_api_client.v2.model.azure_uc_config_pair_attributes import AzureUCConfigPairAttributes @@ -1661,6 +1663,8 @@ from datadog_api_client.v2.model.metrics_list_response_links import MetricsListResponseLinks from datadog_api_client.v2.model.metrics_scalar_query import MetricsScalarQuery from datadog_api_client.v2.model.metrics_timeseries_query import MetricsTimeseriesQuery +from datadog_api_client.v2.model.microsoft_sentinel_destination import MicrosoftSentinelDestination +from datadog_api_client.v2.model.microsoft_sentinel_destination_type import MicrosoftSentinelDestinationType from datadog_api_client.v2.model.microsoft_teams_channel_info_response_attributes import ( MicrosoftTeamsChannelInfoResponseAttributes, ) @@ -1847,6 +1851,15 @@ from datadog_api_client.v2.model.observability_pipeline_datadog_logs_destination_type import ( ObservabilityPipelineDatadogLogsDestinationType, ) +from datadog_api_client.v2.model.observability_pipeline_elasticsearch_destination import ( + ObservabilityPipelineElasticsearchDestination, +) +from datadog_api_client.v2.model.observability_pipeline_elasticsearch_destination_api_version import ( + ObservabilityPipelineElasticsearchDestinationApiVersion, +) +from datadog_api_client.v2.model.observability_pipeline_elasticsearch_destination_type import ( + ObservabilityPipelineElasticsearchDestinationType, +) from datadog_api_client.v2.model.observability_pipeline_field_value import ObservabilityPipelineFieldValue from datadog_api_client.v2.model.observability_pipeline_filter_processor import ObservabilityPipelineFilterProcessor from datadog_api_client.v2.model.observability_pipeline_filter_processor_type import ( @@ -1895,6 +1908,130 @@ from datadog_api_client.v2.model.observability_pipeline_rename_fields_processor_type import ( ObservabilityPipelineRenameFieldsProcessorType, ) +from datadog_api_client.v2.model.observability_pipeline_rsyslog_destination import ( + ObservabilityPipelineRsyslogDestination, +) +from datadog_api_client.v2.model.observability_pipeline_rsyslog_destination_type import ( + ObservabilityPipelineRsyslogDestinationType, +) +from datadog_api_client.v2.model.observability_pipeline_rsyslog_source import ObservabilityPipelineRsyslogSource +from datadog_api_client.v2.model.observability_pipeline_rsyslog_source_type import ( + ObservabilityPipelineRsyslogSourceType, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor import ( + ObservabilityPipelineSensitiveDataScannerProcessor, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action import ( + ObservabilityPipelineSensitiveDataScannerProcessorAction, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_hash import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionHash, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_hash_action import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_partial_redact import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedact, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_action import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactAction, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options_direction import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_redact import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionRedact, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_redact_action import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_action_redact_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_custom_pattern import ( + ObservabilityPipelineSensitiveDataScannerProcessorCustomPattern, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_custom_pattern_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_custom_pattern_type import ( + ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_keyword_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorKeywordOptions, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_library_pattern import ( + ObservabilityPipelineSensitiveDataScannerProcessorLibraryPattern, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_library_pattern_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_library_pattern_type import ( + ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternType, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_pattern import ( + ObservabilityPipelineSensitiveDataScannerProcessorPattern, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_rule import ( + ObservabilityPipelineSensitiveDataScannerProcessorRule, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope import ( + ObservabilityPipelineSensitiveDataScannerProcessorScope, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_all import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeAll, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_all_target import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeAllTarget, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_exclude import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeExclude, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_exclude_target import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeExcludeTarget, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_include import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeInclude, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_include_target import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_scope_options import ( + ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions, +) +from datadog_api_client.v2.model.observability_pipeline_sensitive_data_scanner_processor_type import ( + ObservabilityPipelineSensitiveDataScannerProcessorType, +) +from datadog_api_client.v2.model.observability_pipeline_sumo_logic_destination import ( + ObservabilityPipelineSumoLogicDestination, +) +from datadog_api_client.v2.model.observability_pipeline_sumo_logic_destination_encoding import ( + ObservabilityPipelineSumoLogicDestinationEncoding, +) +from datadog_api_client.v2.model.observability_pipeline_sumo_logic_destination_header_custom_fields_item import ( + ObservabilityPipelineSumoLogicDestinationHeaderCustomFieldsItem, +) +from datadog_api_client.v2.model.observability_pipeline_sumo_logic_destination_type import ( + ObservabilityPipelineSumoLogicDestinationType, +) +from datadog_api_client.v2.model.observability_pipeline_sumo_logic_source import ObservabilityPipelineSumoLogicSource +from datadog_api_client.v2.model.observability_pipeline_sumo_logic_source_type import ( + ObservabilityPipelineSumoLogicSourceType, +) +from datadog_api_client.v2.model.observability_pipeline_syslog_ng_destination import ( + ObservabilityPipelineSyslogNgDestination, +) +from datadog_api_client.v2.model.observability_pipeline_syslog_ng_destination_type import ( + ObservabilityPipelineSyslogNgDestinationType, +) +from datadog_api_client.v2.model.observability_pipeline_syslog_ng_source import ObservabilityPipelineSyslogNgSource +from datadog_api_client.v2.model.observability_pipeline_syslog_ng_source_type import ( + ObservabilityPipelineSyslogNgSourceType, +) +from datadog_api_client.v2.model.observability_pipeline_syslog_source_mode import ObservabilityPipelineSyslogSourceMode from datadog_api_client.v2.model.observability_pipeline_tls import ObservabilityPipelineTls from datadog_api_client.v2.model.okta_account import OktaAccount from datadog_api_client.v2.model.okta_account_attributes import OktaAccountAttributes @@ -3240,6 +3377,8 @@ "AwsScanOptionsUpdateAttributes", "AwsScanOptionsUpdateData", "AwsScanOptionsUpdateRequest", + "AzureStorageDestination", + "AzureStorageDestinationType", "AzureUCConfig", "AzureUCConfigPair", "AzureUCConfigPairAttributes", @@ -4318,6 +4457,8 @@ "MetricsListResponseLinks", "MetricsScalarQuery", "MetricsTimeseriesQuery", + "MicrosoftSentinelDestination", + "MicrosoftSentinelDestinationType", "MicrosoftTeamsChannelInfoResponseAttributes", "MicrosoftTeamsChannelInfoResponseData", "MicrosoftTeamsChannelInfoType", @@ -4414,6 +4555,9 @@ "ObservabilityPipelineDatadogAgentSourceType", "ObservabilityPipelineDatadogLogsDestination", "ObservabilityPipelineDatadogLogsDestinationType", + "ObservabilityPipelineElasticsearchDestination", + "ObservabilityPipelineElasticsearchDestinationApiVersion", + "ObservabilityPipelineElasticsearchDestinationType", "ObservabilityPipelineFieldValue", "ObservabilityPipelineFilterProcessor", "ObservabilityPipelineFilterProcessorType", @@ -4434,6 +4578,50 @@ "ObservabilityPipelineRenameFieldsProcessor", "ObservabilityPipelineRenameFieldsProcessorField", "ObservabilityPipelineRenameFieldsProcessorType", + "ObservabilityPipelineRsyslogDestination", + "ObservabilityPipelineRsyslogDestinationType", + "ObservabilityPipelineRsyslogSource", + "ObservabilityPipelineRsyslogSourceType", + "ObservabilityPipelineSensitiveDataScannerProcessor", + "ObservabilityPipelineSensitiveDataScannerProcessorAction", + "ObservabilityPipelineSensitiveDataScannerProcessorActionHash", + "ObservabilityPipelineSensitiveDataScannerProcessorActionHashAction", + "ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedact", + "ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactAction", + "ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptions", + "ObservabilityPipelineSensitiveDataScannerProcessorActionPartialRedactOptionsDirection", + "ObservabilityPipelineSensitiveDataScannerProcessorActionRedact", + "ObservabilityPipelineSensitiveDataScannerProcessorActionRedactAction", + "ObservabilityPipelineSensitiveDataScannerProcessorActionRedactOptions", + "ObservabilityPipelineSensitiveDataScannerProcessorCustomPattern", + "ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternOptions", + "ObservabilityPipelineSensitiveDataScannerProcessorCustomPatternType", + "ObservabilityPipelineSensitiveDataScannerProcessorKeywordOptions", + "ObservabilityPipelineSensitiveDataScannerProcessorLibraryPattern", + "ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternOptions", + "ObservabilityPipelineSensitiveDataScannerProcessorLibraryPatternType", + "ObservabilityPipelineSensitiveDataScannerProcessorPattern", + "ObservabilityPipelineSensitiveDataScannerProcessorRule", + "ObservabilityPipelineSensitiveDataScannerProcessorScope", + "ObservabilityPipelineSensitiveDataScannerProcessorScopeAll", + "ObservabilityPipelineSensitiveDataScannerProcessorScopeAllTarget", + "ObservabilityPipelineSensitiveDataScannerProcessorScopeExclude", + "ObservabilityPipelineSensitiveDataScannerProcessorScopeExcludeTarget", + "ObservabilityPipelineSensitiveDataScannerProcessorScopeInclude", + "ObservabilityPipelineSensitiveDataScannerProcessorScopeIncludeTarget", + "ObservabilityPipelineSensitiveDataScannerProcessorScopeOptions", + "ObservabilityPipelineSensitiveDataScannerProcessorType", + "ObservabilityPipelineSumoLogicDestination", + "ObservabilityPipelineSumoLogicDestinationEncoding", + "ObservabilityPipelineSumoLogicDestinationHeaderCustomFieldsItem", + "ObservabilityPipelineSumoLogicDestinationType", + "ObservabilityPipelineSumoLogicSource", + "ObservabilityPipelineSumoLogicSourceType", + "ObservabilityPipelineSyslogNgDestination", + "ObservabilityPipelineSyslogNgDestinationType", + "ObservabilityPipelineSyslogNgSource", + "ObservabilityPipelineSyslogNgSourceType", + "ObservabilityPipelineSyslogSourceMode", "ObservabilityPipelineTls", "OktaAccount", "OktaAccountAttributes", diff --git a/tests/v2/features/on-call.feature b/tests/v2/features/on-call.feature index e75f8b518d..5c295b7c54 100644 --- a/tests/v2/features/on-call.feature +++ b/tests/v2/features/on-call.feature @@ -33,7 +33,7 @@ Feature: On-Call When the request is sent Then the response status is 400 Bad Request - @team:DataDog/bugle + @skip-python @team:DataDog/bugle Scenario: Create on-call schedule returns "Created" response Given new "CreateOnCallSchedule" request And there is a valid "user" in the system @@ -159,7 +159,7 @@ Feature: On-Call When the request is sent Then the response status is 404 Not Found - @team:DataDog/bugle + @skip-python @team:DataDog/bugle Scenario: Update on-call schedule returns "OK" response Given new "UpdateOnCallSchedule" request And there is a valid "schedule" in the system