datadog_api_client 2.16.0 → 2.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +799 -16
- data/.generator/schemas/v2/openapi.yaml +2732 -409
- data/.generator/src/generator/cli.py +5 -0
- data/.generator/src/generator/formatter.py +4 -0
- data/.generator/src/generator/openapi.py +2 -0
- data/.generator/src/generator/templates/api_client.j2 +3 -0
- data/.generator/src/generator/templates/datadog_api_client.j2 +19 -0
- data/.generator/src/generator/templates/inflector.j2 +1 -1
- data/.generator/src/generator/templates/model_base.j2 +4 -0
- data/.pre-commit-config.yaml +1 -1
- data/CHANGELOG.md +54 -0
- data/Gemfile +1 -0
- data/LICENSE-3rdparty.csv +1 -0
- data/datadog_api_client.gemspec +2 -0
- data/examples/v1/aws-integration/CreateAWSAccount.rb +2 -2
- data/examples/v1/aws-integration/CreateAWSEventBridgeSource.rb +12 -0
- data/examples/v1/aws-integration/CreateAWSTagFilter.rb +1 -1
- data/examples/v1/aws-integration/CreateNewAWSExternalID.rb +1 -1
- data/examples/v1/aws-integration/DeleteAWSAccount.rb +1 -1
- data/examples/v1/aws-integration/DeleteAWSEventBridgeSource.rb +11 -0
- data/examples/v1/aws-integration/ListAWSEventBridgeSources.rb +5 -0
- data/examples/v1/aws-integration/UpdateAWSAccount.rb +6 -6
- data/examples/v1/azure-integration/CreateAzureIntegration.rb +2 -0
- data/examples/v1/azure-integration/DeleteAzureIntegration.rb +2 -0
- data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +2 -0
- data/examples/v1/azure-integration/UpdateAzureIntegration.rb +2 -0
- data/examples/v1/dashboards/CreateDashboard_1213075383.rb +7 -0
- data/examples/v1/dashboards/CreateDashboard_1284514532.rb +3 -0
- data/examples/v1/monitors/CreateMonitor_1539578087.rb +0 -1
- data/examples/v1/synthetics/PatchTest.rb +22 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +3 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +3 -0
- data/examples/v2/confluent-cloud/DeleteConfluentAccount.rb +4 -1
- data/examples/v2/confluent-cloud/DeleteConfluentResource.rb +5 -0
- data/examples/v2/container-images/ListContainerImages.rb +0 -3
- data/examples/v2/container-images/ListContainerImages_3088586393.rb +0 -3
- data/examples/v2/container-images/ListContainerImages_3974828736.rb +0 -3
- data/examples/v2/containers/ListContainers.rb +5 -0
- data/examples/v2/containers/ListContainers_2175733917.rb +8 -0
- data/examples/v2/containers/ListContainers_931009654.rb +8 -0
- data/examples/v2/dora-metrics/CreateDORADeployment.rb +23 -0
- data/examples/v2/dora-metrics/CreateDORAIncident.rb +25 -0
- data/examples/v2/downtimes/ListMonitorDowntimes.rb +1 -1
- data/examples/v2/events/ListEvents.rb +0 -3
- data/examples/v2/events/ListEvents_1527584014.rb +0 -3
- data/examples/v2/events/ListEvents_2663715109.rb +0 -3
- data/examples/v2/events/SearchEvents.rb +0 -3
- data/examples/v2/events/SearchEvents_3856995058.rb +0 -3
- data/examples/v2/key-management/CreateCurrentUserApplicationKey.rb +2 -7
- data/examples/v2/key-management/DeleteApplicationKey.rb +4 -1
- data/examples/v2/key-management/DeleteCurrentUserApplicationKey.rb +4 -1
- data/examples/v2/okta-integration/CreateOktaAccount.rb +19 -0
- data/examples/v2/okta-integration/DeleteOktaAccount.rb +5 -0
- data/examples/v2/okta-integration/GetOktaAccount.rb +8 -0
- data/examples/v2/okta-integration/ListOktaAccounts.rb +5 -0
- data/examples/v2/okta-integration/UpdateOktaAccount.rb +20 -0
- data/examples/v2/powerpack/CreatePowerpack.rb +1 -0
- data/examples/v2/powerpack/UpdatePowerpack.rb +1 -0
- data/examples/v2/security-monitoring/MuteFindings.rb +29 -0
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +1 -1
- data/examples/v2/service-scorecards/CreateScorecardOutcomesBatch.rb +27 -0
- data/examples/v2/service-scorecards/CreateScorecardRule.rb +19 -0
- data/examples/v2/service-scorecards/DeleteScorecardRule.rb +11 -0
- data/examples/v2/service-scorecards/ListScorecardOutcomes.rb +8 -0
- data/examples/v2/service-scorecards/ListScorecardOutcomes_2663454275.rb +13 -0
- data/examples/v2/service-scorecards/ListScorecardRules.rb +8 -0
- data/examples/v2/service-scorecards/ListScorecardRules_4057666343.rb +13 -0
- data/examples/v2/synthetics/SetOnDemandConcurrencyCap.rb +3 -1
- data/examples/v2/teams/ListTeams_3429963470.rb +12 -0
- data/examples/v2/usage-metering/GetActiveBillingDimensions.rb +8 -0
- data/examples/v2/usage-metering/GetMonthlyCostAttribution.rb +8 -0
- data/examples/v2/usage-metering/GetProjectedCost.rb +8 -0
- data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb +4 -1
- data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +4 -1
- data/examples/v2/usage-metering/GetUsageObservabilityPipelines.rb +4 -1
- data/examples/v2/users/GetUser.rb +5 -2
- data/lib/datadog_api_client/api_client.rb +3 -0
- data/lib/datadog_api_client/configuration.rb +11 -4
- data/lib/datadog_api_client/inflector.rb +137 -9
- data/lib/datadog_api_client/v1/api/aws_integration_api.rb +194 -0
- data/lib/datadog_api_client/v1/api/hosts_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/monitors_api.rb +5 -1
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +73 -1
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
- data/lib/datadog_api_client/v1/model_base.rb +4 -0
- data/lib/datadog_api_client/v1/models/aws_account.rb +2 -1
- data/lib/datadog_api_client/v1/models/aws_event_bridge_account_configuration.rb +105 -0
- data/lib/datadog_api_client/v1/models/aws_event_bridge_create_request.rb +112 -0
- data/lib/datadog_api_client/v1/models/aws_event_bridge_create_response.rb +110 -0
- data/lib/datadog_api_client/v1/models/aws_event_bridge_create_status.rb +26 -0
- data/lib/datadog_api_client/v1/models/aws_event_bridge_delete_request.rb +100 -0
- data/lib/datadog_api_client/v1/models/aws_event_bridge_delete_response.rb +80 -0
- data/lib/datadog_api_client/v1/models/aws_event_bridge_delete_status.rb +26 -0
- data/lib/datadog_api_client/v1/models/aws_event_bridge_list_response.rb +92 -0
- data/lib/datadog_api_client/v1/models/aws_event_bridge_source.rb +90 -0
- data/lib/datadog_api_client/v1/models/azure_account.rb +24 -2
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +21 -0
- data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +42 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +421 -1
- data/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb +82 -0
- data/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb +100 -0
- data/lib/datadog_api_client/v1/models/synthetics_patch_test_operation_name.rb +31 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +11 -1
- data/lib/datadog_api_client/v1/models/toplist_widget_display.rb +63 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_flat.rb +98 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_flat_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_legend.rb +28 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_scaling.rb +27 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb +119 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_stacked_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_style.rb +90 -0
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +31 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +31 -1
- data/lib/datadog_api_client/v1/models/widget_live_span.rb +2 -0
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +6 -0
- data/lib/datadog_api_client/v2/api/container_images_api.rb +0 -6
- data/lib/datadog_api_client/v2/api/containers_api.rb +123 -0
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +181 -0
- data/lib/datadog_api_client/v2/api/events_api.rb +0 -12
- data/lib/datadog_api_client/v2/api/key_management_api.rb +8 -0
- data/lib/datadog_api_client/v2/api/metrics_api.rb +6 -3
- data/lib/datadog_api_client/v2/api/okta_integration_api.rb +355 -0
- data/lib/datadog_api_client/v2/api/roles_api.rb +2 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +66 -72
- data/lib/datadog_api_client/v2/api/service_scorecards_api.rb +457 -0
- data/lib/datadog_api_client/v2/api/teams_api.rb +2 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +241 -0
- data/lib/datadog_api_client/v2/model_base.rb +4 -0
- data/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb +92 -0
- data/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb +100 -0
- data/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/active_billing_dimensions_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/api_keys_response.rb +14 -4
- data/lib/datadog_api_client/v2/models/api_keys_response_meta.rb +90 -0
- data/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb +80 -0
- data/lib/datadog_api_client/v2/models/application_key_response_meta.rb +90 -0
- data/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb +80 -0
- data/lib/datadog_api_client/v2/models/bulk_mute_findings_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/{mute_finding_request_attributes.rb → bulk_mute_findings_request_attributes.rb} +5 -5
- data/lib/datadog_api_client/v2/models/bulk_mute_findings_request_data.rb +161 -0
- data/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta.rb +82 -0
- data/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta_findings.rb +80 -0
- data/lib/datadog_api_client/v2/models/{mute_finding_request_properties.rb → bulk_mute_findings_request_properties.rb} +6 -6
- data/lib/datadog_api_client/v2/models/bulk_mute_findings_response.rb +98 -0
- data/lib/datadog_api_client/v2/models/bulk_mute_findings_response_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/{mute_finding_response_data.rb → container.rb} +9 -9
- data/lib/datadog_api_client/v2/models/container_attributes.rb +183 -0
- data/lib/datadog_api_client/v2/models/container_group.rb +110 -0
- data/lib/datadog_api_client/v2/models/container_group_attributes.rb +90 -0
- data/lib/datadog_api_client/v2/models/container_group_relationships.rb +80 -0
- data/lib/datadog_api_client/v2/models/container_group_relationships_link.rb +92 -0
- data/lib/datadog_api_client/v2/models/container_group_relationships_links.rb +80 -0
- data/lib/datadog_api_client/v2/models/container_group_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/container_item.rb +63 -0
- data/lib/datadog_api_client/v2/models/container_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/container_meta_page.rb +160 -0
- data/lib/datadog_api_client/v2/models/container_meta_page_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/container_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/containers_response.rb +102 -0
- data/lib/datadog_api_client/v2/models/containers_response_links.rb +130 -0
- data/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb +100 -0
- data/lib/datadog_api_client/v2/models/cost_attribution_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/create_rule_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/create_rule_request_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/create_rule_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/create_rule_response_data.rb +110 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +170 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb +98 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_response.rb +98 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb +108 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/dora_git_info.rb +125 -0
- data/lib/datadog_api_client/v2/models/{mute_finding_response.rb → dora_incident_request.rb} +6 -6
- data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +179 -0
- data/lib/datadog_api_client/v2/models/dora_incident_request_data.rb +98 -0
- data/lib/datadog_api_client/v2/models/dora_incident_response.rb +98 -0
- data/lib/datadog_api_client/v2/models/dora_incident_response_data.rb +108 -0
- data/lib/datadog_api_client/v2/models/dora_incident_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +24 -4
- data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb +14 -4
- data/lib/datadog_api_client/v2/models/incident_create_relationships.rb +9 -19
- data/lib/datadog_api_client/v2/models/incident_impacts_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_integration_relationships.rb +90 -0
- data/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb +90 -0
- data/lib/datadog_api_client/v2/models/incident_responders_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +69 -4
- data/lib/datadog_api_client/v2/models/incident_response_relationships.rb +42 -4
- data/lib/datadog_api_client/v2/models/incident_severity.rb +31 -0
- data/lib/datadog_api_client/v2/models/incident_todo_attributes.rb +24 -4
- data/lib/datadog_api_client/v2/models/incident_todo_relationships.rb +90 -0
- data/lib/datadog_api_client/v2/models/incident_todo_response_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_update_relationships.rb +8 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_field_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/list_application_keys_response.rb +14 -4
- data/lib/datadog_api_client/v2/models/list_rules_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/list_rules_response_data_item.rb +110 -0
- data/lib/datadog_api_client/v2/models/list_rules_response_links.rb +80 -0
- data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb +151 -0
- data/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb +100 -0
- data/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb +92 -0
- data/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb +88 -0
- data/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/okta_account.rb +129 -0
- data/lib/datadog_api_client/v2/models/okta_account_attributes.rb +170 -0
- data/lib/datadog_api_client/v2/models/{mute_finding_request.rb → okta_account_request.rb} +6 -6
- data/lib/datadog_api_client/v2/models/okta_account_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/{mute_finding_request_data.rb → okta_account_response_data.rb} +9 -9
- data/lib/datadog_api_client/v2/models/okta_account_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/okta_account_update_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb +149 -0
- data/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/okta_accounts_response.rb +82 -0
- data/lib/datadog_api_client/v2/models/outcome_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/outcomes_batch_attributes.rb +82 -0
- data/lib/datadog_api_client/v2/models/outcomes_batch_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/outcomes_batch_request_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/outcomes_batch_request_item.rb +150 -0
- data/lib/datadog_api_client/v2/models/outcomes_batch_response.rb +121 -0
- data/lib/datadog_api_client/v2/models/outcomes_batch_response_attributes.rb +120 -0
- data/lib/datadog_api_client/v2/models/outcomes_batch_response_meta.rb +90 -0
- data/lib/datadog_api_client/v2/models/outcomes_batch_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/outcomes_response.rb +104 -0
- data/lib/datadog_api_client/v2/models/outcomes_response_data_item.rb +110 -0
- data/lib/datadog_api_client/v2/models/outcomes_response_included_item.rb +100 -0
- data/lib/datadog_api_client/v2/models/outcomes_response_included_rule_attributes.rb +90 -0
- data/lib/datadog_api_client/v2/models/outcomes_response_links.rb +80 -0
- data/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +24 -4
- data/lib/datadog_api_client/v2/models/powerpack_group_widget.rb +14 -4
- data/lib/datadog_api_client/v2/models/powerpack_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb +8 -0
- data/lib/datadog_api_client/v2/models/projected_cost.rb +100 -0
- data/lib/datadog_api_client/v2/models/projected_cost_attributes.rb +132 -0
- data/lib/datadog_api_client/v2/models/projected_cost_response.rb +82 -0
- data/lib/datadog_api_client/v2/models/projected_cost_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb +100 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb +100 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb +100 -0
- data/lib/datadog_api_client/v2/models/relationship_to_outcome.rb +80 -0
- data/lib/datadog_api_client/v2/models/relationship_to_outcome_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/relationship_to_rule.rb +80 -0
- data/lib/datadog_api_client/v2/models/relationship_to_rule_data.rb +80 -0
- data/lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb +90 -0
- data/lib/datadog_api_client/v2/models/rule_attributes.rb +160 -0
- data/lib/datadog_api_client/v2/models/rule_outcome_relationships.rb +80 -0
- data/lib/datadog_api_client/v2/models/rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/scorecard_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb +7 -7
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +8 -8
- data/lib/datadog_api_client/v2/models/sort_direction.rb +27 -0
- data/lib/datadog_api_client/v2/models/state.rb +28 -0
- data/lib/datadog_api_client/v2/models/teams_field.rb +40 -0
- data/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/widget_live_span.rb +40 -0
- data/lib/datadog_api_client/version.rb +1 -1
- data/lib/datadog_api_client.rb +16 -1
- metadata +186 -25
- data/examples/v2/confluent-cloud/DeleteConfluentAccount_2919241291.rb +0 -8
- data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +0 -5
- data/examples/v2/key-management/CreateCurrentUserApplicationKey_1999509896.rb +0 -14
- data/examples/v2/key-management/DeleteApplicationKey_771691550.rb +0 -8
- data/examples/v2/key-management/DeleteCurrentUserApplicationKey_1266687064.rb +0 -8
- data/examples/v2/key-management/GetCurrentUserApplicationKey_1060640890.rb +0 -8
- data/examples/v2/key-management/ListApplicationKeys_2237010090.rb +0 -5
- data/examples/v2/key-management/ListCurrentUserApplicationKeys_1503860964.rb +0 -5
- data/examples/v2/security-monitoring/UpdateFinding.rb +0 -23
- data/examples/v2/synthetics/GetOnDemandConcurrencyCap_2633566918.rb +0 -5
- data/examples/v2/synthetics/SetOnDemandConcurrencyCap_2850884405.rb +0 -9
- data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring_3959166796.rb +0 -8
- data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations_1436752065.rb +0 -8
- data/examples/v2/usage-metering/GetUsageObservabilityPipelines_970725512.rb +0 -8
- data/examples/v2/users/GetUser_3047557953.rb +0 -8
- data/lib/datadog_api_client/v2/models/mute_finding_response_attributes.rb +0 -191
- data/lib/datadog_api_client/v2/models/mute_finding_response_properties.rb +0 -114
@@ -0,0 +1,90 @@
|
|
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
|
+
# Incident's non Datadog creator.
|
21
|
+
class IncidentNonDatadogCreator
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Non Datadog creator `48px` image.
|
25
|
+
attr_accessor :image_48_px
|
26
|
+
|
27
|
+
# Non Datadog creator name.
|
28
|
+
attr_accessor :name
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
# @!visibility private
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
:'image_48_px' => :'image_48_px',
|
35
|
+
:'name' => :'name'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
# @!visibility private
|
41
|
+
def self.openapi_types
|
42
|
+
{
|
43
|
+
:'image_48_px' => :'String',
|
44
|
+
:'name' => :'String'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Initializes the object
|
49
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
50
|
+
# @!visibility private
|
51
|
+
def initialize(attributes = {})
|
52
|
+
if (!attributes.is_a?(Hash))
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentNonDatadogCreator` initialize method"
|
54
|
+
end
|
55
|
+
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentNonDatadogCreator`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
|
+
end
|
61
|
+
h[k.to_sym] = v
|
62
|
+
}
|
63
|
+
|
64
|
+
if attributes.key?(:'image_48_px')
|
65
|
+
self.image_48_px = attributes[:'image_48_px']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'name')
|
69
|
+
self.name = attributes[:'name']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Checks equality by comparing each attribute.
|
74
|
+
# @param o [Object] Object to be compared
|
75
|
+
# @!visibility private
|
76
|
+
def ==(o)
|
77
|
+
return true if self.equal?(o)
|
78
|
+
self.class == o.class &&
|
79
|
+
image_48_px == o.image_48_px &&
|
80
|
+
name == o.name
|
81
|
+
end
|
82
|
+
|
83
|
+
# Calculates hash code according to all attributes.
|
84
|
+
# @return [Integer] Hash code
|
85
|
+
# @!visibility private
|
86
|
+
def hash
|
87
|
+
[image_48_px, name].hash
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The incident responders type.
|
21
|
+
class IncidentRespondersType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
INCIDENT_RESPONDERS = "incident_responders".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -21,6 +21,12 @@ module DatadogAPIClient::V2
|
|
21
21
|
class IncidentResponseAttributes
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
+
# Timestamp of when the incident was archived.
|
25
|
+
attr_accessor :archived
|
26
|
+
|
27
|
+
# The incident case id.
|
28
|
+
attr_accessor :case_id
|
29
|
+
|
24
30
|
# Timestamp when the incident was created.
|
25
31
|
attr_accessor :created
|
26
32
|
|
@@ -49,6 +55,9 @@ module DatadogAPIClient::V2
|
|
49
55
|
# Timestamp when the incident was last modified.
|
50
56
|
attr_accessor :modified
|
51
57
|
|
58
|
+
# Incident's non Datadog creator.
|
59
|
+
attr_accessor :non_datadog_creator
|
60
|
+
|
52
61
|
# Notification handles that will be notified of the incident during update.
|
53
62
|
attr_accessor :notification_handles
|
54
63
|
|
@@ -58,6 +67,12 @@ module DatadogAPIClient::V2
|
|
58
67
|
# Timestamp when the incident's state was last changed from active or stable to resolved or completed.
|
59
68
|
attr_accessor :resolved
|
60
69
|
|
70
|
+
# The incident severity.
|
71
|
+
attr_accessor :severity
|
72
|
+
|
73
|
+
# The state incident.
|
74
|
+
attr_accessor :state
|
75
|
+
|
61
76
|
# The amount of time in seconds to detect the incident.
|
62
77
|
# Equals the difference between `customer_impact_start` and `detected`.
|
63
78
|
attr_accessor :time_to_detect
|
@@ -74,10 +89,15 @@ module DatadogAPIClient::V2
|
|
74
89
|
# The title of the incident, which summarizes what happened.
|
75
90
|
attr_reader :title
|
76
91
|
|
92
|
+
# The incident visibility status.
|
93
|
+
attr_accessor :visibility
|
94
|
+
|
77
95
|
# Attribute mapping from ruby-style variable name to JSON key.
|
78
96
|
# @!visibility private
|
79
97
|
def self.attribute_map
|
80
98
|
{
|
99
|
+
:'archived' => :'archived',
|
100
|
+
:'case_id' => :'case_id',
|
81
101
|
:'created' => :'created',
|
82
102
|
:'customer_impact_duration' => :'customer_impact_duration',
|
83
103
|
:'customer_impact_end' => :'customer_impact_end',
|
@@ -87,14 +107,18 @@ module DatadogAPIClient::V2
|
|
87
107
|
:'detected' => :'detected',
|
88
108
|
:'fields' => :'fields',
|
89
109
|
:'modified' => :'modified',
|
110
|
+
:'non_datadog_creator' => :'non_datadog_creator',
|
90
111
|
:'notification_handles' => :'notification_handles',
|
91
112
|
:'public_id' => :'public_id',
|
92
113
|
:'resolved' => :'resolved',
|
114
|
+
:'severity' => :'severity',
|
115
|
+
:'state' => :'state',
|
93
116
|
:'time_to_detect' => :'time_to_detect',
|
94
117
|
:'time_to_internal_response' => :'time_to_internal_response',
|
95
118
|
:'time_to_repair' => :'time_to_repair',
|
96
119
|
:'time_to_resolve' => :'time_to_resolve',
|
97
|
-
:'title' => :'title'
|
120
|
+
:'title' => :'title',
|
121
|
+
:'visibility' => :'visibility'
|
98
122
|
}
|
99
123
|
end
|
100
124
|
|
@@ -102,6 +126,8 @@ module DatadogAPIClient::V2
|
|
102
126
|
# @!visibility private
|
103
127
|
def self.openapi_types
|
104
128
|
{
|
129
|
+
:'archived' => :'Time',
|
130
|
+
:'case_id' => :'Integer',
|
105
131
|
:'created' => :'Time',
|
106
132
|
:'customer_impact_duration' => :'Integer',
|
107
133
|
:'customer_impact_end' => :'Time',
|
@@ -111,14 +137,18 @@ module DatadogAPIClient::V2
|
|
111
137
|
:'detected' => :'Time',
|
112
138
|
:'fields' => :'Hash<String, IncidentFieldAttributes>',
|
113
139
|
:'modified' => :'Time',
|
140
|
+
:'non_datadog_creator' => :'IncidentNonDatadogCreator',
|
114
141
|
:'notification_handles' => :'Array<IncidentNotificationHandle>',
|
115
142
|
:'public_id' => :'Integer',
|
116
143
|
:'resolved' => :'Time',
|
144
|
+
:'severity' => :'IncidentSeverity',
|
145
|
+
:'state' => :'String',
|
117
146
|
:'time_to_detect' => :'Integer',
|
118
147
|
:'time_to_internal_response' => :'Integer',
|
119
148
|
:'time_to_repair' => :'Integer',
|
120
149
|
:'time_to_resolve' => :'Integer',
|
121
|
-
:'title' => :'String'
|
150
|
+
:'title' => :'String',
|
151
|
+
:'visibility' => :'String'
|
122
152
|
}
|
123
153
|
end
|
124
154
|
|
@@ -126,12 +156,17 @@ module DatadogAPIClient::V2
|
|
126
156
|
# @!visibility private
|
127
157
|
def self.openapi_nullable
|
128
158
|
Set.new([
|
159
|
+
:'archived',
|
160
|
+
:'case_id',
|
129
161
|
:'customer_impact_end',
|
130
162
|
:'customer_impact_scope',
|
131
163
|
:'customer_impact_start',
|
132
164
|
:'detected',
|
165
|
+
:'non_datadog_creator',
|
133
166
|
:'notification_handles',
|
134
167
|
:'resolved',
|
168
|
+
:'state',
|
169
|
+
:'visibility',
|
135
170
|
])
|
136
171
|
end
|
137
172
|
|
@@ -151,6 +186,14 @@ module DatadogAPIClient::V2
|
|
151
186
|
h[k.to_sym] = v
|
152
187
|
}
|
153
188
|
|
189
|
+
if attributes.key?(:'archived')
|
190
|
+
self.archived = attributes[:'archived']
|
191
|
+
end
|
192
|
+
|
193
|
+
if attributes.key?(:'case_id')
|
194
|
+
self.case_id = attributes[:'case_id']
|
195
|
+
end
|
196
|
+
|
154
197
|
if attributes.key?(:'created')
|
155
198
|
self.created = attributes[:'created']
|
156
199
|
end
|
@@ -187,6 +230,10 @@ module DatadogAPIClient::V2
|
|
187
230
|
self.modified = attributes[:'modified']
|
188
231
|
end
|
189
232
|
|
233
|
+
if attributes.key?(:'non_datadog_creator')
|
234
|
+
self.non_datadog_creator = attributes[:'non_datadog_creator']
|
235
|
+
end
|
236
|
+
|
190
237
|
if attributes.key?(:'notification_handles')
|
191
238
|
if (value = attributes[:'notification_handles']).is_a?(Array)
|
192
239
|
self.notification_handles = value
|
@@ -201,6 +248,14 @@ module DatadogAPIClient::V2
|
|
201
248
|
self.resolved = attributes[:'resolved']
|
202
249
|
end
|
203
250
|
|
251
|
+
if attributes.key?(:'severity')
|
252
|
+
self.severity = attributes[:'severity']
|
253
|
+
end
|
254
|
+
|
255
|
+
if attributes.key?(:'state')
|
256
|
+
self.state = attributes[:'state']
|
257
|
+
end
|
258
|
+
|
204
259
|
if attributes.key?(:'time_to_detect')
|
205
260
|
self.time_to_detect = attributes[:'time_to_detect']
|
206
261
|
end
|
@@ -220,6 +275,10 @@ module DatadogAPIClient::V2
|
|
220
275
|
if attributes.key?(:'title')
|
221
276
|
self.title = attributes[:'title']
|
222
277
|
end
|
278
|
+
|
279
|
+
if attributes.key?(:'visibility')
|
280
|
+
self.visibility = attributes[:'visibility']
|
281
|
+
end
|
223
282
|
end
|
224
283
|
|
225
284
|
# Check to see if the all the properties in the model are valid
|
@@ -246,6 +305,8 @@ module DatadogAPIClient::V2
|
|
246
305
|
def ==(o)
|
247
306
|
return true if self.equal?(o)
|
248
307
|
self.class == o.class &&
|
308
|
+
archived == o.archived &&
|
309
|
+
case_id == o.case_id &&
|
249
310
|
created == o.created &&
|
250
311
|
customer_impact_duration == o.customer_impact_duration &&
|
251
312
|
customer_impact_end == o.customer_impact_end &&
|
@@ -255,21 +316,25 @@ module DatadogAPIClient::V2
|
|
255
316
|
detected == o.detected &&
|
256
317
|
fields == o.fields &&
|
257
318
|
modified == o.modified &&
|
319
|
+
non_datadog_creator == o.non_datadog_creator &&
|
258
320
|
notification_handles == o.notification_handles &&
|
259
321
|
public_id == o.public_id &&
|
260
322
|
resolved == o.resolved &&
|
323
|
+
severity == o.severity &&
|
324
|
+
state == o.state &&
|
261
325
|
time_to_detect == o.time_to_detect &&
|
262
326
|
time_to_internal_response == o.time_to_internal_response &&
|
263
327
|
time_to_repair == o.time_to_repair &&
|
264
328
|
time_to_resolve == o.time_to_resolve &&
|
265
|
-
title == o.title
|
329
|
+
title == o.title &&
|
330
|
+
visibility == o.visibility
|
266
331
|
end
|
267
332
|
|
268
333
|
# Calculates hash code according to all attributes.
|
269
334
|
# @return [Integer] Hash code
|
270
335
|
# @!visibility private
|
271
336
|
def hash
|
272
|
-
[created, customer_impact_duration, customer_impact_end, customer_impact_scope, customer_impact_start, customer_impacted, detected, fields, modified, notification_handles, public_id, resolved, time_to_detect, time_to_internal_response, time_to_repair, time_to_resolve, title].hash
|
337
|
+
[archived, case_id, created, customer_impact_duration, customer_impact_end, customer_impact_scope, customer_impact_start, customer_impacted, detected, fields, modified, non_datadog_creator, notification_handles, public_id, resolved, severity, state, time_to_detect, time_to_internal_response, time_to_repair, time_to_resolve, title, visibility].hash
|
273
338
|
end
|
274
339
|
end
|
275
340
|
end
|
@@ -30,12 +30,21 @@ module DatadogAPIClient::V2
|
|
30
30
|
# Relationship to user.
|
31
31
|
attr_accessor :created_by_user
|
32
32
|
|
33
|
+
# Relationship to impacts.
|
34
|
+
attr_accessor :impacts
|
35
|
+
|
33
36
|
# A relationship reference for multiple integration metadata objects.
|
34
37
|
attr_accessor :integrations
|
35
38
|
|
36
39
|
# Relationship to user.
|
37
40
|
attr_accessor :last_modified_by_user
|
38
41
|
|
42
|
+
# Relationship to incident responders.
|
43
|
+
attr_accessor :responders
|
44
|
+
|
45
|
+
# Relationship to incident user defined fields.
|
46
|
+
attr_accessor :user_defined_fields
|
47
|
+
|
39
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
49
|
# @!visibility private
|
41
50
|
def self.attribute_map
|
@@ -43,8 +52,11 @@ module DatadogAPIClient::V2
|
|
43
52
|
:'attachments' => :'attachments',
|
44
53
|
:'commander_user' => :'commander_user',
|
45
54
|
:'created_by_user' => :'created_by_user',
|
55
|
+
:'impacts' => :'impacts',
|
46
56
|
:'integrations' => :'integrations',
|
47
|
-
:'last_modified_by_user' => :'last_modified_by_user'
|
57
|
+
:'last_modified_by_user' => :'last_modified_by_user',
|
58
|
+
:'responders' => :'responders',
|
59
|
+
:'user_defined_fields' => :'user_defined_fields'
|
48
60
|
}
|
49
61
|
end
|
50
62
|
|
@@ -55,11 +67,22 @@ module DatadogAPIClient::V2
|
|
55
67
|
:'attachments' => :'RelationshipToIncidentAttachment',
|
56
68
|
:'commander_user' => :'NullableRelationshipToUser',
|
57
69
|
:'created_by_user' => :'RelationshipToUser',
|
70
|
+
:'impacts' => :'RelationshipToIncidentImpacts',
|
58
71
|
:'integrations' => :'RelationshipToIncidentIntegrationMetadatas',
|
59
|
-
:'last_modified_by_user' => :'RelationshipToUser'
|
72
|
+
:'last_modified_by_user' => :'RelationshipToUser',
|
73
|
+
:'responders' => :'RelationshipToIncidentResponders',
|
74
|
+
:'user_defined_fields' => :'RelationshipToIncidentUserDefinedFields'
|
60
75
|
}
|
61
76
|
end
|
62
77
|
|
78
|
+
# List of attributes with nullable: true
|
79
|
+
# @!visibility private
|
80
|
+
def self.openapi_nullable
|
81
|
+
Set.new([
|
82
|
+
:'commander_user',
|
83
|
+
])
|
84
|
+
end
|
85
|
+
|
63
86
|
# Initializes the object
|
64
87
|
# @param attributes [Hash] Model attributes in the form of hash
|
65
88
|
# @!visibility private
|
@@ -88,6 +111,10 @@ module DatadogAPIClient::V2
|
|
88
111
|
self.created_by_user = attributes[:'created_by_user']
|
89
112
|
end
|
90
113
|
|
114
|
+
if attributes.key?(:'impacts')
|
115
|
+
self.impacts = attributes[:'impacts']
|
116
|
+
end
|
117
|
+
|
91
118
|
if attributes.key?(:'integrations')
|
92
119
|
self.integrations = attributes[:'integrations']
|
93
120
|
end
|
@@ -95,6 +122,14 @@ module DatadogAPIClient::V2
|
|
95
122
|
if attributes.key?(:'last_modified_by_user')
|
96
123
|
self.last_modified_by_user = attributes[:'last_modified_by_user']
|
97
124
|
end
|
125
|
+
|
126
|
+
if attributes.key?(:'responders')
|
127
|
+
self.responders = attributes[:'responders']
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes.key?(:'user_defined_fields')
|
131
|
+
self.user_defined_fields = attributes[:'user_defined_fields']
|
132
|
+
end
|
98
133
|
end
|
99
134
|
|
100
135
|
# Checks equality by comparing each attribute.
|
@@ -106,15 +141,18 @@ module DatadogAPIClient::V2
|
|
106
141
|
attachments == o.attachments &&
|
107
142
|
commander_user == o.commander_user &&
|
108
143
|
created_by_user == o.created_by_user &&
|
144
|
+
impacts == o.impacts &&
|
109
145
|
integrations == o.integrations &&
|
110
|
-
last_modified_by_user == o.last_modified_by_user
|
146
|
+
last_modified_by_user == o.last_modified_by_user &&
|
147
|
+
responders == o.responders &&
|
148
|
+
user_defined_fields == o.user_defined_fields
|
111
149
|
end
|
112
150
|
|
113
151
|
# Calculates hash code according to all attributes.
|
114
152
|
# @return [Integer] Hash code
|
115
153
|
# @!visibility private
|
116
154
|
def hash
|
117
|
-
[attachments, commander_user, created_by_user, integrations, last_modified_by_user].hash
|
155
|
+
[attachments, commander_user, created_by_user, impacts, integrations, last_modified_by_user, responders, user_defined_fields].hash
|
118
156
|
end
|
119
157
|
end
|
120
158
|
end
|
@@ -0,0 +1,31 @@
|
|
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 incident severity.
|
21
|
+
class IncidentSeverity
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
UNKNOWN = "UNKNOWN".freeze
|
25
|
+
SEV_1 = "SEV-1".freeze
|
26
|
+
SEV_2 = "SEV-2".freeze
|
27
|
+
SEV_3 = "SEV-3".freeze
|
28
|
+
SEV_4 = "SEV-4".freeze
|
29
|
+
SEV_5 = "SEV-5".freeze
|
30
|
+
end
|
31
|
+
end
|
@@ -30,12 +30,18 @@ module DatadogAPIClient::V2
|
|
30
30
|
# The follow-up task's content.
|
31
31
|
attr_reader :content
|
32
32
|
|
33
|
+
# Timestamp when the incident todo was created.
|
34
|
+
attr_accessor :created
|
35
|
+
|
33
36
|
# Timestamp when the todo should be completed by.
|
34
37
|
attr_accessor :due_date
|
35
38
|
|
36
39
|
# UUID of the incident this todo is connected to.
|
37
40
|
attr_accessor :incident_id
|
38
41
|
|
42
|
+
# Timestamp when the incident todo was last modified.
|
43
|
+
attr_accessor :modified
|
44
|
+
|
39
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
46
|
# @!visibility private
|
41
47
|
def self.attribute_map
|
@@ -43,8 +49,10 @@ module DatadogAPIClient::V2
|
|
43
49
|
:'assignees' => :'assignees',
|
44
50
|
:'completed' => :'completed',
|
45
51
|
:'content' => :'content',
|
52
|
+
:'created' => :'created',
|
46
53
|
:'due_date' => :'due_date',
|
47
|
-
:'incident_id' => :'incident_id'
|
54
|
+
:'incident_id' => :'incident_id',
|
55
|
+
:'modified' => :'modified'
|
48
56
|
}
|
49
57
|
end
|
50
58
|
|
@@ -55,8 +63,10 @@ module DatadogAPIClient::V2
|
|
55
63
|
:'assignees' => :'Array<IncidentTodoAssignee>',
|
56
64
|
:'completed' => :'String',
|
57
65
|
:'content' => :'String',
|
66
|
+
:'created' => :'Time',
|
58
67
|
:'due_date' => :'String',
|
59
|
-
:'incident_id' => :'String'
|
68
|
+
:'incident_id' => :'String',
|
69
|
+
:'modified' => :'Time'
|
60
70
|
}
|
61
71
|
end
|
62
72
|
|
@@ -99,6 +109,10 @@ module DatadogAPIClient::V2
|
|
99
109
|
self.content = attributes[:'content']
|
100
110
|
end
|
101
111
|
|
112
|
+
if attributes.key?(:'created')
|
113
|
+
self.created = attributes[:'created']
|
114
|
+
end
|
115
|
+
|
102
116
|
if attributes.key?(:'due_date')
|
103
117
|
self.due_date = attributes[:'due_date']
|
104
118
|
end
|
@@ -106,6 +120,10 @@ module DatadogAPIClient::V2
|
|
106
120
|
if attributes.key?(:'incident_id')
|
107
121
|
self.incident_id = attributes[:'incident_id']
|
108
122
|
end
|
123
|
+
|
124
|
+
if attributes.key?(:'modified')
|
125
|
+
self.modified = attributes[:'modified']
|
126
|
+
end
|
109
127
|
end
|
110
128
|
|
111
129
|
# Check to see if the all the properties in the model are valid
|
@@ -146,15 +164,17 @@ module DatadogAPIClient::V2
|
|
146
164
|
assignees == o.assignees &&
|
147
165
|
completed == o.completed &&
|
148
166
|
content == o.content &&
|
167
|
+
created == o.created &&
|
149
168
|
due_date == o.due_date &&
|
150
|
-
incident_id == o.incident_id
|
169
|
+
incident_id == o.incident_id &&
|
170
|
+
modified == o.modified
|
151
171
|
end
|
152
172
|
|
153
173
|
# Calculates hash code according to all attributes.
|
154
174
|
# @return [Integer] Hash code
|
155
175
|
# @!visibility private
|
156
176
|
def hash
|
157
|
-
[assignees, completed, content, due_date, incident_id].hash
|
177
|
+
[assignees, completed, content, created, due_date, incident_id, modified].hash
|
158
178
|
end
|
159
179
|
end
|
160
180
|
end
|
@@ -0,0 +1,90 @@
|
|
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 incident's relationships from a response.
|
21
|
+
class IncidentTodoRelationships
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Relationship to user.
|
25
|
+
attr_accessor :created_by_user
|
26
|
+
|
27
|
+
# Relationship to user.
|
28
|
+
attr_accessor :last_modified_by_user
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
# @!visibility private
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
:'created_by_user' => :'created_by_user',
|
35
|
+
:'last_modified_by_user' => :'last_modified_by_user'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
# @!visibility private
|
41
|
+
def self.openapi_types
|
42
|
+
{
|
43
|
+
:'created_by_user' => :'RelationshipToUser',
|
44
|
+
:'last_modified_by_user' => :'RelationshipToUser'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Initializes the object
|
49
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
50
|
+
# @!visibility private
|
51
|
+
def initialize(attributes = {})
|
52
|
+
if (!attributes.is_a?(Hash))
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTodoRelationships` initialize method"
|
54
|
+
end
|
55
|
+
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentTodoRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
|
+
end
|
61
|
+
h[k.to_sym] = v
|
62
|
+
}
|
63
|
+
|
64
|
+
if attributes.key?(:'created_by_user')
|
65
|
+
self.created_by_user = attributes[:'created_by_user']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'last_modified_by_user')
|
69
|
+
self.last_modified_by_user = attributes[:'last_modified_by_user']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Checks equality by comparing each attribute.
|
74
|
+
# @param o [Object] Object to be compared
|
75
|
+
# @!visibility private
|
76
|
+
def ==(o)
|
77
|
+
return true if self.equal?(o)
|
78
|
+
self.class == o.class &&
|
79
|
+
created_by_user == o.created_by_user &&
|
80
|
+
last_modified_by_user == o.last_modified_by_user
|
81
|
+
end
|
82
|
+
|
83
|
+
# Calculates hash code according to all attributes.
|
84
|
+
# @return [Integer] Hash code
|
85
|
+
# @!visibility private
|
86
|
+
def hash
|
87
|
+
[created_by_user, last_modified_by_user].hash
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -27,6 +27,9 @@ module DatadogAPIClient::V2
|
|
27
27
|
# The incident todo's ID.
|
28
28
|
attr_reader :id
|
29
29
|
|
30
|
+
# The incident's relationships from a response.
|
31
|
+
attr_accessor :relationships
|
32
|
+
|
30
33
|
# Todo resource type.
|
31
34
|
attr_reader :type
|
32
35
|
|
@@ -36,6 +39,7 @@ module DatadogAPIClient::V2
|
|
36
39
|
{
|
37
40
|
:'attributes' => :'attributes',
|
38
41
|
:'id' => :'id',
|
42
|
+
:'relationships' => :'relationships',
|
39
43
|
:'type' => :'type'
|
40
44
|
}
|
41
45
|
end
|
@@ -46,6 +50,7 @@ module DatadogAPIClient::V2
|
|
46
50
|
{
|
47
51
|
:'attributes' => :'IncidentTodoAttributes',
|
48
52
|
:'id' => :'String',
|
53
|
+
:'relationships' => :'IncidentTodoRelationships',
|
49
54
|
:'type' => :'IncidentTodoType'
|
50
55
|
}
|
51
56
|
end
|
@@ -74,6 +79,10 @@ module DatadogAPIClient::V2
|
|
74
79
|
self.id = attributes[:'id']
|
75
80
|
end
|
76
81
|
|
82
|
+
if attributes.key?(:'relationships')
|
83
|
+
self.relationships = attributes[:'relationships']
|
84
|
+
end
|
85
|
+
|
77
86
|
if attributes.key?(:'type')
|
78
87
|
self.type = attributes[:'type']
|
79
88
|
end
|
@@ -116,6 +125,7 @@ module DatadogAPIClient::V2
|
|
116
125
|
self.class == o.class &&
|
117
126
|
attributes == o.attributes &&
|
118
127
|
id == o.id &&
|
128
|
+
relationships == o.relationships &&
|
119
129
|
type == o.type
|
120
130
|
end
|
121
131
|
|
@@ -123,7 +133,7 @@ module DatadogAPIClient::V2
|
|
123
133
|
# @return [Integer] Hash code
|
124
134
|
# @!visibility private
|
125
135
|
def hash
|
126
|
-
[attributes, id, type].hash
|
136
|
+
[attributes, id, relationships, type].hash
|
127
137
|
end
|
128
138
|
end
|
129
139
|
end
|