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,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 body for creating or updating a cloud inventory sync configuration.
|
|
21
|
+
class UpsertCloudInventorySyncConfigRequest
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Storage Management configuration data for the create or update request.
|
|
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' => :'UpsertCloudInventorySyncConfigRequestData'
|
|
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::UpsertCloudInventorySyncConfigRequest` 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
|
data/lib/datadog_api_client/v2/models/upsert_cloud_inventory_sync_config_request_attributes.rb
ADDED
|
@@ -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
|
+
# Settings for the cloud provider specified in `data.id`. Include only the matching provider object (`aws`, `gcp`, or `azure`).
|
|
21
|
+
class UpsertCloudInventorySyncConfigRequestAttributes
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# AWS settings for the S3 bucket Storage Management reads inventory reports from.
|
|
25
|
+
attr_accessor :aws
|
|
26
|
+
|
|
27
|
+
# Azure settings for the storage account and container with inventory data.
|
|
28
|
+
attr_accessor :azure
|
|
29
|
+
|
|
30
|
+
# GCP settings for buckets involved in inventory reporting.
|
|
31
|
+
attr_accessor :gcp
|
|
32
|
+
|
|
33
|
+
attr_accessor :additional_properties
|
|
34
|
+
|
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
|
+
# @!visibility private
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'aws' => :'aws',
|
|
40
|
+
:'azure' => :'azure',
|
|
41
|
+
:'gcp' => :'gcp'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
# @!visibility private
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'aws' => :'CloudInventorySyncConfigAWSRequestAttributes',
|
|
50
|
+
:'azure' => :'CloudInventorySyncConfigAzureRequestAttributes',
|
|
51
|
+
:'gcp' => :'CloudInventorySyncConfigGCPRequestAttributes'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
57
|
+
# @!visibility private
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UpsertCloudInventorySyncConfigRequestAttributes` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
self.additional_properties = {}
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
+
self.additional_properties[k.to_sym] = v
|
|
68
|
+
else
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
end
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'aws')
|
|
74
|
+
self.aws = attributes[:'aws']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'azure')
|
|
78
|
+
self.azure = attributes[:'azure']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'gcp')
|
|
82
|
+
self.gcp = attributes[:'gcp']
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
87
|
+
# @return [Hash] Returns the object in the form of hash
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def to_hash
|
|
90
|
+
hash = {}
|
|
91
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
92
|
+
value = self.send(attr)
|
|
93
|
+
if value.nil?
|
|
94
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
95
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
hash[param] = _to_hash(value)
|
|
99
|
+
end
|
|
100
|
+
self.additional_properties.each_pair do |attr, value|
|
|
101
|
+
hash[attr] = value
|
|
102
|
+
end
|
|
103
|
+
hash
|
|
104
|
+
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
|
+
aws == o.aws &&
|
|
113
|
+
azure == o.azure &&
|
|
114
|
+
gcp == o.gcp &&
|
|
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
|
+
[aws, azure, gcp, additional_properties].hash
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
@@ -0,0 +1,165 @@
|
|
|
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
|
+
# Storage Management configuration data for the create or update request.
|
|
21
|
+
class UpsertCloudInventorySyncConfigRequestData
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Settings for the cloud provider specified in `data.id`. Include only the matching provider object (`aws`, `gcp`, or `azure`).
|
|
25
|
+
attr_reader :attributes
|
|
26
|
+
|
|
27
|
+
# Cloud provider for this sync configuration (`aws`, `gcp`, or `azure`). For requests, must match the provider block supplied under `attributes`.
|
|
28
|
+
attr_reader :id
|
|
29
|
+
|
|
30
|
+
# Always `cloud_provider`.
|
|
31
|
+
attr_reader :type
|
|
32
|
+
|
|
33
|
+
attr_accessor :additional_properties
|
|
34
|
+
|
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
|
+
# @!visibility private
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'attributes' => :'attributes',
|
|
40
|
+
:'id' => :'id',
|
|
41
|
+
:'type' => :'type'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
# @!visibility private
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'attributes' => :'UpsertCloudInventorySyncConfigRequestAttributes',
|
|
50
|
+
:'id' => :'CloudInventoryCloudProviderId',
|
|
51
|
+
:'type' => :'CloudInventoryCloudProviderRequestType'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
57
|
+
# @!visibility private
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::UpsertCloudInventorySyncConfigRequestData` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
self.additional_properties = {}
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
+
self.additional_properties[k.to_sym] = v
|
|
68
|
+
else
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
end
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'attributes')
|
|
74
|
+
self.attributes = attributes[:'attributes']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'id')
|
|
78
|
+
self.id = attributes[:'id']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'type')
|
|
82
|
+
self.type = attributes[:'type']
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Check to see if the all the properties in the model are valid
|
|
87
|
+
# @return true if the model is valid
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def valid?
|
|
90
|
+
return false if @attributes.nil?
|
|
91
|
+
return false if @id.nil?
|
|
92
|
+
return false if @type.nil?
|
|
93
|
+
true
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Custom attribute writer method with validation
|
|
97
|
+
# @param attributes [Object] Object to be assigned
|
|
98
|
+
# @!visibility private
|
|
99
|
+
def attributes=(attributes)
|
|
100
|
+
if attributes.nil?
|
|
101
|
+
fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
|
|
102
|
+
end
|
|
103
|
+
@attributes = attributes
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Custom attribute writer method with validation
|
|
107
|
+
# @param id [Object] Object to be assigned
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def id=(id)
|
|
110
|
+
if id.nil?
|
|
111
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
|
112
|
+
end
|
|
113
|
+
@id = id
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Custom attribute writer method with validation
|
|
117
|
+
# @param type [Object] Object to be assigned
|
|
118
|
+
# @!visibility private
|
|
119
|
+
def type=(type)
|
|
120
|
+
if type.nil?
|
|
121
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
122
|
+
end
|
|
123
|
+
@type = type
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
127
|
+
# @return [Hash] Returns the object in the form of hash
|
|
128
|
+
# @!visibility private
|
|
129
|
+
def to_hash
|
|
130
|
+
hash = {}
|
|
131
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
132
|
+
value = self.send(attr)
|
|
133
|
+
if value.nil?
|
|
134
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
135
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
hash[param] = _to_hash(value)
|
|
139
|
+
end
|
|
140
|
+
self.additional_properties.each_pair do |attr, value|
|
|
141
|
+
hash[attr] = value
|
|
142
|
+
end
|
|
143
|
+
hash
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Checks equality by comparing each attribute.
|
|
147
|
+
# @param o [Object] Object to be compared
|
|
148
|
+
# @!visibility private
|
|
149
|
+
def ==(o)
|
|
150
|
+
return true if self.equal?(o)
|
|
151
|
+
self.class == o.class &&
|
|
152
|
+
attributes == o.attributes &&
|
|
153
|
+
id == o.id &&
|
|
154
|
+
type == o.type &&
|
|
155
|
+
additional_properties == o.additional_properties
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Calculates hash code according to all attributes.
|
|
159
|
+
# @return [Integer] Hash code
|
|
160
|
+
# @!visibility private
|
|
161
|
+
def hash
|
|
162
|
+
[attributes, id, type, additional_properties].hash
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
end
|
|
@@ -21,46 +21,47 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class UserAttributes
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# The ISO 8601 timestamp of when the user account was created.
|
|
25
25
|
attr_accessor :created_at
|
|
26
26
|
|
|
27
|
-
# Whether the user is
|
|
27
|
+
# Whether the user account is deactivated. Disabled users cannot log in.
|
|
28
28
|
attr_accessor :disabled
|
|
29
29
|
|
|
30
|
-
#
|
|
30
|
+
# The email address of the user, used for login and notifications.
|
|
31
31
|
attr_accessor :email
|
|
32
32
|
|
|
33
|
-
#
|
|
33
|
+
# The unique handle (username) of the user, typically matching their email prefix.
|
|
34
34
|
attr_accessor :handle
|
|
35
35
|
|
|
36
|
-
# URL of the user's icon.
|
|
36
|
+
# URL of the user's profile icon, typically a Gravatar URL derived from the email address.
|
|
37
37
|
attr_accessor :icon
|
|
38
38
|
|
|
39
|
-
# The
|
|
39
|
+
# The ISO 8601 timestamp of the user's most recent login, or null if the user has never logged in.
|
|
40
40
|
attr_accessor :last_login_time
|
|
41
41
|
|
|
42
|
-
#
|
|
42
|
+
# Whether multi-factor authentication (MFA) is enabled for the user's account.
|
|
43
43
|
attr_accessor :mfa_enabled
|
|
44
44
|
|
|
45
|
-
#
|
|
45
|
+
# The ISO 8601 timestamp of when the user account was last modified.
|
|
46
46
|
attr_accessor :modified_at
|
|
47
47
|
|
|
48
|
-
#
|
|
48
|
+
# The full display name of the user as shown in the Datadog UI.
|
|
49
49
|
attr_accessor :name
|
|
50
50
|
|
|
51
|
-
# Whether
|
|
51
|
+
# Whether this is a service account rather than a human user.
|
|
52
|
+
# Service accounts are used for programmatic API access.
|
|
52
53
|
attr_accessor :service_account
|
|
53
54
|
|
|
54
|
-
#
|
|
55
|
+
# The current status of the user account (for example, `Active`, `Pending`, or `Disabled`).
|
|
55
56
|
attr_accessor :status
|
|
56
57
|
|
|
57
|
-
#
|
|
58
|
+
# The job title of the user (for example, "Senior Engineer" or "Product Manager").
|
|
58
59
|
attr_accessor :title
|
|
59
60
|
|
|
60
|
-
# UUID of the user.
|
|
61
|
+
# The globally unique identifier (UUID) of the user.
|
|
61
62
|
attr_accessor :uuid
|
|
62
63
|
|
|
63
|
-
# Whether the user
|
|
64
|
+
# Whether the user's email address has been verified.
|
|
64
65
|
attr_accessor :verified
|
|
65
66
|
|
|
66
67
|
attr_accessor :additional_properties
|
|
@@ -21,15 +21,21 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class UserUpdateAttributes
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# When set to `true`, the user is deactivated and can no longer log in.
|
|
25
|
+
# When `false`, the user is active.
|
|
25
26
|
attr_accessor :disabled
|
|
26
27
|
|
|
27
|
-
# The email of the user.
|
|
28
|
+
# The email address of the user, used for login and notifications.
|
|
29
|
+
# Must be a valid email format.
|
|
28
30
|
attr_accessor :email
|
|
29
31
|
|
|
30
|
-
# The name of the user.
|
|
32
|
+
# The full display name of the user as shown in the Datadog UI.
|
|
33
|
+
# Maximum 55 characters, cannot contain `<` or `>`.
|
|
31
34
|
attr_accessor :name
|
|
32
35
|
|
|
36
|
+
# The job title of the user (for example, "Senior Engineer" or "Product Manager").
|
|
37
|
+
attr_accessor :title
|
|
38
|
+
|
|
33
39
|
attr_accessor :additional_properties
|
|
34
40
|
|
|
35
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -38,7 +44,8 @@ module DatadogAPIClient::V2
|
|
|
38
44
|
{
|
|
39
45
|
:'disabled' => :'disabled',
|
|
40
46
|
:'email' => :'email',
|
|
41
|
-
:'name' => :'name'
|
|
47
|
+
:'name' => :'name',
|
|
48
|
+
:'title' => :'title'
|
|
42
49
|
}
|
|
43
50
|
end
|
|
44
51
|
|
|
@@ -48,10 +55,19 @@ module DatadogAPIClient::V2
|
|
|
48
55
|
{
|
|
49
56
|
:'disabled' => :'Boolean',
|
|
50
57
|
:'email' => :'String',
|
|
51
|
-
:'name' => :'String'
|
|
58
|
+
:'name' => :'String',
|
|
59
|
+
:'title' => :'String'
|
|
52
60
|
}
|
|
53
61
|
end
|
|
54
62
|
|
|
63
|
+
# List of attributes with nullable: true
|
|
64
|
+
# @!visibility private
|
|
65
|
+
def self.openapi_nullable
|
|
66
|
+
Set.new([
|
|
67
|
+
:'title',
|
|
68
|
+
])
|
|
69
|
+
end
|
|
70
|
+
|
|
55
71
|
# Initializes the object
|
|
56
72
|
# @param attributes [Hash] Model attributes in the form of hash
|
|
57
73
|
# @!visibility private
|
|
@@ -81,6 +97,10 @@ module DatadogAPIClient::V2
|
|
|
81
97
|
if attributes.key?(:'name')
|
|
82
98
|
self.name = attributes[:'name']
|
|
83
99
|
end
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'title')
|
|
102
|
+
self.title = attributes[:'title']
|
|
103
|
+
end
|
|
84
104
|
end
|
|
85
105
|
|
|
86
106
|
# Returns the object in the form of hash, with additionalProperties support.
|
|
@@ -112,6 +132,7 @@ module DatadogAPIClient::V2
|
|
|
112
132
|
disabled == o.disabled &&
|
|
113
133
|
email == o.email &&
|
|
114
134
|
name == o.name &&
|
|
135
|
+
title == o.title &&
|
|
115
136
|
additional_properties == o.additional_properties
|
|
116
137
|
end
|
|
117
138
|
|
|
@@ -119,7 +140,7 @@ module DatadogAPIClient::V2
|
|
|
119
140
|
# @return [Integer] Hash code
|
|
120
141
|
# @!visibility private
|
|
121
142
|
def hash
|
|
122
|
-
[disabled, email, name, additional_properties].hash
|
|
143
|
+
[disabled, email, name, title, additional_properties].hash
|
|
123
144
|
end
|
|
124
145
|
end
|
|
125
146
|
end
|
|
@@ -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
|
+
# Response object for the API and application key validation status check.
|
|
21
|
+
class ValidateAPIKeyResponse
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Status of the validation. Always `ok` when both the API key and the application key are valid.
|
|
25
|
+
attr_reader :status
|
|
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
|
+
:'status' => :'status'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'status' => :'ValidateAPIKeyStatus'
|
|
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::ValidateAPIKeyResponse` 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?(:'status')
|
|
64
|
+
self.status = attributes[:'status']
|
|
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 @status.nil?
|
|
73
|
+
true
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Custom attribute writer method with validation
|
|
77
|
+
# @param status [Object] Object to be assigned
|
|
78
|
+
# @!visibility private
|
|
79
|
+
def status=(status)
|
|
80
|
+
if status.nil?
|
|
81
|
+
fail ArgumentError, 'invalid value for "status", status cannot be nil.'
|
|
82
|
+
end
|
|
83
|
+
@status = status
|
|
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
|
+
status == o.status &&
|
|
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
|
+
[status, additional_properties].hash
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|