datadog_api_client 2.27.1 → 2.28.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/conftest.py +0 -3
- data/.generator/schemas/v1/openapi.yaml +385 -616
- data/.generator/schemas/v2/openapi.yaml +1498 -386
- data/.generator/src/generator/formatter.py +2 -43
- 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/CHANGELOG.md +39 -0
- data/examples/v1/dashboards/CreateDashboard_1413226400.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_3298564989.rb +65 -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/CreateSyntheticsMobileTest.rb +1 -1
- data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -1
- data/examples/v1/synthetics/UpdateMobileTest.rb +1 -1
- 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/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/{CreateApiHandle_1540689753.rb → CreateTenantBasedHandle_1540689753.rb} +5 -5
- 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/GetTenantBasedHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.rb +8 -0
- data/examples/v2/microsoft-teams-integration/{ListApiHandles.rb → ListTenantBasedHandles.rb} +2 -2
- data/examples/v2/microsoft-teams-integration/{ListApiHandles_769592979.rb → ListTenantBasedHandles_769592979.rb} +1 -1
- 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/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 +81 -28
- data/lib/datadog_api_client/v1/api/monitors_api.rb +6 -3
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +2 -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 +1 -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 +2 -6
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +11 -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_mobile_step.rb +32 -6
- 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_test_initial_application_arguments.rb → synthetics_mobile_step_params_positions_items.rb} +21 -11
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_value.rb +63 -0
- data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_ci_options.rb → synthetics_mobile_step_params_variable.rb} +38 -17
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_config.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options.rb +42 -16
- data/lib/datadog_api_client/v1/models/synthetics_mobile_tests_mobile_application.rb +24 -5
- 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_mobile_test_options_monitor_options_notification_preset_name.rb → synthetics_test_options_monitor_options_notification_preset_name.rb} +2 -2
- 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_mobile_test_binding_items.rb → synthetics_test_restriction_policy_binding.rb} +11 -11
- data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_binding_items_role.rb → synthetics_test_restriction_policy_binding_relation.rb} +2 -2
- data/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb +1 -12
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
- 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 +361 -0
- data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -13
- data/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb +98 -161
- 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/{aws_related_account_attributes.rb → domain_allowlist_attributes.rb} +20 -18
- data/lib/datadog_api_client/v2/models/domain_allowlist_request.rb +123 -0
- data/lib/datadog_api_client/{v1/models/synthetics_mobile_test_binding.rb → v2/models/domain_allowlist_response.rb} +13 -13
- 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/{microsoft_teams_api_handle_type.rb → domain_allowlist_type.rb} +3 -3
- 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/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_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/{microsoft_teams_api_handle_request_data.rb → incident_type_create_data.rb} +7 -7
- data/lib/datadog_api_client/v2/models/{microsoft_teams_create_api_handle_request.rb → incident_type_create_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handles_response.rb → incident_type_list_response.rb} +5 -5
- 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/{microsoft_teams_create_api_handle_response.rb → incident_type_patch_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{microsoft_teams_update_api_handle_request.rb → incident_type_response.rb} +5 -5
- 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/microsoft_teams_create_tenant_based_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_attributes.rb → microsoft_teams_tenant_based_handle_attributes.rb} +4 -4
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_response_attributes.rb → microsoft_teams_tenant_based_handle_info_response_attributes.rb} +4 -4
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_response_data.rb → microsoft_teams_tenant_based_handle_info_response_data.rb} +8 -8
- 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_api_handle_request_attributes.rb → microsoft_teams_tenant_based_handle_request_attributes.rb} +4 -4
- data/lib/datadog_api_client/v2/models/{microsoft_teams_update_api_handle_request_data.rb → microsoft_teams_tenant_based_handle_request_data.rb} +7 -7
- 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_api_handle_info_response_data.rb → microsoft_teams_tenant_based_handle_response_data.rb} +8 -8
- 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/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/{microsoft_teams_api_handle_info_response.rb → rum_metric_response.rb} +5 -5
- 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/{v1/models/synthetics_mobile_test_initial_application_arguments_property_names.rb → v2/models/rum_metric_response_filter.rb} +13 -13
- data/lib/datadog_api_client/v2/models/rum_metric_response_group_by.rb +115 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_uniqueness.rb +105 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_type.rb → rum_metric_type.rb} +3 -3
- 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/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/upsert_catalog_entity_request.rb +1 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +110 -43
- data/examples/v2/cloud-cost-management/ListAWSRelatedAccounts.rb +0 -5
- data/examples/v2/microsoft-teams-integration/CreateApiHandle.rb +0 -17
- data/examples/v2/microsoft-teams-integration/DeleteApiHandle.rb +0 -5
- data/examples/v2/microsoft-teams-integration/DeleteApiHandle_377884154.rb +0 -8
- data/examples/v2/microsoft-teams-integration/GetApiHandle.rb +0 -5
- data/examples/v2/microsoft-teams-integration/GetApiHandleByName.rb +0 -5
- data/examples/v2/microsoft-teams-integration/GetApiHandleByName_1103107145.rb +0 -8
- data/examples/v2/microsoft-teams-integration/GetApiHandle_2883785101.rb +0 -8
- data/examples/v2/microsoft-teams-integration/UpdateApiHandle.rb +0 -17
- data/examples/v2/microsoft-teams-integration/UpdateApiHandle_419892746.rb +0 -18
- data/lib/datadog_api_client/v1/models/synthetics_mobile_device_id.rb +0 -251
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options_monitor_options.rb +0 -155
@@ -0,0 +1,117 @@
|
|
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
|
+
# User locator to find the element.
|
21
|
+
class SyntheticsMobileStepParamsElementUserLocator
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Whether if the the test should fail if the element cannot be found.
|
25
|
+
attr_accessor :fail_test_on_cannot_locate
|
26
|
+
|
27
|
+
# Values of the user locator.
|
28
|
+
attr_accessor :values
|
29
|
+
|
30
|
+
attr_accessor :additional_properties
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
# @!visibility private
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'fail_test_on_cannot_locate' => :'failTestOnCannotLocate',
|
37
|
+
:'values' => :'values'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'fail_test_on_cannot_locate' => :'Boolean',
|
46
|
+
:'values' => :'Array<SyntheticsMobileStepParamsElementUserLocatorValuesItems>'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
52
|
+
# @!visibility private
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsMobileStepParamsElementUserLocator` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
self.additional_properties = {}
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
self.additional_properties[k.to_sym] = v
|
63
|
+
else
|
64
|
+
h[k.to_sym] = v
|
65
|
+
end
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'fail_test_on_cannot_locate')
|
69
|
+
self.fail_test_on_cannot_locate = attributes[:'fail_test_on_cannot_locate']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'values')
|
73
|
+
if (value = attributes[:'values']).is_a?(Array)
|
74
|
+
self.values = value
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
80
|
+
# @return [Hash] Returns the object in the form of hash
|
81
|
+
# @!visibility private
|
82
|
+
def to_hash
|
83
|
+
hash = {}
|
84
|
+
self.class.attribute_map.each_pair do |attr, param|
|
85
|
+
value = self.send(attr)
|
86
|
+
if value.nil?
|
87
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
88
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
89
|
+
end
|
90
|
+
|
91
|
+
hash[param] = _to_hash(value)
|
92
|
+
end
|
93
|
+
self.additional_properties.each_pair do |attr, value|
|
94
|
+
hash[attr] = value
|
95
|
+
end
|
96
|
+
hash
|
97
|
+
end
|
98
|
+
|
99
|
+
# Checks equality by comparing each attribute.
|
100
|
+
# @param o [Object] Object to be compared
|
101
|
+
# @!visibility private
|
102
|
+
def ==(o)
|
103
|
+
return true if self.equal?(o)
|
104
|
+
self.class == o.class &&
|
105
|
+
fail_test_on_cannot_locate == o.fail_test_on_cannot_locate &&
|
106
|
+
values == o.values
|
107
|
+
additional_properties == o.additional_properties
|
108
|
+
end
|
109
|
+
|
110
|
+
# Calculates hash code according to all attributes.
|
111
|
+
# @return [Integer] Hash code
|
112
|
+
# @!visibility private
|
113
|
+
def hash
|
114
|
+
[fail_test_on_cannot_locate, values].hash
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
@@ -0,0 +1,115 @@
|
|
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
|
+
# A single user locator object.
|
21
|
+
class SyntheticsMobileStepParamsElementUserLocatorValuesItems
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Type of a user locator.
|
25
|
+
attr_accessor :type
|
26
|
+
|
27
|
+
# Value of a user locator.
|
28
|
+
attr_accessor :value
|
29
|
+
|
30
|
+
attr_accessor :additional_properties
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
# @!visibility private
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'type' => :'type',
|
37
|
+
:'value' => :'value'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'type' => :'SyntheticsMobileStepParamsElementUserLocatorValuesItemsType',
|
46
|
+
:'value' => :'String'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
52
|
+
# @!visibility private
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsMobileStepParamsElementUserLocatorValuesItems` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
self.additional_properties = {}
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
self.additional_properties[k.to_sym] = v
|
63
|
+
else
|
64
|
+
h[k.to_sym] = v
|
65
|
+
end
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'type')
|
69
|
+
self.type = attributes[:'type']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'value')
|
73
|
+
self.value = attributes[:'value']
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
78
|
+
# @return [Hash] Returns the object in the form of hash
|
79
|
+
# @!visibility private
|
80
|
+
def to_hash
|
81
|
+
hash = {}
|
82
|
+
self.class.attribute_map.each_pair do |attr, param|
|
83
|
+
value = self.send(attr)
|
84
|
+
if value.nil?
|
85
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
86
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
87
|
+
end
|
88
|
+
|
89
|
+
hash[param] = _to_hash(value)
|
90
|
+
end
|
91
|
+
self.additional_properties.each_pair do |attr, value|
|
92
|
+
hash[attr] = value
|
93
|
+
end
|
94
|
+
hash
|
95
|
+
end
|
96
|
+
|
97
|
+
# Checks equality by comparing each attribute.
|
98
|
+
# @param o [Object] Object to be compared
|
99
|
+
# @!visibility private
|
100
|
+
def ==(o)
|
101
|
+
return true if self.equal?(o)
|
102
|
+
self.class == o.class &&
|
103
|
+
type == o.type &&
|
104
|
+
value == o.value
|
105
|
+
additional_properties == o.additional_properties
|
106
|
+
end
|
107
|
+
|
108
|
+
# Calculates hash code according to all attributes.
|
109
|
+
# @return [Integer] Hash code
|
110
|
+
# @!visibility private
|
111
|
+
def hash
|
112
|
+
[type, value].hash
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
@@ -0,0 +1,30 @@
|
|
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 a user locator.
|
21
|
+
class SyntheticsMobileStepParamsElementUserLocatorValuesItemsType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
ACCESSIBILITY_ID = "accessibility-id".freeze
|
25
|
+
ID = "id".freeze
|
26
|
+
IOS_PREDICATE_STRING = "ios-predicate-string".freeze
|
27
|
+
IOS_CLASS_CHAIN = "ios-class-chain".freeze
|
28
|
+
XPATH = "xpath".freeze
|
29
|
+
end
|
30
|
+
end
|
@@ -17,12 +17,15 @@ require 'date'
|
|
17
17
|
require 'time'
|
18
18
|
|
19
19
|
module DatadogAPIClient::V1
|
20
|
-
#
|
21
|
-
class
|
20
|
+
# A description of a single position for a `flick` step type.
|
21
|
+
class SyntheticsMobileStepParamsPositionsItems
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
24
|
+
# The `x` position for the flick.
|
25
|
+
attr_accessor :x
|
26
|
+
|
27
|
+
# The `y` position for the flick.
|
28
|
+
attr_accessor :y
|
26
29
|
|
27
30
|
attr_accessor :additional_properties
|
28
31
|
|
@@ -30,7 +33,8 @@ module DatadogAPIClient::V1
|
|
30
33
|
# @!visibility private
|
31
34
|
def self.attribute_map
|
32
35
|
{
|
33
|
-
:'
|
36
|
+
:'x' => :'x',
|
37
|
+
:'y' => :'y'
|
34
38
|
}
|
35
39
|
end
|
36
40
|
|
@@ -38,7 +42,8 @@ module DatadogAPIClient::V1
|
|
38
42
|
# @!visibility private
|
39
43
|
def self.openapi_types
|
40
44
|
{
|
41
|
-
:'
|
45
|
+
:'x' => :'Float',
|
46
|
+
:'y' => :'Float'
|
42
47
|
}
|
43
48
|
end
|
44
49
|
|
@@ -47,7 +52,7 @@ module DatadogAPIClient::V1
|
|
47
52
|
# @!visibility private
|
48
53
|
def initialize(attributes = {})
|
49
54
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsMobileStepParamsPositionsItems` initialize method"
|
51
56
|
end
|
52
57
|
|
53
58
|
self.additional_properties = {}
|
@@ -60,8 +65,12 @@ module DatadogAPIClient::V1
|
|
60
65
|
end
|
61
66
|
}
|
62
67
|
|
63
|
-
if attributes.key?(:'
|
64
|
-
self.
|
68
|
+
if attributes.key?(:'x')
|
69
|
+
self.x = attributes[:'x']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'y')
|
73
|
+
self.y = attributes[:'y']
|
65
74
|
end
|
66
75
|
end
|
67
76
|
|
@@ -91,7 +100,8 @@ module DatadogAPIClient::V1
|
|
91
100
|
def ==(o)
|
92
101
|
return true if self.equal?(o)
|
93
102
|
self.class == o.class &&
|
94
|
-
|
103
|
+
x == o.x &&
|
104
|
+
y == o.y
|
95
105
|
additional_properties == o.additional_properties
|
96
106
|
end
|
97
107
|
|
@@ -99,7 +109,7 @@ module DatadogAPIClient::V1
|
|
99
109
|
# @return [Integer] Hash code
|
100
110
|
# @!visibility private
|
101
111
|
def hash
|
102
|
-
[
|
112
|
+
[x, y].hash
|
103
113
|
end
|
104
114
|
end
|
105
115
|
end
|
@@ -0,0 +1,63 @@
|
|
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
|
+
# Values used in the step for in multiple step types.
|
21
|
+
module SyntheticsMobileStepParamsValue
|
22
|
+
class << self
|
23
|
+
include BaseOneOfModel
|
24
|
+
include BaseOneOfModelNoDiscriminator
|
25
|
+
|
26
|
+
# List of class defined in oneOf (OpenAPI v3)
|
27
|
+
def openapi_one_of
|
28
|
+
[
|
29
|
+
:'String',
|
30
|
+
:'Integer'
|
31
|
+
]
|
32
|
+
end
|
33
|
+
# Builds the object
|
34
|
+
# @param data [Mixed] Data to be matched against the list of oneOf items
|
35
|
+
# @return [Object] Returns the model or the data itself
|
36
|
+
def build(data)
|
37
|
+
# Go through the list of oneOf items and attempt to identify the appropriate one.
|
38
|
+
# Note:
|
39
|
+
# - We do not attempt to check whether exactly one item matches.
|
40
|
+
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
41
|
+
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
42
|
+
# - TODO: scalar values are de facto behaving as if they were nullable.
|
43
|
+
# - TODO: logging when debugging is set.
|
44
|
+
openapi_one_of.each do |klass|
|
45
|
+
begin
|
46
|
+
next if klass == :AnyType # "nullable: true"
|
47
|
+
typed_data = find_and_cast_into_type(klass, data)
|
48
|
+
next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
|
49
|
+
return typed_data if typed_data
|
50
|
+
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
if openapi_one_of.include?(:AnyType)
|
55
|
+
data
|
56
|
+
else
|
57
|
+
self._unparsed = true
|
58
|
+
DatadogAPIClient::UnparsedObject.new(data)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -17,12 +17,15 @@ require 'date'
|
|
17
17
|
require 'time'
|
18
18
|
|
19
19
|
module DatadogAPIClient::V1
|
20
|
-
#
|
21
|
-
class
|
20
|
+
# Variable object for `extractVariable` step type.
|
21
|
+
class SyntheticsMobileStepParamsVariable
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
-
#
|
25
|
-
attr_reader :
|
24
|
+
# An example for the variable.
|
25
|
+
attr_reader :example
|
26
|
+
|
27
|
+
# The variable name.
|
28
|
+
attr_reader :name
|
26
29
|
|
27
30
|
attr_accessor :additional_properties
|
28
31
|
|
@@ -30,7 +33,8 @@ module DatadogAPIClient::V1
|
|
30
33
|
# @!visibility private
|
31
34
|
def self.attribute_map
|
32
35
|
{
|
33
|
-
:'
|
36
|
+
:'example' => :'example',
|
37
|
+
:'name' => :'name'
|
34
38
|
}
|
35
39
|
end
|
36
40
|
|
@@ -38,7 +42,8 @@ module DatadogAPIClient::V1
|
|
38
42
|
# @!visibility private
|
39
43
|
def self.openapi_types
|
40
44
|
{
|
41
|
-
:'
|
45
|
+
:'example' => :'String',
|
46
|
+
:'name' => :'String'
|
42
47
|
}
|
43
48
|
end
|
44
49
|
|
@@ -47,7 +52,7 @@ module DatadogAPIClient::V1
|
|
47
52
|
# @!visibility private
|
48
53
|
def initialize(attributes = {})
|
49
54
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsMobileStepParamsVariable` initialize method"
|
51
56
|
end
|
52
57
|
|
53
58
|
self.additional_properties = {}
|
@@ -60,8 +65,12 @@ module DatadogAPIClient::V1
|
|
60
65
|
end
|
61
66
|
}
|
62
67
|
|
63
|
-
if attributes.key?(:'
|
64
|
-
self.
|
68
|
+
if attributes.key?(:'example')
|
69
|
+
self.example = attributes[:'example']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'name')
|
73
|
+
self.name = attributes[:'name']
|
65
74
|
end
|
66
75
|
end
|
67
76
|
|
@@ -69,18 +78,29 @@ module DatadogAPIClient::V1
|
|
69
78
|
# @return true if the model is valid
|
70
79
|
# @!visibility private
|
71
80
|
def valid?
|
72
|
-
return false if @
|
81
|
+
return false if @example.nil?
|
82
|
+
return false if @name.nil?
|
73
83
|
true
|
74
84
|
end
|
75
85
|
|
76
86
|
# Custom attribute writer method with validation
|
77
|
-
# @param
|
87
|
+
# @param example [Object] Object to be assigned
|
88
|
+
# @!visibility private
|
89
|
+
def example=(example)
|
90
|
+
if example.nil?
|
91
|
+
fail ArgumentError, 'invalid value for "example", example cannot be nil.'
|
92
|
+
end
|
93
|
+
@example = example
|
94
|
+
end
|
95
|
+
|
96
|
+
# Custom attribute writer method with validation
|
97
|
+
# @param name [Object] Object to be assigned
|
78
98
|
# @!visibility private
|
79
|
-
def
|
80
|
-
if
|
81
|
-
fail ArgumentError, 'invalid value for "
|
99
|
+
def name=(name)
|
100
|
+
if name.nil?
|
101
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
82
102
|
end
|
83
|
-
@
|
103
|
+
@name = name
|
84
104
|
end
|
85
105
|
|
86
106
|
# Returns the object in the form of hash, with additionalProperties support.
|
@@ -109,7 +129,8 @@ module DatadogAPIClient::V1
|
|
109
129
|
def ==(o)
|
110
130
|
return true if self.equal?(o)
|
111
131
|
self.class == o.class &&
|
112
|
-
|
132
|
+
example == o.example &&
|
133
|
+
name == o.name
|
113
134
|
additional_properties == o.additional_properties
|
114
135
|
end
|
115
136
|
|
@@ -117,7 +138,7 @@ module DatadogAPIClient::V1
|
|
117
138
|
# @return [Integer] Hash code
|
118
139
|
# @!visibility private
|
119
140
|
def hash
|
120
|
-
[
|
141
|
+
[example, name].hash
|
121
142
|
end
|
122
143
|
end
|
123
144
|
end
|
@@ -24,7 +24,7 @@ module DatadogAPIClient::V1
|
|
24
24
|
# Configuration object for a Synthetic mobile test.
|
25
25
|
attr_reader :config
|
26
26
|
|
27
|
-
#
|
27
|
+
# Array with the different device IDs used to run the test.
|
28
28
|
attr_accessor :device_ids
|
29
29
|
|
30
30
|
# Notification message associated with the test.
|
@@ -80,7 +80,7 @@ module DatadogAPIClient::V1
|
|
80
80
|
def self.openapi_types
|
81
81
|
{
|
82
82
|
:'config' => :'SyntheticsMobileTestConfig',
|
83
|
-
:'device_ids' => :'Array<
|
83
|
+
:'device_ids' => :'Array<String>',
|
84
84
|
:'message' => :'String',
|
85
85
|
:'monitor_id' => :'Integer',
|
86
86
|
:'name' => :'String',
|
@@ -42,7 +42,7 @@ module DatadogAPIClient::V1
|
|
42
42
|
# @!visibility private
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
|
-
:'initial_application_arguments' => :'
|
45
|
+
:'initial_application_arguments' => :'Hash<String, String>',
|
46
46
|
:'variables' => :'Array<SyntheticsConfigVariable>'
|
47
47
|
}
|
48
48
|
end
|