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,167 @@
|
|
|
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 containing IDs of Synthetic tests and a timeframe.
|
|
21
|
+
class SyntheticsFetchUptimesPayload
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Timestamp in seconds (Unix epoch) for the start of uptime.
|
|
25
|
+
attr_reader :from_ts
|
|
26
|
+
|
|
27
|
+
# An array of Synthetic test IDs you want to delete.
|
|
28
|
+
attr_reader :public_ids
|
|
29
|
+
|
|
30
|
+
# Timestamp in seconds (Unix epoch) for the end of uptime.
|
|
31
|
+
attr_reader :to_ts
|
|
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
|
+
:'from_ts' => :'from_ts',
|
|
40
|
+
:'public_ids' => :'public_ids',
|
|
41
|
+
:'to_ts' => :'to_ts'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
# @!visibility private
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'from_ts' => :'Integer',
|
|
50
|
+
:'public_ids' => :'Array<String>',
|
|
51
|
+
:'to_ts' => :'Integer'
|
|
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::SyntheticsFetchUptimesPayload` 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?(:'from_ts')
|
|
74
|
+
self.from_ts = attributes[:'from_ts']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'public_ids')
|
|
78
|
+
if (value = attributes[:'public_ids']).is_a?(Array)
|
|
79
|
+
self.public_ids = value
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'to_ts')
|
|
84
|
+
self.to_ts = attributes[:'to_ts']
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Check to see if the all the properties in the model are valid
|
|
89
|
+
# @return true if the model is valid
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def valid?
|
|
92
|
+
return false if @from_ts.nil?
|
|
93
|
+
return false if @public_ids.nil?
|
|
94
|
+
return false if @to_ts.nil?
|
|
95
|
+
true
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Custom attribute writer method with validation
|
|
99
|
+
# @param from_ts [Object] Object to be assigned
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def from_ts=(from_ts)
|
|
102
|
+
if from_ts.nil?
|
|
103
|
+
fail ArgumentError, 'invalid value for "from_ts", from_ts cannot be nil.'
|
|
104
|
+
end
|
|
105
|
+
@from_ts = from_ts
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Custom attribute writer method with validation
|
|
109
|
+
# @param public_ids [Object] Object to be assigned
|
|
110
|
+
# @!visibility private
|
|
111
|
+
def public_ids=(public_ids)
|
|
112
|
+
if public_ids.nil?
|
|
113
|
+
fail ArgumentError, 'invalid value for "public_ids", public_ids cannot be nil.'
|
|
114
|
+
end
|
|
115
|
+
@public_ids = public_ids
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Custom attribute writer method with validation
|
|
119
|
+
# @param to_ts [Object] Object to be assigned
|
|
120
|
+
# @!visibility private
|
|
121
|
+
def to_ts=(to_ts)
|
|
122
|
+
if to_ts.nil?
|
|
123
|
+
fail ArgumentError, 'invalid value for "to_ts", to_ts cannot be nil.'
|
|
124
|
+
end
|
|
125
|
+
@to_ts = to_ts
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
129
|
+
# @return [Hash] Returns the object in the form of hash
|
|
130
|
+
# @!visibility private
|
|
131
|
+
def to_hash
|
|
132
|
+
hash = {}
|
|
133
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
134
|
+
value = self.send(attr)
|
|
135
|
+
if value.nil?
|
|
136
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
137
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
hash[param] = _to_hash(value)
|
|
141
|
+
end
|
|
142
|
+
self.additional_properties.each_pair do |attr, value|
|
|
143
|
+
hash[attr] = value
|
|
144
|
+
end
|
|
145
|
+
hash
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Checks equality by comparing each attribute.
|
|
149
|
+
# @param o [Object] Object to be compared
|
|
150
|
+
# @!visibility private
|
|
151
|
+
def ==(o)
|
|
152
|
+
return true if self.equal?(o)
|
|
153
|
+
self.class == o.class &&
|
|
154
|
+
from_ts == o.from_ts &&
|
|
155
|
+
public_ids == o.public_ids &&
|
|
156
|
+
to_ts == o.to_ts
|
|
157
|
+
additional_properties == o.additional_properties
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Calculates hash code according to all attributes.
|
|
161
|
+
# @return [Integer] Hash code
|
|
162
|
+
# @!visibility private
|
|
163
|
+
def hash
|
|
164
|
+
[from_ts, public_ids, to_ts].hash
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
end
|
|
@@ -0,0 +1,229 @@
|
|
|
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
|
+
# The steps used in a Synthetic mobile test.
|
|
21
|
+
class SyntheticsMobileStep
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# A boolean set to allow this step to fail.
|
|
25
|
+
attr_accessor :allow_failure
|
|
26
|
+
|
|
27
|
+
# A boolean set to determine if the step has a new step element.
|
|
28
|
+
attr_accessor :has_new_step_element
|
|
29
|
+
|
|
30
|
+
# A boolean to use in addition to `allowFailure` to determine if the test should be marked as failed when the step fails.
|
|
31
|
+
attr_accessor :is_critical
|
|
32
|
+
|
|
33
|
+
# The name of the step.
|
|
34
|
+
attr_reader :name
|
|
35
|
+
|
|
36
|
+
# A boolean set to not take a screenshot for the step.
|
|
37
|
+
attr_accessor :no_screenshot
|
|
38
|
+
|
|
39
|
+
# The parameters of a mobile step.
|
|
40
|
+
attr_reader :params
|
|
41
|
+
|
|
42
|
+
# The public ID of the step.
|
|
43
|
+
attr_accessor :public_id
|
|
44
|
+
|
|
45
|
+
# The time before declaring a step failed.
|
|
46
|
+
attr_accessor :timeout
|
|
47
|
+
|
|
48
|
+
# Step type used in your mobile Synthetic test.
|
|
49
|
+
attr_reader :type
|
|
50
|
+
|
|
51
|
+
attr_accessor :additional_properties
|
|
52
|
+
|
|
53
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
54
|
+
# @!visibility private
|
|
55
|
+
def self.attribute_map
|
|
56
|
+
{
|
|
57
|
+
:'allow_failure' => :'allowFailure',
|
|
58
|
+
:'has_new_step_element' => :'hasNewStepElement',
|
|
59
|
+
:'is_critical' => :'isCritical',
|
|
60
|
+
:'name' => :'name',
|
|
61
|
+
:'no_screenshot' => :'noScreenshot',
|
|
62
|
+
:'params' => :'params',
|
|
63
|
+
:'public_id' => :'publicId',
|
|
64
|
+
:'timeout' => :'timeout',
|
|
65
|
+
:'type' => :'type'
|
|
66
|
+
}
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Attribute type mapping.
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def self.openapi_types
|
|
72
|
+
{
|
|
73
|
+
:'allow_failure' => :'Boolean',
|
|
74
|
+
:'has_new_step_element' => :'Boolean',
|
|
75
|
+
:'is_critical' => :'Boolean',
|
|
76
|
+
:'name' => :'String',
|
|
77
|
+
:'no_screenshot' => :'Boolean',
|
|
78
|
+
:'params' => :'SyntheticsMobileStepParams',
|
|
79
|
+
:'public_id' => :'String',
|
|
80
|
+
:'timeout' => :'Integer',
|
|
81
|
+
:'type' => :'SyntheticsMobileStepType'
|
|
82
|
+
}
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Initializes the object
|
|
86
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
87
|
+
# @!visibility private
|
|
88
|
+
def initialize(attributes = {})
|
|
89
|
+
if (!attributes.is_a?(Hash))
|
|
90
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsMobileStep` initialize method"
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
self.additional_properties = {}
|
|
94
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
95
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
96
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
97
|
+
self.additional_properties[k.to_sym] = v
|
|
98
|
+
else
|
|
99
|
+
h[k.to_sym] = v
|
|
100
|
+
end
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'allow_failure')
|
|
104
|
+
self.allow_failure = attributes[:'allow_failure']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'has_new_step_element')
|
|
108
|
+
self.has_new_step_element = attributes[:'has_new_step_element']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'is_critical')
|
|
112
|
+
self.is_critical = attributes[:'is_critical']
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if attributes.key?(:'name')
|
|
116
|
+
self.name = attributes[:'name']
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'no_screenshot')
|
|
120
|
+
self.no_screenshot = attributes[:'no_screenshot']
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'params')
|
|
124
|
+
self.params = attributes[:'params']
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
if attributes.key?(:'public_id')
|
|
128
|
+
self.public_id = attributes[:'public_id']
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'timeout')
|
|
132
|
+
self.timeout = attributes[:'timeout']
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'type')
|
|
136
|
+
self.type = attributes[:'type']
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Check to see if the all the properties in the model are valid
|
|
141
|
+
# @return true if the model is valid
|
|
142
|
+
# @!visibility private
|
|
143
|
+
def valid?
|
|
144
|
+
return false if @name.nil?
|
|
145
|
+
return false if @name.to_s.length > 1500
|
|
146
|
+
return false if @params.nil?
|
|
147
|
+
return false if @type.nil?
|
|
148
|
+
true
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Custom attribute writer method with validation
|
|
152
|
+
# @param name [Object] Object to be assigned
|
|
153
|
+
# @!visibility private
|
|
154
|
+
def name=(name)
|
|
155
|
+
if name.nil?
|
|
156
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
157
|
+
end
|
|
158
|
+
if name.to_s.length > 1500
|
|
159
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 1500.'
|
|
160
|
+
end
|
|
161
|
+
@name = name
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Custom attribute writer method with validation
|
|
165
|
+
# @param params [Object] Object to be assigned
|
|
166
|
+
# @!visibility private
|
|
167
|
+
def params=(params)
|
|
168
|
+
if params.nil?
|
|
169
|
+
fail ArgumentError, 'invalid value for "params", params cannot be nil.'
|
|
170
|
+
end
|
|
171
|
+
@params = params
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Custom attribute writer method with validation
|
|
175
|
+
# @param type [Object] Object to be assigned
|
|
176
|
+
# @!visibility private
|
|
177
|
+
def type=(type)
|
|
178
|
+
if type.nil?
|
|
179
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
180
|
+
end
|
|
181
|
+
@type = type
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
|
186
|
+
# @!visibility private
|
|
187
|
+
def to_hash
|
|
188
|
+
hash = {}
|
|
189
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
190
|
+
value = self.send(attr)
|
|
191
|
+
if value.nil?
|
|
192
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
193
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
hash[param] = _to_hash(value)
|
|
197
|
+
end
|
|
198
|
+
self.additional_properties.each_pair do |attr, value|
|
|
199
|
+
hash[attr] = value
|
|
200
|
+
end
|
|
201
|
+
hash
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Checks equality by comparing each attribute.
|
|
205
|
+
# @param o [Object] Object to be compared
|
|
206
|
+
# @!visibility private
|
|
207
|
+
def ==(o)
|
|
208
|
+
return true if self.equal?(o)
|
|
209
|
+
self.class == o.class &&
|
|
210
|
+
allow_failure == o.allow_failure &&
|
|
211
|
+
has_new_step_element == o.has_new_step_element &&
|
|
212
|
+
is_critical == o.is_critical &&
|
|
213
|
+
name == o.name &&
|
|
214
|
+
no_screenshot == o.no_screenshot &&
|
|
215
|
+
params == o.params &&
|
|
216
|
+
public_id == o.public_id &&
|
|
217
|
+
timeout == o.timeout &&
|
|
218
|
+
type == o.type
|
|
219
|
+
additional_properties == o.additional_properties
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Calculates hash code according to all attributes.
|
|
223
|
+
# @return [Integer] Hash code
|
|
224
|
+
# @!visibility private
|
|
225
|
+
def hash
|
|
226
|
+
[allow_failure, has_new_step_element, is_critical, name, no_screenshot, params, public_id, timeout, type].hash
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
end
|
|
@@ -0,0 +1,249 @@
|
|
|
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
|
+
# The parameters of a mobile step.
|
|
21
|
+
class SyntheticsMobileStepParams
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Type of assertion to apply in an API test.
|
|
25
|
+
attr_accessor :check
|
|
26
|
+
|
|
27
|
+
# Number of milliseconds to wait between inputs in a `typeText` step type.
|
|
28
|
+
attr_reader :delay
|
|
29
|
+
|
|
30
|
+
# The direction of the scroll for a `scrollToElement` step type.
|
|
31
|
+
attr_accessor :direction
|
|
32
|
+
|
|
33
|
+
# Information about the element used for a step.
|
|
34
|
+
attr_accessor :element
|
|
35
|
+
|
|
36
|
+
# Boolean to change the state of the wifi for a `toggleWiFi` step type.
|
|
37
|
+
attr_accessor :enabled
|
|
38
|
+
|
|
39
|
+
# Maximum number of scrolls to do for a `scrollToElement` step type.
|
|
40
|
+
attr_accessor :max_scrolls
|
|
41
|
+
|
|
42
|
+
# List of positions for the `flick` step type. The maximum is 10 flicks per step
|
|
43
|
+
attr_accessor :positions
|
|
44
|
+
|
|
45
|
+
# Public ID of the test to be played as part of a `playSubTest` step type.
|
|
46
|
+
attr_accessor :subtest_public_id
|
|
47
|
+
|
|
48
|
+
# Values used in the step for in multiple step types.
|
|
49
|
+
attr_accessor :value
|
|
50
|
+
|
|
51
|
+
# Variable object for `extractVariable` step type.
|
|
52
|
+
attr_accessor :variable
|
|
53
|
+
|
|
54
|
+
# Boolean to indicate if `Enter` should be pressed at the end of the `typeText` step type.
|
|
55
|
+
attr_accessor :with_enter
|
|
56
|
+
|
|
57
|
+
# Amount to scroll by on the `x` axis for a `scroll` step type.
|
|
58
|
+
attr_accessor :x
|
|
59
|
+
|
|
60
|
+
# Amount to scroll by on the `y` axis for a `scroll` step type.
|
|
61
|
+
attr_accessor :y
|
|
62
|
+
|
|
63
|
+
attr_accessor :additional_properties
|
|
64
|
+
|
|
65
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
66
|
+
# @!visibility private
|
|
67
|
+
def self.attribute_map
|
|
68
|
+
{
|
|
69
|
+
:'check' => :'check',
|
|
70
|
+
:'delay' => :'delay',
|
|
71
|
+
:'direction' => :'direction',
|
|
72
|
+
:'element' => :'element',
|
|
73
|
+
:'enabled' => :'enabled',
|
|
74
|
+
:'max_scrolls' => :'maxScrolls',
|
|
75
|
+
:'positions' => :'positions',
|
|
76
|
+
:'subtest_public_id' => :'subtestPublicId',
|
|
77
|
+
:'value' => :'value',
|
|
78
|
+
:'variable' => :'variable',
|
|
79
|
+
:'with_enter' => :'withEnter',
|
|
80
|
+
:'x' => :'x',
|
|
81
|
+
:'y' => :'y'
|
|
82
|
+
}
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Attribute type mapping.
|
|
86
|
+
# @!visibility private
|
|
87
|
+
def self.openapi_types
|
|
88
|
+
{
|
|
89
|
+
:'check' => :'SyntheticsCheckType',
|
|
90
|
+
:'delay' => :'Integer',
|
|
91
|
+
:'direction' => :'SyntheticsMobileStepParamsDirection',
|
|
92
|
+
:'element' => :'SyntheticsMobileStepParamsElement',
|
|
93
|
+
:'enabled' => :'Boolean',
|
|
94
|
+
:'max_scrolls' => :'Integer',
|
|
95
|
+
:'positions' => :'Array<SyntheticsMobileStepParamsPositionsItems>',
|
|
96
|
+
:'subtest_public_id' => :'String',
|
|
97
|
+
:'value' => :'SyntheticsMobileStepParamsValue',
|
|
98
|
+
:'variable' => :'SyntheticsMobileStepParamsVariable',
|
|
99
|
+
:'with_enter' => :'Boolean',
|
|
100
|
+
:'x' => :'Float',
|
|
101
|
+
:'y' => :'Float'
|
|
102
|
+
}
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Initializes the object
|
|
106
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
107
|
+
# @!visibility private
|
|
108
|
+
def initialize(attributes = {})
|
|
109
|
+
if (!attributes.is_a?(Hash))
|
|
110
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsMobileStepParams` initialize method"
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
self.additional_properties = {}
|
|
114
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
115
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
116
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
117
|
+
self.additional_properties[k.to_sym] = v
|
|
118
|
+
else
|
|
119
|
+
h[k.to_sym] = v
|
|
120
|
+
end
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'check')
|
|
124
|
+
self.check = attributes[:'check']
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
if attributes.key?(:'delay')
|
|
128
|
+
self.delay = attributes[:'delay']
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'direction')
|
|
132
|
+
self.direction = attributes[:'direction']
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'element')
|
|
136
|
+
self.element = attributes[:'element']
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if attributes.key?(:'enabled')
|
|
140
|
+
self.enabled = attributes[:'enabled']
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
if attributes.key?(:'max_scrolls')
|
|
144
|
+
self.max_scrolls = attributes[:'max_scrolls']
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if attributes.key?(:'positions')
|
|
148
|
+
if (value = attributes[:'positions']).is_a?(Array)
|
|
149
|
+
self.positions = value
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.key?(:'subtest_public_id')
|
|
154
|
+
self.subtest_public_id = attributes[:'subtest_public_id']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'value')
|
|
158
|
+
self.value = attributes[:'value']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'variable')
|
|
162
|
+
self.variable = attributes[:'variable']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'with_enter')
|
|
166
|
+
self.with_enter = attributes[:'with_enter']
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
if attributes.key?(:'x')
|
|
170
|
+
self.x = attributes[:'x']
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
if attributes.key?(:'y')
|
|
174
|
+
self.y = attributes[:'y']
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Check to see if the all the properties in the model are valid
|
|
179
|
+
# @return true if the model is valid
|
|
180
|
+
# @!visibility private
|
|
181
|
+
def valid?
|
|
182
|
+
return false if !@delay.nil? && @delay > 5000
|
|
183
|
+
return false if !@delay.nil? && @delay < 0
|
|
184
|
+
true
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Custom attribute writer method with validation
|
|
188
|
+
# @param delay [Object] Object to be assigned
|
|
189
|
+
# @!visibility private
|
|
190
|
+
def delay=(delay)
|
|
191
|
+
if !delay.nil? && delay > 5000
|
|
192
|
+
fail ArgumentError, 'invalid value for "delay", must be smaller than or equal to 5000.'
|
|
193
|
+
end
|
|
194
|
+
if !delay.nil? && delay < 0
|
|
195
|
+
fail ArgumentError, 'invalid value for "delay", must be greater than or equal to 0.'
|
|
196
|
+
end
|
|
197
|
+
@delay = delay
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
201
|
+
# @return [Hash] Returns the object in the form of hash
|
|
202
|
+
# @!visibility private
|
|
203
|
+
def to_hash
|
|
204
|
+
hash = {}
|
|
205
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
206
|
+
value = self.send(attr)
|
|
207
|
+
if value.nil?
|
|
208
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
209
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
hash[param] = _to_hash(value)
|
|
213
|
+
end
|
|
214
|
+
self.additional_properties.each_pair do |attr, value|
|
|
215
|
+
hash[attr] = value
|
|
216
|
+
end
|
|
217
|
+
hash
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Checks equality by comparing each attribute.
|
|
221
|
+
# @param o [Object] Object to be compared
|
|
222
|
+
# @!visibility private
|
|
223
|
+
def ==(o)
|
|
224
|
+
return true if self.equal?(o)
|
|
225
|
+
self.class == o.class &&
|
|
226
|
+
check == o.check &&
|
|
227
|
+
delay == o.delay &&
|
|
228
|
+
direction == o.direction &&
|
|
229
|
+
element == o.element &&
|
|
230
|
+
enabled == o.enabled &&
|
|
231
|
+
max_scrolls == o.max_scrolls &&
|
|
232
|
+
positions == o.positions &&
|
|
233
|
+
subtest_public_id == o.subtest_public_id &&
|
|
234
|
+
value == o.value &&
|
|
235
|
+
variable == o.variable &&
|
|
236
|
+
with_enter == o.with_enter &&
|
|
237
|
+
x == o.x &&
|
|
238
|
+
y == o.y
|
|
239
|
+
additional_properties == o.additional_properties
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# Calculates hash code according to all attributes.
|
|
243
|
+
# @return [Integer] Hash code
|
|
244
|
+
# @!visibility private
|
|
245
|
+
def hash
|
|
246
|
+
[check, delay, direction, element, enabled, max_scrolls, positions, subtest_public_id, value, variable, with_enter, x, y].hash
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
# The direction of the scroll for a `scrollToElement` step type.
|
|
21
|
+
class SyntheticsMobileStepParamsDirection
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
UP = "up".freeze
|
|
25
|
+
DOWN = "down".freeze
|
|
26
|
+
LEFT = "left".freeze
|
|
27
|
+
RIGHT = "right".freeze
|
|
28
|
+
end
|
|
29
|
+
end
|