datadog_api_client 2.32.0 → 2.33.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/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +5 -4
- data/.generator/schemas/v2/openapi.yaml +5260 -517
- data/.github/workflows/publish.yml +6 -9
- data/.github/workflows/test.yml +1 -1
- data/CHANGELOG.md +20 -0
- data/Gemfile +0 -1
- data/LICENSE-3rdparty.csv +0 -1
- data/Rakefile +3 -0
- data/datadog_api_client.gemspec +0 -2
- data/examples/v2/cloud-cost-management/DeleteBudget.rb +5 -0
- data/examples/v2/cloud-cost-management/GetBudget.rb +5 -0
- data/examples/v2/cloud-cost-management/ListBudgets.rb +5 -0
- data/examples/v2/cloud-cost-management/UpsertBudget.rb +35 -0
- data/examples/v2/monitors/CreateMonitorNotificationRule.rb +26 -0
- data/examples/v2/monitors/DeleteMonitorNotificationRule.rb +11 -0
- data/examples/v2/monitors/GetMonitorNotificationRule.rb +11 -0
- data/examples/v2/monitors/GetMonitorNotificationRules.rb +8 -0
- data/examples/v2/monitors/UpdateMonitorNotificationRule.rb +30 -0
- data/examples/v2/network-device-monitoring/GetInterfaces.rb +4 -1
- data/examples/v2/observability-pipelines/CreatePipeline.rb +2 -2
- data/examples/v2/observability-pipelines/ListPipelines.rb +8 -0
- data/examples/v2/observability-pipelines/ValidatePipeline.rb +44 -0
- data/examples/v2/on-call/CreateOnCallEscalationPolicy.rb +66 -0
- data/examples/v2/on-call/CreateOnCallSchedule.rb +3 -3
- data/examples/v2/on-call/DeleteOnCallEscalationPolicy.rb +8 -0
- data/examples/v2/on-call/GetOnCallEscalationPolicy.rb +8 -0
- data/examples/v2/on-call/UpdateOnCallEscalationPolicy.rb +51 -0
- data/examples/v2/on-call/UpdateOnCallSchedule.rb +3 -3
- data/examples/v2/security-monitoring/CreateCustomFramework.rb +30 -0
- data/examples/v2/security-monitoring/DeleteCustomFramework.rb +5 -0
- data/examples/v2/security-monitoring/GetCustomFramework.rb +5 -0
- data/examples/v2/security-monitoring/UpdateCustomFramework.rb +30 -0
- data/lib/datadog_api_client/configuration.rb +20 -13
- data/lib/datadog_api_client/inflector.rb +241 -2
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +257 -0
- data/lib/datadog_api_client/v2/api/monitors_api.rb +363 -0
- data/lib/datadog_api_client/v2/api/network_device_monitoring_api.rb +2 -0
- data/lib/datadog_api_client/v2/api/observability_pipelines_api.rb +146 -1
- data/lib/datadog_api_client/v2/api/on_call_api.rb +275 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +5 -3
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +285 -1
- data/lib/datadog_api_client/v2/models/azure_storage_destination.rb +198 -0
- data/lib/datadog_api_client/v2/models/azure_storage_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/budget.rb +125 -0
- data/lib/datadog_api_client/v2/models/budget_array.rb +107 -0
- data/lib/datadog_api_client/v2/models/budget_attributes.rb +207 -0
- data/lib/datadog_api_client/v2/models/budget_entry.rb +127 -0
- data/lib/datadog_api_client/v2/models/budget_with_entries.rb +105 -0
- data/lib/datadog_api_client/v2/models/budget_with_entries_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/{observability_pipeline_create_request.rb → create_custom_framework_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/create_custom_framework_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/custom_framework_control.rb +146 -0
- data/lib/datadog_api_client/v2/models/custom_framework_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/custom_framework_data_attributes.rb +208 -0
- data/lib/datadog_api_client/v2/models/custom_framework_data_handle_and_version.rb +115 -0
- data/lib/datadog_api_client/v2/models/custom_framework_metadata.rb +125 -0
- data/lib/datadog_api_client/v2/models/custom_framework_requirement.rb +146 -0
- data/lib/datadog_api_client/v2/models/custom_framework_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_framework_without_requirements.rb +207 -0
- data/lib/datadog_api_client/v2/models/delete_custom_framework_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/escalation_policy.rb +117 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes.rb +176 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items.rb +145 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items_assignment.rb +27 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items_targets_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items_targets_items_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_relationships_teams.rb +107 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_relationships_teams_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_relationships_teams_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_attributes.rb +153 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships.rb +133 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships_steps.rb +107 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships_steps_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships_steps_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships_teams.rb +107 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships_teams_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships_teams_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_included.rb +66 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_step.rb +153 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_step_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_step_attributes_assignment.rb +27 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_step_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_step_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data.rb +175 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes.rb +176 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items.rb +155 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items_assignment.rb +27 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items_targets_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items_targets_items_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_relationships_teams.rb +107 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_relationships_teams_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_relationships_teams_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_target.rb +64 -0
- data/lib/datadog_api_client/v2/models/framework_handle_and_version_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/full_custom_framework_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/full_custom_framework_data_attributes.rb +230 -0
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/get_custom_framework_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/layer.rb +19 -1
- data/lib/datadog_api_client/v2/models/layer_relationships_members_data_items.rb +31 -2
- data/lib/datadog_api_client/v2/models/list_pipelines_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/list_pipelines_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/microsoft_sentinel_destination.rb +251 -0
- data/lib/datadog_api_client/v2/models/microsoft_sentinel_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_create_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_data.rb +135 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter.rb +62 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_tags.rb +108 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_list_response.rb +119 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_relationships_created_by.rb +113 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_relationships_created_by_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_attributes.rb +184 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_included_item.rb +62 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_update_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor_variable.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_data_firehose_source.rb +166 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_data_firehose_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination.rb +200 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination_auth.rb +164 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination_auth_strategy.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination.rb +262 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination_storage_class.rb +34 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_source.rb +188 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_aws_auth.rb +126 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +1 -12
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +15 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +14 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source.rb +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_decoding.rb +29 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +232 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor_mode.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination.rb +187 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination_api_version.rb +29 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_file.rb +190 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_file_encoding.rb +165 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_file_encoding_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_file_key_items.rb +165 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_file_key_items_comparison.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_file_schema_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_file_schema_items_type.rb +31 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_geo_ip.rb +165 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +229 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluent_bit_source.rb +154 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluent_bit_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluentd_source.rb +154 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluentd_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_gcp_auth.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +212 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_generated_metric.rb +199 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_generated_metric_increment_by_field.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_generated_metric_increment_by_field_strategy.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_generated_metric_increment_by_one.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_generated_metric_increment_by_one_strategy.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_generated_metric_metric_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +230 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination_encoding.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +286 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination_acl.rb +31 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination_storage_class.rb +29 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +239 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source.rb +205 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source_auth_strategy.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_server_source.rb +196 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_server_source_auth_strategy.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_server_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source.rb +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_logstash_source.rb +154 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_logstash_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metadata_entry.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_value.rb +63 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_new_relic_destination.rb +188 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_new_relic_destination_region.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_new_relic_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor_mapping.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor_mapping_mapping.rb +62 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapping_library.rb +36 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_open_search_destination.rb +177 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_open_search_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +221 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor_rule.rb +173 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor_rule_match_rule.rb +145 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor_rule_support_rule.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +16 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_overflow_action.rb +31 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +234 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor_merge_strategy.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor_merge_strategy_strategy.rb +37 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_destination.rb +198 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_source.rb +175 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +219 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action.rb +64 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_hash.rb +133 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_hash_action.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_action.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options_direction.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_redact.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_redact_action.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_redact_options.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_custom_pattern.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_options.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_keyword_options.rb +146 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_library_pattern.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_library_pattern_options.rb +133 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_library_pattern_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_pattern.rb +63 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_rule.rb +219 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope.rb +64 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_all.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_all_target.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_exclude.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_exclude_target.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_include.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_include_target.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_options.rb +125 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sentinel_one_destination.rb +188 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sentinel_one_destination_region.rb +29 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sentinel_one_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_spec.rb +123 -0
- data/lib/datadog_api_client/v2/models/{observability_pipeline_create_request_data.rb → observability_pipeline_spec_data.rb} +3 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination.rb +209 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination_encoding.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_source.rb +154 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_tcp_source.rb +155 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_tcp_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_destination.rb +219 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_destination_encoding.rb +28 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_destination_header_custom_fields_item.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_source.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_destination.rb +198 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_source.rb +175 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_source_mode.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +242 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_tls.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships_teams_data_items.rb +31 -2
- data/lib/datadog_api_client/v2/models/schedule_data.rb +19 -1
- data/lib/datadog_api_client/v2/models/schedule_data_relationships_layers_data_items.rb +31 -2
- data/lib/datadog_api_client/v2/models/schedule_data_relationships_teams_data_items.rb +31 -2
- data/lib/datadog_api_client/v2/models/schedule_member.rb +19 -1
- data/lib/datadog_api_client/v2/models/schedule_member_relationships_user.rb +19 -1
- data/lib/datadog_api_client/v2/models/schedule_member_relationships_user_data.rb +31 -2
- data/lib/datadog_api_client/v2/models/schedule_target.rb +144 -0
- data/lib/datadog_api_client/v2/models/schedule_target_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +68 -6
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships_teams_data_items.rb +31 -2
- data/lib/datadog_api_client/v2/models/schedule_user.rb +19 -1
- data/lib/datadog_api_client/v2/models/tag_filter.rb +115 -0
- data/lib/datadog_api_client/v2/models/team_reference.rb +19 -1
- data/lib/datadog_api_client/v2/models/team_reference_relationships_oncall_users_data_items.rb +31 -2
- data/lib/datadog_api_client/v2/models/team_target.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_target_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/update_custom_framework_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_custom_framework_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/user_target.rb +144 -0
- data/lib/datadog_api_client/v2/models/user_target_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/validation_error.rb +144 -0
- data/lib/datadog_api_client/v2/models/validation_error_meta.rb +143 -0
- data/lib/datadog_api_client/v2/models/validation_response.rb +107 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +262 -24
data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships_steps_data_items.rb
ADDED
@@ -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
|
+
# Defines a relationship to a single step within an escalation policy. Contains the step's `id` and `type`.
|
21
|
+
class EscalationPolicyDataRelationshipsStepsDataItems
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Specifies the unique identifier for the step resource.
|
25
|
+
attr_reader :id
|
26
|
+
|
27
|
+
# Indicates that the resource is of type `steps`.
|
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
|
+
:'id' => :'id',
|
37
|
+
:'type' => :'type'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'id' => :'String',
|
46
|
+
:'type' => :'EscalationPolicyDataRelationshipsStepsDataItemsType'
|
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::EscalationPolicyDataRelationshipsStepsDataItems` 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?(:'id')
|
69
|
+
self.id = attributes[:'id']
|
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 @id.nil?
|
82
|
+
return false if @type.nil?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Custom attribute writer method with validation
|
87
|
+
# @param id [Object] Object to be assigned
|
88
|
+
# @!visibility private
|
89
|
+
def id=(id)
|
90
|
+
if id.nil?
|
91
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
92
|
+
end
|
93
|
+
@id = id
|
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
|
+
id == o.id &&
|
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
|
+
[id, type, additional_properties].hash
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships_steps_data_items_type.rb
ADDED
@@ -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
|
+
# Indicates that the resource is of type `steps`.
|
21
|
+
class EscalationPolicyDataRelationshipsStepsDataItemsType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
STEPS = "steps".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,107 @@
|
|
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
|
+
# Defines the relationship to a collection of teams within an escalation policy. Contains an array of team data references.
|
21
|
+
class EscalationPolicyDataRelationshipsTeams
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# An array of references to the teams associated with this escalation policy.
|
25
|
+
attr_accessor :data
|
26
|
+
|
27
|
+
attr_accessor :additional_properties
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
# @!visibility private
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'data' => :'data'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
# @!visibility private
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'data' => :'Array<EscalationPolicyDataRelationshipsTeamsDataItems>'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
47
|
+
# @!visibility private
|
48
|
+
def initialize(attributes = {})
|
49
|
+
if (!attributes.is_a?(Hash))
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EscalationPolicyDataRelationshipsTeams` initialize method"
|
51
|
+
end
|
52
|
+
|
53
|
+
self.additional_properties = {}
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
+
self.additional_properties[k.to_sym] = v
|
58
|
+
else
|
59
|
+
h[k.to_sym] = v
|
60
|
+
end
|
61
|
+
}
|
62
|
+
|
63
|
+
if attributes.key?(:'data')
|
64
|
+
if (value = attributes[:'data']).is_a?(Array)
|
65
|
+
self.data = value
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
71
|
+
# @return [Hash] Returns the object in the form of hash
|
72
|
+
# @!visibility private
|
73
|
+
def to_hash
|
74
|
+
hash = {}
|
75
|
+
self.class.attribute_map.each_pair do |attr, param|
|
76
|
+
value = self.send(attr)
|
77
|
+
if value.nil?
|
78
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
79
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
80
|
+
end
|
81
|
+
|
82
|
+
hash[param] = _to_hash(value)
|
83
|
+
end
|
84
|
+
self.additional_properties.each_pair do |attr, value|
|
85
|
+
hash[attr] = value
|
86
|
+
end
|
87
|
+
hash
|
88
|
+
end
|
89
|
+
|
90
|
+
# Checks equality by comparing each attribute.
|
91
|
+
# @param o [Object] Object to be compared
|
92
|
+
# @!visibility private
|
93
|
+
def ==(o)
|
94
|
+
return true if self.equal?(o)
|
95
|
+
self.class == o.class &&
|
96
|
+
data == o.data &&
|
97
|
+
additional_properties == o.additional_properties
|
98
|
+
end
|
99
|
+
|
100
|
+
# Calculates hash code according to all attributes.
|
101
|
+
# @return [Integer] Hash code
|
102
|
+
# @!visibility private
|
103
|
+
def hash
|
104
|
+
[data, additional_properties].hash
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships_teams_data_items.rb
ADDED
@@ -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
|
+
# Defines a relationship to a single team within an escalation policy. Contains the team's `id` and `type`.
|
21
|
+
class EscalationPolicyDataRelationshipsTeamsDataItems
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Specifies the unique identifier for the team resource.
|
25
|
+
attr_reader :id
|
26
|
+
|
27
|
+
# Indicates that the resource is of type `teams`.
|
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
|
+
:'id' => :'id',
|
37
|
+
:'type' => :'type'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'id' => :'String',
|
46
|
+
:'type' => :'EscalationPolicyDataRelationshipsTeamsDataItemsType'
|
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::EscalationPolicyDataRelationshipsTeamsDataItems` 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?(:'id')
|
69
|
+
self.id = attributes[:'id']
|
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 @id.nil?
|
82
|
+
return false if @type.nil?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Custom attribute writer method with validation
|
87
|
+
# @param id [Object] Object to be assigned
|
88
|
+
# @!visibility private
|
89
|
+
def id=(id)
|
90
|
+
if id.nil?
|
91
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
92
|
+
end
|
93
|
+
@id = id
|
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
|
+
id == o.id &&
|
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
|
+
[id, type, additional_properties].hash
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships_teams_data_items_type.rb
ADDED
@@ -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
|
+
# Indicates that the resource is of type `teams`.
|
21
|
+
class EscalationPolicyDataRelationshipsTeamsDataItemsType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
TEAMS = "teams".freeze
|
25
|
+
end
|
26
|
+
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
|
+
# Indicates that the resource is of type `policies`.
|
21
|
+
class EscalationPolicyDataType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
POLICIES = "policies".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,66 @@
|
|
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
|
+
# Represents included related resources when retrieving an escalation policy, such as teams, steps, or targets.
|
21
|
+
module EscalationPolicyIncluded
|
22
|
+
class << self
|
23
|
+
include BaseOneOfModel
|
24
|
+
include BaseOneOfModelNoDiscriminator
|
25
|
+
|
26
|
+
# List of class defined in oneOf (OpenAPI v3)
|
27
|
+
def openapi_one_of
|
28
|
+
[
|
29
|
+
:'TeamReference',
|
30
|
+
:'EscalationPolicyStep',
|
31
|
+
:'UserTarget',
|
32
|
+
:'ScheduleTarget',
|
33
|
+
:'TeamTarget'
|
34
|
+
]
|
35
|
+
end
|
36
|
+
# Builds the object
|
37
|
+
# @param data [Mixed] Data to be matched against the list of oneOf items
|
38
|
+
# @return [Object] Returns the model or the data itself
|
39
|
+
def build(data)
|
40
|
+
# Go through the list of oneOf items and attempt to identify the appropriate one.
|
41
|
+
# Note:
|
42
|
+
# - We do not attempt to check whether exactly one item matches.
|
43
|
+
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
44
|
+
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
45
|
+
# - TODO: scalar values are de facto behaving as if they were nullable.
|
46
|
+
# - TODO: logging when debugging is set.
|
47
|
+
openapi_one_of.each do |klass|
|
48
|
+
begin
|
49
|
+
next if klass == :AnyType # "nullable: true"
|
50
|
+
typed_data = find_and_cast_into_type(klass, data)
|
51
|
+
next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
|
52
|
+
return typed_data if typed_data
|
53
|
+
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
if openapi_one_of.include?(:AnyType)
|
58
|
+
data
|
59
|
+
else
|
60
|
+
self._unparsed = true
|
61
|
+
DatadogAPIClient::UnparsedObject.new(data)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,153 @@
|
|
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
|
+
# Represents a single step in an escalation policy, including its attributes, relationships, and resource type.
|
21
|
+
class EscalationPolicyStep
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Defines attributes for an escalation policy step, such as assignment strategy and escalation timeout.
|
25
|
+
attr_accessor :attributes
|
26
|
+
|
27
|
+
# Specifies the unique identifier of this escalation policy step.
|
28
|
+
attr_accessor :id
|
29
|
+
|
30
|
+
# Represents the relationship of an escalation policy step to its targets.
|
31
|
+
attr_accessor :relationships
|
32
|
+
|
33
|
+
# Indicates that the resource is of type `steps`.
|
34
|
+
attr_reader :type
|
35
|
+
|
36
|
+
attr_accessor :additional_properties
|
37
|
+
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
39
|
+
# @!visibility private
|
40
|
+
def self.attribute_map
|
41
|
+
{
|
42
|
+
:'attributes' => :'attributes',
|
43
|
+
:'id' => :'id',
|
44
|
+
:'relationships' => :'relationships',
|
45
|
+
:'type' => :'type'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
# @!visibility private
|
51
|
+
def self.openapi_types
|
52
|
+
{
|
53
|
+
:'attributes' => :'EscalationPolicyStepAttributes',
|
54
|
+
:'id' => :'String',
|
55
|
+
:'relationships' => :'EscalationPolicyStepRelationships',
|
56
|
+
:'type' => :'EscalationPolicyStepType'
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
62
|
+
# @!visibility private
|
63
|
+
def initialize(attributes = {})
|
64
|
+
if (!attributes.is_a?(Hash))
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EscalationPolicyStep` initialize method"
|
66
|
+
end
|
67
|
+
|
68
|
+
self.additional_properties = {}
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
self.additional_properties[k.to_sym] = v
|
73
|
+
else
|
74
|
+
h[k.to_sym] = v
|
75
|
+
end
|
76
|
+
}
|
77
|
+
|
78
|
+
if attributes.key?(:'attributes')
|
79
|
+
self.attributes = attributes[:'attributes']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'id')
|
83
|
+
self.id = attributes[:'id']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'relationships')
|
87
|
+
self.relationships = attributes[:'relationships']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'type')
|
91
|
+
self.type = attributes[:'type']
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# Check to see if the all the properties in the model are valid
|
96
|
+
# @return true if the model is valid
|
97
|
+
# @!visibility private
|
98
|
+
def valid?
|
99
|
+
return false if @type.nil?
|
100
|
+
true
|
101
|
+
end
|
102
|
+
|
103
|
+
# Custom attribute writer method with validation
|
104
|
+
# @param type [Object] Object to be assigned
|
105
|
+
# @!visibility private
|
106
|
+
def type=(type)
|
107
|
+
if type.nil?
|
108
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
109
|
+
end
|
110
|
+
@type = type
|
111
|
+
end
|
112
|
+
|
113
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
114
|
+
# @return [Hash] Returns the object in the form of hash
|
115
|
+
# @!visibility private
|
116
|
+
def to_hash
|
117
|
+
hash = {}
|
118
|
+
self.class.attribute_map.each_pair do |attr, param|
|
119
|
+
value = self.send(attr)
|
120
|
+
if value.nil?
|
121
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
122
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
123
|
+
end
|
124
|
+
|
125
|
+
hash[param] = _to_hash(value)
|
126
|
+
end
|
127
|
+
self.additional_properties.each_pair do |attr, value|
|
128
|
+
hash[attr] = value
|
129
|
+
end
|
130
|
+
hash
|
131
|
+
end
|
132
|
+
|
133
|
+
# Checks equality by comparing each attribute.
|
134
|
+
# @param o [Object] Object to be compared
|
135
|
+
# @!visibility private
|
136
|
+
def ==(o)
|
137
|
+
return true if self.equal?(o)
|
138
|
+
self.class == o.class &&
|
139
|
+
attributes == o.attributes &&
|
140
|
+
id == o.id &&
|
141
|
+
relationships == o.relationships &&
|
142
|
+
type == o.type &&
|
143
|
+
additional_properties == o.additional_properties
|
144
|
+
end
|
145
|
+
|
146
|
+
# Calculates hash code according to all attributes.
|
147
|
+
# @return [Integer] Hash code
|
148
|
+
# @!visibility private
|
149
|
+
def hash
|
150
|
+
[attributes, id, relationships, type, additional_properties].hash
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|