datadog_api_client 2.33.0 → 2.34.0
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 +2 -1
- data/.generator/schemas/v1/openapi.yaml +18 -3
- data/.generator/schemas/v2/openapi.yaml +2577 -883
- data/.generator/src/generator/templates/configuration.j2 +2 -2
- data/.github/workflows/publish.yml +16 -8
- data/.github/workflows/release.yml +57 -61
- data/CHANGELOG.md +16 -0
- data/Gemfile +2 -1
- data/examples/v2/csm-threats/CreateCSMThreatsAgentPolicy.rb +21 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule.rb +7 -4
- data/examples/v2/csm-threats/CreateCloudWorkloadSecurityAgentRule.rb +3 -2
- data/examples/v2/csm-threats/DeleteCSMThreatsAgentPolicy.rb +8 -0
- data/examples/v2/csm-threats/DeleteCSMThreatsAgentRule.rb +8 -2
- data/examples/v2/csm-threats/DeleteCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/csm-threats/DownloadCSMThreatsPolicy.rb +1 -1
- data/examples/v2/csm-threats/DownloadCloudWorkloadPolicyFile.rb +1 -1
- data/examples/v2/csm-threats/GetCSMThreatsAgentPolicy.rb +8 -0
- data/examples/v2/csm-threats/GetCSMThreatsAgentRule.rb +8 -2
- data/examples/v2/csm-threats/GetCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/csm-threats/ListCSMThreatsAgentPolicies.rb +5 -0
- data/examples/v2/csm-threats/ListCSMThreatsAgentRules.rb +1 -1
- data/examples/v2/csm-threats/ListCloudWorkloadSecurityAgentRules.rb +1 -1
- data/examples/v2/csm-threats/UpdateCSMThreatsAgentPolicy.rb +25 -0
- data/examples/v2/csm-threats/UpdateCSMThreatsAgentRule.rb +12 -4
- data/examples/v2/csm-threats/UpdateCloudWorkloadSecurityAgentRule.rb +3 -4
- data/examples/v2/dora-metrics/GetDORADeployment.rb +5 -0
- data/examples/v2/dora-metrics/GetDORAFailure.rb +5 -0
- data/examples/v2/dora-metrics/ListDORADeployments.rb +16 -0
- data/examples/v2/dora-metrics/ListDORAFailures.rb +16 -0
- data/examples/v2/network-device-monitoring/ListDevices_2712868412.rb +5 -0
- data/examples/v2/on-call/CreateOnCallEscalationPolicy.rb +19 -17
- data/examples/v2/on-call/CreateOnCallSchedule.rb +11 -15
- data/examples/v2/on-call/DeleteOnCallEscalationPolicy.rb +2 -2
- data/examples/v2/on-call/DeleteOnCallSchedule.rb +2 -2
- data/examples/v2/on-call/GetOnCallEscalationPolicy.rb +6 -3
- data/examples/v2/on-call/GetOnCallSchedule.rb +2 -2
- data/examples/v2/on-call/GetOnCallTeamRoutingRules.rb +5 -0
- data/examples/v2/on-call/GetScheduleOnCallUser.rb +8 -0
- data/examples/v2/on-call/SetOnCallTeamRoutingRules.rb +57 -0
- data/examples/v2/on-call/UpdateOnCallEscalationPolicy.rb +8 -9
- data/examples/v2/on-call/UpdateOnCallSchedule.rb +11 -16
- data/examples/v2/on-call-paging/AcknowledgeOnCallPage.rb +5 -0
- data/examples/v2/on-call-paging/CreateOnCallPage.rb +23 -0
- data/examples/v2/on-call-paging/EscalateOnCallPage.rb +5 -0
- data/examples/v2/on-call-paging/ResolveOnCallPage.rb +5 -0
- data/examples/v2/rum-metrics/CreateRumMetric.rb +1 -1
- data/examples/v2/security-monitoring/GetResourceEvaluationFilters.rb +9 -0
- data/examples/v2/security-monitoring/UpdateResourceEvaluationFilters.rb +21 -0
- data/examples/v2/software-catalog/ListCatalogRelation.rb +5 -0
- data/examples/v2/software-catalog/ListCatalogRelation_1311054087.rb +8 -0
- data/examples/v2/workflow-automation/CreateWorkflow.rb +0 -1
- data/examples/v2/workflow-automation/UpdateWorkflow.rb +0 -1
- data/lib/datadog_api_client/configuration.rb +203 -15
- data/lib/datadog_api_client/inflector.rb +104 -43
- data/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_assertion_target_value.rb +63 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb +2 -2
- data/lib/datadog_api_client/v2/api/csm_threats_api.rb +424 -52
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +265 -1
- data/lib/datadog_api_client/v2/api/metrics_api.rb +5 -5
- data/lib/datadog_api_client/v2/api/network_device_monitoring_api.rb +25 -3
- data/lib/datadog_api_client/v2/api/on_call_api.rb +234 -24
- data/lib/datadog_api_client/v2/api/on_call_paging_api.rb +292 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +133 -0
- data/lib/datadog_api_client/v2/api/software_catalog_api.rb +101 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_relationships_teams.rb → cloud_workload_security_agent_policies_list_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +300 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_create_attributes.rb +167 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_relationships_teams_data_items.rb → cloud_workload_security_agent_policy_create_data.rb} +19 -19
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_restrictions_items.rb → cloud_workload_security_agent_policy_update_attributes.rb} +46 -33
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_update_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_updater_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +31 -19
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +27 -5
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb +3 -3
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_data.rb +4 -4
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +29 -7
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb +4 -4
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb +3 -3
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rules_list_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/create_page_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_page_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_page_request_data_attributes.rb +187 -0
- data/lib/datadog_api_client/v2/models/create_page_request_data_attributes_target.rb +115 -0
- data/lib/datadog_api_client/v2/models/create_page_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/create_page_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_page_response_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_page_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_framework_without_requirements.rb +2 -24
- data/lib/datadog_api_client/v2/models/{schedule_data_relationships_teams.rb → data_relationships_teams.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{schedule_data_relationships_teams_data_items.rb → data_relationships_teams_data_items.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{schedule_data_relationships_teams_data_items_type.rb → data_relationships_teams_data_items_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_attributes_steps_items_targets_items.rb → dora_event.rb} +17 -7
- data/lib/datadog_api_client/v2/models/dora_fetch_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_list_deployments_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/dora_list_deployments_request_attributes.rb +163 -0
- data/lib/datadog_api_client/v2/models/dora_list_deployments_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/dora_list_deployments_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_relationships_teams.rb → dora_list_failures_request.rb} +25 -9
- data/lib/datadog_api_client/v2/models/dora_list_failures_request_attributes.rb +163 -0
- data/lib/datadog_api_client/v2/models/dora_list_failures_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_relationships_teams_data_items_type.rb → dora_list_failures_request_data_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_relationships_teams.rb → dora_list_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_code_location_item.rb +1 -21
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_data_attributes.rb +2 -12
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_included.rb +2 -3
- data/lib/datadog_api_client/v2/models/escalation_policy_step_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_attributes_steps_items_targets_items.rb → escalation_policy_step_target.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_attributes_steps_items_targets_items_type.rb → escalation_policy_step_target_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_user.rb +143 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_user_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/{team_reference_relationships_oncall_users_data_items_type.rb → escalation_policy_user_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/{team_reference_relationships_oncall_users.rb → escalation_targets.rb} +5 -5
- data/lib/datadog_api_client/v2/models/full_custom_framework_data_attributes.rb +2 -34
- data/lib/datadog_api_client/v2/models/get_resource_evaluation_filters_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/get_resource_evaluation_filters_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/historical_job_options.rb +2 -2
- data/lib/datadog_api_client/v2/models/historical_job_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/http_integration.rb +0 -6
- data/lib/datadog_api_client/v2/models/http_integration_update.rb +1 -14
- data/lib/datadog_api_client/v2/models/incident_severity.rb +1 -0
- data/lib/datadog_api_client/v2/models/layer_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/list_relation_catalog_response.rb +139 -0
- data/lib/datadog_api_client/v2/models/list_relation_catalog_response_links.rb +125 -0
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +1 -16
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +1 -16
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +1 -16
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -13
- data/lib/datadog_api_client/v2/models/observability_pipeline_metadata_entry.rb +1 -1
- data/lib/datadog_api_client/v2/models/on_call_page_target_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_relationships_teams_data_items_type.rb → page_urgency.rb} +4 -3
- data/lib/datadog_api_client/v2/models/relation_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/relation_entity.rb +125 -0
- data/lib/datadog_api_client/v2/models/relation_include_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/relation_meta.rb +135 -0
- data/lib/datadog_api_client/v2/models/relation_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/relation_response.rb +155 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_data_relationships_teams.rb → relation_response_meta.rb} +21 -13
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_relationships_teams_data_items_type.rb → relation_response_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/relation_to_entity.rb +115 -0
- data/lib/datadog_api_client/v2/models/resource_filter_attributes.rb +133 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_data_relationships_teams_data_items_type.rb → resource_filter_request_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/routing_rule.rb +153 -0
- data/lib/datadog_api_client/v2/models/routing_rule_action.rb +63 -0
- data/lib/datadog_api_client/v2/models/routing_rule_attributes.rb +137 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_attributes_layers_items_members_items_user.rb → routing_rule_relationships.rb} +11 -11
- data/lib/datadog_api_client/v2/models/routing_rule_relationships_policy.rb +105 -0
- data/lib/datadog_api_client/v2/models/{team_reference_relationships_oncall_users_data_items.rb → routing_rule_relationships_policy_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/routing_rule_relationships_policy_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/routing_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes.rb +3 -15
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +4 -4
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/schedule_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_data_attributes.rb +2 -14
- data/lib/datadog_api_client/v2/models/schedule_data_relationships.rb +1 -1
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_members_items.rb → schedule_request_data_attributes_layers_items_members_items.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_members_items_user.rb → schedule_request_data_attributes_layers_items_members_items_user.rb} +2 -2
- data/lib/datadog_api_client/v2/models/schedule_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_update_request_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes.rb +2 -14
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +4 -4
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/schedule_user_attributes.rb +13 -3
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_max_signal_duration.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +2 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_data_source.rb +2 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/send_slack_message_action.rb +165 -0
- data/lib/datadog_api_client/v2/models/send_slack_message_action_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/send_teams_message_action.rb +186 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_update_request_data_relationships_teams_data_items_type.rb → send_teams_message_action_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_relationships_teams.rb → shift.rb} +19 -9
- data/lib/datadog_api_client/v2/models/shift_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/shift_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_attributes_layers_items_members_items.rb → shift_data_relationships.rb} +5 -6
- data/lib/datadog_api_client/v2/models/shift_data_relationships_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_relationships_teams_data_items.rb → shift_data_relationships_user_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/shift_data_relationships_user_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/shift_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/shift_included.rb +62 -0
- data/lib/datadog_api_client/v2/models/team_reference.rb +1 -11
- data/lib/datadog_api_client/v2/models/team_routing_rules.rb +117 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships_rules.rb +107 -0
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_relationships_teams_data_items.rb → team_routing_rules_data_relationships_rules_data_items.rb} +6 -7
- data/lib/datadog_api_client/v2/models/team_routing_rules_data_relationships_rules_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_included.rb +62 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_data_relationships_teams_data_items.rb → team_routing_rules_request_data.rb} +18 -19
- data/lib/datadog_api_client/v2/models/team_routing_rules_request_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/team_routing_rules_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{schedule_update_request_data_attributes_layers_items_restrictions_items.rb → team_routing_rules_request_rule.rb} +44 -33
- data/lib/datadog_api_client/v2/models/{layer_attributes_restrictions_items.rb → time_restriction.rb} +9 -10
- data/lib/datadog_api_client/v2/models/{schedule_create_request_data_attributes_layers_items_interval.rb → time_restrictions.rb} +32 -30
- data/lib/datadog_api_client/v2/models/update_resource_evaluation_filters_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_resource_evaluation_filters_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/update_resource_evaluation_filters_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/{escalation_policy_create_request_data_relationships_teams_data_items.rb → update_resource_evaluation_filters_response_data.rb} +24 -14
- data/lib/datadog_api_client/v2/models/urgency.rb +28 -0
- data/lib/datadog_api_client/v2/models/user_attributes_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/{layer_attributes_restrictions_items_end_day.rb → weekday.rb} +2 -2
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +128 -51
- data/.github/workflows/prepare_release.yml +0 -112
- data/RELEASING.md +0 -43
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items_assignment.rb +0 -27
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items_assignment.rb +0 -27
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items_targets_items_type.rb +0 -28
- data/lib/datadog_api_client/v2/models/layer_attributes_restrictions_items_start_day.rb +0 -32
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items_end_day.rb +0 -32
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items_start_day.rb +0 -32
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_interval.rb +0 -144
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items_end_day.rb +0 -32
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items_start_day.rb +0 -32
- data/lib/datadog_api_client/v2/models/team_reference_relationships.rb +0 -105
@@ -18,7 +18,7 @@ require 'time'
|
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
20
|
# Relates a team to this schedule, identified by `id` and `type` (must be `teams`).
|
21
|
-
class
|
21
|
+
class DataRelationshipsTeamsDataItems
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
24
|
# The unique identifier of the team in this relationship.
|
@@ -43,7 +43,7 @@ module DatadogAPIClient::V2
|
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
45
|
:'id' => :'String',
|
46
|
-
:'type' => :'
|
46
|
+
:'type' => :'DataRelationshipsTeamsDataItemsType'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -52,7 +52,7 @@ module DatadogAPIClient::V2
|
|
52
52
|
# @!visibility private
|
53
53
|
def initialize(attributes = {})
|
54
54
|
if (!attributes.is_a?(Hash))
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DataRelationshipsTeamsDataItems` initialize method"
|
56
56
|
end
|
57
57
|
|
58
58
|
self.additional_properties = {}
|
@@ -17,14 +17,17 @@ require 'date'
|
|
17
17
|
require 'time'
|
18
18
|
|
19
19
|
module DatadogAPIClient::V2
|
20
|
-
#
|
21
|
-
class
|
20
|
+
# A DORA event.
|
21
|
+
class DORAEvent
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
-
#
|
24
|
+
# The attributes of the event.
|
25
|
+
attr_accessor :attributes
|
26
|
+
|
27
|
+
# The ID of the event.
|
25
28
|
attr_accessor :id
|
26
29
|
|
27
|
-
#
|
30
|
+
# The type of the event.
|
28
31
|
attr_accessor :type
|
29
32
|
|
30
33
|
attr_accessor :additional_properties
|
@@ -33,6 +36,7 @@ module DatadogAPIClient::V2
|
|
33
36
|
# @!visibility private
|
34
37
|
def self.attribute_map
|
35
38
|
{
|
39
|
+
:'attributes' => :'attributes',
|
36
40
|
:'id' => :'id',
|
37
41
|
:'type' => :'type'
|
38
42
|
}
|
@@ -42,8 +46,9 @@ module DatadogAPIClient::V2
|
|
42
46
|
# @!visibility private
|
43
47
|
def self.openapi_types
|
44
48
|
{
|
49
|
+
:'attributes' => :'Object',
|
45
50
|
:'id' => :'String',
|
46
|
-
:'type' => :'
|
51
|
+
:'type' => :'String'
|
47
52
|
}
|
48
53
|
end
|
49
54
|
|
@@ -52,7 +57,7 @@ module DatadogAPIClient::V2
|
|
52
57
|
# @!visibility private
|
53
58
|
def initialize(attributes = {})
|
54
59
|
if (!attributes.is_a?(Hash))
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAEvent` initialize method"
|
56
61
|
end
|
57
62
|
|
58
63
|
self.additional_properties = {}
|
@@ -65,6 +70,10 @@ module DatadogAPIClient::V2
|
|
65
70
|
end
|
66
71
|
}
|
67
72
|
|
73
|
+
if attributes.key?(:'attributes')
|
74
|
+
self.attributes = attributes[:'attributes']
|
75
|
+
end
|
76
|
+
|
68
77
|
if attributes.key?(:'id')
|
69
78
|
self.id = attributes[:'id']
|
70
79
|
end
|
@@ -100,6 +109,7 @@ module DatadogAPIClient::V2
|
|
100
109
|
def ==(o)
|
101
110
|
return true if self.equal?(o)
|
102
111
|
self.class == o.class &&
|
112
|
+
attributes == o.attributes &&
|
103
113
|
id == o.id &&
|
104
114
|
type == o.type &&
|
105
115
|
additional_properties == o.additional_properties
|
@@ -109,7 +119,7 @@ module DatadogAPIClient::V2
|
|
109
119
|
# @return [Integer] Hash code
|
110
120
|
# @!visibility private
|
111
121
|
def hash
|
112
|
-
[id, type, additional_properties].hash
|
122
|
+
[attributes, id, type, additional_properties].hash
|
113
123
|
end
|
114
124
|
end
|
115
125
|
end
|
@@ -0,0 +1,105 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# Response for the DORA fetch endpoints.
|
21
|
+
class DORAFetchResponse
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# A DORA event.
|
25
|
+
attr_accessor :data
|
26
|
+
|
27
|
+
attr_accessor :additional_properties
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
# @!visibility private
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'data' => :'data'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
# @!visibility private
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'data' => :'DORAEvent'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
47
|
+
# @!visibility private
|
48
|
+
def initialize(attributes = {})
|
49
|
+
if (!attributes.is_a?(Hash))
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAFetchResponse` initialize method"
|
51
|
+
end
|
52
|
+
|
53
|
+
self.additional_properties = {}
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
+
self.additional_properties[k.to_sym] = v
|
58
|
+
else
|
59
|
+
h[k.to_sym] = v
|
60
|
+
end
|
61
|
+
}
|
62
|
+
|
63
|
+
if attributes.key?(:'data')
|
64
|
+
self.data = attributes[:'data']
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
69
|
+
# @return [Hash] Returns the object in the form of hash
|
70
|
+
# @!visibility private
|
71
|
+
def to_hash
|
72
|
+
hash = {}
|
73
|
+
self.class.attribute_map.each_pair do |attr, param|
|
74
|
+
value = self.send(attr)
|
75
|
+
if value.nil?
|
76
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
77
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
78
|
+
end
|
79
|
+
|
80
|
+
hash[param] = _to_hash(value)
|
81
|
+
end
|
82
|
+
self.additional_properties.each_pair do |attr, value|
|
83
|
+
hash[attr] = value
|
84
|
+
end
|
85
|
+
hash
|
86
|
+
end
|
87
|
+
|
88
|
+
# Checks equality by comparing each attribute.
|
89
|
+
# @param o [Object] Object to be compared
|
90
|
+
# @!visibility private
|
91
|
+
def ==(o)
|
92
|
+
return true if self.equal?(o)
|
93
|
+
self.class == o.class &&
|
94
|
+
data == o.data &&
|
95
|
+
additional_properties == o.additional_properties
|
96
|
+
end
|
97
|
+
|
98
|
+
# Calculates hash code according to all attributes.
|
99
|
+
# @return [Integer] Hash code
|
100
|
+
# @!visibility private
|
101
|
+
def hash
|
102
|
+
[data, additional_properties].hash
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
@@ -30,7 +30,7 @@ module DatadogAPIClient::V2
|
|
30
30
|
# Git info for DORA Metrics events.
|
31
31
|
attr_accessor :git
|
32
32
|
|
33
|
-
# Incident ID. Required to update a previously sent incident.
|
33
|
+
# Incident ID. Must have at least 16 characters. Required to update a previously sent incident.
|
34
34
|
attr_accessor :id
|
35
35
|
|
36
36
|
# Incident name.
|
@@ -0,0 +1,123 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# Request to get a list of deployments.
|
21
|
+
class DORAListDeploymentsRequest
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The JSON:API data.
|
25
|
+
attr_reader :data
|
26
|
+
|
27
|
+
attr_accessor :additional_properties
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
# @!visibility private
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'data' => :'data'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
# @!visibility private
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'data' => :'DORAListDeploymentsRequestData'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
47
|
+
# @!visibility private
|
48
|
+
def initialize(attributes = {})
|
49
|
+
if (!attributes.is_a?(Hash))
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAListDeploymentsRequest` initialize method"
|
51
|
+
end
|
52
|
+
|
53
|
+
self.additional_properties = {}
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
+
self.additional_properties[k.to_sym] = v
|
58
|
+
else
|
59
|
+
h[k.to_sym] = v
|
60
|
+
end
|
61
|
+
}
|
62
|
+
|
63
|
+
if attributes.key?(:'data')
|
64
|
+
self.data = attributes[:'data']
|
65
|
+
end
|
66
|
+
end
|
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 @data.nil?
|
73
|
+
true
|
74
|
+
end
|
75
|
+
|
76
|
+
# Custom attribute writer method with validation
|
77
|
+
# @param data [Object] Object to be assigned
|
78
|
+
# @!visibility private
|
79
|
+
def data=(data)
|
80
|
+
if data.nil?
|
81
|
+
fail ArgumentError, 'invalid value for "data", data cannot be nil.'
|
82
|
+
end
|
83
|
+
@data = data
|
84
|
+
end
|
85
|
+
|
86
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
87
|
+
# @return [Hash] Returns the object in the form of hash
|
88
|
+
# @!visibility private
|
89
|
+
def to_hash
|
90
|
+
hash = {}
|
91
|
+
self.class.attribute_map.each_pair do |attr, param|
|
92
|
+
value = self.send(attr)
|
93
|
+
if value.nil?
|
94
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
95
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
96
|
+
end
|
97
|
+
|
98
|
+
hash[param] = _to_hash(value)
|
99
|
+
end
|
100
|
+
self.additional_properties.each_pair do |attr, value|
|
101
|
+
hash[attr] = value
|
102
|
+
end
|
103
|
+
hash
|
104
|
+
end
|
105
|
+
|
106
|
+
# Checks equality by comparing each attribute.
|
107
|
+
# @param o [Object] Object to be compared
|
108
|
+
# @!visibility private
|
109
|
+
def ==(o)
|
110
|
+
return true if self.equal?(o)
|
111
|
+
self.class == o.class &&
|
112
|
+
data == o.data &&
|
113
|
+
additional_properties == o.additional_properties
|
114
|
+
end
|
115
|
+
|
116
|
+
# Calculates hash code according to all attributes.
|
117
|
+
# @return [Integer] Hash code
|
118
|
+
# @!visibility private
|
119
|
+
def hash
|
120
|
+
[data, additional_properties].hash
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
@@ -0,0 +1,163 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# Attributes to get a list of deployments.
|
21
|
+
class DORAListDeploymentsRequestAttributes
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Minimum timestamp for requested events.
|
25
|
+
attr_accessor :from
|
26
|
+
|
27
|
+
# Maximum number of events in the response.
|
28
|
+
attr_reader :limit
|
29
|
+
|
30
|
+
# Search query with event platform syntax.
|
31
|
+
attr_accessor :query
|
32
|
+
|
33
|
+
# Sort order (prefixed with `-` for descending).
|
34
|
+
attr_accessor :sort
|
35
|
+
|
36
|
+
# Maximum timestamp for requested events.
|
37
|
+
attr_accessor :to
|
38
|
+
|
39
|
+
attr_accessor :additional_properties
|
40
|
+
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
42
|
+
# @!visibility private
|
43
|
+
def self.attribute_map
|
44
|
+
{
|
45
|
+
:'from' => :'from',
|
46
|
+
:'limit' => :'limit',
|
47
|
+
:'query' => :'query',
|
48
|
+
:'sort' => :'sort',
|
49
|
+
:'to' => :'to'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute type mapping.
|
54
|
+
# @!visibility private
|
55
|
+
def self.openapi_types
|
56
|
+
{
|
57
|
+
:'from' => :'Time',
|
58
|
+
:'limit' => :'Integer',
|
59
|
+
:'query' => :'String',
|
60
|
+
:'sort' => :'String',
|
61
|
+
:'to' => :'Time'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Initializes the object
|
66
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
67
|
+
# @!visibility private
|
68
|
+
def initialize(attributes = {})
|
69
|
+
if (!attributes.is_a?(Hash))
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DORAListDeploymentsRequestAttributes` initialize method"
|
71
|
+
end
|
72
|
+
|
73
|
+
self.additional_properties = {}
|
74
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
76
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
77
|
+
self.additional_properties[k.to_sym] = v
|
78
|
+
else
|
79
|
+
h[k.to_sym] = v
|
80
|
+
end
|
81
|
+
}
|
82
|
+
|
83
|
+
if attributes.key?(:'from')
|
84
|
+
self.from = attributes[:'from']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'limit')
|
88
|
+
self.limit = attributes[:'limit']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.key?(:'query')
|
92
|
+
self.query = attributes[:'query']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'sort')
|
96
|
+
self.sort = attributes[:'sort']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'to')
|
100
|
+
self.to = attributes[:'to']
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# Check to see if the all the properties in the model are valid
|
105
|
+
# @return true if the model is valid
|
106
|
+
# @!visibility private
|
107
|
+
def valid?
|
108
|
+
return false if !@limit.nil? && @limit > 1000
|
109
|
+
true
|
110
|
+
end
|
111
|
+
|
112
|
+
# Custom attribute writer method with validation
|
113
|
+
# @param limit [Object] Object to be assigned
|
114
|
+
# @!visibility private
|
115
|
+
def limit=(limit)
|
116
|
+
if !limit.nil? && limit > 1000
|
117
|
+
fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.'
|
118
|
+
end
|
119
|
+
@limit = limit
|
120
|
+
end
|
121
|
+
|
122
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
123
|
+
# @return [Hash] Returns the object in the form of hash
|
124
|
+
# @!visibility private
|
125
|
+
def to_hash
|
126
|
+
hash = {}
|
127
|
+
self.class.attribute_map.each_pair do |attr, param|
|
128
|
+
value = self.send(attr)
|
129
|
+
if value.nil?
|
130
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
131
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
132
|
+
end
|
133
|
+
|
134
|
+
hash[param] = _to_hash(value)
|
135
|
+
end
|
136
|
+
self.additional_properties.each_pair do |attr, value|
|
137
|
+
hash[attr] = value
|
138
|
+
end
|
139
|
+
hash
|
140
|
+
end
|
141
|
+
|
142
|
+
# Checks equality by comparing each attribute.
|
143
|
+
# @param o [Object] Object to be compared
|
144
|
+
# @!visibility private
|
145
|
+
def ==(o)
|
146
|
+
return true if self.equal?(o)
|
147
|
+
self.class == o.class &&
|
148
|
+
from == o.from &&
|
149
|
+
limit == o.limit &&
|
150
|
+
query == o.query &&
|
151
|
+
sort == o.sort &&
|
152
|
+
to == o.to &&
|
153
|
+
additional_properties == o.additional_properties
|
154
|
+
end
|
155
|
+
|
156
|
+
# Calculates hash code according to all attributes.
|
157
|
+
# @return [Integer] Hash code
|
158
|
+
# @!visibility private
|
159
|
+
def hash
|
160
|
+
[from, limit, query, sort, to, additional_properties].hash
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
@@ -0,0 +1,133 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The JSON:API data.
|
21
|
+
class DORAListDeploymentsRequestData
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Attributes to get a list of deployments.
|
25
|
+
attr_reader :attributes
|
26
|
+
|
27
|
+
# The definition of `DORAListDeploymentsRequestDataType` object.
|
28
|
+
attr_accessor :type
|
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
|
+
:'attributes' => :'attributes',
|
37
|
+
:'type' => :'type'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'attributes' => :'DORAListDeploymentsRequestAttributes',
|
46
|
+
:'type' => :'DORAListDeploymentsRequestDataType'
|
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::V2::DORAListDeploymentsRequestData` 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?(:'attributes')
|
69
|
+
self.attributes = attributes[:'attributes']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'type')
|
73
|
+
self.type = attributes[:'type']
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Check to see if the all the properties in the model are valid
|
78
|
+
# @return true if the model is valid
|
79
|
+
# @!visibility private
|
80
|
+
def valid?
|
81
|
+
return false if @attributes.nil?
|
82
|
+
true
|
83
|
+
end
|
84
|
+
|
85
|
+
# Custom attribute writer method with validation
|
86
|
+
# @param attributes [Object] Object to be assigned
|
87
|
+
# @!visibility private
|
88
|
+
def attributes=(attributes)
|
89
|
+
if attributes.nil?
|
90
|
+
fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
|
91
|
+
end
|
92
|
+
@attributes = attributes
|
93
|
+
end
|
94
|
+
|
95
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
96
|
+
# @return [Hash] Returns the object in the form of hash
|
97
|
+
# @!visibility private
|
98
|
+
def to_hash
|
99
|
+
hash = {}
|
100
|
+
self.class.attribute_map.each_pair do |attr, param|
|
101
|
+
value = self.send(attr)
|
102
|
+
if value.nil?
|
103
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
104
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
105
|
+
end
|
106
|
+
|
107
|
+
hash[param] = _to_hash(value)
|
108
|
+
end
|
109
|
+
self.additional_properties.each_pair do |attr, value|
|
110
|
+
hash[attr] = value
|
111
|
+
end
|
112
|
+
hash
|
113
|
+
end
|
114
|
+
|
115
|
+
# Checks equality by comparing each attribute.
|
116
|
+
# @param o [Object] Object to be compared
|
117
|
+
# @!visibility private
|
118
|
+
def ==(o)
|
119
|
+
return true if self.equal?(o)
|
120
|
+
self.class == o.class &&
|
121
|
+
attributes == o.attributes &&
|
122
|
+
type == o.type &&
|
123
|
+
additional_properties == o.additional_properties
|
124
|
+
end
|
125
|
+
|
126
|
+
# Calculates hash code according to all attributes.
|
127
|
+
# @return [Integer] Hash code
|
128
|
+
# @!visibility private
|
129
|
+
def hash
|
130
|
+
[attributes, type, additional_properties].hash
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The definition of `DORAListDeploymentsRequestDataType` object.
|
21
|
+
class DORAListDeploymentsRequestDataType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
DORA_DEPLOYMENTS_LIST_REQUEST = "dora_deployments_list_request".freeze
|
25
|
+
end
|
26
|
+
end
|