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
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
# Request payload for partially updating a schedule.
|
|
21
|
+
class FleetSchedulePatchRequest
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Data for partially updating a schedule.
|
|
25
|
+
attr_reader :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' => :'FleetSchedulePatch'
|
|
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::FleetSchedulePatchRequest` 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
|
+
self.data = attributes[:'data']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Check to see if the all the properties in the model are valid
|
|
69
|
+
# @return true if the model is valid
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def valid?
|
|
72
|
+
return false if @data.nil?
|
|
73
|
+
true
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Custom attribute writer method with validation
|
|
77
|
+
# @param data [Object] Object to be assigned
|
|
78
|
+
# @!visibility private
|
|
79
|
+
def data=(data)
|
|
80
|
+
if data.nil?
|
|
81
|
+
fail ArgumentError, 'invalid value for "data", data cannot be nil.'
|
|
82
|
+
end
|
|
83
|
+
@data = data
|
|
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
|
+
end
|
|
105
|
+
|
|
106
|
+
# Checks equality by comparing each attribute.
|
|
107
|
+
# @param o [Object] Object to be compared
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
data == o.data &&
|
|
113
|
+
additional_properties == o.additional_properties
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Calculates hash code according to all attributes.
|
|
117
|
+
# @return [Integer] Hash code
|
|
118
|
+
# @!visibility private
|
|
119
|
+
def hash
|
|
120
|
+
[data, additional_properties].hash
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
@@ -0,0 +1,191 @@
|
|
|
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 recurrence pattern for the schedule. Specifies when deployments should be
|
|
21
|
+
# automatically triggered based on maintenance windows.
|
|
22
|
+
class FleetScheduleRecurrenceRule
|
|
23
|
+
include BaseGenericModel
|
|
24
|
+
|
|
25
|
+
# List of days of the week when the schedule should trigger. Valid values are:
|
|
26
|
+
# "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun".
|
|
27
|
+
attr_reader :days_of_week
|
|
28
|
+
|
|
29
|
+
# Duration of the maintenance window in minutes.
|
|
30
|
+
attr_reader :maintenance_window_duration
|
|
31
|
+
|
|
32
|
+
# Start time of the maintenance window in 24-hour clock format (HH:MM).
|
|
33
|
+
# Deployments will be triggered at this time on the specified days.
|
|
34
|
+
attr_reader :start_maintenance_window
|
|
35
|
+
|
|
36
|
+
# Timezone for the schedule in IANA Time Zone Database format (e.g., "America/New_York", "UTC").
|
|
37
|
+
attr_reader :timezone
|
|
38
|
+
|
|
39
|
+
attr_accessor :additional_properties
|
|
40
|
+
|
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.attribute_map
|
|
44
|
+
{
|
|
45
|
+
:'days_of_week' => :'days_of_week',
|
|
46
|
+
:'maintenance_window_duration' => :'maintenance_window_duration',
|
|
47
|
+
:'start_maintenance_window' => :'start_maintenance_window',
|
|
48
|
+
:'timezone' => :'timezone'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Attribute type mapping.
|
|
53
|
+
# @!visibility private
|
|
54
|
+
def self.openapi_types
|
|
55
|
+
{
|
|
56
|
+
:'days_of_week' => :'Array<String>',
|
|
57
|
+
:'maintenance_window_duration' => :'Integer',
|
|
58
|
+
:'start_maintenance_window' => :'String',
|
|
59
|
+
:'timezone' => :'String'
|
|
60
|
+
}
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Initializes the object
|
|
64
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
65
|
+
# @!visibility private
|
|
66
|
+
def initialize(attributes = {})
|
|
67
|
+
if (!attributes.is_a?(Hash))
|
|
68
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::FleetScheduleRecurrenceRule` initialize method"
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
self.additional_properties = {}
|
|
72
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
73
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
74
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
75
|
+
self.additional_properties[k.to_sym] = v
|
|
76
|
+
else
|
|
77
|
+
h[k.to_sym] = v
|
|
78
|
+
end
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'days_of_week')
|
|
82
|
+
if (value = attributes[:'days_of_week']).is_a?(Array)
|
|
83
|
+
self.days_of_week = value
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'maintenance_window_duration')
|
|
88
|
+
self.maintenance_window_duration = attributes[:'maintenance_window_duration']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'start_maintenance_window')
|
|
92
|
+
self.start_maintenance_window = attributes[:'start_maintenance_window']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'timezone')
|
|
96
|
+
self.timezone = attributes[:'timezone']
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Check to see if the all the properties in the model are valid
|
|
101
|
+
# @return true if the model is valid
|
|
102
|
+
# @!visibility private
|
|
103
|
+
def valid?
|
|
104
|
+
return false if @days_of_week.nil?
|
|
105
|
+
return false if @maintenance_window_duration.nil?
|
|
106
|
+
return false if @start_maintenance_window.nil?
|
|
107
|
+
return false if @timezone.nil?
|
|
108
|
+
true
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Custom attribute writer method with validation
|
|
112
|
+
# @param days_of_week [Object] Object to be assigned
|
|
113
|
+
# @!visibility private
|
|
114
|
+
def days_of_week=(days_of_week)
|
|
115
|
+
if days_of_week.nil?
|
|
116
|
+
fail ArgumentError, 'invalid value for "days_of_week", days_of_week cannot be nil.'
|
|
117
|
+
end
|
|
118
|
+
@days_of_week = days_of_week
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Custom attribute writer method with validation
|
|
122
|
+
# @param maintenance_window_duration [Object] Object to be assigned
|
|
123
|
+
# @!visibility private
|
|
124
|
+
def maintenance_window_duration=(maintenance_window_duration)
|
|
125
|
+
if maintenance_window_duration.nil?
|
|
126
|
+
fail ArgumentError, 'invalid value for "maintenance_window_duration", maintenance_window_duration cannot be nil.'
|
|
127
|
+
end
|
|
128
|
+
@maintenance_window_duration = maintenance_window_duration
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Custom attribute writer method with validation
|
|
132
|
+
# @param start_maintenance_window [Object] Object to be assigned
|
|
133
|
+
# @!visibility private
|
|
134
|
+
def start_maintenance_window=(start_maintenance_window)
|
|
135
|
+
if start_maintenance_window.nil?
|
|
136
|
+
fail ArgumentError, 'invalid value for "start_maintenance_window", start_maintenance_window cannot be nil.'
|
|
137
|
+
end
|
|
138
|
+
@start_maintenance_window = start_maintenance_window
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Custom attribute writer method with validation
|
|
142
|
+
# @param timezone [Object] Object to be assigned
|
|
143
|
+
# @!visibility private
|
|
144
|
+
def timezone=(timezone)
|
|
145
|
+
if timezone.nil?
|
|
146
|
+
fail ArgumentError, 'invalid value for "timezone", timezone cannot be nil.'
|
|
147
|
+
end
|
|
148
|
+
@timezone = timezone
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
152
|
+
# @return [Hash] Returns the object in the form of hash
|
|
153
|
+
# @!visibility private
|
|
154
|
+
def to_hash
|
|
155
|
+
hash = {}
|
|
156
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
157
|
+
value = self.send(attr)
|
|
158
|
+
if value.nil?
|
|
159
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
160
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
hash[param] = _to_hash(value)
|
|
164
|
+
end
|
|
165
|
+
self.additional_properties.each_pair do |attr, value|
|
|
166
|
+
hash[attr] = value
|
|
167
|
+
end
|
|
168
|
+
hash
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Checks equality by comparing each attribute.
|
|
172
|
+
# @param o [Object] Object to be compared
|
|
173
|
+
# @!visibility private
|
|
174
|
+
def ==(o)
|
|
175
|
+
return true if self.equal?(o)
|
|
176
|
+
self.class == o.class &&
|
|
177
|
+
days_of_week == o.days_of_week &&
|
|
178
|
+
maintenance_window_duration == o.maintenance_window_duration &&
|
|
179
|
+
start_maintenance_window == o.start_maintenance_window &&
|
|
180
|
+
timezone == o.timezone &&
|
|
181
|
+
additional_properties == o.additional_properties
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Calculates hash code according to all attributes.
|
|
185
|
+
# @return [Integer] Hash code
|
|
186
|
+
# @!visibility private
|
|
187
|
+
def hash
|
|
188
|
+
[days_of_week, maintenance_window_duration, start_maintenance_window, timezone, additional_properties].hash
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# The type of schedule resource.
|
|
21
|
+
class FleetScheduleResourceType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
SCHEDULE = "schedule".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
# Response containing a single schedule.
|
|
21
|
+
class FleetScheduleResponse
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# A schedule that automatically creates deployments based on a recurrence rule.
|
|
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' => :'FleetSchedule'
|
|
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::FleetScheduleResponse` 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
|
+
self.data = attributes[:'data']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
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
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param o [Object] Object to be compared
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
data == o.data &&
|
|
95
|
+
additional_properties == o.additional_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Calculates hash code according to all attributes.
|
|
99
|
+
# @return [Integer] Hash code
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def hash
|
|
102
|
+
[data, additional_properties].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# The status of the schedule.
|
|
21
|
+
# - `active`: The schedule is active and will create deployments according to its recurrence rule.
|
|
22
|
+
# - `inactive`: The schedule is inactive and will not create any deployments.
|
|
23
|
+
class FleetScheduleStatus
|
|
24
|
+
include BaseEnumModel
|
|
25
|
+
|
|
26
|
+
ACTIVE = "active".freeze
|
|
27
|
+
INACTIVE = "inactive".freeze
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
# Response containing a list of schedules.
|
|
21
|
+
class FleetSchedulesResponse
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Array of schedules.
|
|
25
|
+
attr_reader :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<FleetSchedule>'
|
|
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::FleetSchedulesResponse` 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
|
+
# Check to see if the all the properties in the model are valid
|
|
71
|
+
# @return true if the model is valid
|
|
72
|
+
# @!visibility private
|
|
73
|
+
def valid?
|
|
74
|
+
return false if @data.nil?
|
|
75
|
+
true
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Custom attribute writer method with validation
|
|
79
|
+
# @param data [Object] Object to be assigned
|
|
80
|
+
# @!visibility private
|
|
81
|
+
def data=(data)
|
|
82
|
+
if data.nil?
|
|
83
|
+
fail ArgumentError, 'invalid value for "data", data cannot be nil.'
|
|
84
|
+
end
|
|
85
|
+
@data = data
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
89
|
+
# @return [Hash] Returns the object in the form of hash
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def to_hash
|
|
92
|
+
hash = {}
|
|
93
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
94
|
+
value = self.send(attr)
|
|
95
|
+
if value.nil?
|
|
96
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
97
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
hash[param] = _to_hash(value)
|
|
101
|
+
end
|
|
102
|
+
self.additional_properties.each_pair do |attr, value|
|
|
103
|
+
hash[attr] = value
|
|
104
|
+
end
|
|
105
|
+
hash
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Checks equality by comparing each attribute.
|
|
109
|
+
# @param o [Object] Object to be compared
|
|
110
|
+
# @!visibility private
|
|
111
|
+
def ==(o)
|
|
112
|
+
return true if self.equal?(o)
|
|
113
|
+
self.class == o.class &&
|
|
114
|
+
data == o.data &&
|
|
115
|
+
additional_properties == o.additional_properties
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Calculates hash code according to all attributes.
|
|
119
|
+
# @return [Integer] Hash code
|
|
120
|
+
# @!visibility private
|
|
121
|
+
def hash
|
|
122
|
+
[data, additional_properties].hash
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
@@ -24,6 +24,9 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# When disabled, Datadog does not collect metrics that are related to this GCP metric namespace.
|
|
25
25
|
attr_accessor :disabled
|
|
26
26
|
|
|
27
|
+
# When enabled, Datadog applies these additional filters to limit metric collection. A metric is collected only if it does not match all exclusion filters and matches at least one allow filter.
|
|
28
|
+
attr_accessor :filters
|
|
29
|
+
|
|
27
30
|
# The id of the GCP metric namespace.
|
|
28
31
|
attr_accessor :id
|
|
29
32
|
|
|
@@ -34,6 +37,7 @@ module DatadogAPIClient::V2
|
|
|
34
37
|
def self.attribute_map
|
|
35
38
|
{
|
|
36
39
|
:'disabled' => :'disabled',
|
|
40
|
+
:'filters' => :'filters',
|
|
37
41
|
:'id' => :'id'
|
|
38
42
|
}
|
|
39
43
|
end
|
|
@@ -43,6 +47,7 @@ module DatadogAPIClient::V2
|
|
|
43
47
|
def self.openapi_types
|
|
44
48
|
{
|
|
45
49
|
:'disabled' => :'Boolean',
|
|
50
|
+
:'filters' => :'Array<String>',
|
|
46
51
|
:'id' => :'String'
|
|
47
52
|
}
|
|
48
53
|
end
|
|
@@ -69,6 +74,12 @@ module DatadogAPIClient::V2
|
|
|
69
74
|
self.disabled = attributes[:'disabled']
|
|
70
75
|
end
|
|
71
76
|
|
|
77
|
+
if attributes.key?(:'filters')
|
|
78
|
+
if (value = attributes[:'filters']).is_a?(Array)
|
|
79
|
+
self.filters = value
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
72
83
|
if attributes.key?(:'id')
|
|
73
84
|
self.id = attributes[:'id']
|
|
74
85
|
end
|
|
@@ -101,6 +112,7 @@ module DatadogAPIClient::V2
|
|
|
101
112
|
return true if self.equal?(o)
|
|
102
113
|
self.class == o.class &&
|
|
103
114
|
disabled == o.disabled &&
|
|
115
|
+
filters == o.filters &&
|
|
104
116
|
id == o.id &&
|
|
105
117
|
additional_properties == o.additional_properties
|
|
106
118
|
end
|
|
@@ -109,7 +121,7 @@ module DatadogAPIClient::V2
|
|
|
109
121
|
# @return [Integer] Hash code
|
|
110
122
|
# @!visibility private
|
|
111
123
|
def hash
|
|
112
|
-
[disabled, id, additional_properties].hash
|
|
124
|
+
[disabled, filters, id, additional_properties].hash
|
|
113
125
|
end
|
|
114
126
|
end
|
|
115
127
|
end
|