datadog_api_client 2.26.1 → 2.28.1
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/conftest.py +0 -3
- data/.generator/schemas/v1/openapi.yaml +2123 -212
- data/.generator/schemas/v2/openapi.yaml +3082 -240
- data/.generator/src/generator/formatter.py +3 -44
- data/.generator/src/generator/keywords.json +43 -0
- data/.generator/src/generator/templates/api.j2 +4 -0
- data/.generator/src/generator/templates/api_client.j2 +1 -0
- data/.github/workflows/approved_status.yml +4 -0
- data/.github/workflows/changelog.yml +5 -0
- data/.github/workflows/codeql-analysis.yml +4 -0
- data/.github/workflows/docs.yml +3 -0
- data/.github/workflows/labeler.yml +5 -0
- data/.github/workflows/prepare_release.yml +4 -0
- data/.github/workflows/publish.yml +5 -0
- data/.github/workflows/release.yml +4 -0
- data/.github/workflows/stale.yml +6 -0
- data/.github/workflows/test.yml +3 -0
- data/.github/workflows/test_integration.yml +3 -0
- data/CHANGELOG.md +66 -0
- data/examples/v1/dashboards/CreateDashboard_1413226400.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_1433408735.rb +44 -0
- data/examples/v1/dashboards/CreateDashboard_3298564989.rb +65 -0
- data/examples/v1/dashboards/CreateDashboard_794302680.rb +152 -0
- data/examples/v1/gcp-integration/CreateGCPIntegration.rb +1 -0
- data/examples/v1/gcp-integration/UpdateGCPIntegration.rb +1 -0
- data/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb +1 -0
- data/examples/v1/monitors/ValidateExistingMonitor.rb +0 -1
- data/examples/v1/monitors/ValidateMonitor.rb +0 -1
- data/examples/v1/monitors/ValidateMonitor_4247196452.rb +0 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +3 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_3829801148.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsMobileTest.rb +27 -0
- data/examples/v1/synthetics/FetchUptimes.rb +13 -0
- data/examples/v1/synthetics/GetMobileTest.rb +8 -0
- data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -1
- data/examples/v1/synthetics/UpdateMobileTest.rb +30 -0
- data/examples/v2/domain-allowlist/GetDomainAllowlist.rb +5 -0
- data/examples/v2/domain-allowlist/PatchDomainAllowlist.rb +17 -0
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +1 -0
- data/examples/v2/incidents/CreateIncidentType.rb +19 -0
- data/examples/v2/incidents/DeleteIncidentType.rb +11 -0
- data/examples/v2/incidents/GetIncidentType.rb +8 -0
- data/examples/v2/incidents/ListIncidentTypes.rb +8 -0
- data/examples/v2/incidents/UpdateIncidentType.rb +22 -0
- data/examples/v2/logs/AggregateLogs_2955613758.rb +0 -1
- data/examples/v2/metrics/QueryScalarData.rb +0 -3
- data/examples/v2/metrics/QueryScalarData_3112571352.rb +0 -3
- data/examples/v2/metrics/QueryTimeseriesData.rb +0 -3
- data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +0 -3
- data/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle.rb +17 -0
- data/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle_1540689753.rb +17 -0
- data/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle_377884154.rb +8 -0
- data/examples/v2/microsoft-teams-integration/GetChannelByName.rb +5 -0
- data/examples/v2/microsoft-teams-integration/GetTenantBasedHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.rb +8 -0
- data/examples/v2/microsoft-teams-integration/ListTenantBasedHandles.rb +5 -0
- data/examples/v2/microsoft-teams-integration/ListTenantBasedHandles_769592979.rb +5 -0
- data/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.rb +17 -0
- data/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle_419892746.rb +18 -0
- data/examples/v2/rum-metrics/CreateRumMetric.rb +32 -0
- data/examples/v2/rum-metrics/DeleteRumMetric.rb +8 -0
- data/examples/v2/rum-metrics/GetRumMetric.rb +8 -0
- data/examples/v2/rum-metrics/ListRumMetrics.rb +5 -0
- data/examples/v2/rum-metrics/UpdateRumMetric.rb +29 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb +9 -0
- data/examples/v2/security-monitoring/ListFindings_1668290866.rb +14 -0
- data/examples/v2/usage-metering/GetBillingDimensionMapping.rb +8 -0
- data/examples/v2/usage-metering/GetMonthlyCostAttribution.rb +4 -1
- data/lib/datadog_api_client/api_client.rb +1 -0
- data/lib/datadog_api_client/configuration.rb +6 -2
- data/lib/datadog_api_client/inflector.rb +109 -5
- data/lib/datadog_api_client/v1/api/monitors_api.rb +6 -3
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +274 -0
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +5 -3
- data/lib/datadog_api_client/v1/models/gcp_account.rb +11 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +2 -3
- data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +4 -6
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -61
- data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +2 -2
- data/lib/datadog_api_client/v1/models/{synthetics_status.rb → synthetics_batch_status.rb} +4 -4
- data/lib/datadog_api_client/v1/models/synthetics_config_variable_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_fetch_uptimes_payload.rb +167 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step.rb +229 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params.rb +249 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_direction.rb +29 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element.rb +175 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_context_type.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_relative_position.rb +115 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator.rb +117 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator_values_items.rb +115 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator_values_items_type.rb +30 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_positions_items.rb +115 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_value.rb +63 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_variable.rb +144 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_type.rb +42 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test.rb +263 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_config.rb +117 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options.rb +380 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_tests_mobile_application.rb +173 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_tests_mobile_application_reference_type.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_step.rb +22 -2
- data/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +21 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb +19 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb +34 -4
- data/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options_notification_preset_name.rb +29 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb +31 -2
- data/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb +32 -6
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request_port.rb +63 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_restriction_policy_binding.rb +117 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_restriction_policy_binding_relation.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_uptime.rb +135 -0
- data/lib/datadog_api_client/v1/models/synthetics_uptime.rb +161 -0
- data/lib/datadog_api_client/v1/models/table_widget_request.rb +16 -4
- data/lib/datadog_api_client/v1/models/table_widget_text_format_match.rb +144 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_match_type.rb +31 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_palette.rb +36 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace.rb +63 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_all.rb +144 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_all_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_substring.rb +165 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_substring_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_rule.rb +163 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb +1 -12
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +51 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +51 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +51 -1
- data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +3 -69
- data/lib/datadog_api_client/v2/api/domain_allowlist_api.rb +153 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +362 -1
- data/lib/datadog_api_client/v2/api/metrics_api.rb +5 -17
- data/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb +434 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/rum_metrics_api.rb +357 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -0
- data/lib/datadog_api_client/v2/api/software_catalog_api.rb +19 -19
- data/lib/datadog_api_client/v2/api/teams_api.rb +1 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +79 -10
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item.rb +125 -0
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes.rb +127 -0
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes_endpoints_items.rb +127 -0
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes_endpoints_items_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/domain_allowlist.rb +151 -0
- data/lib/datadog_api_client/v2/models/domain_allowlist_attributes.rb +117 -0
- data/lib/datadog_api_client/v2/models/domain_allowlist_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/domain_allowlist_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/domain_allowlist_response_data.rb +151 -0
- data/lib/datadog_api_client/v2/models/domain_allowlist_response_data_attributes.rb +117 -0
- data/lib/datadog_api_client/v2/models/domain_allowlist_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/entity_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_incident.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_raw_schema.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_related_oncall_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_related_oncall_escalation_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_schema.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_v3_api_version.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_code_location_item.rb +3 -3
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_event_item.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_integration_opsgenie.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_integration_pagerduty.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_log_item.rb +3 -3
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_performance.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_pipelines.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datastore.rb +4 -4
- data/lib/datadog_api_client/v2/models/entity_v3_datastore_datadog.rb +4 -4
- data/lib/datadog_api_client/v2/models/entity_v3_datastore_spec.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_integrations.rb +3 -3
- data/lib/datadog_api_client/v2/models/entity_v3_metadata.rb +9 -9
- data/lib/datadog_api_client/v2/models/entity_v3_metadata_additional_owners_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_metadata_contacts_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_metadata_links_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_metadata_owner.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_queue.rb +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3_queue_datadog.rb +4 -4
- data/lib/datadog_api_client/v2/models/entity_v3_queue_spec.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_service.rb +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3_service_datadog.rb +6 -6
- data/lib/datadog_api_client/v2/models/entity_v3_service_spec.rb +3 -3
- data/lib/datadog_api_client/v2/models/entity_v3_system.rb +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3_system_datadog.rb +5 -5
- data/lib/datadog_api_client/v2/models/fastly_services_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/finding_attributes.rb +14 -4
- data/lib/datadog_api_client/v2/models/finding_vulnerability_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/gcp_metric_namespace_config.rb +115 -0
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +23 -1
- data/lib/datadog_api_client/v2/models/incident_create_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_metadata.rb +2 -1
- data/lib/datadog_api_client/v2/models/incident_notification_handle.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_type_attributes.rb +193 -0
- data/lib/datadog_api_client/v2/models/incident_type_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_type_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_type_list_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/{aws_related_account.rb → incident_type_object.rb} +8 -8
- data/lib/datadog_api_client/v2/models/incident_type_patch_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/incident_type_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_type_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/{aws_related_account_type.rb → incident_type_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/incident_type_update_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_user_attributes.rb +153 -0
- data/lib/datadog_api_client/v2/models/incident_user_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/include_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/list_entity_catalog_response_links.rb +3 -3
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_type_category.rb +27 -0
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/microsoft_teams_channel_info_response_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_channel_info_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_channel_info_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_create_tenant_based_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_get_channel_by_name_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_attributes.rb +186 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_info_response_attributes.rb +249 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_info_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_info_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_request_attributes.rb +202 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handles_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_update_tenant_based_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_update_tenant_based_handle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/ms_teams_integration_metadata.rb +125 -0
- data/lib/datadog_api_client/v2/models/ms_teams_integration_metadata_teams_item.rb +186 -0
- data/lib/datadog_api_client/v2/models/powerpack_template_variable.rb +35 -4
- data/lib/datadog_api_client/v2/models/relation_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_metric_compute.rb +145 -0
- data/lib/datadog_api_client/v2/models/rum_metric_compute_aggregation_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/rum_metric_create_attributes.rb +176 -0
- data/lib/datadog_api_client/v2/models/rum_metric_create_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/rum_metric_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_metric_event_type.rb +32 -0
- data/lib/datadog_api_client/v2/models/rum_metric_filter.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_metric_group_by.rb +133 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_compute.rb +127 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_filter.rb +105 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_group_by.rb +115 -0
- data/lib/datadog_api_client/v2/models/{aws_related_account_attributes.rb → rum_metric_response_uniqueness.rb} +11 -21
- data/lib/datadog_api_client/v2/models/rum_metric_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_metric_uniqueness.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_metric_uniqueness_when.rb +27 -0
- data/lib/datadog_api_client/v2/models/rum_metric_update_attributes.rb +127 -0
- data/lib/datadog_api_client/v2/models/rum_metric_update_compute.rb +106 -0
- data/lib/datadog_api_client/v2/models/rum_metric_update_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/rum_metric_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{aws_related_accounts_response.rb → rum_metrics_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/security_monitoring_reference_table.rb +145 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb +15 -4
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +2 -2
- data/lib/datadog_api_client/v2/models/team_update_attributes.rb +1 -26
- data/lib/datadog_api_client/v2/models/upsert_catalog_entity_request.rb +1 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +145 -8
- data/examples/v2/cloud-cost-management/ListAWSRelatedAccounts.rb +0 -5
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 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::V1
|
|
20
|
+
# Object describing the extra options for a Synthetic test.
|
|
21
|
+
class SyntheticsMobileTestOptions
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# A boolean to set if an application crash would mark the test as failed.
|
|
25
|
+
attr_accessor :allow_application_crash
|
|
26
|
+
|
|
27
|
+
# Array of bindings used for the mobile test.
|
|
28
|
+
attr_accessor :bindings
|
|
29
|
+
|
|
30
|
+
# CI/CD options for a Synthetic test.
|
|
31
|
+
attr_accessor :ci
|
|
32
|
+
|
|
33
|
+
# The default timeout for steps in the test (in seconds).
|
|
34
|
+
attr_reader :default_step_timeout
|
|
35
|
+
|
|
36
|
+
# For mobile test, array with the different device IDs used to run the test.
|
|
37
|
+
attr_reader :device_ids
|
|
38
|
+
|
|
39
|
+
# A boolean to disable auto accepting alerts.
|
|
40
|
+
attr_accessor :disable_auto_accept_alert
|
|
41
|
+
|
|
42
|
+
# Minimum amount of time in failure required to trigger an alert.
|
|
43
|
+
attr_reader :min_failure_duration
|
|
44
|
+
|
|
45
|
+
# Mobile application for mobile synthetics test.
|
|
46
|
+
attr_reader :mobile_application
|
|
47
|
+
|
|
48
|
+
# The monitor name is used for the alert title as well as for all monitor dashboard widgets and SLOs.
|
|
49
|
+
attr_accessor :monitor_name
|
|
50
|
+
|
|
51
|
+
# Object containing the options for a Synthetic test as a monitor
|
|
52
|
+
# (for example, renotification).
|
|
53
|
+
attr_accessor :monitor_options
|
|
54
|
+
|
|
55
|
+
# Integer from 1 (high) to 5 (low) indicating alert severity.
|
|
56
|
+
attr_reader :monitor_priority
|
|
57
|
+
|
|
58
|
+
# A boolean set to not take a screenshot for the step.
|
|
59
|
+
attr_accessor :no_screenshot
|
|
60
|
+
|
|
61
|
+
# A list of role identifiers that can be pulled from the Roles API, for restricting read and write access.
|
|
62
|
+
attr_accessor :restricted_roles
|
|
63
|
+
|
|
64
|
+
# Object describing the retry strategy to apply to a Synthetic test.
|
|
65
|
+
attr_accessor :_retry
|
|
66
|
+
|
|
67
|
+
# Object containing timeframes and timezone used for advanced scheduling.
|
|
68
|
+
attr_accessor :scheduling
|
|
69
|
+
|
|
70
|
+
# The frequency at which to run the Synthetic test (in seconds).
|
|
71
|
+
attr_reader :tick_every
|
|
72
|
+
|
|
73
|
+
# The level of verbosity for the mobile test.
|
|
74
|
+
attr_reader :verbosity
|
|
75
|
+
|
|
76
|
+
attr_accessor :additional_properties
|
|
77
|
+
|
|
78
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
79
|
+
# @!visibility private
|
|
80
|
+
def self.attribute_map
|
|
81
|
+
{
|
|
82
|
+
:'allow_application_crash' => :'allowApplicationCrash',
|
|
83
|
+
:'bindings' => :'bindings',
|
|
84
|
+
:'ci' => :'ci',
|
|
85
|
+
:'default_step_timeout' => :'defaultStepTimeout',
|
|
86
|
+
:'device_ids' => :'device_ids',
|
|
87
|
+
:'disable_auto_accept_alert' => :'disableAutoAcceptAlert',
|
|
88
|
+
:'min_failure_duration' => :'min_failure_duration',
|
|
89
|
+
:'mobile_application' => :'mobileApplication',
|
|
90
|
+
:'monitor_name' => :'monitor_name',
|
|
91
|
+
:'monitor_options' => :'monitor_options',
|
|
92
|
+
:'monitor_priority' => :'monitor_priority',
|
|
93
|
+
:'no_screenshot' => :'noScreenshot',
|
|
94
|
+
:'restricted_roles' => :'restricted_roles',
|
|
95
|
+
:'_retry' => :'retry',
|
|
96
|
+
:'scheduling' => :'scheduling',
|
|
97
|
+
:'tick_every' => :'tick_every',
|
|
98
|
+
:'verbosity' => :'verbosity'
|
|
99
|
+
}
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Attribute type mapping.
|
|
103
|
+
# @!visibility private
|
|
104
|
+
def self.openapi_types
|
|
105
|
+
{
|
|
106
|
+
:'allow_application_crash' => :'Boolean',
|
|
107
|
+
:'bindings' => :'Array<SyntheticsTestRestrictionPolicyBinding>',
|
|
108
|
+
:'ci' => :'SyntheticsTestCiOptions',
|
|
109
|
+
:'default_step_timeout' => :'Integer',
|
|
110
|
+
:'device_ids' => :'Array<String>',
|
|
111
|
+
:'disable_auto_accept_alert' => :'Boolean',
|
|
112
|
+
:'min_failure_duration' => :'Integer',
|
|
113
|
+
:'mobile_application' => :'SyntheticsMobileTestsMobileApplication',
|
|
114
|
+
:'monitor_name' => :'String',
|
|
115
|
+
:'monitor_options' => :'SyntheticsTestOptionsMonitorOptions',
|
|
116
|
+
:'monitor_priority' => :'Integer',
|
|
117
|
+
:'no_screenshot' => :'Boolean',
|
|
118
|
+
:'restricted_roles' => :'Array<String>',
|
|
119
|
+
:'_retry' => :'SyntheticsTestOptionsRetry',
|
|
120
|
+
:'scheduling' => :'SyntheticsTestOptionsScheduling',
|
|
121
|
+
:'tick_every' => :'Integer',
|
|
122
|
+
:'verbosity' => :'Integer'
|
|
123
|
+
}
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Initializes the object
|
|
127
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
128
|
+
# @!visibility private
|
|
129
|
+
def initialize(attributes = {})
|
|
130
|
+
if (!attributes.is_a?(Hash))
|
|
131
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsMobileTestOptions` initialize method"
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
self.additional_properties = {}
|
|
135
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
136
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
137
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
138
|
+
self.additional_properties[k.to_sym] = v
|
|
139
|
+
else
|
|
140
|
+
h[k.to_sym] = v
|
|
141
|
+
end
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if attributes.key?(:'allow_application_crash')
|
|
145
|
+
self.allow_application_crash = attributes[:'allow_application_crash']
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if attributes.key?(:'bindings')
|
|
149
|
+
if (value = attributes[:'bindings']).is_a?(Array)
|
|
150
|
+
self.bindings = value
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if attributes.key?(:'ci')
|
|
155
|
+
self.ci = attributes[:'ci']
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
if attributes.key?(:'default_step_timeout')
|
|
159
|
+
self.default_step_timeout = attributes[:'default_step_timeout']
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
if attributes.key?(:'device_ids')
|
|
163
|
+
if (value = attributes[:'device_ids']).is_a?(Array)
|
|
164
|
+
self.device_ids = value
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.key?(:'disable_auto_accept_alert')
|
|
169
|
+
self.disable_auto_accept_alert = attributes[:'disable_auto_accept_alert']
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'min_failure_duration')
|
|
173
|
+
self.min_failure_duration = attributes[:'min_failure_duration']
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if attributes.key?(:'mobile_application')
|
|
177
|
+
self.mobile_application = attributes[:'mobile_application']
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if attributes.key?(:'monitor_name')
|
|
181
|
+
self.monitor_name = attributes[:'monitor_name']
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if attributes.key?(:'monitor_options')
|
|
185
|
+
self.monitor_options = attributes[:'monitor_options']
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
if attributes.key?(:'monitor_priority')
|
|
189
|
+
self.monitor_priority = attributes[:'monitor_priority']
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if attributes.key?(:'no_screenshot')
|
|
193
|
+
self.no_screenshot = attributes[:'no_screenshot']
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if attributes.key?(:'restricted_roles')
|
|
197
|
+
if (value = attributes[:'restricted_roles']).is_a?(Array)
|
|
198
|
+
self.restricted_roles = value
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if attributes.key?(:'_retry')
|
|
203
|
+
self._retry = attributes[:'_retry']
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
if attributes.key?(:'scheduling')
|
|
207
|
+
self.scheduling = attributes[:'scheduling']
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if attributes.key?(:'tick_every')
|
|
211
|
+
self.tick_every = attributes[:'tick_every']
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
if attributes.key?(:'verbosity')
|
|
215
|
+
self.verbosity = attributes[:'verbosity']
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Check to see if the all the properties in the model are valid
|
|
220
|
+
# @return true if the model is valid
|
|
221
|
+
# @!visibility private
|
|
222
|
+
def valid?
|
|
223
|
+
return false if !@default_step_timeout.nil? && @default_step_timeout > 300
|
|
224
|
+
return false if !@default_step_timeout.nil? && @default_step_timeout < 1
|
|
225
|
+
return false if @device_ids.nil?
|
|
226
|
+
return false if !@min_failure_duration.nil? && @min_failure_duration > 7200
|
|
227
|
+
return false if !@min_failure_duration.nil? && @min_failure_duration < 0
|
|
228
|
+
return false if @mobile_application.nil?
|
|
229
|
+
return false if !@monitor_priority.nil? && @monitor_priority > 5
|
|
230
|
+
return false if !@monitor_priority.nil? && @monitor_priority < 1
|
|
231
|
+
return false if @tick_every.nil?
|
|
232
|
+
return false if @tick_every > 604800
|
|
233
|
+
return false if @tick_every < 300
|
|
234
|
+
return false if !@verbosity.nil? && @verbosity > 5
|
|
235
|
+
return false if !@verbosity.nil? && @verbosity < 0
|
|
236
|
+
true
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Custom attribute writer method with validation
|
|
240
|
+
# @param default_step_timeout [Object] Object to be assigned
|
|
241
|
+
# @!visibility private
|
|
242
|
+
def default_step_timeout=(default_step_timeout)
|
|
243
|
+
if !default_step_timeout.nil? && default_step_timeout > 300
|
|
244
|
+
fail ArgumentError, 'invalid value for "default_step_timeout", must be smaller than or equal to 300.'
|
|
245
|
+
end
|
|
246
|
+
if !default_step_timeout.nil? && default_step_timeout < 1
|
|
247
|
+
fail ArgumentError, 'invalid value for "default_step_timeout", must be greater than or equal to 1.'
|
|
248
|
+
end
|
|
249
|
+
@default_step_timeout = default_step_timeout
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# Custom attribute writer method with validation
|
|
253
|
+
# @param device_ids [Object] Object to be assigned
|
|
254
|
+
# @!visibility private
|
|
255
|
+
def device_ids=(device_ids)
|
|
256
|
+
if device_ids.nil?
|
|
257
|
+
fail ArgumentError, 'invalid value for "device_ids", device_ids cannot be nil.'
|
|
258
|
+
end
|
|
259
|
+
@device_ids = device_ids
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Custom attribute writer method with validation
|
|
263
|
+
# @param min_failure_duration [Object] Object to be assigned
|
|
264
|
+
# @!visibility private
|
|
265
|
+
def min_failure_duration=(min_failure_duration)
|
|
266
|
+
if !min_failure_duration.nil? && min_failure_duration > 7200
|
|
267
|
+
fail ArgumentError, 'invalid value for "min_failure_duration", must be smaller than or equal to 7200.'
|
|
268
|
+
end
|
|
269
|
+
if !min_failure_duration.nil? && min_failure_duration < 0
|
|
270
|
+
fail ArgumentError, 'invalid value for "min_failure_duration", must be greater than or equal to 0.'
|
|
271
|
+
end
|
|
272
|
+
@min_failure_duration = min_failure_duration
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# Custom attribute writer method with validation
|
|
276
|
+
# @param mobile_application [Object] Object to be assigned
|
|
277
|
+
# @!visibility private
|
|
278
|
+
def mobile_application=(mobile_application)
|
|
279
|
+
if mobile_application.nil?
|
|
280
|
+
fail ArgumentError, 'invalid value for "mobile_application", mobile_application cannot be nil.'
|
|
281
|
+
end
|
|
282
|
+
@mobile_application = mobile_application
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Custom attribute writer method with validation
|
|
286
|
+
# @param monitor_priority [Object] Object to be assigned
|
|
287
|
+
# @!visibility private
|
|
288
|
+
def monitor_priority=(monitor_priority)
|
|
289
|
+
if !monitor_priority.nil? && monitor_priority > 5
|
|
290
|
+
fail ArgumentError, 'invalid value for "monitor_priority", must be smaller than or equal to 5.'
|
|
291
|
+
end
|
|
292
|
+
if !monitor_priority.nil? && monitor_priority < 1
|
|
293
|
+
fail ArgumentError, 'invalid value for "monitor_priority", must be greater than or equal to 1.'
|
|
294
|
+
end
|
|
295
|
+
@monitor_priority = monitor_priority
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Custom attribute writer method with validation
|
|
299
|
+
# @param tick_every [Object] Object to be assigned
|
|
300
|
+
# @!visibility private
|
|
301
|
+
def tick_every=(tick_every)
|
|
302
|
+
if tick_every.nil?
|
|
303
|
+
fail ArgumentError, 'invalid value for "tick_every", tick_every cannot be nil.'
|
|
304
|
+
end
|
|
305
|
+
if tick_every > 604800
|
|
306
|
+
fail ArgumentError, 'invalid value for "tick_every", must be smaller than or equal to 604800.'
|
|
307
|
+
end
|
|
308
|
+
if tick_every < 300
|
|
309
|
+
fail ArgumentError, 'invalid value for "tick_every", must be greater than or equal to 300.'
|
|
310
|
+
end
|
|
311
|
+
@tick_every = tick_every
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
# Custom attribute writer method with validation
|
|
315
|
+
# @param verbosity [Object] Object to be assigned
|
|
316
|
+
# @!visibility private
|
|
317
|
+
def verbosity=(verbosity)
|
|
318
|
+
if !verbosity.nil? && verbosity > 5
|
|
319
|
+
fail ArgumentError, 'invalid value for "verbosity", must be smaller than or equal to 5.'
|
|
320
|
+
end
|
|
321
|
+
if !verbosity.nil? && verbosity < 0
|
|
322
|
+
fail ArgumentError, 'invalid value for "verbosity", must be greater than or equal to 0.'
|
|
323
|
+
end
|
|
324
|
+
@verbosity = verbosity
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
328
|
+
# @return [Hash] Returns the object in the form of hash
|
|
329
|
+
# @!visibility private
|
|
330
|
+
def to_hash
|
|
331
|
+
hash = {}
|
|
332
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
333
|
+
value = self.send(attr)
|
|
334
|
+
if value.nil?
|
|
335
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
336
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
hash[param] = _to_hash(value)
|
|
340
|
+
end
|
|
341
|
+
self.additional_properties.each_pair do |attr, value|
|
|
342
|
+
hash[attr] = value
|
|
343
|
+
end
|
|
344
|
+
hash
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
# Checks equality by comparing each attribute.
|
|
348
|
+
# @param o [Object] Object to be compared
|
|
349
|
+
# @!visibility private
|
|
350
|
+
def ==(o)
|
|
351
|
+
return true if self.equal?(o)
|
|
352
|
+
self.class == o.class &&
|
|
353
|
+
allow_application_crash == o.allow_application_crash &&
|
|
354
|
+
bindings == o.bindings &&
|
|
355
|
+
ci == o.ci &&
|
|
356
|
+
default_step_timeout == o.default_step_timeout &&
|
|
357
|
+
device_ids == o.device_ids &&
|
|
358
|
+
disable_auto_accept_alert == o.disable_auto_accept_alert &&
|
|
359
|
+
min_failure_duration == o.min_failure_duration &&
|
|
360
|
+
mobile_application == o.mobile_application &&
|
|
361
|
+
monitor_name == o.monitor_name &&
|
|
362
|
+
monitor_options == o.monitor_options &&
|
|
363
|
+
monitor_priority == o.monitor_priority &&
|
|
364
|
+
no_screenshot == o.no_screenshot &&
|
|
365
|
+
restricted_roles == o.restricted_roles &&
|
|
366
|
+
_retry == o._retry &&
|
|
367
|
+
scheduling == o.scheduling &&
|
|
368
|
+
tick_every == o.tick_every &&
|
|
369
|
+
verbosity == o.verbosity
|
|
370
|
+
additional_properties == o.additional_properties
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# Calculates hash code according to all attributes.
|
|
374
|
+
# @return [Integer] Hash code
|
|
375
|
+
# @!visibility private
|
|
376
|
+
def hash
|
|
377
|
+
[allow_application_crash, bindings, ci, default_step_timeout, device_ids, disable_auto_accept_alert, min_failure_duration, mobile_application, monitor_name, monitor_options, monitor_priority, no_screenshot, restricted_roles, _retry, scheduling, tick_every, verbosity].hash
|
|
378
|
+
end
|
|
379
|
+
end
|
|
380
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 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::V1
|
|
20
|
+
# Type of the Synthetic test, `mobile`.
|
|
21
|
+
class SyntheticsMobileTestType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
MOBILE = "mobile".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 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::V1
|
|
20
|
+
# Mobile application for mobile synthetics test.
|
|
21
|
+
class SyntheticsMobileTestsMobileApplication
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Application ID of the mobile application.
|
|
25
|
+
attr_reader :application_id
|
|
26
|
+
|
|
27
|
+
# Reference ID of the mobile application.
|
|
28
|
+
attr_reader :reference_id
|
|
29
|
+
|
|
30
|
+
# Reference type for the mobile application for a mobile synthetics test.
|
|
31
|
+
attr_reader :reference_type
|
|
32
|
+
|
|
33
|
+
attr_accessor :additional_properties
|
|
34
|
+
|
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
|
+
# @!visibility private
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'application_id' => :'applicationId',
|
|
40
|
+
:'reference_id' => :'referenceId',
|
|
41
|
+
:'reference_type' => :'referenceType'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
# @!visibility private
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'application_id' => :'String',
|
|
50
|
+
:'reference_id' => :'String',
|
|
51
|
+
:'reference_type' => :'SyntheticsMobileTestsMobileApplicationReferenceType'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
57
|
+
# @!visibility private
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsMobileTestsMobileApplication` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
self.additional_properties = {}
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
+
self.additional_properties[k.to_sym] = v
|
|
68
|
+
else
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
end
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'application_id')
|
|
74
|
+
self.application_id = attributes[:'application_id']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'reference_id')
|
|
78
|
+
self.reference_id = attributes[:'reference_id']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'reference_type')
|
|
82
|
+
self.reference_type = attributes[:'reference_type']
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Check to see if the all the properties in the model are valid
|
|
87
|
+
# @return true if the model is valid
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def valid?
|
|
90
|
+
return false if @application_id.nil?
|
|
91
|
+
return false if @application_id.to_s.length > 1500
|
|
92
|
+
return false if @reference_id.nil?
|
|
93
|
+
return false if @reference_id.to_s.length > 1500
|
|
94
|
+
return false if @reference_type.nil?
|
|
95
|
+
true
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Custom attribute writer method with validation
|
|
99
|
+
# @param application_id [Object] Object to be assigned
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def application_id=(application_id)
|
|
102
|
+
if application_id.nil?
|
|
103
|
+
fail ArgumentError, 'invalid value for "application_id", application_id cannot be nil.'
|
|
104
|
+
end
|
|
105
|
+
if application_id.to_s.length > 1500
|
|
106
|
+
fail ArgumentError, 'invalid value for "application_id", the character length must be smaller than or equal to 1500.'
|
|
107
|
+
end
|
|
108
|
+
@application_id = application_id
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Custom attribute writer method with validation
|
|
112
|
+
# @param reference_id [Object] Object to be assigned
|
|
113
|
+
# @!visibility private
|
|
114
|
+
def reference_id=(reference_id)
|
|
115
|
+
if reference_id.nil?
|
|
116
|
+
fail ArgumentError, 'invalid value for "reference_id", reference_id cannot be nil.'
|
|
117
|
+
end
|
|
118
|
+
if reference_id.to_s.length > 1500
|
|
119
|
+
fail ArgumentError, 'invalid value for "reference_id", the character length must be smaller than or equal to 1500.'
|
|
120
|
+
end
|
|
121
|
+
@reference_id = reference_id
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Custom attribute writer method with validation
|
|
125
|
+
# @param reference_type [Object] Object to be assigned
|
|
126
|
+
# @!visibility private
|
|
127
|
+
def reference_type=(reference_type)
|
|
128
|
+
if reference_type.nil?
|
|
129
|
+
fail ArgumentError, 'invalid value for "reference_type", reference_type cannot be nil.'
|
|
130
|
+
end
|
|
131
|
+
@reference_type = reference_type
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
135
|
+
# @return [Hash] Returns the object in the form of hash
|
|
136
|
+
# @!visibility private
|
|
137
|
+
def to_hash
|
|
138
|
+
hash = {}
|
|
139
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
140
|
+
value = self.send(attr)
|
|
141
|
+
if value.nil?
|
|
142
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
143
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
hash[param] = _to_hash(value)
|
|
147
|
+
end
|
|
148
|
+
self.additional_properties.each_pair do |attr, value|
|
|
149
|
+
hash[attr] = value
|
|
150
|
+
end
|
|
151
|
+
hash
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Checks equality by comparing each attribute.
|
|
155
|
+
# @param o [Object] Object to be compared
|
|
156
|
+
# @!visibility private
|
|
157
|
+
def ==(o)
|
|
158
|
+
return true if self.equal?(o)
|
|
159
|
+
self.class == o.class &&
|
|
160
|
+
application_id == o.application_id &&
|
|
161
|
+
reference_id == o.reference_id &&
|
|
162
|
+
reference_type == o.reference_type
|
|
163
|
+
additional_properties == o.additional_properties
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Calculates hash code according to all attributes.
|
|
167
|
+
# @return [Integer] Hash code
|
|
168
|
+
# @!visibility private
|
|
169
|
+
def hash
|
|
170
|
+
[application_id, reference_id, reference_type].hash
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
end
|
data/lib/datadog_api_client/v1/models/synthetics_mobile_tests_mobile_application_reference_type.rb
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 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::V1
|
|
20
|
+
# Reference type for the mobile application for a mobile synthetics test.
|
|
21
|
+
class SyntheticsMobileTestsMobileApplicationReferenceType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
LATEST = "latest".freeze
|
|
25
|
+
VERSION = "version".freeze
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -24,13 +24,19 @@ module DatadogAPIClient::V1
|
|
|
24
24
|
# A boolean set to allow this step to fail.
|
|
25
25
|
attr_accessor :allow_failure
|
|
26
26
|
|
|
27
|
+
# A boolean set to always execute this step even if the previous step failed or was skipped.
|
|
28
|
+
attr_accessor :always_execute
|
|
29
|
+
|
|
30
|
+
# A boolean set to exit the test if the step succeeds.
|
|
31
|
+
attr_accessor :exit_if_succeed
|
|
32
|
+
|
|
27
33
|
# A boolean to use in addition to `allowFailure` to determine if the test should be marked as failed when the step fails.
|
|
28
34
|
attr_accessor :is_critical
|
|
29
35
|
|
|
30
36
|
# The name of the step.
|
|
31
37
|
attr_accessor :name
|
|
32
38
|
|
|
33
|
-
# A boolean set to
|
|
39
|
+
# A boolean set to skip taking a screenshot for the step.
|
|
34
40
|
attr_accessor :no_screenshot
|
|
35
41
|
|
|
36
42
|
# The parameters of the step.
|
|
@@ -49,6 +55,8 @@ module DatadogAPIClient::V1
|
|
|
49
55
|
def self.attribute_map
|
|
50
56
|
{
|
|
51
57
|
:'allow_failure' => :'allowFailure',
|
|
58
|
+
:'always_execute' => :'alwaysExecute',
|
|
59
|
+
:'exit_if_succeed' => :'exitIfSucceed',
|
|
52
60
|
:'is_critical' => :'isCritical',
|
|
53
61
|
:'name' => :'name',
|
|
54
62
|
:'no_screenshot' => :'noScreenshot',
|
|
@@ -63,6 +71,8 @@ module DatadogAPIClient::V1
|
|
|
63
71
|
def self.openapi_types
|
|
64
72
|
{
|
|
65
73
|
:'allow_failure' => :'Boolean',
|
|
74
|
+
:'always_execute' => :'Boolean',
|
|
75
|
+
:'exit_if_succeed' => :'Boolean',
|
|
66
76
|
:'is_critical' => :'Boolean',
|
|
67
77
|
:'name' => :'String',
|
|
68
78
|
:'no_screenshot' => :'Boolean',
|
|
@@ -94,6 +104,14 @@ module DatadogAPIClient::V1
|
|
|
94
104
|
self.allow_failure = attributes[:'allow_failure']
|
|
95
105
|
end
|
|
96
106
|
|
|
107
|
+
if attributes.key?(:'always_execute')
|
|
108
|
+
self.always_execute = attributes[:'always_execute']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'exit_if_succeed')
|
|
112
|
+
self.exit_if_succeed = attributes[:'exit_if_succeed']
|
|
113
|
+
end
|
|
114
|
+
|
|
97
115
|
if attributes.key?(:'is_critical')
|
|
98
116
|
self.is_critical = attributes[:'is_critical']
|
|
99
117
|
end
|
|
@@ -146,6 +164,8 @@ module DatadogAPIClient::V1
|
|
|
146
164
|
return true if self.equal?(o)
|
|
147
165
|
self.class == o.class &&
|
|
148
166
|
allow_failure == o.allow_failure &&
|
|
167
|
+
always_execute == o.always_execute &&
|
|
168
|
+
exit_if_succeed == o.exit_if_succeed &&
|
|
149
169
|
is_critical == o.is_critical &&
|
|
150
170
|
name == o.name &&
|
|
151
171
|
no_screenshot == o.no_screenshot &&
|
|
@@ -159,7 +179,7 @@ module DatadogAPIClient::V1
|
|
|
159
179
|
# @return [Integer] Hash code
|
|
160
180
|
# @!visibility private
|
|
161
181
|
def hash
|
|
162
|
-
[allow_failure, is_critical, name, no_screenshot, params, timeout, type].hash
|
|
182
|
+
[allow_failure, always_execute, exit_if_succeed, is_critical, name, no_screenshot, params, timeout, type].hash
|
|
163
183
|
end
|
|
164
184
|
end
|
|
165
185
|
end
|