datadog_api_client 2.29.1 → 2.30.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/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +591 -464
- data/.generator/schemas/v2/openapi.yaml +4175 -744
- data/.github/CODEOWNERS +5 -5
- data/.github/workflows/docs.yml +2 -2
- data/.github/workflows/prepare_release.yml +1 -1
- data/.github/workflows/test.yml +4 -1
- data/CHANGELOG.md +42 -0
- data/Gemfile +1 -1
- data/LICENSE-3rdparty.csv +1 -1
- data/RELEASING.md +1 -1
- data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +9 -6
- data/examples/v1/azure-integration/UpdateAzureIntegration.rb +0 -6
- data/examples/v1/logs-pipelines/CreateLogsPipeline.rb +1 -0
- data/examples/v1/logs-pipelines/UpdateLogsPipeline.rb +1 -0
- data/examples/v1/monitors/CreateMonitor_1303514967.rb +32 -0
- data/examples/v1/monitors/ListMonitors.rb +1 -1
- data/examples/v1/monitors/{ListMonitors_3448441939.rb → ListMonitors_2154432960.rb} +1 -1
- data/examples/v1/monitors/{ListMonitors_2966492814.rb → ListMonitors_463213563.rb} +1 -1
- data/examples/v2/action-connection/CreateActionConnection.rb +22 -0
- data/examples/v2/action-connection/DeleteActionConnection.rb +5 -0
- data/examples/v2/action-connection/DeleteActionConnection_2142905164.rb +8 -0
- data/examples/v2/action-connection/GetActionConnection.rb +5 -0
- data/examples/v2/action-connection/UpdateActionConnection.rb +22 -0
- data/examples/v2/agentless-scanning/ListAwsScanOptions.rb +5 -0
- data/examples/v2/{apps → app-builder}/CreateApp.rb +4 -4
- data/examples/v2/{apps → app-builder}/DeleteApp.rb +1 -1
- data/examples/v2/{apps → app-builder}/DeleteApps.rb +2 -2
- data/examples/v2/{apps → app-builder}/GetApp.rb +1 -1
- data/examples/v2/{apps → app-builder}/ListApps.rb +1 -1
- data/examples/v2/app-builder/PublishApp.rb +11 -0
- data/examples/v2/app-builder/UnpublishApp.rb +11 -0
- data/examples/v2/{apps → app-builder}/UpdateApp.rb +2 -2
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_819339921.rb +29 -0
- data/examples/v2/csm-coverage-analysis/GetCSMCloudAccountsCoverageAnalysis.rb +5 -0
- data/examples/v2/csm-coverage-analysis/GetCSMHostsAndContainersCoverageAnalysis.rb +5 -0
- data/examples/v2/csm-coverage-analysis/GetCSMServerlessCoverageAnalysis.rb +5 -0
- data/examples/v2/data-deletion/CreateDataDeletionRequest.rb +1 -0
- data/examples/v2/events/CreateEvent.rb +1 -1
- data/examples/v2/logs/ListLogs.rb +12 -6
- data/examples/v2/logs/ListLogsGet.rb +1 -1
- data/examples/v2/logs/ListLogsGet_175182691.rb +5 -0
- data/examples/v2/logs/ListLogs_3400928236.rb +23 -0
- data/examples/v2/logs/ListLogs_534975433.rb +29 -0
- data/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle.rb +15 -0
- data/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.rb +15 -0
- data/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle_107549514.rb +8 -0
- data/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle_3421443805.rb +8 -0
- data/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles.rb +5 -0
- data/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles_620762083.rb +5 -0
- data/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle.rb +15 -0
- data/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle_163189594.rb +18 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +1 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb +1 -0
- data/examples/v2/security-monitoring/CreateSignalNotificationRule.rb +30 -0
- data/examples/v2/security-monitoring/CreateVulnerabilityNotificationRule.rb +30 -0
- data/examples/v2/security-monitoring/DeleteSignalNotificationRule.rb +8 -0
- data/examples/v2/security-monitoring/DeleteVulnerabilityNotificationRule.rb +8 -0
- data/examples/v2/security-monitoring/GetSBOM.rb +5 -0
- data/examples/v2/security-monitoring/GetSignalNotificationRule.rb +8 -0
- data/examples/v2/security-monitoring/GetSignalNotificationRules.rb +5 -0
- data/examples/v2/security-monitoring/GetVulnerabilityNotificationRule.rb +8 -0
- data/examples/v2/security-monitoring/GetVulnerabilityNotificationRules.rb +5 -0
- data/examples/v2/security-monitoring/ListVulnerabilities.rb +10 -0
- data/examples/v2/security-monitoring/ListVulnerableAssets.rb +10 -0
- data/examples/v2/security-monitoring/PatchSignalNotificationRule.rb +35 -0
- data/examples/v2/security-monitoring/PatchVulnerabilityNotificationRule.rb +35 -0
- data/examples/v2/security-monitoring/RunHistoricalJob.rb +2 -2
- data/examples/v2/usage-metering/GetActiveBillingDimensions.rb +0 -3
- data/examples/v2/usage-metering/GetBillingDimensionMapping.rb +0 -3
- data/examples/v2/usage-metering/GetMonthlyCostAttribution.rb +0 -3
- data/lib/datadog_api_client/configuration.rb +2 -5
- data/lib/datadog_api_client/inflector.rb +145 -44
- data/lib/datadog_api_client/v1/api/monitors_api.rb +28 -4
- data/lib/datadog_api_client/v1/models/azure_account.rb +42 -13
- data/lib/datadog_api_client/v1/models/dashboard.rb +0 -2
- data/lib/datadog_api_client/v1/models/logs_pipeline.rb +23 -1
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_cost_aggregator.rb +34 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_cost_data_source.rb +28 -0
- data/lib/datadog_api_client/v1/models/{azure_account_metrics_config.rb → monitor_formula_and_function_cost_query_definition.rb} +81 -16
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +2 -1
- data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor_update_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/resource_provider_config.rb +115 -0
- data/lib/datadog_api_client/v1/models/synthetics_step.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +184 -4
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +183 -3
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +183 -3
- data/lib/datadog_api_client/v2/api/action_connection_api.rb +295 -0
- data/lib/datadog_api_client/v2/api/agentless_scanning_api.rb +86 -0
- data/lib/datadog_api_client/v2/api/{apps_api.rb → app_builder_api.rb} +184 -38
- data/lib/datadog_api_client/v2/api/csm_coverage_analysis_api.rb +212 -0
- data/lib/datadog_api_client/v2/api/logs_api.rb +8 -8
- data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb +331 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +13 -3
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +1123 -1
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -19
- data/lib/datadog_api_client/v2/models/action_connection_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/{app_builder_error_errors_items.rb → action_connection_attributes_update.rb} +18 -18
- data/lib/datadog_api_client/v2/models/action_connection_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/{delete_app_response_data_type.rb → action_connection_data_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/action_connection_data_update.rb +144 -0
- data/lib/datadog_api_client/v2/models/action_connection_integration.rb +63 -0
- data/lib/datadog_api_client/v2/models/action_connection_integration_update.rb +63 -0
- data/lib/datadog_api_client/v2/models/advisory.rb +154 -0
- data/lib/datadog_api_client/v2/models/app_builder_event.rb +1 -1
- data/lib/datadog_api_client/v2/models/{get_app_response_data_type.rb → app_definition_type.rb} +2 -2
- data/lib/datadog_api_client/v2/models/{deployment_included_type.rb → app_deployment_type.rb} +2 -2
- data/lib/datadog_api_client/v2/models/app_meta.rb +15 -25
- data/lib/datadog_api_client/v2/models/{get_app_response_relationship.rb → app_relationship.rb} +5 -5
- data/lib/datadog_api_client/v2/models/asset.rb +165 -0
- data/lib/datadog_api_client/v2/models/asset_attributes.rb +218 -0
- data/lib/datadog_api_client/v2/models/{script_data_type.rb → asset_entity_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/asset_operating_system.rb +133 -0
- data/lib/datadog_api_client/v2/models/asset_risks.rb +163 -0
- data/lib/datadog_api_client/v2/models/asset_type.rb +30 -0
- data/lib/datadog_api_client/v2/models/{disable_app_response_data_attributes.rb → asset_version.rb} +21 -11
- data/lib/datadog_api_client/v2/models/aws_assume_role.rb +191 -0
- data/lib/datadog_api_client/v2/models/{input_schema_data_type.rb → aws_assume_role_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/aws_assume_role_update.rb +166 -0
- data/lib/datadog_api_client/v2/models/aws_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/aws_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/aws_integration.rb +144 -0
- data/lib/datadog_api_client/v2/models/{deploy_app_response_data_type.rb → aws_integration_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/aws_integration_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/aws_scan_options_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/{input_schema_data.rb → aws_scan_options_data.rb} +8 -8
- data/lib/datadog_api_client/v2/models/aws_scan_options_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/{delete_apps_request_data_items_type.rb → aws_scan_options_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/change_event_custom_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/change_event_custom_attributes_changed_resource.rb +1 -1
- data/lib/datadog_api_client/v2/models/change_event_custom_attributes_changed_resource_type.rb +1 -0
- data/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/{deployment_included_meta.rb → code_location.rb} +41 -33
- data/lib/datadog_api_client/v2/models/component.rb +6 -6
- data/lib/datadog_api_client/v2/models/component_grid.rb +6 -6
- data/lib/datadog_api_client/v2/models/component_grid_properties.rb +4 -4
- data/lib/datadog_api_client/v2/models/component_grid_properties_is_visible.rb +1 -1
- data/lib/datadog_api_client/v2/models/component_grid_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/component_properties.rb +3 -3
- data/lib/datadog_api_client/v2/models/component_properties_is_visible.rb +1 -1
- data/lib/datadog_api_client/v2/models/component_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/create_action_connection_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{script.rb → create_action_connection_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/create_app_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_app_request_data.rb +4 -4
- data/lib/datadog_api_client/v2/models/create_app_request_data_attributes.rb +19 -41
- data/lib/datadog_api_client/v2/models/create_app_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_app_response_data.rb +5 -5
- data/lib/datadog_api_client/v2/models/create_data_deletion_request_body_data.rb +24 -3
- data/lib/datadog_api_client/v2/models/{disable_app_response_data_type.rb → create_data_deletion_request_body_data_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/create_notification_rule_parameters.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_notification_rule_parameters_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_notification_rule_parameters_data_attributes.rb +195 -0
- data/lib/datadog_api_client/v2/models/csm_cloud_accounts_coverage_analysis_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/{disable_app_response_data.rb → csm_cloud_accounts_coverage_analysis_data.rb} +9 -19
- data/lib/datadog_api_client/v2/models/csm_cloud_accounts_coverage_analysis_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/csm_coverage_analysis.rb +135 -0
- data/lib/datadog_api_client/v2/models/csm_hosts_and_containers_coverage_analysis_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/csm_hosts_and_containers_coverage_analysis_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/csm_hosts_and_containers_coverage_analysis_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/csm_serverless_coverage_analysis_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/csm_serverless_coverage_analysis_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/csm_serverless_coverage_analysis_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/custom_connection.rb +5 -5
- data/lib/datadog_api_client/v2/models/custom_connection_attributes.rb +3 -3
- data/lib/datadog_api_client/v2/models/custom_connection_attributes_on_prem_runner.rb +3 -3
- data/lib/datadog_api_client/v2/models/custom_connection_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/cvss.rb +165 -0
- data/lib/datadog_api_client/v2/models/delete_app_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/delete_app_response_data.rb +4 -4
- data/lib/datadog_api_client/v2/models/delete_apps_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/delete_apps_request_data_items.rb +5 -5
- data/lib/datadog_api_client/v2/models/delete_apps_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/delete_apps_response_data_items.rb +5 -5
- data/lib/datadog_api_client/v2/models/dependency_location.rb +207 -0
- data/lib/datadog_api_client/v2/models/{deploy_app_response_data.rb → deployment.rb} +11 -11
- data/lib/datadog_api_client/v2/models/{deploy_app_response_data_attributes.rb → deployment_attributes.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{deployment_relationship_meta.rb → deployment_metadata.rb} +9 -9
- data/lib/datadog_api_client/v2/models/deployment_relationship.rb +4 -4
- data/lib/datadog_api_client/v2/models/deployment_relationship_data.rb +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3.rb +2 -1
- data/lib/datadog_api_client/v2/models/entity_v3_api.rb +180 -0
- data/lib/datadog_api_client/v2/models/entity_v3_api_datadog.rb +126 -0
- data/lib/datadog_api_client/v2/models/entity_v3_api_kind.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_v3_api_spec.rb +151 -0
- data/lib/datadog_api_client/v2/models/entity_v3_api_spec_interface_definition.rb +80 -0
- data/lib/datadog_api_client/v2/models/{entity_v3_metadata_owner.rb → entity_v3_api_spec_interface_file_ref.rb} +12 -12
- data/lib/datadog_api_client/v2/models/entity_v3_metadata.rb +1 -1
- data/lib/datadog_api_client/v2/models/epss.rb +144 -0
- data/lib/datadog_api_client/v2/models/{input_schema.rb → get_action_connection_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/get_app_response.rb +7 -7
- data/lib/datadog_api_client/v2/models/get_app_response_data.rb +6 -6
- data/lib/datadog_api_client/v2/models/get_app_response_data_attributes.rb +20 -42
- data/lib/datadog_api_client/v2/models/get_sbom_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/historical_job_options.rb +168 -0
- data/lib/datadog_api_client/v2/models/historical_job_query.rb +171 -0
- data/lib/datadog_api_client/v2/models/{app_builder_error.rb → http_body.rb} +21 -13
- data/lib/datadog_api_client/v2/models/http_credentials.rb +62 -0
- data/lib/datadog_api_client/v2/models/http_credentials_update.rb +62 -0
- data/lib/datadog_api_client/v2/models/http_header.rb +150 -0
- data/lib/datadog_api_client/v2/models/http_header_update.rb +149 -0
- data/lib/datadog_api_client/v2/models/http_integration.rb +171 -0
- data/lib/datadog_api_client/v2/models/http_integration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/http_integration_update.rb +156 -0
- data/lib/datadog_api_client/v2/models/http_token.rb +171 -0
- data/lib/datadog_api_client/v2/models/http_token_auth.rb +169 -0
- data/lib/datadog_api_client/v2/models/http_token_auth_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/http_token_auth_update.rb +169 -0
- data/lib/datadog_api_client/v2/models/http_token_update.rb +181 -0
- data/lib/datadog_api_client/v2/models/job_definition.rb +6 -18
- data/lib/datadog_api_client/v2/models/jsonapi_error_item.rb +21 -1
- data/lib/datadog_api_client/v2/models/{app_builder_error_errors_items_source.rb → jsonapi_error_item_source.rb} +16 -6
- data/lib/datadog_api_client/v2/models/library.rb +133 -0
- data/lib/datadog_api_client/v2/models/links.rb +185 -0
- data/lib/datadog_api_client/v2/models/list_apps_response.rb +5 -5
- data/lib/datadog_api_client/v2/models/list_apps_response_data_items.rb +8 -8
- data/lib/datadog_api_client/v2/models/list_apps_response_data_items_attributes.rb +6 -6
- data/lib/datadog_api_client/v2/models/list_apps_response_data_items_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/list_apps_response_meta.rb +2 -2
- data/lib/datadog_api_client/v2/models/list_apps_response_meta_page.rb +3 -3
- data/lib/datadog_api_client/v2/models/list_vulnerabilities_response.rb +145 -0
- data/lib/datadog_api_client/v2/models/list_vulnerable_assets_response.rb +145 -0
- data/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb +11 -1
- data/lib/datadog_api_client/v2/models/logs_archive_encryption_s3.rb +133 -0
- data/lib/datadog_api_client/v2/models/logs_archive_encryption_s3_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/metadata.rb +165 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_create_workflows_webhook_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_update_workflows_webhook_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_update_workflows_webhook_handle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_handle_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/{input_schema_data_attributes_parameters_items_data_attributes.rb → microsoft_teams_workflows_webhook_handle_request_attributes.rb} +46 -51
- data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_handle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_handle_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_handle_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/{create_app_response_data_type.rb → microsoft_teams_workflows_webhook_handle_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_handles_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_workflows_webhook_response_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/notification_rule.rb +168 -0
- data/lib/datadog_api_client/v2/models/notification_rule_attributes.rb +311 -0
- data/lib/datadog_api_client/v2/models/{input_schema_data_attributes_parameters_items.rb → notification_rule_response.rb} +9 -5
- data/lib/datadog_api_client/v2/models/{create_app_request_data_type.rb → notification_rules_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/patch_notification_rule_parameters.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_notification_rule_parameters_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/patch_notification_rule_parameters_data_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/{disable_app_response.rb → publish_app_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/query.rb +7 -7
- data/lib/datadog_api_client/v2/models/query_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/remediation.rb +278 -0
- data/lib/datadog_api_client/v2/models/rule_severity.rb +31 -0
- data/lib/datadog_api_client/v2/models/rule_types_items.rb +42 -0
- data/lib/datadog_api_client/v2/models/{deployment_included_attributes.rb → rule_user.rb} +21 -11
- data/lib/datadog_api_client/v2/models/{script_data.rb → sbom.rb} +8 -8
- data/lib/datadog_api_client/v2/models/sbom_attributes.rb +230 -0
- data/lib/datadog_api_client/v2/models/sbom_component.rb +185 -0
- data/lib/datadog_api_client/v2/models/sbom_component_type.rb +37 -0
- data/lib/datadog_api_client/v2/models/sbom_metadata.rb +105 -0
- data/lib/datadog_api_client/v2/models/{script_data_attributes.rb → sbom_metadata_component.rb} +6 -16
- data/lib/datadog_api_client/v2/models/sbom_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_reference_table.rb +2 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb +2 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_impossible_travel_options.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +6 -6
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb +1 -1
- data/lib/datadog_api_client/v2/models/selectors.rb +160 -0
- data/lib/datadog_api_client/v2/models/spec_version.rb +31 -0
- data/lib/datadog_api_client/v2/models/token_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/trigger_source.rb +28 -0
- data/lib/datadog_api_client/v2/models/unpublish_app_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_action_connection_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{deploy_app_response.rb → update_action_connection_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/update_app_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/update_app_request_data.rb +6 -6
- data/lib/datadog_api_client/v2/models/update_app_request_data_attributes.rb +19 -41
- data/lib/datadog_api_client/v2/models/update_app_response.rb +7 -7
- data/lib/datadog_api_client/v2/models/update_app_response_data.rb +6 -6
- data/lib/datadog_api_client/v2/models/update_app_response_data_attributes.rb +20 -42
- data/lib/datadog_api_client/v2/models/url_param.rb +150 -0
- data/lib/datadog_api_client/v2/models/url_param_update.rb +149 -0
- data/lib/datadog_api_client/v2/models/vulnerabilities_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/vulnerability.rb +186 -0
- data/lib/datadog_api_client/v2/models/vulnerability_attributes.rb +462 -0
- data/lib/datadog_api_client/v2/models/{deployment_meta.rb → vulnerability_cvss.rb} +43 -34
- data/lib/datadog_api_client/v2/models/vulnerability_dependency_locations.rb +143 -0
- data/lib/datadog_api_client/v2/models/vulnerability_ecosystem.rb +36 -0
- data/lib/datadog_api_client/v2/models/vulnerability_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/vulnerability_relationships_affects.rb +123 -0
- data/lib/datadog_api_client/v2/models/{deployment_included.rb → vulnerability_relationships_affects_data.rb} +38 -29
- data/lib/datadog_api_client/v2/models/vulnerability_risks.rb +198 -0
- data/lib/datadog_api_client/v2/models/vulnerability_severity.rb +31 -0
- data/lib/datadog_api_client/v2/models/vulnerability_status.rb +30 -0
- data/lib/datadog_api_client/v2/models/vulnerability_tool.rb +28 -0
- data/lib/datadog_api_client/v2/models/vulnerability_type.rb +67 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +194 -56
- data/examples/v2/app-deployment/DeployApp.rb +0 -11
- data/examples/v2/app-deployment/DisableApp.rb +0 -11
- data/lib/datadog_api_client/v2/api/app_deployment_api.rb +0 -168
- data/lib/datadog_api_client/v2/models/delete_apps_response_data_items_type.rb +0 -26
- data/lib/datadog_api_client/v2/models/deployment_relationship_data_type.rb +0 -26
- data/lib/datadog_api_client/v2/models/input_schema_data_attributes.rb +0 -107
- data/lib/datadog_api_client/v2/models/input_schema_data_attributes_parameters_items_data.rb +0 -105
- data/lib/datadog_api_client/v2/models/list_apps_response_data_items_type.rb +0 -26
- data/lib/datadog_api_client/v2/models/update_app_request_data_type.rb +0 -26
- data/lib/datadog_api_client/v2/models/update_app_response_data_type.rb +0 -26
- data/lib/datadog_api_client/v2/models/update_app_response_relationship.rb +0 -117
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# Deploy App returns "Created" response
|
|
2
|
-
|
|
3
|
-
require "datadog_api_client"
|
|
4
|
-
DatadogAPIClient.configure do |config|
|
|
5
|
-
config.unstable_operations["v2.deploy_app".to_sym] = true
|
|
6
|
-
end
|
|
7
|
-
api_instance = DatadogAPIClient::V2::AppDeploymentAPI.new
|
|
8
|
-
|
|
9
|
-
# there is a valid "app" in the system
|
|
10
|
-
APP_DATA_ID = ENV["APP_DATA_ID"]
|
|
11
|
-
p api_instance.deploy_app(APP_DATA_ID)
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# Disable App returns "OK" response
|
|
2
|
-
|
|
3
|
-
require "datadog_api_client"
|
|
4
|
-
DatadogAPIClient.configure do |config|
|
|
5
|
-
config.unstable_operations["v2.disable_app".to_sym] = true
|
|
6
|
-
end
|
|
7
|
-
api_instance = DatadogAPIClient::V2::AppDeploymentAPI.new
|
|
8
|
-
|
|
9
|
-
# there is a valid "app" in the system
|
|
10
|
-
APP_DATA_ID = ENV["APP_DATA_ID"]
|
|
11
|
-
p api_instance.disable_app(APP_DATA_ID)
|
|
@@ -1,168 +0,0 @@
|
|
|
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 'cgi'
|
|
17
|
-
|
|
18
|
-
module DatadogAPIClient::V2
|
|
19
|
-
class AppDeploymentAPI
|
|
20
|
-
attr_accessor :api_client
|
|
21
|
-
|
|
22
|
-
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
|
23
|
-
@api_client = api_client
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
# Deploy App.
|
|
27
|
-
#
|
|
28
|
-
# @see #deploy_app_with_http_info
|
|
29
|
-
def deploy_app(app_id, opts = {})
|
|
30
|
-
data, _status_code, _headers = deploy_app_with_http_info(app_id, opts)
|
|
31
|
-
data
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
# Deploy App.
|
|
35
|
-
#
|
|
36
|
-
# Deploy (publish) an app by ID
|
|
37
|
-
#
|
|
38
|
-
# @param app_id [String]
|
|
39
|
-
# @param opts [Hash] the optional parameters
|
|
40
|
-
# @return [Array<(DeployAppResponse, Integer, Hash)>] DeployAppResponse data, response status code and response headers
|
|
41
|
-
def deploy_app_with_http_info(app_id, opts = {})
|
|
42
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.deploy_app".to_sym]
|
|
43
|
-
if unstable_enabled
|
|
44
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.deploy_app")
|
|
45
|
-
else
|
|
46
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.deploy_app"))
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
if @api_client.config.debugging
|
|
50
|
-
@api_client.config.logger.debug 'Calling API: AppDeploymentAPI.deploy_app ...'
|
|
51
|
-
end
|
|
52
|
-
# verify the required parameter 'app_id' is set
|
|
53
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
|
54
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppDeploymentAPI.deploy_app"
|
|
55
|
-
end
|
|
56
|
-
# resource path
|
|
57
|
-
local_var_path = '/api/v2/app-builder/apps/{app_id}/deployment'.sub('{app_id}', CGI.escape(app_id.to_s).gsub('%2F', '/'))
|
|
58
|
-
|
|
59
|
-
# query parameters
|
|
60
|
-
query_params = opts[:query_params] || {}
|
|
61
|
-
|
|
62
|
-
# header parameters
|
|
63
|
-
header_params = opts[:header_params] || {}
|
|
64
|
-
# HTTP header 'Accept' (if needed)
|
|
65
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
66
|
-
|
|
67
|
-
# form parameters
|
|
68
|
-
form_params = opts[:form_params] || {}
|
|
69
|
-
|
|
70
|
-
# http body (model)
|
|
71
|
-
post_body = opts[:debug_body]
|
|
72
|
-
|
|
73
|
-
# return_type
|
|
74
|
-
return_type = opts[:debug_return_type] || 'DeployAppResponse'
|
|
75
|
-
|
|
76
|
-
# auth_names
|
|
77
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
78
|
-
|
|
79
|
-
new_options = opts.merge(
|
|
80
|
-
:operation => :deploy_app,
|
|
81
|
-
:header_params => header_params,
|
|
82
|
-
:query_params => query_params,
|
|
83
|
-
:form_params => form_params,
|
|
84
|
-
:body => post_body,
|
|
85
|
-
:auth_names => auth_names,
|
|
86
|
-
:return_type => return_type,
|
|
87
|
-
:api_version => "V2"
|
|
88
|
-
)
|
|
89
|
-
|
|
90
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
91
|
-
if @api_client.config.debugging
|
|
92
|
-
@api_client.config.logger.debug "API called: AppDeploymentAPI#deploy_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
93
|
-
end
|
|
94
|
-
return data, status_code, headers
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
# Disable App.
|
|
98
|
-
#
|
|
99
|
-
# @see #disable_app_with_http_info
|
|
100
|
-
def disable_app(app_id, opts = {})
|
|
101
|
-
data, _status_code, _headers = disable_app_with_http_info(app_id, opts)
|
|
102
|
-
data
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
# Disable App.
|
|
106
|
-
#
|
|
107
|
-
# Disable an app by ID
|
|
108
|
-
#
|
|
109
|
-
# @param app_id [String]
|
|
110
|
-
# @param opts [Hash] the optional parameters
|
|
111
|
-
# @return [Array<(DisableAppResponse, Integer, Hash)>] DisableAppResponse data, response status code and response headers
|
|
112
|
-
def disable_app_with_http_info(app_id, opts = {})
|
|
113
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.disable_app".to_sym]
|
|
114
|
-
if unstable_enabled
|
|
115
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.disable_app")
|
|
116
|
-
else
|
|
117
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.disable_app"))
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
if @api_client.config.debugging
|
|
121
|
-
@api_client.config.logger.debug 'Calling API: AppDeploymentAPI.disable_app ...'
|
|
122
|
-
end
|
|
123
|
-
# verify the required parameter 'app_id' is set
|
|
124
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
|
125
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppDeploymentAPI.disable_app"
|
|
126
|
-
end
|
|
127
|
-
# resource path
|
|
128
|
-
local_var_path = '/api/v2/app-builder/apps/{app_id}/deployment'.sub('{app_id}', CGI.escape(app_id.to_s).gsub('%2F', '/'))
|
|
129
|
-
|
|
130
|
-
# query parameters
|
|
131
|
-
query_params = opts[:query_params] || {}
|
|
132
|
-
|
|
133
|
-
# header parameters
|
|
134
|
-
header_params = opts[:header_params] || {}
|
|
135
|
-
# HTTP header 'Accept' (if needed)
|
|
136
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
137
|
-
|
|
138
|
-
# form parameters
|
|
139
|
-
form_params = opts[:form_params] || {}
|
|
140
|
-
|
|
141
|
-
# http body (model)
|
|
142
|
-
post_body = opts[:debug_body]
|
|
143
|
-
|
|
144
|
-
# return_type
|
|
145
|
-
return_type = opts[:debug_return_type] || 'DisableAppResponse'
|
|
146
|
-
|
|
147
|
-
# auth_names
|
|
148
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
149
|
-
|
|
150
|
-
new_options = opts.merge(
|
|
151
|
-
:operation => :disable_app,
|
|
152
|
-
:header_params => header_params,
|
|
153
|
-
:query_params => query_params,
|
|
154
|
-
:form_params => form_params,
|
|
155
|
-
:body => post_body,
|
|
156
|
-
:auth_names => auth_names,
|
|
157
|
-
:return_type => return_type,
|
|
158
|
-
:api_version => "V2"
|
|
159
|
-
)
|
|
160
|
-
|
|
161
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
162
|
-
if @api_client.config.debugging
|
|
163
|
-
@api_client.config.logger.debug "API called: AppDeploymentAPI#disable_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
164
|
-
end
|
|
165
|
-
return data, status_code, headers
|
|
166
|
-
end
|
|
167
|
-
end
|
|
168
|
-
end
|
|
@@ -1,26 +0,0 @@
|
|
|
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 definition of `DeleteAppsResponseDataItemsType` object.
|
|
21
|
-
class DeleteAppsResponseDataItemsType
|
|
22
|
-
include BaseEnumModel
|
|
23
|
-
|
|
24
|
-
APPDEFINITIONS = "appDefinitions".freeze
|
|
25
|
-
end
|
|
26
|
-
end
|
|
@@ -1,26 +0,0 @@
|
|
|
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 definition of `DeploymentRelationshipDataType` object.
|
|
21
|
-
class DeploymentRelationshipDataType
|
|
22
|
-
include BaseEnumModel
|
|
23
|
-
|
|
24
|
-
DEPLOYMENT = "deployment".freeze
|
|
25
|
-
end
|
|
26
|
-
end
|
|
@@ -1,107 +0,0 @@
|
|
|
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 definition of `InputSchemaDataAttributes` object.
|
|
21
|
-
class InputSchemaDataAttributes
|
|
22
|
-
include BaseGenericModel
|
|
23
|
-
|
|
24
|
-
# The `attributes` `parameters`.
|
|
25
|
-
attr_accessor :parameters
|
|
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
|
-
:'parameters' => :'parameters'
|
|
34
|
-
}
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
# Attribute type mapping.
|
|
38
|
-
# @!visibility private
|
|
39
|
-
def self.openapi_types
|
|
40
|
-
{
|
|
41
|
-
:'parameters' => :'Array<InputSchemaDataAttributesParametersItems>'
|
|
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::InputSchemaDataAttributes` 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?(:'parameters')
|
|
64
|
-
if (value = attributes[:'parameters']).is_a?(Array)
|
|
65
|
-
self.parameters = value
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
# Returns the object in the form of hash, with additionalProperties support.
|
|
71
|
-
# @return [Hash] Returns the object in the form of hash
|
|
72
|
-
# @!visibility private
|
|
73
|
-
def to_hash
|
|
74
|
-
hash = {}
|
|
75
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
76
|
-
value = self.send(attr)
|
|
77
|
-
if value.nil?
|
|
78
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
79
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
hash[param] = _to_hash(value)
|
|
83
|
-
end
|
|
84
|
-
self.additional_properties.each_pair do |attr, value|
|
|
85
|
-
hash[attr] = value
|
|
86
|
-
end
|
|
87
|
-
hash
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
# Checks equality by comparing each attribute.
|
|
91
|
-
# @param o [Object] Object to be compared
|
|
92
|
-
# @!visibility private
|
|
93
|
-
def ==(o)
|
|
94
|
-
return true if self.equal?(o)
|
|
95
|
-
self.class == o.class &&
|
|
96
|
-
parameters == o.parameters &&
|
|
97
|
-
additional_properties == o.additional_properties
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
# Calculates hash code according to all attributes.
|
|
101
|
-
# @return [Integer] Hash code
|
|
102
|
-
# @!visibility private
|
|
103
|
-
def hash
|
|
104
|
-
[parameters, additional_properties].hash
|
|
105
|
-
end
|
|
106
|
-
end
|
|
107
|
-
end
|
|
@@ -1,105 +0,0 @@
|
|
|
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 definition of `InputSchemaDataAttributesParametersItemsData` object.
|
|
21
|
-
class InputSchemaDataAttributesParametersItemsData
|
|
22
|
-
include BaseGenericModel
|
|
23
|
-
|
|
24
|
-
# The definition of `InputSchemaDataAttributesParametersItemsDataAttributes` object.
|
|
25
|
-
attr_accessor :attributes
|
|
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
|
-
:'attributes' => :'attributes'
|
|
34
|
-
}
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
# Attribute type mapping.
|
|
38
|
-
# @!visibility private
|
|
39
|
-
def self.openapi_types
|
|
40
|
-
{
|
|
41
|
-
:'attributes' => :'InputSchemaDataAttributesParametersItemsDataAttributes'
|
|
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::InputSchemaDataAttributesParametersItemsData` 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?(:'attributes')
|
|
64
|
-
self.attributes = attributes[:'attributes']
|
|
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
|
-
attributes == o.attributes &&
|
|
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
|
-
[attributes, additional_properties].hash
|
|
103
|
-
end
|
|
104
|
-
end
|
|
105
|
-
end
|
|
@@ -1,26 +0,0 @@
|
|
|
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 definition of `ListAppsResponseDataItemsType` object.
|
|
21
|
-
class ListAppsResponseDataItemsType
|
|
22
|
-
include BaseEnumModel
|
|
23
|
-
|
|
24
|
-
APPDEFINITIONS = "appDefinitions".freeze
|
|
25
|
-
end
|
|
26
|
-
end
|
|
@@ -1,26 +0,0 @@
|
|
|
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 definition of `UpdateAppRequestDataType` object.
|
|
21
|
-
class UpdateAppRequestDataType
|
|
22
|
-
include BaseEnumModel
|
|
23
|
-
|
|
24
|
-
APPDEFINITIONS = "appDefinitions".freeze
|
|
25
|
-
end
|
|
26
|
-
end
|
|
@@ -1,26 +0,0 @@
|
|
|
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 definition of `UpdateAppResponseDataType` object.
|
|
21
|
-
class UpdateAppResponseDataType
|
|
22
|
-
include BaseEnumModel
|
|
23
|
-
|
|
24
|
-
APPDEFINITIONS = "appDefinitions".freeze
|
|
25
|
-
end
|
|
26
|
-
end
|
|
@@ -1,117 +0,0 @@
|
|
|
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 definition of `UpdateAppResponseRelationship` object.
|
|
21
|
-
class UpdateAppResponseRelationship
|
|
22
|
-
include BaseGenericModel
|
|
23
|
-
|
|
24
|
-
# The `relationship` `connections`.
|
|
25
|
-
attr_accessor :connections
|
|
26
|
-
|
|
27
|
-
# The definition of `DeploymentRelationship` object.
|
|
28
|
-
attr_accessor :deployment
|
|
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
|
-
:'connections' => :'connections',
|
|
37
|
-
:'deployment' => :'deployment'
|
|
38
|
-
}
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# Attribute type mapping.
|
|
42
|
-
# @!visibility private
|
|
43
|
-
def self.openapi_types
|
|
44
|
-
{
|
|
45
|
-
:'connections' => :'Array<CustomConnection>',
|
|
46
|
-
:'deployment' => :'DeploymentRelationship'
|
|
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::UpdateAppResponseRelationship` 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?(:'connections')
|
|
69
|
-
if (value = attributes[:'connections']).is_a?(Array)
|
|
70
|
-
self.connections = value
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
if attributes.key?(:'deployment')
|
|
75
|
-
self.deployment = attributes[:'deployment']
|
|
76
|
-
end
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
# Returns the object in the form of hash, with additionalProperties support.
|
|
80
|
-
# @return [Hash] Returns the object in the form of hash
|
|
81
|
-
# @!visibility private
|
|
82
|
-
def to_hash
|
|
83
|
-
hash = {}
|
|
84
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
85
|
-
value = self.send(attr)
|
|
86
|
-
if value.nil?
|
|
87
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
88
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
hash[param] = _to_hash(value)
|
|
92
|
-
end
|
|
93
|
-
self.additional_properties.each_pair do |attr, value|
|
|
94
|
-
hash[attr] = value
|
|
95
|
-
end
|
|
96
|
-
hash
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
# Checks equality by comparing each attribute.
|
|
100
|
-
# @param o [Object] Object to be compared
|
|
101
|
-
# @!visibility private
|
|
102
|
-
def ==(o)
|
|
103
|
-
return true if self.equal?(o)
|
|
104
|
-
self.class == o.class &&
|
|
105
|
-
connections == o.connections &&
|
|
106
|
-
deployment == o.deployment &&
|
|
107
|
-
additional_properties == o.additional_properties
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
# Calculates hash code according to all attributes.
|
|
111
|
-
# @return [Integer] Hash code
|
|
112
|
-
# @!visibility private
|
|
113
|
-
def hash
|
|
114
|
-
[connections, deployment, additional_properties].hash
|
|
115
|
-
end
|
|
116
|
-
end
|
|
117
|
-
end
|