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
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V1
|
|
|
21
21
|
class SyntheticsStepDetail
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Whether or not the step was allowed to fail.
|
|
25
|
+
attr_accessor :allow_failure
|
|
26
|
+
|
|
24
27
|
# Array of errors collected for a browser test.
|
|
25
28
|
attr_accessor :browser_errors
|
|
26
29
|
|
|
@@ -36,6 +39,9 @@ module DatadogAPIClient::V1
|
|
|
36
39
|
# Error returned by the test.
|
|
37
40
|
attr_accessor :error
|
|
38
41
|
|
|
42
|
+
# The browser test failure details.
|
|
43
|
+
attr_accessor :failure
|
|
44
|
+
|
|
39
45
|
# Navigate between different tabs for your browser test.
|
|
40
46
|
attr_accessor :playing_tab
|
|
41
47
|
|
|
@@ -79,11 +85,13 @@ module DatadogAPIClient::V1
|
|
|
79
85
|
# @!visibility private
|
|
80
86
|
def self.attribute_map
|
|
81
87
|
{
|
|
88
|
+
:'allow_failure' => :'allowFailure',
|
|
82
89
|
:'browser_errors' => :'browserErrors',
|
|
83
90
|
:'check_type' => :'checkType',
|
|
84
91
|
:'description' => :'description',
|
|
85
92
|
:'duration' => :'duration',
|
|
86
93
|
:'error' => :'error',
|
|
94
|
+
:'failure' => :'failure',
|
|
87
95
|
:'playing_tab' => :'playingTab',
|
|
88
96
|
:'screenshot_bucket_key' => :'screenshotBucketKey',
|
|
89
97
|
:'skipped' => :'skipped',
|
|
@@ -103,11 +111,13 @@ module DatadogAPIClient::V1
|
|
|
103
111
|
# @!visibility private
|
|
104
112
|
def self.openapi_types
|
|
105
113
|
{
|
|
114
|
+
:'allow_failure' => :'Boolean',
|
|
106
115
|
:'browser_errors' => :'Array<SyntheticsBrowserError>',
|
|
107
116
|
:'check_type' => :'SyntheticsCheckType',
|
|
108
117
|
:'description' => :'String',
|
|
109
118
|
:'duration' => :'Float',
|
|
110
119
|
:'error' => :'String',
|
|
120
|
+
:'failure' => :'SyntheticsBrowserTestResultFailure',
|
|
111
121
|
:'playing_tab' => :'SyntheticsPlayingTab',
|
|
112
122
|
:'screenshot_bucket_key' => :'Boolean',
|
|
113
123
|
:'skipped' => :'Boolean',
|
|
@@ -141,6 +151,10 @@ module DatadogAPIClient::V1
|
|
|
141
151
|
end
|
|
142
152
|
}
|
|
143
153
|
|
|
154
|
+
if attributes.key?(:'allow_failure')
|
|
155
|
+
self.allow_failure = attributes[:'allow_failure']
|
|
156
|
+
end
|
|
157
|
+
|
|
144
158
|
if attributes.key?(:'browser_errors')
|
|
145
159
|
if (value = attributes[:'browser_errors']).is_a?(Array)
|
|
146
160
|
self.browser_errors = value
|
|
@@ -163,6 +177,10 @@ module DatadogAPIClient::V1
|
|
|
163
177
|
self.error = attributes[:'error']
|
|
164
178
|
end
|
|
165
179
|
|
|
180
|
+
if attributes.key?(:'failure')
|
|
181
|
+
self.failure = attributes[:'failure']
|
|
182
|
+
end
|
|
183
|
+
|
|
166
184
|
if attributes.key?(:'playing_tab')
|
|
167
185
|
self.playing_tab = attributes[:'playing_tab']
|
|
168
186
|
end
|
|
@@ -244,11 +262,13 @@ module DatadogAPIClient::V1
|
|
|
244
262
|
def ==(o)
|
|
245
263
|
return true if self.equal?(o)
|
|
246
264
|
self.class == o.class &&
|
|
265
|
+
allow_failure == o.allow_failure &&
|
|
247
266
|
browser_errors == o.browser_errors &&
|
|
248
267
|
check_type == o.check_type &&
|
|
249
268
|
description == o.description &&
|
|
250
269
|
duration == o.duration &&
|
|
251
270
|
error == o.error &&
|
|
271
|
+
failure == o.failure &&
|
|
252
272
|
playing_tab == o.playing_tab &&
|
|
253
273
|
screenshot_bucket_key == o.screenshot_bucket_key &&
|
|
254
274
|
skipped == o.skipped &&
|
|
@@ -268,7 +288,7 @@ module DatadogAPIClient::V1
|
|
|
268
288
|
# @return [Integer] Hash code
|
|
269
289
|
# @!visibility private
|
|
270
290
|
def hash
|
|
271
|
-
[browser_errors, check_type, description, duration, error, playing_tab, screenshot_bucket_key, skipped, snapshot_bucket_key, step_id, sub_test_step_details, time_to_interactive, type, url, value, vitals_metrics, warnings].hash
|
|
291
|
+
[allow_failure, browser_errors, check_type, description, duration, error, failure, playing_tab, screenshot_bucket_key, skipped, snapshot_bucket_key, step_id, sub_test_step_details, time_to_interactive, type, url, value, vitals_metrics, warnings].hash
|
|
272
292
|
end
|
|
273
293
|
end
|
|
274
294
|
end
|
|
@@ -22,7 +22,7 @@ module DatadogAPIClient::V1
|
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
24
|
# Execution rule for a Synthetic test.
|
|
25
|
-
|
|
25
|
+
attr_reader :execution_rule
|
|
26
26
|
|
|
27
27
|
attr_accessor :additional_properties
|
|
28
28
|
|
|
@@ -65,6 +65,24 @@ module DatadogAPIClient::V1
|
|
|
65
65
|
end
|
|
66
66
|
end
|
|
67
67
|
|
|
68
|
+
# Check to see if the all the properties in the model are valid
|
|
69
|
+
# @return true if the model is valid
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def valid?
|
|
72
|
+
return false if @execution_rule.nil?
|
|
73
|
+
true
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Custom attribute writer method with validation
|
|
77
|
+
# @param execution_rule [Object] Object to be assigned
|
|
78
|
+
# @!visibility private
|
|
79
|
+
def execution_rule=(execution_rule)
|
|
80
|
+
if execution_rule.nil?
|
|
81
|
+
fail ArgumentError, 'invalid value for "execution_rule", execution_rule cannot be nil.'
|
|
82
|
+
end
|
|
83
|
+
@execution_rule = execution_rule
|
|
84
|
+
end
|
|
85
|
+
|
|
68
86
|
# Returns the object in the form of hash, with additionalProperties support.
|
|
69
87
|
# @return [Hash] Returns the object in the form of hash
|
|
70
88
|
# @!visibility private
|
|
@@ -22,17 +22,29 @@ module DatadogAPIClient::V1
|
|
|
22
22
|
class SyntheticsTestOptionsMonitorOptions
|
|
23
23
|
include BaseGenericModel
|
|
24
24
|
|
|
25
|
+
# Message to include in the escalation notification.
|
|
26
|
+
attr_accessor :escalation_message
|
|
27
|
+
|
|
28
|
+
# The name of the preset for the notification for the monitor.
|
|
29
|
+
attr_accessor :notification_preset_name
|
|
30
|
+
|
|
25
31
|
# Time interval before renotifying if the test is still failing
|
|
26
32
|
# (in minutes).
|
|
27
33
|
attr_reader :renotify_interval
|
|
28
34
|
|
|
35
|
+
# The number of times to renotify if the test is still failing.
|
|
36
|
+
attr_accessor :renotify_occurrences
|
|
37
|
+
|
|
29
38
|
attr_accessor :additional_properties
|
|
30
39
|
|
|
31
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
41
|
# @!visibility private
|
|
33
42
|
def self.attribute_map
|
|
34
43
|
{
|
|
35
|
-
:'
|
|
44
|
+
:'escalation_message' => :'escalation_message',
|
|
45
|
+
:'notification_preset_name' => :'notification_preset_name',
|
|
46
|
+
:'renotify_interval' => :'renotify_interval',
|
|
47
|
+
:'renotify_occurrences' => :'renotify_occurrences'
|
|
36
48
|
}
|
|
37
49
|
end
|
|
38
50
|
|
|
@@ -40,7 +52,10 @@ module DatadogAPIClient::V1
|
|
|
40
52
|
# @!visibility private
|
|
41
53
|
def self.openapi_types
|
|
42
54
|
{
|
|
43
|
-
:'
|
|
55
|
+
:'escalation_message' => :'String',
|
|
56
|
+
:'notification_preset_name' => :'SyntheticsTestOptionsMonitorOptionsNotificationPresetName',
|
|
57
|
+
:'renotify_interval' => :'Integer',
|
|
58
|
+
:'renotify_occurrences' => :'Integer'
|
|
44
59
|
}
|
|
45
60
|
end
|
|
46
61
|
|
|
@@ -62,9 +77,21 @@ module DatadogAPIClient::V1
|
|
|
62
77
|
end
|
|
63
78
|
}
|
|
64
79
|
|
|
80
|
+
if attributes.key?(:'escalation_message')
|
|
81
|
+
self.escalation_message = attributes[:'escalation_message']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'notification_preset_name')
|
|
85
|
+
self.notification_preset_name = attributes[:'notification_preset_name']
|
|
86
|
+
end
|
|
87
|
+
|
|
65
88
|
if attributes.key?(:'renotify_interval')
|
|
66
89
|
self.renotify_interval = attributes[:'renotify_interval']
|
|
67
90
|
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'renotify_occurrences')
|
|
93
|
+
self.renotify_occurrences = attributes[:'renotify_occurrences']
|
|
94
|
+
end
|
|
68
95
|
end
|
|
69
96
|
|
|
70
97
|
# Check to see if the all the properties in the model are valid
|
|
@@ -111,7 +138,10 @@ module DatadogAPIClient::V1
|
|
|
111
138
|
def ==(o)
|
|
112
139
|
return true if self.equal?(o)
|
|
113
140
|
self.class == o.class &&
|
|
114
|
-
|
|
141
|
+
escalation_message == o.escalation_message &&
|
|
142
|
+
notification_preset_name == o.notification_preset_name &&
|
|
143
|
+
renotify_interval == o.renotify_interval &&
|
|
144
|
+
renotify_occurrences == o.renotify_occurrences
|
|
115
145
|
additional_properties == o.additional_properties
|
|
116
146
|
end
|
|
117
147
|
|
|
@@ -119,7 +149,7 @@ module DatadogAPIClient::V1
|
|
|
119
149
|
# @return [Integer] Hash code
|
|
120
150
|
# @!visibility private
|
|
121
151
|
def hash
|
|
122
|
-
[renotify_interval].hash
|
|
152
|
+
[escalation_message, notification_preset_name, renotify_interval, renotify_occurrences].hash
|
|
123
153
|
end
|
|
124
154
|
end
|
|
125
155
|
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 name of the preset for the notification for the monitor.
|
|
21
|
+
class SyntheticsTestOptionsMonitorOptionsNotificationPresetName
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
SHOW_ALL = "show_all".freeze
|
|
25
|
+
HIDE_ALL = "hide_all".freeze
|
|
26
|
+
HIDE_QUERY = "hide_query".freeze
|
|
27
|
+
HIDE_HANDLES = "hide_handles".freeze
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -22,10 +22,10 @@ module DatadogAPIClient::V1
|
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
24
|
# Array containing objects describing the scheduling pattern to apply to each day.
|
|
25
|
-
|
|
25
|
+
attr_reader :timeframes
|
|
26
26
|
|
|
27
27
|
# Timezone in which the timeframe is based.
|
|
28
|
-
|
|
28
|
+
attr_reader :timezone
|
|
29
29
|
|
|
30
30
|
attr_accessor :additional_properties
|
|
31
31
|
|
|
@@ -76,6 +76,35 @@ module DatadogAPIClient::V1
|
|
|
76
76
|
end
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
+
# Check to see if the all the properties in the model are valid
|
|
80
|
+
# @return true if the model is valid
|
|
81
|
+
# @!visibility private
|
|
82
|
+
def valid?
|
|
83
|
+
return false if @timeframes.nil?
|
|
84
|
+
return false if @timezone.nil?
|
|
85
|
+
true
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Custom attribute writer method with validation
|
|
89
|
+
# @param timeframes [Object] Object to be assigned
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def timeframes=(timeframes)
|
|
92
|
+
if timeframes.nil?
|
|
93
|
+
fail ArgumentError, 'invalid value for "timeframes", timeframes cannot be nil.'
|
|
94
|
+
end
|
|
95
|
+
@timeframes = timeframes
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Custom attribute writer method with validation
|
|
99
|
+
# @param timezone [Object] Object to be assigned
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def timezone=(timezone)
|
|
102
|
+
if timezone.nil?
|
|
103
|
+
fail ArgumentError, 'invalid value for "timezone", timezone cannot be nil.'
|
|
104
|
+
end
|
|
105
|
+
@timezone = timezone
|
|
106
|
+
end
|
|
107
|
+
|
|
79
108
|
# Returns the object in the form of hash, with additionalProperties support.
|
|
80
109
|
# @return [Hash] Returns the object in the form of hash
|
|
81
110
|
# @!visibility private
|
|
@@ -25,10 +25,10 @@ module DatadogAPIClient::V1
|
|
|
25
25
|
attr_reader :day
|
|
26
26
|
|
|
27
27
|
# The hour of the day on which scheduling starts.
|
|
28
|
-
|
|
28
|
+
attr_reader :from
|
|
29
29
|
|
|
30
30
|
# The hour of the day on which scheduling ends.
|
|
31
|
-
|
|
31
|
+
attr_reader :to
|
|
32
32
|
|
|
33
33
|
attr_accessor :additional_properties
|
|
34
34
|
|
|
@@ -87,8 +87,11 @@ module DatadogAPIClient::V1
|
|
|
87
87
|
# @return true if the model is valid
|
|
88
88
|
# @!visibility private
|
|
89
89
|
def valid?
|
|
90
|
-
return false if
|
|
91
|
-
return false if
|
|
90
|
+
return false if @day.nil?
|
|
91
|
+
return false if @day > 7
|
|
92
|
+
return false if @day < 1
|
|
93
|
+
return false if @from.nil?
|
|
94
|
+
return false if @to.nil?
|
|
92
95
|
true
|
|
93
96
|
end
|
|
94
97
|
|
|
@@ -96,15 +99,38 @@ module DatadogAPIClient::V1
|
|
|
96
99
|
# @param day [Object] Object to be assigned
|
|
97
100
|
# @!visibility private
|
|
98
101
|
def day=(day)
|
|
99
|
-
if
|
|
102
|
+
if day.nil?
|
|
103
|
+
fail ArgumentError, 'invalid value for "day", day cannot be nil.'
|
|
104
|
+
end
|
|
105
|
+
if day > 7
|
|
100
106
|
fail ArgumentError, 'invalid value for "day", must be smaller than or equal to 7.'
|
|
101
107
|
end
|
|
102
|
-
if
|
|
108
|
+
if day < 1
|
|
103
109
|
fail ArgumentError, 'invalid value for "day", must be greater than or equal to 1.'
|
|
104
110
|
end
|
|
105
111
|
@day = day
|
|
106
112
|
end
|
|
107
113
|
|
|
114
|
+
# Custom attribute writer method with validation
|
|
115
|
+
# @param from [Object] Object to be assigned
|
|
116
|
+
# @!visibility private
|
|
117
|
+
def from=(from)
|
|
118
|
+
if from.nil?
|
|
119
|
+
fail ArgumentError, 'invalid value for "from", from cannot be nil.'
|
|
120
|
+
end
|
|
121
|
+
@from = from
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Custom attribute writer method with validation
|
|
125
|
+
# @param to [Object] Object to be assigned
|
|
126
|
+
# @!visibility private
|
|
127
|
+
def to=(to)
|
|
128
|
+
if to.nil?
|
|
129
|
+
fail ArgumentError, 'invalid value for "to", to cannot be nil.'
|
|
130
|
+
end
|
|
131
|
+
@to = to
|
|
132
|
+
end
|
|
133
|
+
|
|
108
134
|
# Returns the object in the form of hash, with additionalProperties support.
|
|
109
135
|
# @return [Hash] Returns the object in the form of hash
|
|
110
136
|
# @!visibility private
|
|
@@ -178,7 +178,7 @@ module DatadogAPIClient::V1
|
|
|
178
178
|
:'no_saving_response_body' => :'Boolean',
|
|
179
179
|
:'number_of_packets' => :'Integer',
|
|
180
180
|
:'persist_cookies' => :'Boolean',
|
|
181
|
-
:'port' => :'
|
|
181
|
+
:'port' => :'SyntheticsTestRequestPort',
|
|
182
182
|
:'proxy' => :'SyntheticsTestRequestProxy',
|
|
183
183
|
:'query' => :'Object',
|
|
184
184
|
:'servername' => :'String',
|
|
@@ -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
|
+
# Port to use when performing the test.
|
|
21
|
+
module SyntheticsTestRequestPort
|
|
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
|
+
:'Integer',
|
|
30
|
+
:'String'
|
|
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
|
|
@@ -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
|
+
# Objects describing the binding used for a mobile test.
|
|
21
|
+
class SyntheticsTestRestrictionPolicyBinding
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# List of principals for a mobile test binding.
|
|
25
|
+
attr_accessor :principals
|
|
26
|
+
|
|
27
|
+
# The type of relation for the binding.
|
|
28
|
+
attr_accessor :relation
|
|
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
|
+
:'principals' => :'principals',
|
|
37
|
+
:'relation' => :'relation'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'principals' => :'Array<String>',
|
|
46
|
+
:'relation' => :'SyntheticsTestRestrictionPolicyBindingRelation'
|
|
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::SyntheticsTestRestrictionPolicyBinding` 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?(:'principals')
|
|
69
|
+
if (value = attributes[:'principals']).is_a?(Array)
|
|
70
|
+
self.principals = value
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'relation')
|
|
75
|
+
self.relation = attributes[:'relation']
|
|
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
|
+
principals == o.principals &&
|
|
106
|
+
relation == o.relation
|
|
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
|
+
[principals, relation].hash
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
@@ -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
|
+
# The type of relation for the binding.
|
|
21
|
+
class SyntheticsTestRestrictionPolicyBindingRelation
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
EDITOR = "editor".freeze
|
|
25
|
+
VIEWER = "viewer".freeze
|
|
26
|
+
end
|
|
27
|
+
end
|