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,166 @@
|
|
|
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 object for creating a web integration account.
|
|
21
|
+
class WebIntegrationAccountCreateRequestAttributes
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# A human-readable name for the account. Must be unique among accounts of the same integration.
|
|
25
|
+
attr_reader :name
|
|
26
|
+
|
|
27
|
+
# Integration-specific secrets. The shape of this object varies by integration. Secrets
|
|
28
|
+
# are write-only and never returned by the API.
|
|
29
|
+
attr_reader :secrets
|
|
30
|
+
|
|
31
|
+
# Integration-specific settings. The shape of this object varies by integration.
|
|
32
|
+
attr_reader :settings
|
|
33
|
+
|
|
34
|
+
attr_accessor :additional_properties
|
|
35
|
+
|
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
|
+
# @!visibility private
|
|
38
|
+
def self.attribute_map
|
|
39
|
+
{
|
|
40
|
+
:'name' => :'name',
|
|
41
|
+
:'secrets' => :'secrets',
|
|
42
|
+
:'settings' => :'settings'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Attribute type mapping.
|
|
47
|
+
# @!visibility private
|
|
48
|
+
def self.openapi_types
|
|
49
|
+
{
|
|
50
|
+
:'name' => :'String',
|
|
51
|
+
:'secrets' => :'Hash<String, Object>',
|
|
52
|
+
:'settings' => :'Hash<String, Object>'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Initializes the object
|
|
57
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
58
|
+
# @!visibility private
|
|
59
|
+
def initialize(attributes = {})
|
|
60
|
+
if (!attributes.is_a?(Hash))
|
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::WebIntegrationAccountCreateRequestAttributes` initialize method"
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
self.additional_properties = {}
|
|
65
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
67
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
68
|
+
self.additional_properties[k.to_sym] = v
|
|
69
|
+
else
|
|
70
|
+
h[k.to_sym] = v
|
|
71
|
+
end
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'name')
|
|
75
|
+
self.name = attributes[:'name']
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'secrets')
|
|
79
|
+
self.secrets = attributes[:'secrets']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'settings')
|
|
83
|
+
self.settings = attributes[:'settings']
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Check to see if the all the properties in the model are valid
|
|
88
|
+
# @return true if the model is valid
|
|
89
|
+
# @!visibility private
|
|
90
|
+
def valid?
|
|
91
|
+
return false if @name.nil?
|
|
92
|
+
return false if @secrets.nil?
|
|
93
|
+
return false if @settings.nil?
|
|
94
|
+
true
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Custom attribute writer method with validation
|
|
98
|
+
# @param name [Object] Object to be assigned
|
|
99
|
+
# @!visibility private
|
|
100
|
+
def name=(name)
|
|
101
|
+
if name.nil?
|
|
102
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
103
|
+
end
|
|
104
|
+
@name = name
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Custom attribute writer method with validation
|
|
108
|
+
# @param secrets [Object] Object to be assigned
|
|
109
|
+
# @!visibility private
|
|
110
|
+
def secrets=(secrets)
|
|
111
|
+
if secrets.nil?
|
|
112
|
+
fail ArgumentError, 'invalid value for "secrets", secrets cannot be nil.'
|
|
113
|
+
end
|
|
114
|
+
@secrets = secrets
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Custom attribute writer method with validation
|
|
118
|
+
# @param settings [Object] Object to be assigned
|
|
119
|
+
# @!visibility private
|
|
120
|
+
def settings=(settings)
|
|
121
|
+
if settings.nil?
|
|
122
|
+
fail ArgumentError, 'invalid value for "settings", settings cannot be nil.'
|
|
123
|
+
end
|
|
124
|
+
@settings = settings
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
128
|
+
# @return [Hash] Returns the object in the form of hash
|
|
129
|
+
# @!visibility private
|
|
130
|
+
def to_hash
|
|
131
|
+
hash = {}
|
|
132
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
133
|
+
value = self.send(attr)
|
|
134
|
+
if value.nil?
|
|
135
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
136
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
hash[param] = _to_hash(value)
|
|
140
|
+
end
|
|
141
|
+
self.additional_properties.each_pair do |attr, value|
|
|
142
|
+
hash[attr] = value
|
|
143
|
+
end
|
|
144
|
+
hash
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Checks equality by comparing each attribute.
|
|
148
|
+
# @param o [Object] Object to be compared
|
|
149
|
+
# @!visibility private
|
|
150
|
+
def ==(o)
|
|
151
|
+
return true if self.equal?(o)
|
|
152
|
+
self.class == o.class &&
|
|
153
|
+
name == o.name &&
|
|
154
|
+
secrets == o.secrets &&
|
|
155
|
+
settings == o.settings &&
|
|
156
|
+
additional_properties == o.additional_properties
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Calculates hash code according to all attributes.
|
|
160
|
+
# @return [Integer] Hash code
|
|
161
|
+
# @!visibility private
|
|
162
|
+
def hash
|
|
163
|
+
[name, secrets, settings, additional_properties].hash
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
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
|
+
# Data object for creating a web integration account.
|
|
21
|
+
class WebIntegrationAccountCreateRequestData
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Attributes object for creating a web integration account.
|
|
25
|
+
attr_reader :attributes
|
|
26
|
+
|
|
27
|
+
# Account resource type.
|
|
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' => :'WebIntegrationAccountCreateRequestAttributes',
|
|
46
|
+
:'type' => :'WebIntegrationAccountType'
|
|
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::WebIntegrationAccountCreateRequestData` 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
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# The expected response schema when getting a single web integration account.
|
|
21
|
+
class WebIntegrationAccountResponse
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Data object of a web integration account.
|
|
25
|
+
attr_accessor :data
|
|
26
|
+
|
|
27
|
+
attr_accessor :additional_properties
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
# @!visibility private
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'data' => :'data'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'data' => :'WebIntegrationAccountResponseData'
|
|
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::WebIntegrationAccountResponse` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
self.additional_properties = {}
|
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
+
self.additional_properties[k.to_sym] = v
|
|
58
|
+
else
|
|
59
|
+
h[k.to_sym] = v
|
|
60
|
+
end
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'data')
|
|
64
|
+
self.data = attributes[:'data']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
69
|
+
# @return [Hash] Returns the object in the form of hash
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def to_hash
|
|
72
|
+
hash = {}
|
|
73
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
74
|
+
value = self.send(attr)
|
|
75
|
+
if value.nil?
|
|
76
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
77
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
hash[param] = _to_hash(value)
|
|
81
|
+
end
|
|
82
|
+
self.additional_properties.each_pair do |attr, value|
|
|
83
|
+
hash[attr] = value
|
|
84
|
+
end
|
|
85
|
+
hash
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param o [Object] Object to be compared
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
data == o.data &&
|
|
95
|
+
additional_properties == o.additional_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Calculates hash code according to all attributes.
|
|
99
|
+
# @return [Integer] Hash code
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def hash
|
|
102
|
+
[data, additional_properties].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -17,20 +17,24 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
#
|
|
21
|
-
class
|
|
20
|
+
# Attributes object of a web integration account. Secrets are never returned.
|
|
21
|
+
class WebIntegrationAccountResponseAttributes
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# A human-readable name for the account.
|
|
25
25
|
attr_reader :name
|
|
26
26
|
|
|
27
|
+
# Integration-specific settings. The shape of this object varies by integration.
|
|
28
|
+
attr_accessor :settings
|
|
29
|
+
|
|
27
30
|
attr_accessor :additional_properties
|
|
28
31
|
|
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
33
|
# @!visibility private
|
|
31
34
|
def self.attribute_map
|
|
32
35
|
{
|
|
33
|
-
:'name' => :'name'
|
|
36
|
+
:'name' => :'name',
|
|
37
|
+
:'settings' => :'settings'
|
|
34
38
|
}
|
|
35
39
|
end
|
|
36
40
|
|
|
@@ -38,7 +42,8 @@ module DatadogAPIClient::V2
|
|
|
38
42
|
# @!visibility private
|
|
39
43
|
def self.openapi_types
|
|
40
44
|
{
|
|
41
|
-
:'name' => :'String'
|
|
45
|
+
:'name' => :'String',
|
|
46
|
+
:'settings' => :'Hash<String, Object>'
|
|
42
47
|
}
|
|
43
48
|
end
|
|
44
49
|
|
|
@@ -47,7 +52,7 @@ module DatadogAPIClient::V2
|
|
|
47
52
|
# @!visibility private
|
|
48
53
|
def initialize(attributes = {})
|
|
49
54
|
if (!attributes.is_a?(Hash))
|
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::WebIntegrationAccountResponseAttributes` initialize method"
|
|
51
56
|
end
|
|
52
57
|
|
|
53
58
|
self.additional_properties = {}
|
|
@@ -63,6 +68,10 @@ module DatadogAPIClient::V2
|
|
|
63
68
|
if attributes.key?(:'name')
|
|
64
69
|
self.name = attributes[:'name']
|
|
65
70
|
end
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'settings')
|
|
73
|
+
self.settings = attributes[:'settings']
|
|
74
|
+
end
|
|
66
75
|
end
|
|
67
76
|
|
|
68
77
|
# Check to see if the all the properties in the model are valid
|
|
@@ -110,6 +119,7 @@ module DatadogAPIClient::V2
|
|
|
110
119
|
return true if self.equal?(o)
|
|
111
120
|
self.class == o.class &&
|
|
112
121
|
name == o.name &&
|
|
122
|
+
settings == o.settings &&
|
|
113
123
|
additional_properties == o.additional_properties
|
|
114
124
|
end
|
|
115
125
|
|
|
@@ -117,7 +127,7 @@ module DatadogAPIClient::V2
|
|
|
117
127
|
# @return [Integer] Hash code
|
|
118
128
|
# @!visibility private
|
|
119
129
|
def hash
|
|
120
|
-
[name, additional_properties].hash
|
|
130
|
+
[name, settings, additional_properties].hash
|
|
121
131
|
end
|
|
122
132
|
end
|
|
123
133
|
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
|
+
# Data object of a web integration account.
|
|
21
|
+
class WebIntegrationAccountResponseData
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Attributes object of a web integration account. Secrets are never returned.
|
|
25
|
+
attr_reader :attributes
|
|
26
|
+
|
|
27
|
+
# The unique identifier of the web integration account.
|
|
28
|
+
attr_reader :id
|
|
29
|
+
|
|
30
|
+
# Account resource type.
|
|
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' => :'WebIntegrationAccountResponseAttributes',
|
|
50
|
+
:'id' => :'String',
|
|
51
|
+
:'type' => :'WebIntegrationAccountType'
|
|
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::WebIntegrationAccountResponseData` 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
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# Account resource type.
|
|
21
|
+
class WebIntegrationAccountType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
ACCOUNT = "Account".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|