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
|
@@ -0,0 +1,181 @@
|
|
|
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 `HTTPTokenUpdate` object.
|
|
21
|
+
class HTTPTokenUpdate
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Should the header be deleted.
|
|
25
|
+
attr_accessor :deleted
|
|
26
|
+
|
|
27
|
+
# The `HTTPToken` `name`.
|
|
28
|
+
attr_reader :name
|
|
29
|
+
|
|
30
|
+
# The definition of `TokenType` object.
|
|
31
|
+
attr_reader :type
|
|
32
|
+
|
|
33
|
+
# The `HTTPToken` `value`.
|
|
34
|
+
attr_reader :value
|
|
35
|
+
|
|
36
|
+
attr_accessor :additional_properties
|
|
37
|
+
|
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
|
+
# @!visibility private
|
|
40
|
+
def self.attribute_map
|
|
41
|
+
{
|
|
42
|
+
:'deleted' => :'deleted',
|
|
43
|
+
:'name' => :'name',
|
|
44
|
+
:'type' => :'type',
|
|
45
|
+
:'value' => :'value'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Attribute type mapping.
|
|
50
|
+
# @!visibility private
|
|
51
|
+
def self.openapi_types
|
|
52
|
+
{
|
|
53
|
+
:'deleted' => :'Boolean',
|
|
54
|
+
:'name' => :'String',
|
|
55
|
+
:'type' => :'TokenType',
|
|
56
|
+
:'value' => :'String'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Initializes the object
|
|
61
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
62
|
+
# @!visibility private
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
if (!attributes.is_a?(Hash))
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::HTTPTokenUpdate` initialize method"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
self.additional_properties = {}
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
72
|
+
self.additional_properties[k.to_sym] = v
|
|
73
|
+
else
|
|
74
|
+
h[k.to_sym] = v
|
|
75
|
+
end
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'deleted')
|
|
79
|
+
self.deleted = attributes[:'deleted']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'name')
|
|
83
|
+
self.name = attributes[:'name']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'type')
|
|
87
|
+
self.type = attributes[:'type']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'value')
|
|
91
|
+
self.value = attributes[:'value']
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Check to see if the all the properties in the model are valid
|
|
96
|
+
# @return true if the model is valid
|
|
97
|
+
# @!visibility private
|
|
98
|
+
def valid?
|
|
99
|
+
return false if @name.nil?
|
|
100
|
+
pattern = Regexp.new(/^[A-Za-z][A-Za-z\\d]*$/)
|
|
101
|
+
return false if @name !~ pattern
|
|
102
|
+
return false if @type.nil?
|
|
103
|
+
return false if @value.nil?
|
|
104
|
+
true
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Custom attribute writer method with validation
|
|
108
|
+
# @param name [Object] Object to be assigned
|
|
109
|
+
# @!visibility private
|
|
110
|
+
def name=(name)
|
|
111
|
+
if name.nil?
|
|
112
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
113
|
+
end
|
|
114
|
+
pattern = Regexp.new(/^[A-Za-z][A-Za-z\\d]*$/)
|
|
115
|
+
if name !~ pattern
|
|
116
|
+
fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
|
|
117
|
+
end
|
|
118
|
+
@name = name
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Custom attribute writer method with validation
|
|
122
|
+
# @param type [Object] Object to be assigned
|
|
123
|
+
# @!visibility private
|
|
124
|
+
def type=(type)
|
|
125
|
+
if type.nil?
|
|
126
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
127
|
+
end
|
|
128
|
+
@type = type
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Custom attribute writer method with validation
|
|
132
|
+
# @param value [Object] Object to be assigned
|
|
133
|
+
# @!visibility private
|
|
134
|
+
def value=(value)
|
|
135
|
+
if value.nil?
|
|
136
|
+
fail ArgumentError, 'invalid value for "value", value cannot be nil.'
|
|
137
|
+
end
|
|
138
|
+
@value = value
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
142
|
+
# @return [Hash] Returns the object in the form of hash
|
|
143
|
+
# @!visibility private
|
|
144
|
+
def to_hash
|
|
145
|
+
hash = {}
|
|
146
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
147
|
+
value = self.send(attr)
|
|
148
|
+
if value.nil?
|
|
149
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
150
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
hash[param] = _to_hash(value)
|
|
154
|
+
end
|
|
155
|
+
self.additional_properties.each_pair do |attr, value|
|
|
156
|
+
hash[attr] = value
|
|
157
|
+
end
|
|
158
|
+
hash
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Checks equality by comparing each attribute.
|
|
162
|
+
# @param o [Object] Object to be compared
|
|
163
|
+
# @!visibility private
|
|
164
|
+
def ==(o)
|
|
165
|
+
return true if self.equal?(o)
|
|
166
|
+
self.class == o.class &&
|
|
167
|
+
deleted == o.deleted &&
|
|
168
|
+
name == o.name &&
|
|
169
|
+
type == o.type &&
|
|
170
|
+
value == o.value &&
|
|
171
|
+
additional_properties == o.additional_properties
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Calculates hash code according to all attributes.
|
|
175
|
+
# @return [Integer] Hash code
|
|
176
|
+
# @!visibility private
|
|
177
|
+
def hash
|
|
178
|
+
[deleted, name, type, value, additional_properties].hash
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
end
|
|
@@ -27,9 +27,6 @@ module DatadogAPIClient::V2
|
|
|
27
27
|
# Cases used for generating job results.
|
|
28
28
|
attr_reader :cases
|
|
29
29
|
|
|
30
|
-
# Additional queries to filter matched events before they are processed. This field is deprecated for log detection, signal correlation, and workload security rules.
|
|
31
|
-
attr_accessor :filters
|
|
32
|
-
|
|
33
30
|
# Starting time of data analyzed by the job.
|
|
34
31
|
attr_reader :from
|
|
35
32
|
|
|
@@ -42,19 +39,19 @@ module DatadogAPIClient::V2
|
|
|
42
39
|
# Job name.
|
|
43
40
|
attr_reader :name
|
|
44
41
|
|
|
45
|
-
#
|
|
42
|
+
# Job options.
|
|
46
43
|
attr_accessor :options
|
|
47
44
|
|
|
48
45
|
# Queries for selecting logs analyzed by the job.
|
|
49
46
|
attr_reader :queries
|
|
50
47
|
|
|
51
|
-
# Reference tables
|
|
48
|
+
# Reference tables used in the queries.
|
|
52
49
|
attr_accessor :reference_tables
|
|
53
50
|
|
|
54
51
|
# Tags for generated signals.
|
|
55
52
|
attr_accessor :tags
|
|
56
53
|
|
|
57
|
-
# Cases for generating results from third-party
|
|
54
|
+
# Cases for generating results from third-party detection method. Only available for third-party detection method.
|
|
58
55
|
attr_accessor :third_party_cases
|
|
59
56
|
|
|
60
57
|
# Ending time of data analyzed by the job.
|
|
@@ -71,7 +68,6 @@ module DatadogAPIClient::V2
|
|
|
71
68
|
{
|
|
72
69
|
:'calculated_fields' => :'calculatedFields',
|
|
73
70
|
:'cases' => :'cases',
|
|
74
|
-
:'filters' => :'filters',
|
|
75
71
|
:'from' => :'from',
|
|
76
72
|
:'index' => :'index',
|
|
77
73
|
:'message' => :'message',
|
|
@@ -92,13 +88,12 @@ module DatadogAPIClient::V2
|
|
|
92
88
|
{
|
|
93
89
|
:'calculated_fields' => :'Array<CalculatedField>',
|
|
94
90
|
:'cases' => :'Array<SecurityMonitoringRuleCaseCreate>',
|
|
95
|
-
:'filters' => :'Array<SecurityMonitoringFilter>',
|
|
96
91
|
:'from' => :'Integer',
|
|
97
92
|
:'index' => :'String',
|
|
98
93
|
:'message' => :'String',
|
|
99
94
|
:'name' => :'String',
|
|
100
|
-
:'options' => :'
|
|
101
|
-
:'queries' => :'Array<
|
|
95
|
+
:'options' => :'HistoricalJobOptions',
|
|
96
|
+
:'queries' => :'Array<HistoricalJobQuery>',
|
|
102
97
|
:'reference_tables' => :'Array<SecurityMonitoringReferenceTable>',
|
|
103
98
|
:'tags' => :'Array<String>',
|
|
104
99
|
:'third_party_cases' => :'Array<SecurityMonitoringThirdPartyRuleCaseCreate>',
|
|
@@ -137,12 +132,6 @@ module DatadogAPIClient::V2
|
|
|
137
132
|
end
|
|
138
133
|
end
|
|
139
134
|
|
|
140
|
-
if attributes.key?(:'filters')
|
|
141
|
-
if (value = attributes[:'filters']).is_a?(Array)
|
|
142
|
-
self.filters = value
|
|
143
|
-
end
|
|
144
|
-
end
|
|
145
|
-
|
|
146
135
|
if attributes.key?(:'from')
|
|
147
136
|
self.from = attributes[:'from']
|
|
148
137
|
end
|
|
@@ -308,7 +297,6 @@ module DatadogAPIClient::V2
|
|
|
308
297
|
self.class == o.class &&
|
|
309
298
|
calculated_fields == o.calculated_fields &&
|
|
310
299
|
cases == o.cases &&
|
|
311
|
-
filters == o.filters &&
|
|
312
300
|
from == o.from &&
|
|
313
301
|
index == o.index &&
|
|
314
302
|
message == o.message &&
|
|
@@ -327,7 +315,7 @@ module DatadogAPIClient::V2
|
|
|
327
315
|
# @return [Integer] Hash code
|
|
328
316
|
# @!visibility private
|
|
329
317
|
def hash
|
|
330
|
-
[calculated_fields, cases,
|
|
318
|
+
[calculated_fields, cases, from, index, message, name, options, queries, reference_tables, tags, third_party_cases, to, type, additional_properties].hash
|
|
331
319
|
end
|
|
332
320
|
end
|
|
333
321
|
end
|
|
@@ -24,6 +24,12 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# A human-readable explanation specific to this occurrence of the error.
|
|
25
25
|
attr_accessor :detail
|
|
26
26
|
|
|
27
|
+
# Non-standard meta-information about the error
|
|
28
|
+
attr_accessor :meta
|
|
29
|
+
|
|
30
|
+
# References to the source of the error.
|
|
31
|
+
attr_accessor :source
|
|
32
|
+
|
|
27
33
|
# Status code of the response.
|
|
28
34
|
attr_accessor :status
|
|
29
35
|
|
|
@@ -37,6 +43,8 @@ module DatadogAPIClient::V2
|
|
|
37
43
|
def self.attribute_map
|
|
38
44
|
{
|
|
39
45
|
:'detail' => :'detail',
|
|
46
|
+
:'meta' => :'meta',
|
|
47
|
+
:'source' => :'source',
|
|
40
48
|
:'status' => :'status',
|
|
41
49
|
:'title' => :'title'
|
|
42
50
|
}
|
|
@@ -47,6 +55,8 @@ module DatadogAPIClient::V2
|
|
|
47
55
|
def self.openapi_types
|
|
48
56
|
{
|
|
49
57
|
:'detail' => :'String',
|
|
58
|
+
:'meta' => :'Hash<String, Object>',
|
|
59
|
+
:'source' => :'JSONAPIErrorItemSource',
|
|
50
60
|
:'status' => :'String',
|
|
51
61
|
:'title' => :'String'
|
|
52
62
|
}
|
|
@@ -74,6 +84,14 @@ module DatadogAPIClient::V2
|
|
|
74
84
|
self.detail = attributes[:'detail']
|
|
75
85
|
end
|
|
76
86
|
|
|
87
|
+
if attributes.key?(:'meta')
|
|
88
|
+
self.meta = attributes[:'meta']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'source')
|
|
92
|
+
self.source = attributes[:'source']
|
|
93
|
+
end
|
|
94
|
+
|
|
77
95
|
if attributes.key?(:'status')
|
|
78
96
|
self.status = attributes[:'status']
|
|
79
97
|
end
|
|
@@ -110,6 +128,8 @@ module DatadogAPIClient::V2
|
|
|
110
128
|
return true if self.equal?(o)
|
|
111
129
|
self.class == o.class &&
|
|
112
130
|
detail == o.detail &&
|
|
131
|
+
meta == o.meta &&
|
|
132
|
+
source == o.source &&
|
|
113
133
|
status == o.status &&
|
|
114
134
|
title == o.title &&
|
|
115
135
|
additional_properties == o.additional_properties
|
|
@@ -119,7 +139,7 @@ module DatadogAPIClient::V2
|
|
|
119
139
|
# @return [Integer] Hash code
|
|
120
140
|
# @!visibility private
|
|
121
141
|
def hash
|
|
122
|
-
[detail, status, title, additional_properties].hash
|
|
142
|
+
[detail, meta, source, status, title, additional_properties].hash
|
|
123
143
|
end
|
|
124
144
|
end
|
|
125
145
|
end
|
|
@@ -17,14 +17,17 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
#
|
|
21
|
-
class
|
|
20
|
+
# References to the source of the error.
|
|
21
|
+
class JSONAPIErrorItemSource
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# A string indicating the name of a single request header which caused the error.
|
|
25
|
+
attr_accessor :header
|
|
26
|
+
|
|
27
|
+
# A string indicating which URI query parameter caused the error.
|
|
25
28
|
attr_accessor :parameter
|
|
26
29
|
|
|
27
|
-
#
|
|
30
|
+
# A JSON pointer to the value in the request document that caused the error.
|
|
28
31
|
attr_accessor :pointer
|
|
29
32
|
|
|
30
33
|
attr_accessor :additional_properties
|
|
@@ -33,6 +36,7 @@ module DatadogAPIClient::V2
|
|
|
33
36
|
# @!visibility private
|
|
34
37
|
def self.attribute_map
|
|
35
38
|
{
|
|
39
|
+
:'header' => :'header',
|
|
36
40
|
:'parameter' => :'parameter',
|
|
37
41
|
:'pointer' => :'pointer'
|
|
38
42
|
}
|
|
@@ -42,6 +46,7 @@ module DatadogAPIClient::V2
|
|
|
42
46
|
# @!visibility private
|
|
43
47
|
def self.openapi_types
|
|
44
48
|
{
|
|
49
|
+
:'header' => :'String',
|
|
45
50
|
:'parameter' => :'String',
|
|
46
51
|
:'pointer' => :'String'
|
|
47
52
|
}
|
|
@@ -52,7 +57,7 @@ module DatadogAPIClient::V2
|
|
|
52
57
|
# @!visibility private
|
|
53
58
|
def initialize(attributes = {})
|
|
54
59
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::JSONAPIErrorItemSource` initialize method"
|
|
56
61
|
end
|
|
57
62
|
|
|
58
63
|
self.additional_properties = {}
|
|
@@ -65,6 +70,10 @@ module DatadogAPIClient::V2
|
|
|
65
70
|
end
|
|
66
71
|
}
|
|
67
72
|
|
|
73
|
+
if attributes.key?(:'header')
|
|
74
|
+
self.header = attributes[:'header']
|
|
75
|
+
end
|
|
76
|
+
|
|
68
77
|
if attributes.key?(:'parameter')
|
|
69
78
|
self.parameter = attributes[:'parameter']
|
|
70
79
|
end
|
|
@@ -100,6 +109,7 @@ module DatadogAPIClient::V2
|
|
|
100
109
|
def ==(o)
|
|
101
110
|
return true if self.equal?(o)
|
|
102
111
|
self.class == o.class &&
|
|
112
|
+
header == o.header &&
|
|
103
113
|
parameter == o.parameter &&
|
|
104
114
|
pointer == o.pointer &&
|
|
105
115
|
additional_properties == o.additional_properties
|
|
@@ -109,7 +119,7 @@ module DatadogAPIClient::V2
|
|
|
109
119
|
# @return [Integer] Hash code
|
|
110
120
|
# @!visibility private
|
|
111
121
|
def hash
|
|
112
|
-
[parameter, pointer, additional_properties].hash
|
|
122
|
+
[header, parameter, pointer, additional_properties].hash
|
|
113
123
|
end
|
|
114
124
|
end
|
|
115
125
|
end
|
|
@@ -0,0 +1,133 @@
|
|
|
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
|
+
# Vulnerability library.
|
|
21
|
+
class Library
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Vulnerability library name.
|
|
25
|
+
attr_reader :name
|
|
26
|
+
|
|
27
|
+
# Vulnerability library version.
|
|
28
|
+
attr_accessor :version
|
|
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
|
+
:'name' => :'name',
|
|
37
|
+
:'version' => :'version'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'name' => :'String',
|
|
46
|
+
:'version' => :'String'
|
|
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::Library` 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?(:'name')
|
|
69
|
+
self.name = attributes[:'name']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'version')
|
|
73
|
+
self.version = attributes[:'version']
|
|
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 @name.nil?
|
|
82
|
+
true
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Custom attribute writer method with validation
|
|
86
|
+
# @param name [Object] Object to be assigned
|
|
87
|
+
# @!visibility private
|
|
88
|
+
def name=(name)
|
|
89
|
+
if name.nil?
|
|
90
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
91
|
+
end
|
|
92
|
+
@name = name
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
96
|
+
# @return [Hash] Returns the object in the form of hash
|
|
97
|
+
# @!visibility private
|
|
98
|
+
def to_hash
|
|
99
|
+
hash = {}
|
|
100
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
101
|
+
value = self.send(attr)
|
|
102
|
+
if value.nil?
|
|
103
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
104
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
hash[param] = _to_hash(value)
|
|
108
|
+
end
|
|
109
|
+
self.additional_properties.each_pair do |attr, value|
|
|
110
|
+
hash[attr] = value
|
|
111
|
+
end
|
|
112
|
+
hash
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Checks equality by comparing each attribute.
|
|
116
|
+
# @param o [Object] Object to be compared
|
|
117
|
+
# @!visibility private
|
|
118
|
+
def ==(o)
|
|
119
|
+
return true if self.equal?(o)
|
|
120
|
+
self.class == o.class &&
|
|
121
|
+
name == o.name &&
|
|
122
|
+
version == o.version &&
|
|
123
|
+
additional_properties == o.additional_properties
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Calculates hash code according to all attributes.
|
|
127
|
+
# @return [Integer] Hash code
|
|
128
|
+
# @!visibility private
|
|
129
|
+
def hash
|
|
130
|
+
[name, version, additional_properties].hash
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
end
|