datadog_api_client 2.39.0 → 2.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.generated-info +2 -2
- data/.generator/schemas/v1/openapi.yaml +208 -30
- data/.generator/schemas/v2/openapi.yaml +2921 -243
- data/.generator/src/generator/cli.py +1 -0
- data/.generator/src/generator/openapi.py +12 -0
- data/.generator/src/generator/templates/api.j2 +1 -1
- data/CHANGELOG.md +26 -0
- data/Gemfile +1 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_3336967838.rb +24 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb +1 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +1 -0
- data/examples/v1/synthetics/SearchTests_195957771.rb +1 -0
- data/examples/v2/aws-integration/CreateAWSAccount.rb +10 -0
- data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +10 -0
- data/examples/v2/aws-integration/UpdateAWSAccount.rb +10 -0
- data/examples/v2/case-management/UpdateAttributes.rb +26 -0
- data/examples/v2/cloud-network-monitoring/GetAggregatedConnections.rb +0 -3
- data/examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.rb +0 -3
- data/examples/v2/cloud-network-monitoring/GetAggregatedDns.rb +5 -0
- data/examples/v2/datasets/CreateDataset.rb +7 -6
- data/examples/v2/datasets/DeleteDataset.rb +7 -1
- data/examples/v2/datasets/GetAllDatasets.rb +3 -0
- data/examples/v2/datasets/GetDataset.rb +7 -1
- data/examples/v2/datasets/UpdateDataset.rb +31 -0
- data/examples/v2/events/GetEvent.rb +5 -0
- data/examples/v2/metrics/GetMetricTagCardinalityDetails.rb +5 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1965169892.rb +6 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_868881438.rb +41 -0
- data/lib/datadog_api_client/configuration.rb +9 -1
- data/lib/datadog_api_client/inflector.rb +225 -2
- data/lib/datadog_api_client/v1/api/logs_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/logs_indexes_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/security_monitoring_api.rb +8 -2
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +3 -1
- data/lib/datadog_api_client/v1/models/logs_decoder_processor.rb +229 -0
- data/lib/datadog_api_client/v1/models/logs_decoder_processor_binary_to_text_encoding.rb +27 -0
- data/lib/datadog_api_client/v1/models/logs_decoder_processor_input_representation.rb +27 -0
- data/lib/datadog_api_client/v1/models/logs_decoder_processor_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/logs_processor.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +13 -3
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_billable_summary_body.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +41 -1
- data/lib/datadog_api_client/v2/api/case_management_api.rb +72 -0
- data/lib/datadog_api_client/v2/api/cloud_network_monitoring_api.rb +80 -10
- data/lib/datadog_api_client/v2/api/datasets_api.rb +102 -0
- data/lib/datadog_api_client/v2/api/events_api.rb +65 -2
- data/lib/datadog_api_client/v2/api/metrics_api.rb +65 -0
- data/lib/datadog_api_client/v2/api/monitors_api.rb +8 -8
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +9 -5
- data/lib/datadog_api_client/v2/api/rum_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +17 -14
- data/lib/datadog_api_client/v2/models/action_connection_integration.rb +23 -1
- data/lib/datadog_api_client/v2/models/action_connection_integration_update.rb +23 -1
- data/lib/datadog_api_client/v2/models/alert_event_attributes.rb +187 -0
- data/lib/datadog_api_client/v2/models/alert_event_attributes_links_item.rb +125 -0
- data/lib/datadog_api_client/v2/models/alert_event_attributes_links_item_category.rb +28 -0
- data/lib/datadog_api_client/v2/models/alert_event_attributes_priority.rb +30 -0
- data/lib/datadog_api_client/v2/models/alert_event_attributes_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/anthropic_api_key.rb +144 -0
- data/lib/datadog_api_client/v2/models/anthropic_api_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/anthropic_api_key_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/anthropic_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/anthropic_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/anthropic_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/anthropic_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/anthropic_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/asana_access_token.rb +144 -0
- data/lib/datadog_api_client/v2/models/asana_access_token_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/asana_access_token_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/asana_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/asana_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/asana_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/asana_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/asana_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/aws_lambda_forwarder_config.rb +11 -1
- data/lib/datadog_api_client/v2/models/aws_lambda_forwarder_config_log_source_config.rb +107 -0
- data/lib/datadog_api_client/v2/models/aws_log_source_tag_filter.rb +128 -0
- data/lib/datadog_api_client/v2/models/azure_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/azure_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/azure_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/azure_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/azure_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/azure_tenant.rb +196 -0
- data/lib/datadog_api_client/v2/models/azure_tenant_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/azure_tenant_update.rb +163 -0
- data/lib/datadog_api_client/v2/models/case.rb +1 -1
- data/lib/datadog_api_client/v2/models/case_attributes.rb +12 -2
- data/lib/datadog_api_client/v2/models/{dataset.rb → case_update_attributes.rb} +8 -18
- data/lib/datadog_api_client/v2/models/case_update_attributes_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_update_attributes_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/change_event_attributes.rb +207 -0
- data/lib/datadog_api_client/v2/models/change_event_attributes_author.rb +115 -0
- data/lib/datadog_api_client/v2/models/change_event_attributes_author_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/change_event_attributes_changed_resource.rb +115 -0
- data/lib/datadog_api_client/v2/models/change_event_attributes_changed_resource_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/change_event_attributes_impacted_resources_item.rb +115 -0
- data/lib/datadog_api_client/v2/models/change_event_attributes_impacted_resources_item_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/circle_ci_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/circle_ci_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/circle_ci_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/circle_ci_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/circle_ci_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/circle_ciapi_key.rb +144 -0
- data/lib/datadog_api_client/v2/models/circle_ciapi_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/circle_ciapi_key_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/clickup_api_key.rb +144 -0
- data/lib/datadog_api_client/v2/models/clickup_api_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/clickup_api_key_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/clickup_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/clickup_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/clickup_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/clickup_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/clickup_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/cloudflare_api_token.rb +144 -0
- data/lib/datadog_api_client/v2/models/cloudflare_api_token_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/cloudflare_api_token_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/cloudflare_credentials.rb +63 -0
- data/lib/datadog_api_client/v2/models/cloudflare_credentials_update.rb +63 -0
- data/lib/datadog_api_client/v2/models/cloudflare_global_api_token.rb +165 -0
- data/lib/datadog_api_client/v2/models/cloudflare_global_api_token_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/cloudflare_global_api_token_update.rb +143 -0
- data/lib/datadog_api_client/v2/models/cloudflare_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/cloudflare_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/cloudflare_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/config_cat_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/config_cat_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/config_cat_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/config_cat_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/config_cat_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/config_cat_sdk_key.rb +186 -0
- data/lib/datadog_api_client/v2/models/config_cat_sdk_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/config_cat_sdk_key_update.rb +153 -0
- data/lib/datadog_api_client/v2/models/datadog_api_key.rb +196 -0
- data/lib/datadog_api_client/v2/models/datadog_api_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/datadog_api_key_update.rb +163 -0
- data/lib/datadog_api_client/v2/models/datadog_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/datadog_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/datadog_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/datadog_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/datadog_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/{dataset_attributes.rb → dataset_attributes_request.rb} +4 -32
- data/lib/datadog_api_client/v2/models/dataset_attributes_response.rb +157 -0
- data/lib/datadog_api_client/v2/models/dataset_create_request.rb +12 -2
- data/lib/datadog_api_client/v2/models/dataset_request.rb +154 -0
- data/lib/datadog_api_client/v2/models/dataset_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/dataset_response_multi.rb +2 -20
- data/lib/datadog_api_client/v2/models/dataset_response_single.rb +13 -21
- data/lib/datadog_api_client/v2/models/dataset_update_request.rb +133 -0
- data/lib/datadog_api_client/v2/models/dns_metric_key.rb +35 -0
- data/lib/datadog_api_client/v2/models/entity_v3_api.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_v3_api_version.rb +4 -1
- data/lib/datadog_api_client/v2/models/entity_v3_datastore.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_v3_queue.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_v3_service.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_v3_system.rb +1 -1
- data/lib/datadog_api_client/v2/models/event_system_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/event_system_attributes_category.rb +27 -0
- data/lib/datadog_api_client/v2/models/event_system_attributes_integration_id.rb +26 -0
- data/lib/datadog_api_client/v2/models/events_data_source.rb +1 -0
- data/lib/datadog_api_client/v2/models/fastly_api_key.rb +144 -0
- data/lib/datadog_api_client/v2/models/fastly_api_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/fastly_api_key_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/fastly_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/fastly_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/fastly_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/fastly_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/fastly_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/filters_per_product.rb +2 -2
- data/lib/datadog_api_client/v2/models/freshservice_api_key.rb +165 -0
- data/lib/datadog_api_client/v2/models/freshservice_api_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/freshservice_api_key_update.rb +143 -0
- data/lib/datadog_api_client/v2/models/freshservice_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/freshservice_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/freshservice_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/freshservice_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/freshservice_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/gcp_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/gcp_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/gcp_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/gcp_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/gcp_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/gcp_service_account.rb +165 -0
- data/lib/datadog_api_client/v2/models/gcp_service_account_credential_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/gcp_service_account_update.rb +143 -0
- data/lib/datadog_api_client/v2/models/gemini_api_key.rb +144 -0
- data/lib/datadog_api_client/v2/models/gemini_api_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/gemini_api_key_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/gemini_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/gemini_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/gemini_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/gemini_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/gemini_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/gitlab_api_key.rb +144 -0
- data/lib/datadog_api_client/v2/models/gitlab_api_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/gitlab_api_key_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/gitlab_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/gitlab_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/gitlab_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/gitlab_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/gitlab_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/grey_noise_api_key.rb +144 -0
- data/lib/datadog_api_client/v2/models/grey_noise_api_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/grey_noise_api_key_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/grey_noise_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/grey_noise_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/grey_noise_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/grey_noise_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/grey_noise_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/launch_darkly_api_key.rb +144 -0
- data/lib/datadog_api_client/v2/models/launch_darkly_api_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/launch_darkly_api_key_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/launch_darkly_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/launch_darkly_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/launch_darkly_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/launch_darkly_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/launch_darkly_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/metric_asset_attributes.rb +14 -2
- data/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/metric_monitor_asset.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_notebook_asset.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_slo_asset.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_tag_cardinalities_meta.rb +107 -0
- data/lib/datadog_api_client/v2/models/metric_tag_cardinalities_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/metric_tag_cardinality.rb +125 -0
- data/lib/datadog_api_client/v2/models/metric_tag_cardinality_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/notion_api_key.rb +144 -0
- data/lib/datadog_api_client/v2/models/notion_api_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notion_api_key_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/notion_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/notion_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/notion_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/notion_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notion_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor_rule.rb +1 -12
- data/lib/datadog_api_client/v2/models/okta_api_token.rb +165 -0
- data/lib/datadog_api_client/v2/models/okta_api_token_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/okta_api_token_update.rb +143 -0
- data/lib/datadog_api_client/v2/models/okta_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/okta_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/okta_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/okta_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/okta_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/open_ai_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/open_ai_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/open_ai_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/open_ai_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/open_ai_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/open_aiapi_key.rb +144 -0
- data/lib/datadog_api_client/v2/models/open_aiapi_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/open_aiapi_key_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/rule_types_items.rb +3 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_action_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_action_options_flagged_ip_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_action_type.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +31 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_scheduling_options.rb +125 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +31 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +31 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +12 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +31 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb +31 -1
- data/lib/datadog_api_client/v2/models/service_now_basic_auth.rb +186 -0
- data/lib/datadog_api_client/v2/models/service_now_basic_auth_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_now_basic_auth_update.rb +153 -0
- data/lib/datadog_api_client/v2/models/service_now_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/service_now_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/service_now_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/service_now_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_now_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/single_aggregated_dns_response_array.rb +107 -0
- data/lib/datadog_api_client/v2/models/single_aggregated_dns_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/single_aggregated_dns_response_data_attributes.rb +119 -0
- data/lib/datadog_api_client/v2/models/single_aggregated_dns_response_data_attributes_group_by_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/single_aggregated_dns_response_data_attributes_metrics_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/single_aggregated_dns_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/split_api_key.rb +144 -0
- data/lib/datadog_api_client/v2/models/split_api_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/split_api_key_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/split_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/split_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/split_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/split_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/split_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/statsig_api_key.rb +144 -0
- data/lib/datadog_api_client/v2/models/statsig_api_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/statsig_api_key_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/statsig_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/statsig_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/statsig_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/statsig_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/statsig_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/v2_event.rb +125 -0
- data/lib/datadog_api_client/v2/models/v2_event_attributes.rb +137 -0
- data/lib/datadog_api_client/v2/models/v2_event_attributes_attributes.rb +63 -0
- data/lib/datadog_api_client/v2/models/v2_event_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/virus_total_api_key.rb +144 -0
- data/lib/datadog_api_client/v2/models/virus_total_api_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/virus_total_api_key_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/virus_total_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/virus_total_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/virus_total_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/virus_total_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/virus_total_integration_update.rb +133 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +233 -3
@@ -0,0 +1,144 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The definition of the `OpenAIIntegration` object.
|
21
|
+
class OpenAIIntegration
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The definition of the `OpenAICredentials` object.
|
25
|
+
attr_reader :credentials
|
26
|
+
|
27
|
+
# The definition of the `OpenAIIntegrationType` object.
|
28
|
+
attr_reader :type
|
29
|
+
|
30
|
+
attr_accessor :additional_properties
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
# @!visibility private
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'credentials' => :'credentials',
|
37
|
+
:'type' => :'type'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'credentials' => :'OpenAICredentials',
|
46
|
+
:'type' => :'OpenAIIntegrationType'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
52
|
+
# @!visibility private
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpenAIIntegration` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
self.additional_properties = {}
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
self.additional_properties[k.to_sym] = v
|
63
|
+
else
|
64
|
+
h[k.to_sym] = v
|
65
|
+
end
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'credentials')
|
69
|
+
self.credentials = attributes[:'credentials']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'type')
|
73
|
+
self.type = attributes[:'type']
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Check to see if the all the properties in the model are valid
|
78
|
+
# @return true if the model is valid
|
79
|
+
# @!visibility private
|
80
|
+
def valid?
|
81
|
+
return false if @credentials.nil?
|
82
|
+
return false if @type.nil?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Custom attribute writer method with validation
|
87
|
+
# @param credentials [Object] Object to be assigned
|
88
|
+
# @!visibility private
|
89
|
+
def credentials=(credentials)
|
90
|
+
if credentials.nil?
|
91
|
+
fail ArgumentError, 'invalid value for "credentials", credentials cannot be nil.'
|
92
|
+
end
|
93
|
+
@credentials = credentials
|
94
|
+
end
|
95
|
+
|
96
|
+
# Custom attribute writer method with validation
|
97
|
+
# @param type [Object] Object to be assigned
|
98
|
+
# @!visibility private
|
99
|
+
def type=(type)
|
100
|
+
if type.nil?
|
101
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
102
|
+
end
|
103
|
+
@type = type
|
104
|
+
end
|
105
|
+
|
106
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
107
|
+
# @return [Hash] Returns the object in the form of hash
|
108
|
+
# @!visibility private
|
109
|
+
def to_hash
|
110
|
+
hash = {}
|
111
|
+
self.class.attribute_map.each_pair do |attr, param|
|
112
|
+
value = self.send(attr)
|
113
|
+
if value.nil?
|
114
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
115
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
116
|
+
end
|
117
|
+
|
118
|
+
hash[param] = _to_hash(value)
|
119
|
+
end
|
120
|
+
self.additional_properties.each_pair do |attr, value|
|
121
|
+
hash[attr] = value
|
122
|
+
end
|
123
|
+
hash
|
124
|
+
end
|
125
|
+
|
126
|
+
# Checks equality by comparing each attribute.
|
127
|
+
# @param o [Object] Object to be compared
|
128
|
+
# @!visibility private
|
129
|
+
def ==(o)
|
130
|
+
return true if self.equal?(o)
|
131
|
+
self.class == o.class &&
|
132
|
+
credentials == o.credentials &&
|
133
|
+
type == o.type &&
|
134
|
+
additional_properties == o.additional_properties
|
135
|
+
end
|
136
|
+
|
137
|
+
# Calculates hash code according to all attributes.
|
138
|
+
# @return [Integer] Hash code
|
139
|
+
# @!visibility private
|
140
|
+
def hash
|
141
|
+
[credentials, type, additional_properties].hash
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The definition of the `OpenAIIntegrationType` object.
|
21
|
+
class OpenAIIntegrationType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
OPENAI = "OpenAI".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,133 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The definition of the `OpenAIIntegrationUpdate` object.
|
21
|
+
class OpenAIIntegrationUpdate
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The definition of the `OpenAICredentialsUpdate` object.
|
25
|
+
attr_accessor :credentials
|
26
|
+
|
27
|
+
# The definition of the `OpenAIIntegrationType` object.
|
28
|
+
attr_reader :type
|
29
|
+
|
30
|
+
attr_accessor :additional_properties
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
# @!visibility private
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'credentials' => :'credentials',
|
37
|
+
:'type' => :'type'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'credentials' => :'OpenAICredentialsUpdate',
|
46
|
+
:'type' => :'OpenAIIntegrationType'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
52
|
+
# @!visibility private
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpenAIIntegrationUpdate` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
self.additional_properties = {}
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
self.additional_properties[k.to_sym] = v
|
63
|
+
else
|
64
|
+
h[k.to_sym] = v
|
65
|
+
end
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'credentials')
|
69
|
+
self.credentials = attributes[:'credentials']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'type')
|
73
|
+
self.type = attributes[:'type']
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Check to see if the all the properties in the model are valid
|
78
|
+
# @return true if the model is valid
|
79
|
+
# @!visibility private
|
80
|
+
def valid?
|
81
|
+
return false if @type.nil?
|
82
|
+
true
|
83
|
+
end
|
84
|
+
|
85
|
+
# Custom attribute writer method with validation
|
86
|
+
# @param type [Object] Object to be assigned
|
87
|
+
# @!visibility private
|
88
|
+
def type=(type)
|
89
|
+
if type.nil?
|
90
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
91
|
+
end
|
92
|
+
@type = type
|
93
|
+
end
|
94
|
+
|
95
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
96
|
+
# @return [Hash] Returns the object in the form of hash
|
97
|
+
# @!visibility private
|
98
|
+
def to_hash
|
99
|
+
hash = {}
|
100
|
+
self.class.attribute_map.each_pair do |attr, param|
|
101
|
+
value = self.send(attr)
|
102
|
+
if value.nil?
|
103
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
104
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
105
|
+
end
|
106
|
+
|
107
|
+
hash[param] = _to_hash(value)
|
108
|
+
end
|
109
|
+
self.additional_properties.each_pair do |attr, value|
|
110
|
+
hash[attr] = value
|
111
|
+
end
|
112
|
+
hash
|
113
|
+
end
|
114
|
+
|
115
|
+
# Checks equality by comparing each attribute.
|
116
|
+
# @param o [Object] Object to be compared
|
117
|
+
# @!visibility private
|
118
|
+
def ==(o)
|
119
|
+
return true if self.equal?(o)
|
120
|
+
self.class == o.class &&
|
121
|
+
credentials == o.credentials &&
|
122
|
+
type == o.type &&
|
123
|
+
additional_properties == o.additional_properties
|
124
|
+
end
|
125
|
+
|
126
|
+
# Calculates hash code according to all attributes.
|
127
|
+
# @return [Integer] Hash code
|
128
|
+
# @!visibility private
|
129
|
+
def hash
|
130
|
+
[credentials, type, additional_properties].hash
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
@@ -0,0 +1,144 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The definition of the `OpenAIAPIKey` object.
|
21
|
+
class OpenAIAPIKey
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The `OpenAIAPIKey` `api_token`.
|
25
|
+
attr_reader :api_token
|
26
|
+
|
27
|
+
# The definition of the `OpenAIAPIKey` object.
|
28
|
+
attr_reader :type
|
29
|
+
|
30
|
+
attr_accessor :additional_properties
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
# @!visibility private
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'api_token' => :'api_token',
|
37
|
+
:'type' => :'type'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'api_token' => :'String',
|
46
|
+
:'type' => :'OpenAIAPIKeyType'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
52
|
+
# @!visibility private
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpenAIAPIKey` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
self.additional_properties = {}
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
self.additional_properties[k.to_sym] = v
|
63
|
+
else
|
64
|
+
h[k.to_sym] = v
|
65
|
+
end
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'api_token')
|
69
|
+
self.api_token = attributes[:'api_token']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'type')
|
73
|
+
self.type = attributes[:'type']
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Check to see if the all the properties in the model are valid
|
78
|
+
# @return true if the model is valid
|
79
|
+
# @!visibility private
|
80
|
+
def valid?
|
81
|
+
return false if @api_token.nil?
|
82
|
+
return false if @type.nil?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Custom attribute writer method with validation
|
87
|
+
# @param api_token [Object] Object to be assigned
|
88
|
+
# @!visibility private
|
89
|
+
def api_token=(api_token)
|
90
|
+
if api_token.nil?
|
91
|
+
fail ArgumentError, 'invalid value for "api_token", api_token cannot be nil.'
|
92
|
+
end
|
93
|
+
@api_token = api_token
|
94
|
+
end
|
95
|
+
|
96
|
+
# Custom attribute writer method with validation
|
97
|
+
# @param type [Object] Object to be assigned
|
98
|
+
# @!visibility private
|
99
|
+
def type=(type)
|
100
|
+
if type.nil?
|
101
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
102
|
+
end
|
103
|
+
@type = type
|
104
|
+
end
|
105
|
+
|
106
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
107
|
+
# @return [Hash] Returns the object in the form of hash
|
108
|
+
# @!visibility private
|
109
|
+
def to_hash
|
110
|
+
hash = {}
|
111
|
+
self.class.attribute_map.each_pair do |attr, param|
|
112
|
+
value = self.send(attr)
|
113
|
+
if value.nil?
|
114
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
115
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
116
|
+
end
|
117
|
+
|
118
|
+
hash[param] = _to_hash(value)
|
119
|
+
end
|
120
|
+
self.additional_properties.each_pair do |attr, value|
|
121
|
+
hash[attr] = value
|
122
|
+
end
|
123
|
+
hash
|
124
|
+
end
|
125
|
+
|
126
|
+
# Checks equality by comparing each attribute.
|
127
|
+
# @param o [Object] Object to be compared
|
128
|
+
# @!visibility private
|
129
|
+
def ==(o)
|
130
|
+
return true if self.equal?(o)
|
131
|
+
self.class == o.class &&
|
132
|
+
api_token == o.api_token &&
|
133
|
+
type == o.type &&
|
134
|
+
additional_properties == o.additional_properties
|
135
|
+
end
|
136
|
+
|
137
|
+
# Calculates hash code according to all attributes.
|
138
|
+
# @return [Integer] Hash code
|
139
|
+
# @!visibility private
|
140
|
+
def hash
|
141
|
+
[api_token, type, additional_properties].hash
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The definition of the `OpenAIAPIKey` object.
|
21
|
+
class OpenAIAPIKeyType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
OPENAIAPIKEY = "OpenAIAPIKey".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,133 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The definition of the `OpenAIAPIKey` object.
|
21
|
+
class OpenAIAPIKeyUpdate
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The `OpenAIAPIKeyUpdate` `api_token`.
|
25
|
+
attr_accessor :api_token
|
26
|
+
|
27
|
+
# The definition of the `OpenAIAPIKey` object.
|
28
|
+
attr_reader :type
|
29
|
+
|
30
|
+
attr_accessor :additional_properties
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
# @!visibility private
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'api_token' => :'api_token',
|
37
|
+
:'type' => :'type'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'api_token' => :'String',
|
46
|
+
:'type' => :'OpenAIAPIKeyType'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
52
|
+
# @!visibility private
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpenAIAPIKeyUpdate` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
self.additional_properties = {}
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
self.additional_properties[k.to_sym] = v
|
63
|
+
else
|
64
|
+
h[k.to_sym] = v
|
65
|
+
end
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'api_token')
|
69
|
+
self.api_token = attributes[:'api_token']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'type')
|
73
|
+
self.type = attributes[:'type']
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Check to see if the all the properties in the model are valid
|
78
|
+
# @return true if the model is valid
|
79
|
+
# @!visibility private
|
80
|
+
def valid?
|
81
|
+
return false if @type.nil?
|
82
|
+
true
|
83
|
+
end
|
84
|
+
|
85
|
+
# Custom attribute writer method with validation
|
86
|
+
# @param type [Object] Object to be assigned
|
87
|
+
# @!visibility private
|
88
|
+
def type=(type)
|
89
|
+
if type.nil?
|
90
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
91
|
+
end
|
92
|
+
@type = type
|
93
|
+
end
|
94
|
+
|
95
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
96
|
+
# @return [Hash] Returns the object in the form of hash
|
97
|
+
# @!visibility private
|
98
|
+
def to_hash
|
99
|
+
hash = {}
|
100
|
+
self.class.attribute_map.each_pair do |attr, param|
|
101
|
+
value = self.send(attr)
|
102
|
+
if value.nil?
|
103
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
104
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
105
|
+
end
|
106
|
+
|
107
|
+
hash[param] = _to_hash(value)
|
108
|
+
end
|
109
|
+
self.additional_properties.each_pair do |attr, value|
|
110
|
+
hash[attr] = value
|
111
|
+
end
|
112
|
+
hash
|
113
|
+
end
|
114
|
+
|
115
|
+
# Checks equality by comparing each attribute.
|
116
|
+
# @param o [Object] Object to be compared
|
117
|
+
# @!visibility private
|
118
|
+
def ==(o)
|
119
|
+
return true if self.equal?(o)
|
120
|
+
self.class == o.class &&
|
121
|
+
api_token == o.api_token &&
|
122
|
+
type == o.type &&
|
123
|
+
additional_properties == o.additional_properties
|
124
|
+
end
|
125
|
+
|
126
|
+
# Calculates hash code according to all attributes.
|
127
|
+
# @return [Integer] Hash code
|
128
|
+
# @!visibility private
|
129
|
+
def hash
|
130
|
+
[api_token, type, additional_properties].hash
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
|
|
21
21
|
# Signal-based notification rules can filter signals based on rule types application_security, log_detection,
|
22
22
|
# workload_security, signal_correlation, cloud_configuration and infrastructure_configuration.
|
23
23
|
# Vulnerability-based notification rules can filter vulnerabilities based on rule types application_code_vulnerability,
|
24
|
-
# application_library_vulnerability, attack_path, container_image_vulnerability, identity_risk, misconfiguration, and
|
24
|
+
# application_library_vulnerability, attack_path, container_image_vulnerability, identity_risk, misconfiguration, api_security, host_vulnerability and iac_misconfiguration.
|
25
25
|
class RuleTypesItems
|
26
26
|
include BaseEnumModel
|
27
27
|
|
@@ -38,5 +38,7 @@ module DatadogAPIClient::V2
|
|
38
38
|
IDENTITY_RISK = "identity_risk".freeze
|
39
39
|
MISCONFIGURATION = "misconfiguration".freeze
|
40
40
|
API_SECURITY = "api_security".freeze
|
41
|
+
HOST_VULNERABILITY = "host_vulnerability".freeze
|
42
|
+
IAC_MISCONFIGURATION = "iac_misconfiguration".freeze
|
41
43
|
end
|
42
44
|
end
|
@@ -24,6 +24,9 @@ module DatadogAPIClient::V2
|
|
24
24
|
# Duration of the action in seconds. 0 indicates no expiration.
|
25
25
|
attr_reader :duration
|
26
26
|
|
27
|
+
# Used with the case action of type 'flag_ip'. The value specified in this field is applied as a flag to the IP addresses.
|
28
|
+
attr_accessor :flagged_ip_type
|
29
|
+
|
27
30
|
# Used with the case action of type 'user_behavior'. The value specified in this field is applied as a risk tag to all users affected by the rule.
|
28
31
|
attr_accessor :user_behavior_name
|
29
32
|
|
@@ -34,6 +37,7 @@ module DatadogAPIClient::V2
|
|
34
37
|
def self.attribute_map
|
35
38
|
{
|
36
39
|
:'duration' => :'duration',
|
40
|
+
:'flagged_ip_type' => :'flaggedIPType',
|
37
41
|
:'user_behavior_name' => :'userBehaviorName'
|
38
42
|
}
|
39
43
|
end
|
@@ -43,6 +47,7 @@ module DatadogAPIClient::V2
|
|
43
47
|
def self.openapi_types
|
44
48
|
{
|
45
49
|
:'duration' => :'Integer',
|
50
|
+
:'flagged_ip_type' => :'SecurityMonitoringRuleCaseActionOptionsFlaggedIPType',
|
46
51
|
:'user_behavior_name' => :'String'
|
47
52
|
}
|
48
53
|
end
|
@@ -69,6 +74,10 @@ module DatadogAPIClient::V2
|
|
69
74
|
self.duration = attributes[:'duration']
|
70
75
|
end
|
71
76
|
|
77
|
+
if attributes.key?(:'flagged_ip_type')
|
78
|
+
self.flagged_ip_type = attributes[:'flagged_ip_type']
|
79
|
+
end
|
80
|
+
|
72
81
|
if attributes.key?(:'user_behavior_name')
|
73
82
|
self.user_behavior_name = attributes[:'user_behavior_name']
|
74
83
|
end
|
@@ -119,6 +128,7 @@ module DatadogAPIClient::V2
|
|
119
128
|
return true if self.equal?(o)
|
120
129
|
self.class == o.class &&
|
121
130
|
duration == o.duration &&
|
131
|
+
flagged_ip_type == o.flagged_ip_type &&
|
122
132
|
user_behavior_name == o.user_behavior_name &&
|
123
133
|
additional_properties == o.additional_properties
|
124
134
|
end
|
@@ -127,7 +137,7 @@ module DatadogAPIClient::V2
|
|
127
137
|
# @return [Integer] Hash code
|
128
138
|
# @!visibility private
|
129
139
|
def hash
|
130
|
-
[duration, user_behavior_name, additional_properties].hash
|
140
|
+
[duration, flagged_ip_type, user_behavior_name, additional_properties].hash
|
131
141
|
end
|
132
142
|
end
|
133
143
|
end
|