datadog_api_client 2.53.0 → 2.54.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 +2514 -18
- data/.generator/schemas/v2/openapi.yaml +17639 -617
- data/CHANGELOG.md +55 -0
- data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +1 -0
- data/examples/v1/azure-integration/UpdateAzureIntegration.rb +1 -0
- data/examples/v1/dashboards/CreateDashboard_2049446128.rb +42 -0
- data/examples/v2/agentless-scanning/CreateAwsScanOptions.rb +1 -0
- data/examples/v2/app-builder/CreatePublishRequest.rb +15 -0
- data/examples/v2/app-builder/ListAppVersions.rb +5 -0
- data/examples/v2/app-builder/RevertApp.rb +5 -0
- data/examples/v2/app-builder/UpdateAppFavorite.rb +14 -0
- data/examples/v2/app-builder/UpdateAppSelfService.rb +14 -0
- data/examples/v2/app-builder/UpdateAppTags.rb +17 -0
- data/examples/v2/app-builder/UpdateAppVersionName.rb +14 -0
- data/examples/v2/app-builder/UpdateProtectionLevel.rb +14 -0
- data/examples/v2/cloud-cost-management/GetCommitmentsCommitmentList.rb +8 -0
- data/examples/v2/cloud-cost-management/GetCommitmentsCoverageScalar.rb +8 -0
- data/examples/v2/cloud-cost-management/GetCommitmentsCoverageTimeseries.rb +8 -0
- data/examples/v2/cloud-cost-management/GetCommitmentsOnDemandHotspotsScalar.rb +8 -0
- data/examples/v2/cloud-cost-management/GetCommitmentsSavingsScalar.rb +8 -0
- data/examples/v2/cloud-cost-management/GetCommitmentsSavingsTimeseries.rb +8 -0
- data/examples/v2/cloud-cost-management/GetCommitmentsUtilizationScalar.rb +8 -0
- data/examples/v2/cloud-cost-management/GetCommitmentsUtilizationTimeseries.rb +8 -0
- data/examples/v2/cloud-cost-management/GetCostAnomaly.rb +8 -0
- data/examples/v2/cloud-cost-management/GetCostTagKey.rb +5 -0
- data/examples/v2/cloud-cost-management/ListCostAnomalies.rb +8 -0
- data/examples/v2/cloud-cost-management/ListCostOCIConfigs.rb +5 -0
- data/examples/v2/cloud-cost-management/ListCostTagDescriptions.rb +5 -0
- data/examples/v2/cloud-cost-management/ListCostTagKeys.rb +5 -0
- data/examples/v2/cloud-cost-management/ListCostTags.rb +5 -0
- data/examples/v2/cloud-cost-management/ListCustomAllocationRulesStatus.rb +5 -0
- data/examples/v2/cloud-cost-management/ListTagPipelinesRulesetsStatus.rb +5 -0
- data/examples/v2/compliance/GetRuleBasedView.rb +8 -0
- data/examples/v2/feature-flags/ListFeatureFlags.rb +4 -1
- data/examples/v2/key-management/Validate.rb +8 -0
- data/examples/v2/key-management/ValidateAPIKey.rb +5 -0
- data/examples/v2/llm-observability/CreateLLMObsAnnotationQueue.rb +23 -1
- data/examples/v2/llm-observability/GetLLMObsAnnotationQueueLabelSchema.rb +8 -0
- data/examples/v2/llm-observability/UpdateLLMObsAnnotationQueue.rb +22 -0
- data/examples/v2/llm-observability/UpdateLLMObsAnnotationQueueLabelSchema.rb +38 -0
- data/examples/v2/logs-archives/CreateLogsArchive.rb +1 -0
- data/examples/v2/logs-archives/UpdateLogsArchive.rb +1 -0
- data/examples/v2/organizations/ListOrgs.rb +5 -0
- data/examples/v2/security-monitoring/BulkDeleteSecurityMonitoringRules.rb +17 -0
- data/examples/v2/security-monitoring/MuteSecurityFindings.rb +33 -0
- data/examples/v2/security-monitoring/MuteSecurityFindings_298521544.rb +31 -0
- data/examples/v2/security-monitoring/MuteSecurityFindings_3830190821.rb +32 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.rb +2 -2
- data/examples/v2/status-pages/CreateBackfilledDegradation.rb +53 -0
- data/examples/v2/status-pages/CreateBackfilledMaintenance.rb +42 -0
- data/examples/v2/status-pages/CreateStatusPage.rb +0 -1
- data/examples/v2/status-pages/PublishStatusPage.rb +3 -3
- data/examples/v2/status-pages/UnpublishStatusPage.rb +1 -4
- data/examples/v2/storage-management/UpsertSyncConfig.rb +34 -0
- data/examples/v2/synthetics/AddTestToSyntheticsDowntime.rb +5 -0
- data/examples/v2/synthetics/CreateSyntheticsDowntime.rb +31 -0
- data/examples/v2/synthetics/DeleteSyntheticsDowntime.rb +5 -0
- data/examples/v2/synthetics/GetSyntheticsDowntime.rb +5 -0
- data/examples/v2/synthetics/ListSyntheticsDowntimes.rb +5 -0
- data/examples/v2/synthetics/RemoveTestFromSyntheticsDowntime.rb +5 -0
- data/examples/v2/synthetics/UpdateSyntheticsDowntime.rb +31 -0
- data/examples/v2/test-optimization/DeleteTestOptimizationServiceSettings.rb +0 -3
- data/examples/v2/test-optimization/GetFlakyTestsManagementPolicies.rb +0 -3
- data/examples/v2/test-optimization/GetTestOptimizationServiceSettings.rb +0 -3
- data/examples/v2/test-optimization/SearchFlakyTests.rb +0 -3
- data/examples/v2/test-optimization/SearchFlakyTests_1224086727.rb +0 -3
- data/examples/v2/test-optimization/UpdateFlakyTests.rb +0 -3
- data/examples/v2/test-optimization/UpdateFlakyTestsManagementPolicies.rb +0 -3
- data/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.rb +0 -3
- data/examples/v2/users/DeleteUserInvitations.rb +5 -0
- data/examples/v2/users/GetCurrentUser.rb +5 -0
- data/examples/v2/users/UpdateCurrentUser.rb +15 -0
- data/examples/v2/web-integrations/CreateWebIntegrationAccount.rb +19 -0
- data/examples/v2/web-integrations/DeleteWebIntegrationAccount.rb +8 -0
- data/examples/v2/web-integrations/GetWebIntegrationAccount.rb +8 -0
- data/examples/v2/web-integrations/ListWebIntegrationAccounts.rb +8 -0
- data/examples/v2/web-integrations/UpdateWebIntegrationAccount.rb +19 -0
- data/lib/datadog_api_client/configuration.rb +20 -12
- data/lib/datadog_api_client/inflector.rb +213 -16
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
- data/lib/datadog_api_client/v1/models/azure_account.rb +11 -1
- data/lib/datadog_api_client/v1/models/data_projection_query.rb +166 -0
- data/lib/datadog_api_client/v1/models/data_projection_request_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb +4 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
- data/lib/datadog_api_client/v1/models/point_plot_dimension.rb +29 -0
- data/lib/datadog_api_client/v1/models/point_plot_projection.rb +158 -0
- data/lib/datadog_api_client/v1/models/point_plot_projection_dimension.rb +154 -0
- data/lib/datadog_api_client/v1/models/point_plot_projection_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/point_plot_widget_definition.rb +240 -0
- data/lib/datadog_api_client/v1/models/point_plot_widget_definition_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/point_plot_widget_legend.rb +123 -0
- data/lib/datadog_api_client/v1/models/point_plot_widget_legend_type.rb +27 -0
- data/lib/datadog_api_client/v1/models/point_plot_widget_request.rb +175 -0
- data/lib/datadog_api_client/v1/models/sankey_rum_data_source.rb +1 -1
- data/lib/datadog_api_client/v1/models/sankey_rum_query.rb +3 -3
- data/lib/datadog_api_client/v1/models/sankey_rum_query_mode.rb +1 -1
- data/lib/datadog_api_client/v1/models/sankey_rum_request.rb +2 -2
- data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +11 -1
- data/lib/datadog_api_client/v1/models/tree_map_widget_request.rb +23 -3
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +121 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +121 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +121 -1
- data/lib/datadog_api_client/v1/models/widget_definition.rb +1 -0
- data/lib/datadog_api_client/v2/api/app_builder_api.rb +578 -0
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +1580 -173
- data/lib/datadog_api_client/v2/api/compliance_api.rb +111 -0
- data/lib/datadog_api_client/v2/api/key_management_api.rb +129 -0
- data/lib/datadog_api_client/v2/api/llm_observability_api.rb +159 -5
- data/lib/datadog_api_client/v2/api/metrics_api.rb +9 -5
- data/lib/datadog_api_client/v2/api/organizations_api.rb +62 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +143 -0
- data/lib/datadog_api_client/v2/api/status_pages_api.rb +149 -1
- data/lib/datadog_api_client/v2/api/storage_management_api.rb +93 -0
- data/lib/datadog_api_client/v2/api/synthetics_api.rb +473 -0
- data/lib/datadog_api_client/v2/api/test_optimization_api.rb +0 -42
- data/lib/datadog_api_client/v2/api/users_api.rb +201 -0
- data/lib/datadog_api_client/v2/api/web_integrations_api.rb +410 -0
- data/lib/datadog_api_client/v2/api/widgets_api.rb +13 -4
- data/lib/datadog_api_client/v2/models/apm_dependency_stats_query.rb +24 -1
- data/lib/datadog_api_client/v2/models/apm_metrics_query.rb +24 -1
- data/lib/datadog_api_client/v2/models/apm_resource_stats_query.rb +24 -1
- data/lib/datadog_api_client/v2/models/{security_monitoring_rule_new_value_options_forget_after.rb → app_favorite_type.rb} +3 -8
- data/lib/datadog_api_client/v2/models/{security_monitoring_rule_new_value_options_learning_duration.rb → app_protection_level.rb} +4 -6
- data/lib/datadog_api_client/v2/models/app_protection_level_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/app_self_service_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{incident_team_type.rb → app_tags_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{incident_team_response_data.rb → app_version.rb} +10 -20
- data/lib/datadog_api_client/v2/models/app_version_attributes.rb +185 -0
- data/lib/datadog_api_client/v2/models/app_version_name_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/app_version_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_status_response_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_status_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_status_response_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_status_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_scan_options_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/aws_scan_options_create_attributes.rb +22 -1
- data/lib/datadog_api_client/v2/models/aws_scan_options_update_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/azure_scan_options_data_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/azure_scan_options_input_update_data_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/cloud_inventory_cloud_provider_id.rb +28 -0
- data/lib/datadog_api_client/v2/models/cloud_inventory_cloud_provider_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/cloud_inventory_sync_config_attributes.rb +396 -0
- data/lib/datadog_api_client/v2/models/cloud_inventory_sync_config_aws_request_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/cloud_inventory_sync_config_azure_request_attributes.rb +228 -0
- data/lib/datadog_api_client/v2/models/cloud_inventory_sync_config_gcp_request_attributes.rb +186 -0
- data/lib/datadog_api_client/v2/models/cloud_inventory_sync_config_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/cloud_inventory_sync_config_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/cloud_inventory_sync_config_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/commitments_aws_ec2_ri_commitment.rb +298 -0
- data/lib/datadog_api_client/v2/models/commitments_aws_elasticache_ri_commitment.rb +267 -0
- data/lib/datadog_api_client/v2/models/commitments_aws_rdsri_commitment.rb +277 -0
- data/lib/datadog_api_client/v2/models/commitments_aws_sp_commitment.rb +215 -0
- data/lib/datadog_api_client/v2/models/commitments_azure_compute_sp_commitment.rb +194 -0
- data/lib/datadog_api_client/v2/models/commitments_azure_vmri_commitment.rb +268 -0
- data/lib/datadog_api_client/v2/models/commitments_azure_vmri_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/commitments_commitment_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/commitments_coverage_scalar_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/commitments_coverage_timeseries_response.rb +144 -0
- data/lib/datadog_api_client/v2/models/{incident_team_included_items.rb → commitments_list_item.rb} +8 -3
- data/lib/datadog_api_client/v2/models/commitments_list_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/commitments_list_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/commitments_on_demand_hotspots_scalar_meta.rb +123 -0
- data/lib/datadog_api_client/v2/models/commitments_on_demand_hotspots_scalar_response.rb +158 -0
- data/lib/datadog_api_client/v2/models/commitments_provider.rb +27 -0
- data/lib/datadog_api_client/v2/models/commitments_savings_scalar_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/commitments_savings_timeseries_response.rb +186 -0
- data/lib/datadog_api_client/v2/models/commitments_scalar_column.rb +177 -0
- data/lib/datadog_api_client/v2/models/commitments_scalar_column_meta.rb +123 -0
- data/lib/datadog_api_client/v2/models/commitments_scalar_column_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/commitments_timeseries_metric.rb +156 -0
- data/lib/datadog_api_client/v2/models/commitments_unit.rb +228 -0
- data/lib/datadog_api_client/v2/models/commitments_utilization_scalar_product_breakdown_entry.rb +144 -0
- data/lib/datadog_api_client/v2/models/{incident_teams_response.rb → commitments_utilization_scalar_response.rb} +26 -36
- data/lib/datadog_api_client/v2/models/commitments_utilization_timeseries_response.rb +156 -0
- data/lib/datadog_api_client/v2/models/container_scalar_query.rb +24 -1
- data/lib/datadog_api_client/v2/models/container_timeseries_query.rb +24 -1
- data/lib/datadog_api_client/v2/models/cost_anomalies_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/cost_anomalies_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/cost_anomalies_response_data_attributes.rb +209 -0
- data/lib/datadog_api_client/v2/models/cost_anomalies_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/cost_anomaly.rb +319 -0
- data/lib/datadog_api_client/v2/models/cost_anomaly_dismissal.rb +207 -0
- data/lib/datadog_api_client/v2/models/cost_anomaly_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/cost_anomaly_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/cost_tag.rb +165 -0
- data/lib/datadog_api_client/v2/models/cost_tag_attributes.rb +146 -0
- data/lib/datadog_api_client/v2/models/cost_tag_description.rb +165 -0
- data/lib/datadog_api_client/v2/models/cost_tag_description_attributes.rb +228 -0
- data/lib/datadog_api_client/v2/models/cost_tag_description_source.rb +28 -0
- data/lib/datadog_api_client/v2/models/cost_tag_description_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/cost_tag_descriptions_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/cost_tag_key.rb +165 -0
- data/lib/datadog_api_client/v2/models/cost_tag_key_attributes.rb +156 -0
- data/lib/datadog_api_client/v2/models/cost_tag_key_details.rb +146 -0
- data/lib/datadog_api_client/v2/models/{incident_team_create_request.rb → cost_tag_key_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/cost_tag_key_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/cost_tag_keys_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/cost_tag_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/cost_tags_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/create_backfilled_degradation_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/{incident_team_create_data.rb → create_backfilled_degradation_request_data.rb} +8 -18
- data/lib/datadog_api_client/v2/models/create_backfilled_degradation_request_data_attributes.rb +146 -0
- data/lib/datadog_api_client/v2/models/create_backfilled_degradation_request_data_attributes_updates_items.rb +166 -0
- data/lib/datadog_api_client/v2/models/create_backfilled_maintenance_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/{incident_team_update_data.rb → create_backfilled_maintenance_request_data.rb} +8 -28
- data/lib/datadog_api_client/v2/models/create_backfilled_maintenance_request_data_attributes.rb +154 -0
- data/lib/datadog_api_client/v2/models/create_backfilled_maintenance_request_data_attributes_updates_items.rb +188 -0
- data/lib/datadog_api_client/v2/models/create_degradation_request_data_attributes.rb +15 -3
- data/lib/datadog_api_client/v2/models/create_degradation_request_data_attributes_updates_items.rb +188 -0
- data/lib/datadog_api_client/v2/models/create_degradation_request_data_attributes_updates_items_components_affected_items.rb +154 -0
- data/lib/datadog_api_client/v2/models/create_maintenance_request_data_attributes.rb +15 -3
- data/lib/datadog_api_client/v2/models/create_maintenance_request_data_attributes_updates_items.rb +188 -0
- data/lib/datadog_api_client/v2/models/create_maintenance_request_data_attributes_updates_items_components_affected_items.rb +154 -0
- data/lib/datadog_api_client/v2/models/create_maintenance_request_data_attributes_updates_items_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/create_publish_request_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/{incident_team_relationships.rb → create_publish_request_request_data.rb} +18 -18
- data/lib/datadog_api_client/v2/models/create_publish_request_request_data_attributes.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_status_page_request_data_attributes.rb +1 -22
- data/lib/datadog_api_client/v2/models/events_scalar_query.rb +24 -1
- data/lib/datadog_api_client/v2/models/events_timeseries_query.rb +24 -1
- data/lib/datadog_api_client/v2/models/feature_flag_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/feature_flag_environment.rb +1 -38
- data/lib/datadog_api_client/v2/models/feature_flag_environment_list_item.rb +246 -0
- data/lib/datadog_api_client/v2/models/feature_flag_list_item.rb +165 -0
- data/lib/datadog_api_client/v2/models/feature_flag_list_item_attributes.rb +332 -0
- data/lib/datadog_api_client/v2/models/gcp_scan_options_data_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/gcp_scan_options_input_update_data_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb +1 -0
- data/lib/datadog_api_client/v2/models/issue_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/issue_regression.rb +154 -0
- data/lib/datadog_api_client/v2/models/issues_search_request_data_attributes.rb +24 -1
- data/lib/datadog_api_client/v2/models/list_app_versions_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/list_feature_flags_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/llm_obs_annotated_interaction_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/llm_obs_annotation_queue_data_attributes_request.rb +11 -1
- data/lib/datadog_api_client/v2/models/llm_obs_annotation_queue_data_attributes_response.rb +11 -1
- data/lib/datadog_api_client/v2/models/llm_obs_annotation_queue_interaction_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/llm_obs_annotation_queue_interaction_response_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/llm_obs_annotation_queue_label_schema_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_annotation_queue_label_schema_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/llm_obs_annotation_queue_label_schema_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_annotation_queue_label_schema_update_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_annotation_queue_label_schema_update_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/llm_obs_annotation_queue_label_schema_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/llm_obs_annotation_queue_update_data_attributes_request.rb +11 -1
- data/lib/datadog_api_client/v2/models/llm_obs_annotation_schema.rb +125 -0
- data/lib/datadog_api_client/v2/models/llm_obs_interaction_type.rb +1 -0
- data/lib/datadog_api_client/v2/models/llm_obs_label_schema.rb +246 -0
- data/lib/datadog_api_client/v2/models/llm_obs_label_schema_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/logs_archive_attributes_compression_method.rb +27 -0
- data/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/managed_orgs_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/{incident_team_update_request.rb → managed_orgs_relationship_to_org.rb} +5 -5
- data/lib/datadog_api_client/v2/models/managed_orgs_relationship_to_orgs.rb +125 -0
- data/lib/datadog_api_client/v2/models/managed_orgs_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/{incident_team_response.rb → managed_orgs_response.rb} +19 -8
- data/lib/datadog_api_client/v2/models/managed_orgs_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/metrics_scalar_query.rb +24 -1
- data/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb +24 -1
- data/lib/datadog_api_client/v2/models/mute_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/mute_findings_mute_attributes.rb +164 -0
- data/lib/datadog_api_client/v2/models/mute_findings_reason.rb +34 -0
- data/lib/datadog_api_client/v2/models/mute_findings_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/mute_findings_request_data.rb +175 -0
- data/lib/datadog_api_client/v2/models/mute_findings_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/mute_findings_request_data_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/mute_findings_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/mute_findings_response_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +1 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_databricks_zerobus_destination.rb +263 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_databricks_zerobus_destination_auth.rb +133 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_databricks_zerobus_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/oci_config.rb +165 -0
- data/lib/datadog_api_client/v2/models/oci_config_attributes.rb +227 -0
- data/lib/datadog_api_client/v2/models/oci_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/oci_configs_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/org_attributes.rb +270 -0
- data/lib/datadog_api_client/v2/models/org_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/org_group_list_response.rb +12 -2
- data/lib/datadog_api_client/v2/models/org_group_membership_list_response.rb +12 -2
- data/lib/datadog_api_client/v2/models/org_group_pagination_links.rb +154 -0
- data/lib/datadog_api_client/v2/models/org_group_pagination_meta.rb +3 -21
- data/lib/datadog_api_client/v2/models/org_group_pagination_meta_page.rb +86 -24
- data/lib/datadog_api_client/v2/models/org_group_policy_list_response.rb +12 -2
- data/lib/datadog_api_client/v2/models/org_group_policy_override_list_response.rb +12 -2
- data/lib/datadog_api_client/v2/models/org_relationship_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/org_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/process_scalar_query.rb +24 -1
- data/lib/datadog_api_client/v2/models/process_timeseries_query.rb +24 -1
- data/lib/datadog_api_client/v2/models/publish_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/routing_rule_action.rb +2 -1
- data/lib/datadog_api_client/v2/models/rule_based_view_attributes.rb +146 -0
- data/lib/datadog_api_client/v2/models/rule_based_view_compliance_framework.rb +155 -0
- data/lib/datadog_api_client/v2/models/rule_based_view_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/rule_based_view_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/rule_based_view_rule.rb +339 -0
- data/lib/datadog_api_client/v2/models/rule_based_view_rule_category.rb +28 -0
- data/lib/datadog_api_client/v2/models/rule_based_view_rule_stats.rb +165 -0
- data/lib/datadog_api_client/v2/models/rule_based_view_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/ruleset_status_resp_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/ruleset_status_resp_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/ruleset_status_resp_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/ruleset_status_resp_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_entity_risk_score_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_bulk_delete_attributes.rb +129 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_bulk_delete_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_bulk_delete_payload.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_bulk_delete_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_bulk_delete_response.rb +119 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +41 -4
- data/lib/datadog_api_client/v2/models/slo_query.rb +24 -1
- data/lib/datadog_api_client/v2/models/synthetics_downtime_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/synthetics_downtime_data_attributes_request.rb +212 -0
- data/lib/datadog_api_client/v2/models/synthetics_downtime_data_attributes_response.rb +360 -0
- data/lib/datadog_api_client/v2/models/synthetics_downtime_data_request.rb +144 -0
- data/lib/datadog_api_client/v2/models/synthetics_downtime_frequency.rb +29 -0
- data/lib/datadog_api_client/v2/models/synthetics_downtime_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/synthetics_downtime_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/synthetics_downtime_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_date.rb +207 -0
- data/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_recurrence_request.rb +155 -0
- data/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_recurrence_response.rb +177 -0
- data/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_request.rb +185 -0
- data/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_response.rb +206 -0
- data/lib/datadog_api_client/v2/models/synthetics_downtime_weekday.rb +32 -0
- data/lib/datadog_api_client/v2/models/synthetics_downtimes_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/trigger_workflow_automation_action.rb +144 -0
- data/lib/datadog_api_client/v2/models/trigger_workflow_automation_action_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/update_app_favorite_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_app_favorite_request_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/update_app_favorite_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_app_protection_level_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_app_protection_level_request_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/update_app_protection_level_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_app_self_service_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_app_self_service_request_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/update_app_self_service_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_app_tags_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_app_tags_request_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/update_app_tags_request_data_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/update_app_version_name_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_app_version_name_request_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/{incident_team_create_attributes.rb → update_app_version_name_request_data_attributes.rb} +4 -4
- data/lib/datadog_api_client/v2/models/upsert_cloud_inventory_sync_config_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/upsert_cloud_inventory_sync_config_request_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/upsert_cloud_inventory_sync_config_request_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/user_attributes.rb +15 -14
- data/lib/datadog_api_client/v2/models/user_update_attributes.rb +27 -6
- data/lib/datadog_api_client/v2/models/validate_api_key_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/validate_api_key_status.rb +26 -0
- data/lib/datadog_api_client/v2/models/validate_v2_attributes.rb +167 -0
- data/lib/datadog_api_client/v2/models/validate_v2_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/validate_v2_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/validate_v2_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/web_integration_account_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/web_integration_account_create_request_attributes.rb +166 -0
- data/lib/datadog_api_client/v2/models/web_integration_account_create_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/web_integration_account_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/{incident_team_update_attributes.rb → web_integration_account_response_attributes.rb} +17 -7
- data/lib/datadog_api_client/v2/models/web_integration_account_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/web_integration_account_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/web_integration_account_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{incident_team_response_attributes.rb → web_integration_account_update_request_attributes.rb} +25 -24
- data/lib/datadog_api_client/v2/models/web_integration_account_update_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/web_integration_accounts_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/widget_attributes.rb +5 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +268 -22
- data/examples/v2/incident-teams/CreateIncidentTeam.rb +0 -17
- data/examples/v2/incident-teams/DeleteIncidentTeam.rb +0 -11
- data/examples/v2/incident-teams/GetIncidentTeam.rb +0 -11
- data/examples/v2/incident-teams/ListIncidentTeams.rb +0 -14
- data/examples/v2/incident-teams/UpdateIncidentTeam.rb +0 -21
- data/lib/datadog_api_client/v2/api/incident_teams_api.rb +0 -419
|
@@ -0,0 +1,212 @@
|
|
|
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
|
+
# Attributes for creating or updating a Synthetics downtime.
|
|
21
|
+
class SyntheticsDowntimeDataAttributesRequest
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# An optional description of the downtime.
|
|
25
|
+
attr_accessor :description
|
|
26
|
+
|
|
27
|
+
# Whether the downtime is enabled.
|
|
28
|
+
attr_reader :is_enabled
|
|
29
|
+
|
|
30
|
+
# The name of the downtime.
|
|
31
|
+
attr_reader :name
|
|
32
|
+
|
|
33
|
+
# List of tags associated with a Synthetics downtime.
|
|
34
|
+
attr_accessor :tags
|
|
35
|
+
|
|
36
|
+
# List of Synthetics test public IDs associated with a downtime.
|
|
37
|
+
attr_reader :test_ids
|
|
38
|
+
|
|
39
|
+
# List of time slots for a Synthetics downtime create or update request.
|
|
40
|
+
attr_reader :time_slots
|
|
41
|
+
|
|
42
|
+
attr_accessor :additional_properties
|
|
43
|
+
|
|
44
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
|
+
# @!visibility private
|
|
46
|
+
def self.attribute_map
|
|
47
|
+
{
|
|
48
|
+
:'description' => :'description',
|
|
49
|
+
:'is_enabled' => :'isEnabled',
|
|
50
|
+
:'name' => :'name',
|
|
51
|
+
:'tags' => :'tags',
|
|
52
|
+
:'test_ids' => :'testIds',
|
|
53
|
+
:'time_slots' => :'timeSlots'
|
|
54
|
+
}
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Attribute type mapping.
|
|
58
|
+
# @!visibility private
|
|
59
|
+
def self.openapi_types
|
|
60
|
+
{
|
|
61
|
+
:'description' => :'String',
|
|
62
|
+
:'is_enabled' => :'Boolean',
|
|
63
|
+
:'name' => :'String',
|
|
64
|
+
:'tags' => :'Array<String>',
|
|
65
|
+
:'test_ids' => :'Array<String>',
|
|
66
|
+
:'time_slots' => :'Array<SyntheticsDowntimeTimeSlotRequest>'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Initializes the object
|
|
71
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
72
|
+
# @!visibility private
|
|
73
|
+
def initialize(attributes = {})
|
|
74
|
+
if (!attributes.is_a?(Hash))
|
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsDowntimeDataAttributesRequest` initialize method"
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
self.additional_properties = {}
|
|
79
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
80
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
81
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
82
|
+
self.additional_properties[k.to_sym] = v
|
|
83
|
+
else
|
|
84
|
+
h[k.to_sym] = v
|
|
85
|
+
end
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'description')
|
|
89
|
+
self.description = attributes[:'description']
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'is_enabled')
|
|
93
|
+
self.is_enabled = attributes[:'is_enabled']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'name')
|
|
97
|
+
self.name = attributes[:'name']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'tags')
|
|
101
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
102
|
+
self.tags = value
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'test_ids')
|
|
107
|
+
if (value = attributes[:'test_ids']).is_a?(Array)
|
|
108
|
+
self.test_ids = value
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'time_slots')
|
|
113
|
+
if (value = attributes[:'time_slots']).is_a?(Array)
|
|
114
|
+
self.time_slots = value
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Check to see if the all the properties in the model are valid
|
|
120
|
+
# @return true if the model is valid
|
|
121
|
+
# @!visibility private
|
|
122
|
+
def valid?
|
|
123
|
+
return false if @is_enabled.nil?
|
|
124
|
+
return false if @name.nil?
|
|
125
|
+
return false if @test_ids.nil?
|
|
126
|
+
return false if @time_slots.nil?
|
|
127
|
+
true
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Custom attribute writer method with validation
|
|
131
|
+
# @param is_enabled [Object] Object to be assigned
|
|
132
|
+
# @!visibility private
|
|
133
|
+
def is_enabled=(is_enabled)
|
|
134
|
+
if is_enabled.nil?
|
|
135
|
+
fail ArgumentError, 'invalid value for "is_enabled", is_enabled cannot be nil.'
|
|
136
|
+
end
|
|
137
|
+
@is_enabled = is_enabled
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Custom attribute writer method with validation
|
|
141
|
+
# @param name [Object] Object to be assigned
|
|
142
|
+
# @!visibility private
|
|
143
|
+
def name=(name)
|
|
144
|
+
if name.nil?
|
|
145
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
146
|
+
end
|
|
147
|
+
@name = name
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Custom attribute writer method with validation
|
|
151
|
+
# @param test_ids [Object] Object to be assigned
|
|
152
|
+
# @!visibility private
|
|
153
|
+
def test_ids=(test_ids)
|
|
154
|
+
if test_ids.nil?
|
|
155
|
+
fail ArgumentError, 'invalid value for "test_ids", test_ids cannot be nil.'
|
|
156
|
+
end
|
|
157
|
+
@test_ids = test_ids
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Custom attribute writer method with validation
|
|
161
|
+
# @param time_slots [Object] Object to be assigned
|
|
162
|
+
# @!visibility private
|
|
163
|
+
def time_slots=(time_slots)
|
|
164
|
+
if time_slots.nil?
|
|
165
|
+
fail ArgumentError, 'invalid value for "time_slots", time_slots cannot be nil.'
|
|
166
|
+
end
|
|
167
|
+
@time_slots = time_slots
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
171
|
+
# @return [Hash] Returns the object in the form of hash
|
|
172
|
+
# @!visibility private
|
|
173
|
+
def to_hash
|
|
174
|
+
hash = {}
|
|
175
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
176
|
+
value = self.send(attr)
|
|
177
|
+
if value.nil?
|
|
178
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
179
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
hash[param] = _to_hash(value)
|
|
183
|
+
end
|
|
184
|
+
self.additional_properties.each_pair do |attr, value|
|
|
185
|
+
hash[attr] = value
|
|
186
|
+
end
|
|
187
|
+
hash
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Checks equality by comparing each attribute.
|
|
191
|
+
# @param o [Object] Object to be compared
|
|
192
|
+
# @!visibility private
|
|
193
|
+
def ==(o)
|
|
194
|
+
return true if self.equal?(o)
|
|
195
|
+
self.class == o.class &&
|
|
196
|
+
description == o.description &&
|
|
197
|
+
is_enabled == o.is_enabled &&
|
|
198
|
+
name == o.name &&
|
|
199
|
+
tags == o.tags &&
|
|
200
|
+
test_ids == o.test_ids &&
|
|
201
|
+
time_slots == o.time_slots &&
|
|
202
|
+
additional_properties == o.additional_properties
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Calculates hash code according to all attributes.
|
|
206
|
+
# @return [Integer] Hash code
|
|
207
|
+
# @!visibility private
|
|
208
|
+
def hash
|
|
209
|
+
[description, is_enabled, name, tags, test_ids, time_slots, additional_properties].hash
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
end
|
|
@@ -0,0 +1,360 @@
|
|
|
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
|
+
# Attributes of a Synthetics downtime response object.
|
|
21
|
+
class SyntheticsDowntimeDataAttributesResponse
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The timestamp when the downtime was created.
|
|
25
|
+
attr_reader :created_at
|
|
26
|
+
|
|
27
|
+
# The UUID of the user who created the downtime.
|
|
28
|
+
attr_reader :created_by
|
|
29
|
+
|
|
30
|
+
# The display name of the user who created the downtime.
|
|
31
|
+
attr_reader :created_by_name
|
|
32
|
+
|
|
33
|
+
# The description of the downtime.
|
|
34
|
+
attr_reader :description
|
|
35
|
+
|
|
36
|
+
# Whether the downtime is enabled.
|
|
37
|
+
attr_reader :is_enabled
|
|
38
|
+
|
|
39
|
+
# The name of the downtime.
|
|
40
|
+
attr_reader :name
|
|
41
|
+
|
|
42
|
+
# List of tags associated with a Synthetics downtime.
|
|
43
|
+
attr_reader :tags
|
|
44
|
+
|
|
45
|
+
# List of Synthetics test public IDs associated with a downtime.
|
|
46
|
+
attr_reader :test_ids
|
|
47
|
+
|
|
48
|
+
# List of time slots in a Synthetics downtime response.
|
|
49
|
+
attr_reader :time_slots
|
|
50
|
+
|
|
51
|
+
# The timestamp when the downtime was last updated.
|
|
52
|
+
attr_reader :updated_at
|
|
53
|
+
|
|
54
|
+
# The UUID of the user who last updated the downtime.
|
|
55
|
+
attr_reader :updated_by
|
|
56
|
+
|
|
57
|
+
# The display name of the user who last updated the downtime.
|
|
58
|
+
attr_reader :updated_by_name
|
|
59
|
+
|
|
60
|
+
attr_accessor :additional_properties
|
|
61
|
+
|
|
62
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
63
|
+
# @!visibility private
|
|
64
|
+
def self.attribute_map
|
|
65
|
+
{
|
|
66
|
+
:'created_at' => :'createdAt',
|
|
67
|
+
:'created_by' => :'createdBy',
|
|
68
|
+
:'created_by_name' => :'createdByName',
|
|
69
|
+
:'description' => :'description',
|
|
70
|
+
:'is_enabled' => :'isEnabled',
|
|
71
|
+
:'name' => :'name',
|
|
72
|
+
:'tags' => :'tags',
|
|
73
|
+
:'test_ids' => :'testIds',
|
|
74
|
+
:'time_slots' => :'timeSlots',
|
|
75
|
+
:'updated_at' => :'updatedAt',
|
|
76
|
+
:'updated_by' => :'updatedBy',
|
|
77
|
+
:'updated_by_name' => :'updatedByName'
|
|
78
|
+
}
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Attribute type mapping.
|
|
82
|
+
# @!visibility private
|
|
83
|
+
def self.openapi_types
|
|
84
|
+
{
|
|
85
|
+
:'created_at' => :'Time',
|
|
86
|
+
:'created_by' => :'String',
|
|
87
|
+
:'created_by_name' => :'String',
|
|
88
|
+
:'description' => :'String',
|
|
89
|
+
:'is_enabled' => :'Boolean',
|
|
90
|
+
:'name' => :'String',
|
|
91
|
+
:'tags' => :'Array<String>',
|
|
92
|
+
:'test_ids' => :'Array<String>',
|
|
93
|
+
:'time_slots' => :'Array<SyntheticsDowntimeTimeSlotResponse>',
|
|
94
|
+
:'updated_at' => :'Time',
|
|
95
|
+
:'updated_by' => :'String',
|
|
96
|
+
:'updated_by_name' => :'String'
|
|
97
|
+
}
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Initializes the object
|
|
101
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
102
|
+
# @!visibility private
|
|
103
|
+
def initialize(attributes = {})
|
|
104
|
+
if (!attributes.is_a?(Hash))
|
|
105
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsDowntimeDataAttributesResponse` initialize method"
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
self.additional_properties = {}
|
|
109
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
110
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
111
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
112
|
+
self.additional_properties[k.to_sym] = v
|
|
113
|
+
else
|
|
114
|
+
h[k.to_sym] = v
|
|
115
|
+
end
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'created_at')
|
|
119
|
+
self.created_at = attributes[:'created_at']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'created_by')
|
|
123
|
+
self.created_by = attributes[:'created_by']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'created_by_name')
|
|
127
|
+
self.created_by_name = attributes[:'created_by_name']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'description')
|
|
131
|
+
self.description = attributes[:'description']
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.key?(:'is_enabled')
|
|
135
|
+
self.is_enabled = attributes[:'is_enabled']
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'name')
|
|
139
|
+
self.name = attributes[:'name']
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if attributes.key?(:'tags')
|
|
143
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
144
|
+
self.tags = value
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if attributes.key?(:'test_ids')
|
|
149
|
+
if (value = attributes[:'test_ids']).is_a?(Array)
|
|
150
|
+
self.test_ids = value
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if attributes.key?(:'time_slots')
|
|
155
|
+
if (value = attributes[:'time_slots']).is_a?(Array)
|
|
156
|
+
self.time_slots = value
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if attributes.key?(:'updated_at')
|
|
161
|
+
self.updated_at = attributes[:'updated_at']
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if attributes.key?(:'updated_by')
|
|
165
|
+
self.updated_by = attributes[:'updated_by']
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.key?(:'updated_by_name')
|
|
169
|
+
self.updated_by_name = attributes[:'updated_by_name']
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Check to see if the all the properties in the model are valid
|
|
174
|
+
# @return true if the model is valid
|
|
175
|
+
# @!visibility private
|
|
176
|
+
def valid?
|
|
177
|
+
return false if @created_at.nil?
|
|
178
|
+
return false if @created_by.nil?
|
|
179
|
+
return false if @created_by_name.nil?
|
|
180
|
+
return false if @description.nil?
|
|
181
|
+
return false if @is_enabled.nil?
|
|
182
|
+
return false if @name.nil?
|
|
183
|
+
return false if @tags.nil?
|
|
184
|
+
return false if @test_ids.nil?
|
|
185
|
+
return false if @time_slots.nil?
|
|
186
|
+
return false if @updated_at.nil?
|
|
187
|
+
return false if @updated_by.nil?
|
|
188
|
+
return false if @updated_by_name.nil?
|
|
189
|
+
true
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Custom attribute writer method with validation
|
|
193
|
+
# @param created_at [Object] Object to be assigned
|
|
194
|
+
# @!visibility private
|
|
195
|
+
def created_at=(created_at)
|
|
196
|
+
if created_at.nil?
|
|
197
|
+
fail ArgumentError, 'invalid value for "created_at", created_at cannot be nil.'
|
|
198
|
+
end
|
|
199
|
+
@created_at = created_at
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Custom attribute writer method with validation
|
|
203
|
+
# @param created_by [Object] Object to be assigned
|
|
204
|
+
# @!visibility private
|
|
205
|
+
def created_by=(created_by)
|
|
206
|
+
if created_by.nil?
|
|
207
|
+
fail ArgumentError, 'invalid value for "created_by", created_by cannot be nil.'
|
|
208
|
+
end
|
|
209
|
+
@created_by = created_by
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# Custom attribute writer method with validation
|
|
213
|
+
# @param created_by_name [Object] Object to be assigned
|
|
214
|
+
# @!visibility private
|
|
215
|
+
def created_by_name=(created_by_name)
|
|
216
|
+
if created_by_name.nil?
|
|
217
|
+
fail ArgumentError, 'invalid value for "created_by_name", created_by_name cannot be nil.'
|
|
218
|
+
end
|
|
219
|
+
@created_by_name = created_by_name
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Custom attribute writer method with validation
|
|
223
|
+
# @param description [Object] Object to be assigned
|
|
224
|
+
# @!visibility private
|
|
225
|
+
def description=(description)
|
|
226
|
+
if description.nil?
|
|
227
|
+
fail ArgumentError, 'invalid value for "description", description cannot be nil.'
|
|
228
|
+
end
|
|
229
|
+
@description = description
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Custom attribute writer method with validation
|
|
233
|
+
# @param is_enabled [Object] Object to be assigned
|
|
234
|
+
# @!visibility private
|
|
235
|
+
def is_enabled=(is_enabled)
|
|
236
|
+
if is_enabled.nil?
|
|
237
|
+
fail ArgumentError, 'invalid value for "is_enabled", is_enabled cannot be nil.'
|
|
238
|
+
end
|
|
239
|
+
@is_enabled = is_enabled
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# Custom attribute writer method with validation
|
|
243
|
+
# @param name [Object] Object to be assigned
|
|
244
|
+
# @!visibility private
|
|
245
|
+
def name=(name)
|
|
246
|
+
if name.nil?
|
|
247
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
248
|
+
end
|
|
249
|
+
@name = name
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# Custom attribute writer method with validation
|
|
253
|
+
# @param tags [Object] Object to be assigned
|
|
254
|
+
# @!visibility private
|
|
255
|
+
def tags=(tags)
|
|
256
|
+
if tags.nil?
|
|
257
|
+
fail ArgumentError, 'invalid value for "tags", tags cannot be nil.'
|
|
258
|
+
end
|
|
259
|
+
@tags = tags
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Custom attribute writer method with validation
|
|
263
|
+
# @param test_ids [Object] Object to be assigned
|
|
264
|
+
# @!visibility private
|
|
265
|
+
def test_ids=(test_ids)
|
|
266
|
+
if test_ids.nil?
|
|
267
|
+
fail ArgumentError, 'invalid value for "test_ids", test_ids cannot be nil.'
|
|
268
|
+
end
|
|
269
|
+
@test_ids = test_ids
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# Custom attribute writer method with validation
|
|
273
|
+
# @param time_slots [Object] Object to be assigned
|
|
274
|
+
# @!visibility private
|
|
275
|
+
def time_slots=(time_slots)
|
|
276
|
+
if time_slots.nil?
|
|
277
|
+
fail ArgumentError, 'invalid value for "time_slots", time_slots cannot be nil.'
|
|
278
|
+
end
|
|
279
|
+
@time_slots = time_slots
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Custom attribute writer method with validation
|
|
283
|
+
# @param updated_at [Object] Object to be assigned
|
|
284
|
+
# @!visibility private
|
|
285
|
+
def updated_at=(updated_at)
|
|
286
|
+
if updated_at.nil?
|
|
287
|
+
fail ArgumentError, 'invalid value for "updated_at", updated_at cannot be nil.'
|
|
288
|
+
end
|
|
289
|
+
@updated_at = updated_at
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
# Custom attribute writer method with validation
|
|
293
|
+
# @param updated_by [Object] Object to be assigned
|
|
294
|
+
# @!visibility private
|
|
295
|
+
def updated_by=(updated_by)
|
|
296
|
+
if updated_by.nil?
|
|
297
|
+
fail ArgumentError, 'invalid value for "updated_by", updated_by cannot be nil.'
|
|
298
|
+
end
|
|
299
|
+
@updated_by = updated_by
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
# Custom attribute writer method with validation
|
|
303
|
+
# @param updated_by_name [Object] Object to be assigned
|
|
304
|
+
# @!visibility private
|
|
305
|
+
def updated_by_name=(updated_by_name)
|
|
306
|
+
if updated_by_name.nil?
|
|
307
|
+
fail ArgumentError, 'invalid value for "updated_by_name", updated_by_name cannot be nil.'
|
|
308
|
+
end
|
|
309
|
+
@updated_by_name = updated_by_name
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
313
|
+
# @return [Hash] Returns the object in the form of hash
|
|
314
|
+
# @!visibility private
|
|
315
|
+
def to_hash
|
|
316
|
+
hash = {}
|
|
317
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
318
|
+
value = self.send(attr)
|
|
319
|
+
if value.nil?
|
|
320
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
321
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
hash[param] = _to_hash(value)
|
|
325
|
+
end
|
|
326
|
+
self.additional_properties.each_pair do |attr, value|
|
|
327
|
+
hash[attr] = value
|
|
328
|
+
end
|
|
329
|
+
hash
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# Checks equality by comparing each attribute.
|
|
333
|
+
# @param o [Object] Object to be compared
|
|
334
|
+
# @!visibility private
|
|
335
|
+
def ==(o)
|
|
336
|
+
return true if self.equal?(o)
|
|
337
|
+
self.class == o.class &&
|
|
338
|
+
created_at == o.created_at &&
|
|
339
|
+
created_by == o.created_by &&
|
|
340
|
+
created_by_name == o.created_by_name &&
|
|
341
|
+
description == o.description &&
|
|
342
|
+
is_enabled == o.is_enabled &&
|
|
343
|
+
name == o.name &&
|
|
344
|
+
tags == o.tags &&
|
|
345
|
+
test_ids == o.test_ids &&
|
|
346
|
+
time_slots == o.time_slots &&
|
|
347
|
+
updated_at == o.updated_at &&
|
|
348
|
+
updated_by == o.updated_by &&
|
|
349
|
+
updated_by_name == o.updated_by_name &&
|
|
350
|
+
additional_properties == o.additional_properties
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
# Calculates hash code according to all attributes.
|
|
354
|
+
# @return [Integer] Hash code
|
|
355
|
+
# @!visibility private
|
|
356
|
+
def hash
|
|
357
|
+
[created_at, created_by, created_by_name, description, is_enabled, name, tags, test_ids, time_slots, updated_at, updated_by, updated_by_name, additional_properties].hash
|
|
358
|
+
end
|
|
359
|
+
end
|
|
360
|
+
end
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# The data object for a Synthetics downtime create or update request.
|
|
21
|
+
class SyntheticsDowntimeDataRequest
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Attributes for creating or updating a Synthetics downtime.
|
|
25
|
+
attr_reader :attributes
|
|
26
|
+
|
|
27
|
+
# The resource type for a Synthetics downtime.
|
|
28
|
+
attr_reader :type
|
|
29
|
+
|
|
30
|
+
attr_accessor :additional_properties
|
|
31
|
+
|
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
|
+
# @!visibility private
|
|
34
|
+
def self.attribute_map
|
|
35
|
+
{
|
|
36
|
+
:'attributes' => :'attributes',
|
|
37
|
+
:'type' => :'type'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'attributes' => :'SyntheticsDowntimeDataAttributesRequest',
|
|
46
|
+
:'type' => :'SyntheticsDowntimeResourceType'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
52
|
+
# @!visibility private
|
|
53
|
+
def initialize(attributes = {})
|
|
54
|
+
if (!attributes.is_a?(Hash))
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsDowntimeDataRequest` initialize method"
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
self.additional_properties = {}
|
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
62
|
+
self.additional_properties[k.to_sym] = v
|
|
63
|
+
else
|
|
64
|
+
h[k.to_sym] = v
|
|
65
|
+
end
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'attributes')
|
|
69
|
+
self.attributes = attributes[:'attributes']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'type')
|
|
73
|
+
self.type = attributes[:'type']
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Check to see if the all the properties in the model are valid
|
|
78
|
+
# @return true if the model is valid
|
|
79
|
+
# @!visibility private
|
|
80
|
+
def valid?
|
|
81
|
+
return false if @attributes.nil?
|
|
82
|
+
return false if @type.nil?
|
|
83
|
+
true
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Custom attribute writer method with validation
|
|
87
|
+
# @param attributes [Object] Object to be assigned
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def attributes=(attributes)
|
|
90
|
+
if attributes.nil?
|
|
91
|
+
fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
|
|
92
|
+
end
|
|
93
|
+
@attributes = attributes
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Custom attribute writer method with validation
|
|
97
|
+
# @param type [Object] Object to be assigned
|
|
98
|
+
# @!visibility private
|
|
99
|
+
def type=(type)
|
|
100
|
+
if type.nil?
|
|
101
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
102
|
+
end
|
|
103
|
+
@type = type
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
107
|
+
# @return [Hash] Returns the object in the form of hash
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def to_hash
|
|
110
|
+
hash = {}
|
|
111
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
112
|
+
value = self.send(attr)
|
|
113
|
+
if value.nil?
|
|
114
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
115
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
hash[param] = _to_hash(value)
|
|
119
|
+
end
|
|
120
|
+
self.additional_properties.each_pair do |attr, value|
|
|
121
|
+
hash[attr] = value
|
|
122
|
+
end
|
|
123
|
+
hash
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Checks equality by comparing each attribute.
|
|
127
|
+
# @param o [Object] Object to be compared
|
|
128
|
+
# @!visibility private
|
|
129
|
+
def ==(o)
|
|
130
|
+
return true if self.equal?(o)
|
|
131
|
+
self.class == o.class &&
|
|
132
|
+
attributes == o.attributes &&
|
|
133
|
+
type == o.type &&
|
|
134
|
+
additional_properties == o.additional_properties
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Calculates hash code according to all attributes.
|
|
138
|
+
# @return [Integer] Hash code
|
|
139
|
+
# @!visibility private
|
|
140
|
+
def hash
|
|
141
|
+
[attributes, type, additional_properties].hash
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|