datadog_api_client 2.44.0 → 2.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.generator/schemas/v1/openapi.yaml +564 -36
- data/.generator/schemas/v2/openapi.yaml +3946 -412
- data/CHANGELOG.md +25 -0
- data/examples/v2/aws-integration/CreateAWSEventBridgeSource.rb +17 -0
- data/examples/v2/aws-integration/DeleteAWSEventBridgeSource.rb +16 -0
- data/examples/v2/aws-integration/ListAWSEventBridgeSources.rb +5 -0
- data/examples/v2/fleet-automation/CreateFleetDeploymentConfigure.rb +1 -1
- data/examples/v2/fleet-automation/CreateFleetDeploymentUpgrade.rb +23 -0
- data/examples/v2/fleet-automation/CreateFleetSchedule.rb +30 -0
- data/examples/v2/fleet-automation/DeleteFleetSchedule.rb +8 -0
- data/examples/v2/fleet-automation/GetFleetDeployment.rb +2 -5
- data/examples/v2/fleet-automation/GetFleetDeployment_1482493803.rb +11 -0
- data/examples/v2/fleet-automation/GetFleetSchedule.rb +8 -0
- data/examples/v2/fleet-automation/ListFleetAgentVersions.rb +8 -0
- data/examples/v2/fleet-automation/ListFleetSchedules.rb +8 -0
- data/examples/v2/fleet-automation/TriggerFleetSchedule.rb +8 -0
- data/examples/v2/fleet-automation/UpdateFleetSchedule.rb +30 -0
- data/examples/v2/reference-tables/UpdateReferenceTable.rb +0 -1
- data/examples/v2/rum-audience-management/CreateConnection.rb +36 -0
- data/examples/v2/rum-audience-management/DeleteConnection.rb +8 -0
- data/examples/v2/rum-audience-management/GetAccountFacetInfo.rb +25 -0
- data/examples/v2/rum-audience-management/GetMapping.rb +8 -0
- data/examples/v2/rum-audience-management/GetUserFacetInfo.rb +25 -0
- data/examples/v2/rum-audience-management/ListConnections.rb +8 -0
- data/examples/v2/rum-audience-management/QueryAccounts.rb +34 -0
- data/examples/v2/rum-audience-management/QueryEventFilteredUsers.rb +37 -0
- data/examples/v2/rum-audience-management/QueryUsers.rb +34 -0
- data/examples/v2/rum-audience-management/UpdateConnection.rb +43 -0
- data/examples/v2/security-monitoring/CancelThreatHuntingJob.rb +8 -0
- data/examples/v2/security-monitoring/CancelThreatHuntingJob_1945505845.rb +12 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +4 -0
- data/examples/v2/security-monitoring/{DeleteHistoricalJob.rb → DeleteThreatHuntingJob.rb} +2 -2
- data/examples/v2/security-monitoring/GetSecretsRules.rb +8 -0
- data/examples/v2/security-monitoring/GetThreatHuntingJob.rb +12 -0
- data/examples/v2/security-monitoring/ListMultipleRulesets.rb +17 -0
- data/examples/v2/security-monitoring/ListThreatHuntingJobs.rb +8 -0
- data/examples/v2/security-monitoring/ListThreatHuntingJobs_1365512061.rb +15 -0
- data/examples/v2/security-monitoring/{RunHistoricalJob.rb → RunThreatHuntingJob.rb} +9 -9
- data/examples/v2/software-catalog/PreviewCatalogEntities.rb +5 -0
- data/examples/v2/team-connections/CreateTeamConnections.rb +37 -0
- data/examples/v2/team-connections/DeleteTeamConnections.rb +17 -0
- data/examples/v2/team-connections/ListTeamConnections.rb +8 -0
- data/examples/v2/team-connections/ListTeamConnections_1473516764.rb +14 -0
- data/examples/v2/team-connections/ListTeamConnections_2418873869.rb +8 -0
- data/lib/datadog_api_client/configuration.rb +28 -5
- data/lib/datadog_api_client/inflector.rb +172 -12
- data/lib/datadog_api_client/v1/api/aws_integration_api.rb +18 -9
- data/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/key_management_api.rb +5 -0
- data/lib/datadog_api_client/v1/api/metrics_api.rb +5 -0
- data/lib/datadog_api_client/v1/models/aws_account.rb +5 -3
- data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +304 -4
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +304 -4
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +301 -1
- data/lib/datadog_api_client/v2/api/aws_integration_api.rb +194 -0
- data/lib/datadog_api_client/v2/api/error_tracking_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/events_api.rb +2 -0
- data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +683 -8
- data/lib/datadog_api_client/v2/api/incidents_api.rb +3 -0
- data/lib/datadog_api_client/v2/api/key_management_api.rb +4 -2
- data/lib/datadog_api_client/v2/api/reference_tables_api.rb +20 -16
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +5 -3
- data/lib/datadog_api_client/v2/api/rum_audience_management_api.rb +765 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +344 -205
- data/lib/datadog_api_client/v2/api/software_catalog_api.rb +57 -0
- data/lib/datadog_api_client/v2/api/team_connections_api.rb +272 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
- data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +2 -1
- data/lib/datadog_api_client/v2/models/aws_account_partition.rb +2 -1
- data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +2 -1
- data/lib/datadog_api_client/v2/models/aws_account_response_data.rb +2 -1
- data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +2 -1
- data/lib/datadog_api_client/v2/models/aws_account_update_request_data.rb +2 -1
- data/lib/datadog_api_client/v2/models/aws_event_bridge_account_configuration.rb +130 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_create_request_attributes.rb +178 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_create_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_create_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_create_response_attributes.rb +136 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_create_response_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_create_status.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_request_attributes.rb +166 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_response_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_response_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_delete_status.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_list_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_list_response_attributes.rb +117 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_list_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_source.rb +116 -0
- data/lib/datadog_api_client/v2/models/aws_event_bridge_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_lambda_forwarder_config.rb +7 -4
- data/lib/datadog_api_client/v2/models/aws_log_source_tag_filter.rb +7 -3
- data/lib/datadog_api_client/v2/models/aws_logs_config.rb +3 -2
- data/lib/datadog_api_client/v2/models/aws_namespace_filters_exclude_only.rb +8 -4
- data/lib/datadog_api_client/v2/models/aws_namespace_tag_filter.rb +6 -4
- data/lib/datadog_api_client/v2/models/aws_resources_config.rb +5 -2
- data/lib/datadog_api_client/v2/models/connected_team_ref.rb +105 -0
- data/lib/datadog_api_client/v2/models/connected_team_ref_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/connected_team_ref_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/connections_page_pagination.rb +184 -0
- data/lib/datadog_api_client/v2/models/connections_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/convert_job_results_to_signals_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/convert_job_results_to_signals_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/convert_job_results_to_signals_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/{historical_job_response.rb → create_connection_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/create_connection_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/create_connection_request_data_attributes.rb +187 -0
- data/lib/datadog_api_client/v2/models/create_connection_request_data_attributes_fields_items.rb +197 -0
- data/lib/datadog_api_client/v2/models/create_table_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_table_request_data.rb +6 -41
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes.rb +6 -6
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata.rb +1 -1
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_cloud_storage.rb +1 -1
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details.rb +4 -4
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +3 -3
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +5 -5
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +4 -4
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema_fields_items.rb +1 -1
- data/lib/datadog_api_client/v2/models/create_upload_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_upload_request_data.rb +6 -41
- data/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb +5 -5
- data/lib/datadog_api_client/v2/models/create_upload_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_upload_response_data.rb +7 -32
- data/lib/datadog_api_client/v2/models/create_upload_response_data_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_response_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_attributes.rb +187 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships.rb +145 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_incidents.rb +107 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_incidents_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_incidents_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_oncalls.rb +107 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_oncalls_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_oncalls_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_raw_schema.rb +123 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_raw_schema_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_raw_schema_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_related_entities.rb +107 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_related_entities_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_related_entities_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_schema.rb +123 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_schema_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_relationships_schema_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/facet_info_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/facet_info_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/facet_info_request_data_attributes.rb +164 -0
- data/lib/datadog_api_client/v2/models/facet_info_request_data_attributes_search.rb +105 -0
- data/lib/datadog_api_client/v2/models/facet_info_request_data_attributes_term_search.rb +105 -0
- data/lib/datadog_api_client/v2/models/facet_info_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/facet_info_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/facet_info_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/facet_info_response_data_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/facet_info_response_data_attributes_result.rb +117 -0
- data/lib/datadog_api_client/v2/models/facet_info_response_data_attributes_result_range.rb +115 -0
- data/lib/datadog_api_client/v2/models/facet_info_response_data_attributes_result_values_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/facet_info_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_version.rb +154 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_version_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_version_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_versions_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_attributes.rb +29 -2
- data/lib/datadog_api_client/v2/models/fleet_deployment_configure_create.rb +1 -1
- data/lib/datadog_api_client/v2/models/fleet_deployment_configure_create_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/fleet_deployment_host.rb +137 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_host_package.rb +136 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_hosts_page.rb +135 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_operation.rb +2 -2
- data/lib/datadog_api_client/v2/models/fleet_deployment_package.rb +144 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_package_upgrade_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_package_upgrade_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_package_upgrade_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_deployment_response.rb +13 -3
- data/lib/datadog_api_client/v2/models/fleet_deployment_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_attributes.rb +214 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_create_attributes.rb +207 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_patch.rb +133 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_patch_attributes.rb +174 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_recurrence_rule.rb +191 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/fleet_schedule_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/fleet_schedules_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/gcp_metric_namespace_config.rb +13 -1
- data/lib/datadog_api_client/v2/models/get_mapping_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/get_mapping_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/get_mapping_response_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/get_mapping_response_data_attributes_attributes_items.rb +157 -0
- data/lib/datadog_api_client/v2/models/get_mapping_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_request_data_attributes.rb +127 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items.rb +165 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items.rb +367 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_arguments_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_attributes_rulesets_items_rules_items_tests_items.rb +147 -0
- data/lib/datadog_api_client/v2/models/get_multiple_rulesets_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/job_create_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/job_create_response_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/job_definition.rb +3 -3
- data/lib/datadog_api_client/v2/models/job_definition_from_rule.rb +1 -1
- data/lib/datadog_api_client/v2/models/{run_historical_job_request.rb → list_connections_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/list_connections_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/list_connections_response_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/list_connections_response_data_attributes_connections_items.rb +187 -0
- data/lib/datadog_api_client/v2/models/list_connections_response_data_attributes_connections_items_join.rb +115 -0
- data/lib/datadog_api_client/v2/models/list_connections_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{list_historical_jobs_response.rb → list_threat_hunting_jobs_response.rb} +6 -6
- data/lib/datadog_api_client/v2/models/patch_table_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/patch_table_request_data.rb +6 -41
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes.rb +5 -5
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata.rb +1 -1
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_cloud_storage.rb +1 -1
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details.rb +4 -4
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +3 -3
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +5 -5
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +4 -4
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb +3 -3
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema_fields_items.rb +1 -1
- data/lib/datadog_api_client/v2/models/preview_entity_response_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/query_account_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/query_account_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/query_account_request_data_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/query_account_request_data_attributes_sort.rb +115 -0
- data/lib/datadog_api_client/v2/models/query_account_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/query_event_filtered_users_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data_attributes_event_query.rb +115 -0
- data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data_attributes_event_query_time_frame.rb +115 -0
- data/lib/datadog_api_client/v2/models/query_event_filtered_users_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/query_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/query_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/query_response_data_attributes.rb +117 -0
- data/lib/datadog_api_client/v2/models/query_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/query_users_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/query_users_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/query_users_request_data_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/query_users_request_data_attributes_sort.rb +115 -0
- data/lib/datadog_api_client/v2/models/query_users_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/run_threat_hunting_job_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/{run_historical_job_request_attributes.rb → run_threat_hunting_job_request_attributes.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{run_historical_job_request_data.rb → run_threat_hunting_job_request_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/{run_historical_job_request_data_type.rb → run_threat_hunting_job_request_data_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/secret_rule_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/secret_rule_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/secret_rule_data_attributes.rb +189 -0
- data/lib/datadog_api_client/v2/models/secret_rule_data_attributes_match_validation.rb +203 -0
- data/lib/datadog_api_client/v2/models/secret_rule_data_attributes_match_validation_invalid_http_status_code_items.rb +152 -0
- data/lib/datadog_api_client/v2/models/secret_rule_data_attributes_match_validation_valid_http_status_code_items.rb +152 -0
- data/lib/datadog_api_client/v2/models/secret_rule_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_archive_reason.rb +2 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +15 -3
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/table_result_v2.rb +2 -2
- data/lib/datadog_api_client/v2/models/table_result_v2_array.rb +1 -1
- data/lib/datadog_api_client/v2/models/table_result_v2_data.rb +7 -32
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes.rb +8 -8
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata.rb +1 -1
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage.rb +19 -26
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_local_file.rb +7 -42
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details.rb +4 -4
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_aws_detail.rb +3 -3
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_azure_detail.rb +5 -5
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_one_of_access_details_gcp_detail.rb +4 -4
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb +2 -2
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema_fields_items.rb +1 -1
- data/lib/datadog_api_client/v2/models/table_row_resource_array.rb +1 -1
- data/lib/datadog_api_client/v2/models/table_row_resource_data.rb +7 -32
- data/lib/datadog_api_client/v2/models/table_row_resource_data_attributes.rb +7 -32
- data/lib/datadog_api_client/v2/models/team_connection.rb +164 -0
- data/lib/datadog_api_client/v2/models/team_connection_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/team_connection_create_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/team_connection_create_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/team_connection_delete_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/team_connection_delete_request_data_item.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_connection_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/team_connection_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_connections_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/team_ref.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_ref_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_ref_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{historical_job_data_type.rb → threat_hunting_job_data_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/{historical_job_list_meta.rb → threat_hunting_job_list_meta.rb} +2 -2
- data/lib/datadog_api_client/v2/models/{historical_job_options.rb → threat_hunting_job_options.rb} +2 -2
- data/lib/datadog_api_client/v2/models/{historical_job_query.rb → threat_hunting_job_query.rb} +3 -3
- data/lib/datadog_api_client/v2/models/threat_hunting_job_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/{historical_job_response_attributes.rb → threat_hunting_job_response_attributes.rb} +4 -4
- data/lib/datadog_api_client/v2/models/{historical_job_response_data.rb → threat_hunting_job_response_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/update_connection_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_connection_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/update_connection_request_data_attributes.rb +131 -0
- data/lib/datadog_api_client/v2/models/update_connection_request_data_attributes_fields_to_update_items.rb +165 -0
- data/lib/datadog_api_client/v2/models/update_connection_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/user_attributes.rb +12 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +210 -18
- data/examples/v2/security-monitoring/CancelHistoricalJob.rb +0 -12
- data/examples/v2/security-monitoring/GetHistoricalJob.rb +0 -12
- data/examples/v2/security-monitoring/ListHistoricalJobs.rb +0 -15
data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage.rb
CHANGED
|
@@ -21,8 +21,8 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class TableResultV2DataAttributesFileMetadataCloudStorage
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
25
|
-
|
|
24
|
+
# Cloud storage access configuration for the reference table data file.
|
|
25
|
+
attr_reader :access_details
|
|
26
26
|
|
|
27
27
|
# The error message returned from the sync.
|
|
28
28
|
attr_accessor :error_message
|
|
@@ -36,8 +36,6 @@ module DatadogAPIClient::V2
|
|
|
36
36
|
# Whether this table is synced automatically.
|
|
37
37
|
attr_accessor :sync_enabled
|
|
38
38
|
|
|
39
|
-
attr_accessor :additional_properties
|
|
40
|
-
|
|
41
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
40
|
# @!visibility private
|
|
43
41
|
def self.attribute_map
|
|
@@ -70,14 +68,12 @@ module DatadogAPIClient::V2
|
|
|
70
68
|
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TableResultV2DataAttributesFileMetadataCloudStorage` initialize method"
|
|
71
69
|
end
|
|
72
70
|
|
|
73
|
-
self.additional_properties = {}
|
|
74
71
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
75
72
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
73
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
77
|
-
|
|
78
|
-
else
|
|
79
|
-
h[k.to_sym] = v
|
|
74
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TableResultV2DataAttributesFileMetadataCloudStorage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
80
75
|
end
|
|
76
|
+
h[k.to_sym] = v
|
|
81
77
|
}
|
|
82
78
|
|
|
83
79
|
if attributes.key?(:'access_details')
|
|
@@ -101,24 +97,22 @@ module DatadogAPIClient::V2
|
|
|
101
97
|
end
|
|
102
98
|
end
|
|
103
99
|
|
|
104
|
-
#
|
|
105
|
-
# @return
|
|
100
|
+
# Check to see if the all the properties in the model are valid
|
|
101
|
+
# @return true if the model is valid
|
|
106
102
|
# @!visibility private
|
|
107
|
-
def
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
if value.nil?
|
|
112
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
113
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
114
|
-
end
|
|
103
|
+
def valid?
|
|
104
|
+
return false if @access_details.nil?
|
|
105
|
+
true
|
|
106
|
+
end
|
|
115
107
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
108
|
+
# Custom attribute writer method with validation
|
|
109
|
+
# @param access_details [Object] Object to be assigned
|
|
110
|
+
# @!visibility private
|
|
111
|
+
def access_details=(access_details)
|
|
112
|
+
if access_details.nil?
|
|
113
|
+
fail ArgumentError, 'invalid value for "access_details", access_details cannot be nil.'
|
|
120
114
|
end
|
|
121
|
-
|
|
115
|
+
@access_details = access_details
|
|
122
116
|
end
|
|
123
117
|
|
|
124
118
|
# Checks equality by comparing each attribute.
|
|
@@ -131,15 +125,14 @@ module DatadogAPIClient::V2
|
|
|
131
125
|
error_message == o.error_message &&
|
|
132
126
|
error_row_count == o.error_row_count &&
|
|
133
127
|
error_type == o.error_type &&
|
|
134
|
-
sync_enabled == o.sync_enabled
|
|
135
|
-
additional_properties == o.additional_properties
|
|
128
|
+
sync_enabled == o.sync_enabled
|
|
136
129
|
end
|
|
137
130
|
|
|
138
131
|
# Calculates hash code according to all attributes.
|
|
139
132
|
# @return [Integer] Hash code
|
|
140
133
|
# @!visibility private
|
|
141
134
|
def hash
|
|
142
|
-
[access_details, error_message, error_row_count, error_type, sync_enabled
|
|
135
|
+
[access_details, error_message, error_row_count, error_type, sync_enabled].hash
|
|
143
136
|
end
|
|
144
137
|
end
|
|
145
138
|
end
|
data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_local_file.rb
CHANGED
|
@@ -17,7 +17,7 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
# File metadata for reference tables created by upload.
|
|
20
|
+
# File metadata for reference tables created by upload. Note that upload_id is only returned in the immediate create/replace response and is not available in subsequent GET requests.
|
|
21
21
|
class TableResultV2DataAttributesFileMetadataLocalFile
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
@@ -27,18 +27,12 @@ module DatadogAPIClient::V2
|
|
|
27
27
|
# The number of rows that failed to create/update.
|
|
28
28
|
attr_accessor :error_row_count
|
|
29
29
|
|
|
30
|
-
# The upload ID that was used to create/update the table.
|
|
31
|
-
attr_accessor :upload_id
|
|
32
|
-
|
|
33
|
-
attr_accessor :additional_properties
|
|
34
|
-
|
|
35
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
31
|
# @!visibility private
|
|
37
32
|
def self.attribute_map
|
|
38
33
|
{
|
|
39
34
|
:'error_message' => :'error_message',
|
|
40
|
-
:'error_row_count' => :'error_row_count'
|
|
41
|
-
:'upload_id' => :'upload_id'
|
|
35
|
+
:'error_row_count' => :'error_row_count'
|
|
42
36
|
}
|
|
43
37
|
end
|
|
44
38
|
|
|
@@ -47,8 +41,7 @@ module DatadogAPIClient::V2
|
|
|
47
41
|
def self.openapi_types
|
|
48
42
|
{
|
|
49
43
|
:'error_message' => :'String',
|
|
50
|
-
:'error_row_count' => :'Integer'
|
|
51
|
-
:'upload_id' => :'String'
|
|
44
|
+
:'error_row_count' => :'Integer'
|
|
52
45
|
}
|
|
53
46
|
end
|
|
54
47
|
|
|
@@ -60,14 +53,12 @@ module DatadogAPIClient::V2
|
|
|
60
53
|
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TableResultV2DataAttributesFileMetadataLocalFile` initialize method"
|
|
61
54
|
end
|
|
62
55
|
|
|
63
|
-
self.additional_properties = {}
|
|
64
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
-
|
|
68
|
-
else
|
|
69
|
-
h[k.to_sym] = v
|
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TableResultV2DataAttributesFileMetadataLocalFile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
70
60
|
end
|
|
61
|
+
h[k.to_sym] = v
|
|
71
62
|
}
|
|
72
63
|
|
|
73
64
|
if attributes.key?(:'error_message')
|
|
@@ -77,30 +68,6 @@ module DatadogAPIClient::V2
|
|
|
77
68
|
if attributes.key?(:'error_row_count')
|
|
78
69
|
self.error_row_count = attributes[:'error_row_count']
|
|
79
70
|
end
|
|
80
|
-
|
|
81
|
-
if attributes.key?(:'upload_id')
|
|
82
|
-
self.upload_id = attributes[:'upload_id']
|
|
83
|
-
end
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
# Returns the object in the form of hash, with additionalProperties support.
|
|
87
|
-
# @return [Hash] Returns the object in the form of hash
|
|
88
|
-
# @!visibility private
|
|
89
|
-
def to_hash
|
|
90
|
-
hash = {}
|
|
91
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
92
|
-
value = self.send(attr)
|
|
93
|
-
if value.nil?
|
|
94
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
95
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
hash[param] = _to_hash(value)
|
|
99
|
-
end
|
|
100
|
-
self.additional_properties.each_pair do |attr, value|
|
|
101
|
-
hash[attr] = value
|
|
102
|
-
end
|
|
103
|
-
hash
|
|
104
71
|
end
|
|
105
72
|
|
|
106
73
|
# Checks equality by comparing each attribute.
|
|
@@ -110,16 +77,14 @@ module DatadogAPIClient::V2
|
|
|
110
77
|
return true if self.equal?(o)
|
|
111
78
|
self.class == o.class &&
|
|
112
79
|
error_message == o.error_message &&
|
|
113
|
-
error_row_count == o.error_row_count
|
|
114
|
-
upload_id == o.upload_id &&
|
|
115
|
-
additional_properties == o.additional_properties
|
|
80
|
+
error_row_count == o.error_row_count
|
|
116
81
|
end
|
|
117
82
|
|
|
118
83
|
# Calculates hash code according to all attributes.
|
|
119
84
|
# @return [Integer] Hash code
|
|
120
85
|
# @!visibility private
|
|
121
86
|
def hash
|
|
122
|
-
[error_message, error_row_count
|
|
87
|
+
[error_message, error_row_count].hash
|
|
123
88
|
end
|
|
124
89
|
end
|
|
125
90
|
end
|
|
@@ -17,17 +17,17 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
#
|
|
20
|
+
# Cloud storage access configuration for the reference table data file.
|
|
21
21
|
class TableResultV2DataAttributesFileMetadataOneOfAccessDetails
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# Amazon Web Services S3 storage access configuration.
|
|
25
25
|
attr_accessor :aws_detail
|
|
26
26
|
|
|
27
|
-
#
|
|
27
|
+
# Azure Blob Storage access configuration.
|
|
28
28
|
attr_accessor :azure_detail
|
|
29
29
|
|
|
30
|
-
#
|
|
30
|
+
# Google Cloud Platform storage access configuration.
|
|
31
31
|
attr_accessor :gcp_detail
|
|
32
32
|
|
|
33
33
|
attr_accessor :additional_properties
|
|
@@ -17,14 +17,14 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
#
|
|
20
|
+
# Amazon Web Services S3 storage access configuration.
|
|
21
21
|
class TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAwsDetail
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# AWS account ID where the S3 bucket is located.
|
|
25
25
|
attr_accessor :aws_account_id
|
|
26
26
|
|
|
27
|
-
#
|
|
27
|
+
# S3 bucket containing the CSV file.
|
|
28
28
|
attr_accessor :aws_bucket_name
|
|
29
29
|
|
|
30
30
|
# The relative file path from the S3 bucket root to the CSV file.
|
|
@@ -17,20 +17,20 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
#
|
|
20
|
+
# Azure Blob Storage access configuration.
|
|
21
21
|
class TableResultV2DataAttributesFileMetadataOneOfAccessDetailsAzureDetail
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# Azure service principal (application) client ID with permissions to read from the container.
|
|
25
25
|
attr_accessor :azure_client_id
|
|
26
26
|
|
|
27
|
-
#
|
|
27
|
+
# Azure Blob Storage container containing the CSV file.
|
|
28
28
|
attr_accessor :azure_container_name
|
|
29
29
|
|
|
30
|
-
#
|
|
30
|
+
# Azure storage account where the container is located.
|
|
31
31
|
attr_accessor :azure_storage_account_name
|
|
32
32
|
|
|
33
|
-
#
|
|
33
|
+
# Azure Active Directory tenant ID.
|
|
34
34
|
attr_accessor :azure_tenant_id
|
|
35
35
|
|
|
36
36
|
# The relative file path from the Azure container root to the CSV file.
|
|
@@ -17,20 +17,20 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
#
|
|
20
|
+
# Google Cloud Platform storage access configuration.
|
|
21
21
|
class TableResultV2DataAttributesFileMetadataOneOfAccessDetailsGcpDetail
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
24
|
# The relative file path from the GCS bucket root to the CSV file.
|
|
25
25
|
attr_accessor :file_path
|
|
26
26
|
|
|
27
|
-
#
|
|
27
|
+
# GCP bucket containing the CSV file.
|
|
28
28
|
attr_accessor :gcp_bucket_name
|
|
29
29
|
|
|
30
|
-
#
|
|
30
|
+
# GCP project ID where the bucket is located.
|
|
31
31
|
attr_accessor :gcp_project_id
|
|
32
32
|
|
|
33
|
-
#
|
|
33
|
+
# Service account email with read permissions for the GCS bucket.
|
|
34
34
|
attr_accessor :gcp_service_account_email
|
|
35
35
|
|
|
36
36
|
attr_accessor :additional_properties
|
|
@@ -17,11 +17,11 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
#
|
|
20
|
+
# Schema defining the structure and columns of the reference table.
|
|
21
21
|
class TableResultV2DataAttributesSchema
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
# The
|
|
24
|
+
# The schema fields.
|
|
25
25
|
attr_reader :fields
|
|
26
26
|
|
|
27
27
|
# List of field names that serve as primary keys for the table. Only one primary key is supported, and it is used as an ID to retrieve rows.
|
data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema_fields_items.rb
CHANGED
|
@@ -17,7 +17,7 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
#
|
|
20
|
+
# A single field (column) in the reference table schema to be returned.
|
|
21
21
|
class TableResultV2DataAttributesSchemaFieldsItems
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
@@ -17,21 +17,19 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
# The
|
|
20
|
+
# The data object containing the row column names and values.
|
|
21
21
|
class TableRowResourceData
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# Column values for this row in the reference table.
|
|
25
25
|
attr_accessor :attributes
|
|
26
26
|
|
|
27
|
-
#
|
|
27
|
+
# Row identifier, corresponding to the primary key value.
|
|
28
28
|
attr_accessor :id
|
|
29
29
|
|
|
30
30
|
# Row resource type.
|
|
31
31
|
attr_reader :type
|
|
32
32
|
|
|
33
|
-
attr_accessor :additional_properties
|
|
34
|
-
|
|
35
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
34
|
# @!visibility private
|
|
37
35
|
def self.attribute_map
|
|
@@ -60,14 +58,12 @@ module DatadogAPIClient::V2
|
|
|
60
58
|
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TableRowResourceData` initialize method"
|
|
61
59
|
end
|
|
62
60
|
|
|
63
|
-
self.additional_properties = {}
|
|
64
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
62
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
63
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
-
|
|
68
|
-
else
|
|
69
|
-
h[k.to_sym] = v
|
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TableRowResourceData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
70
65
|
end
|
|
66
|
+
h[k.to_sym] = v
|
|
71
67
|
}
|
|
72
68
|
|
|
73
69
|
if attributes.key?(:'attributes')
|
|
@@ -101,26 +97,6 @@ module DatadogAPIClient::V2
|
|
|
101
97
|
@type = type
|
|
102
98
|
end
|
|
103
99
|
|
|
104
|
-
# Returns the object in the form of hash, with additionalProperties support.
|
|
105
|
-
# @return [Hash] Returns the object in the form of hash
|
|
106
|
-
# @!visibility private
|
|
107
|
-
def to_hash
|
|
108
|
-
hash = {}
|
|
109
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
110
|
-
value = self.send(attr)
|
|
111
|
-
if value.nil?
|
|
112
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
113
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
hash[param] = _to_hash(value)
|
|
117
|
-
end
|
|
118
|
-
self.additional_properties.each_pair do |attr, value|
|
|
119
|
-
hash[attr] = value
|
|
120
|
-
end
|
|
121
|
-
hash
|
|
122
|
-
end
|
|
123
|
-
|
|
124
100
|
# Checks equality by comparing each attribute.
|
|
125
101
|
# @param o [Object] Object to be compared
|
|
126
102
|
# @!visibility private
|
|
@@ -129,15 +105,14 @@ module DatadogAPIClient::V2
|
|
|
129
105
|
self.class == o.class &&
|
|
130
106
|
attributes == o.attributes &&
|
|
131
107
|
id == o.id &&
|
|
132
|
-
type == o.type
|
|
133
|
-
additional_properties == o.additional_properties
|
|
108
|
+
type == o.type
|
|
134
109
|
end
|
|
135
110
|
|
|
136
111
|
# Calculates hash code according to all attributes.
|
|
137
112
|
# @return [Integer] Hash code
|
|
138
113
|
# @!visibility private
|
|
139
114
|
def hash
|
|
140
|
-
[attributes, id, type
|
|
115
|
+
[attributes, id, type].hash
|
|
141
116
|
end
|
|
142
117
|
end
|
|
143
118
|
end
|
|
@@ -17,15 +17,13 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
#
|
|
20
|
+
# Column values for this row in the reference table.
|
|
21
21
|
class TableRowResourceDataAttributes
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# Key-value pairs representing the row data, where keys are field names from the schema.
|
|
25
25
|
attr_accessor :values
|
|
26
26
|
|
|
27
|
-
attr_accessor :additional_properties
|
|
28
|
-
|
|
29
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
28
|
# @!visibility private
|
|
31
29
|
def self.attribute_map
|
|
@@ -38,7 +36,7 @@ module DatadogAPIClient::V2
|
|
|
38
36
|
# @!visibility private
|
|
39
37
|
def self.openapi_types
|
|
40
38
|
{
|
|
41
|
-
:'values' => :'
|
|
39
|
+
:'values' => :'Object'
|
|
42
40
|
}
|
|
43
41
|
end
|
|
44
42
|
|
|
@@ -50,14 +48,12 @@ module DatadogAPIClient::V2
|
|
|
50
48
|
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TableRowResourceDataAttributes` initialize method"
|
|
51
49
|
end
|
|
52
50
|
|
|
53
|
-
self.additional_properties = {}
|
|
54
51
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
52
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
53
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
-
|
|
58
|
-
else
|
|
59
|
-
h[k.to_sym] = v
|
|
54
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TableRowResourceDataAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
60
55
|
end
|
|
56
|
+
h[k.to_sym] = v
|
|
61
57
|
}
|
|
62
58
|
|
|
63
59
|
if attributes.key?(:'values')
|
|
@@ -65,41 +61,20 @@ module DatadogAPIClient::V2
|
|
|
65
61
|
end
|
|
66
62
|
end
|
|
67
63
|
|
|
68
|
-
# Returns the object in the form of hash, with additionalProperties support.
|
|
69
|
-
# @return [Hash] Returns the object in the form of hash
|
|
70
|
-
# @!visibility private
|
|
71
|
-
def to_hash
|
|
72
|
-
hash = {}
|
|
73
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
74
|
-
value = self.send(attr)
|
|
75
|
-
if value.nil?
|
|
76
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
77
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
hash[param] = _to_hash(value)
|
|
81
|
-
end
|
|
82
|
-
self.additional_properties.each_pair do |attr, value|
|
|
83
|
-
hash[attr] = value
|
|
84
|
-
end
|
|
85
|
-
hash
|
|
86
|
-
end
|
|
87
|
-
|
|
88
64
|
# Checks equality by comparing each attribute.
|
|
89
65
|
# @param o [Object] Object to be compared
|
|
90
66
|
# @!visibility private
|
|
91
67
|
def ==(o)
|
|
92
68
|
return true if self.equal?(o)
|
|
93
69
|
self.class == o.class &&
|
|
94
|
-
values == o.values
|
|
95
|
-
additional_properties == o.additional_properties
|
|
70
|
+
values == o.values
|
|
96
71
|
end
|
|
97
72
|
|
|
98
73
|
# Calculates hash code according to all attributes.
|
|
99
74
|
# @return [Integer] Hash code
|
|
100
75
|
# @!visibility private
|
|
101
76
|
def hash
|
|
102
|
-
[values
|
|
77
|
+
[values].hash
|
|
103
78
|
end
|
|
104
79
|
end
|
|
105
80
|
end
|
|
@@ -0,0 +1,164 @@
|
|
|
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
|
+
# A relationship between a Datadog team and a team from another external system.
|
|
21
|
+
class TeamConnection
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Attributes of the team connection.
|
|
25
|
+
attr_accessor :attributes
|
|
26
|
+
|
|
27
|
+
# The unique identifier of the team connection.
|
|
28
|
+
attr_reader :id
|
|
29
|
+
|
|
30
|
+
# Relationships of the team connection.
|
|
31
|
+
attr_accessor :relationships
|
|
32
|
+
|
|
33
|
+
# Team connection resource type.
|
|
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' => :'TeamConnectionAttributes',
|
|
54
|
+
:'id' => :'String',
|
|
55
|
+
:'relationships' => :'TeamConnectionRelationships',
|
|
56
|
+
:'type' => :'TeamConnectionType'
|
|
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::TeamConnection` 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 @id.nil?
|
|
100
|
+
return false if @type.nil?
|
|
101
|
+
true
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Custom attribute writer method with validation
|
|
105
|
+
# @param id [Object] Object to be assigned
|
|
106
|
+
# @!visibility private
|
|
107
|
+
def id=(id)
|
|
108
|
+
if id.nil?
|
|
109
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
|
110
|
+
end
|
|
111
|
+
@id = id
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Custom attribute writer method with validation
|
|
115
|
+
# @param type [Object] Object to be assigned
|
|
116
|
+
# @!visibility private
|
|
117
|
+
def type=(type)
|
|
118
|
+
if type.nil?
|
|
119
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
120
|
+
end
|
|
121
|
+
@type = type
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
125
|
+
# @return [Hash] Returns the object in the form of hash
|
|
126
|
+
# @!visibility private
|
|
127
|
+
def to_hash
|
|
128
|
+
hash = {}
|
|
129
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
130
|
+
value = self.send(attr)
|
|
131
|
+
if value.nil?
|
|
132
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
133
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
hash[param] = _to_hash(value)
|
|
137
|
+
end
|
|
138
|
+
self.additional_properties.each_pair do |attr, value|
|
|
139
|
+
hash[attr] = value
|
|
140
|
+
end
|
|
141
|
+
hash
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Checks equality by comparing each attribute.
|
|
145
|
+
# @param o [Object] Object to be compared
|
|
146
|
+
# @!visibility private
|
|
147
|
+
def ==(o)
|
|
148
|
+
return true if self.equal?(o)
|
|
149
|
+
self.class == o.class &&
|
|
150
|
+
attributes == o.attributes &&
|
|
151
|
+
id == o.id &&
|
|
152
|
+
relationships == o.relationships &&
|
|
153
|
+
type == o.type &&
|
|
154
|
+
additional_properties == o.additional_properties
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Calculates hash code according to all attributes.
|
|
158
|
+
# @return [Integer] Hash code
|
|
159
|
+
# @!visibility private
|
|
160
|
+
def hash
|
|
161
|
+
[attributes, id, relationships, type, additional_properties].hash
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
end
|