datadog_api_client 2.45.0 → 2.46.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/.generator/schemas/v1/openapi.yaml +81 -0
- data/.generator/schemas/v2/openapi.yaml +3968 -94
- data/.pre-commit-config.yaml +4 -0
- data/CHANGELOG.md +20 -0
- data/examples/v1/monitors/CreateMonitor_3541766733.rb +32 -0
- data/examples/v2/deployment-gates/CreateDeploymentGate.rb +20 -0
- data/examples/v2/deployment-gates/CreateDeploymentRule.rb +25 -0
- data/examples/v2/deployment-gates/DeleteDeploymentGate.rb +11 -0
- data/examples/v2/deployment-gates/DeleteDeploymentRule.rb +14 -0
- data/examples/v2/deployment-gates/GetDeploymentGate.rb +11 -0
- data/examples/v2/deployment-gates/GetDeploymentRule.rb +14 -0
- data/examples/v2/deployment-gates/UpdateDeploymentGate.rb +21 -0
- data/examples/v2/deployment-gates/UpdateDeploymentRule.rb +27 -0
- data/examples/v2/fleet-automation/GetFleetAgentInfo.rb +8 -0
- data/examples/v2/fleet-automation/ListFleetAgents.rb +8 -0
- data/examples/v2/logs-restriction-queries/AddRoleToRestrictionQuery.rb +21 -0
- data/examples/v2/logs-restriction-queries/CreateRestrictionQuery.rb +17 -0
- data/examples/v2/logs-restriction-queries/DeleteRestrictionQuery.rb +11 -0
- data/examples/v2/logs-restriction-queries/GetRestrictionQuery.rb +11 -0
- data/examples/v2/logs-restriction-queries/GetRoleRestrictionQuery.rb +11 -0
- data/examples/v2/logs-restriction-queries/ListRestrictionQueries.rb +8 -0
- data/examples/v2/logs-restriction-queries/ListRestrictionQueryRoles.rb +11 -0
- data/examples/v2/logs-restriction-queries/ListUserRestrictionQueries.rb +11 -0
- data/examples/v2/logs-restriction-queries/RemoveRoleFromRestrictionQuery.rb +21 -0
- data/examples/v2/logs-restriction-queries/ReplaceRestrictionQuery.rb +20 -0
- data/examples/v2/logs-restriction-queries/UpdateRestrictionQuery.rb +20 -0
- data/examples/v2/monitors/CreateMonitorNotificationRule_1379932371.rb +21 -0
- data/examples/v2/monitors/UpdateMonitorNotificationRule_1446058210.rb +24 -0
- data/examples/v2/on-call/CreateOnCallEscalationPolicy.rb +9 -0
- data/examples/v2/on-call/GetScheduleOnCallUser.rb +1 -1
- data/examples/v2/reference-tables/CreateReferenceTable.rb +23 -14
- data/examples/v2/reference-tables/DeleteRows.rb +14 -0
- data/examples/v2/reference-tables/UpsertRows.rb +19 -0
- data/examples/v2/security-monitoring/AttachCase.rb +26 -0
- data/examples/v2/security-monitoring/AttachCase_897782765.rb +22 -0
- data/examples/v2/security-monitoring/AttachJiraIssue.rb +34 -0
- data/examples/v2/security-monitoring/AttachJiraIssue_3042842144.rb +30 -0
- data/examples/v2/security-monitoring/CreateCases.rb +56 -0
- data/examples/v2/security-monitoring/CreateCases_2385516013.rb +33 -0
- data/examples/v2/security-monitoring/CreateCases_2798851680.rb +37 -0
- data/examples/v2/security-monitoring/CreateJiraIssues.rb +96 -0
- data/examples/v2/security-monitoring/CreateJiraIssues_379590688.rb +56 -0
- data/examples/v2/security-monitoring/CreateJiraIssues_829823123.rb +64 -0
- data/examples/v2/security-monitoring/DetachCase.rb +21 -0
- data/examples/v2/teams/AddTeamHierarchyLink.rb +31 -0
- data/examples/v2/{team-connections → teams}/CreateTeamConnections.rb +1 -1
- data/examples/v2/{team-connections → teams}/DeleteTeamConnections.rb +1 -1
- data/examples/v2/teams/GetTeamHierarchyLink.rb +8 -0
- data/examples/v2/teams/GetTeamSync.rb +8 -0
- data/examples/v2/{team-connections → teams}/ListTeamConnections.rb +1 -1
- data/examples/v2/{team-connections → teams}/ListTeamConnections_1473516764.rb +1 -1
- data/examples/v2/{team-connections → teams}/ListTeamConnections_2418873869.rb +1 -1
- data/examples/v2/teams/ListTeamHierarchyLinks.rb +15 -0
- data/examples/v2/teams/ListTeamHierarchyLinks_3360757486.rb +5 -0
- data/examples/v2/teams/RemoveTeamHierarchyLink.rb +8 -0
- data/lib/datadog_api_client/configuration.rb +25 -3
- data/lib/datadog_api_client/inflector.rb +141 -3
- data/lib/datadog_api_client/v1/api/monitors_api.rb +2 -0
- data/lib/datadog_api_client/v1/models/monitor.rb +13 -1
- data/lib/datadog_api_client/v1/models/monitor_asset.rb +186 -0
- data/lib/datadog_api_client/v1/models/monitor_asset_category.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor_asset_resource_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor_update_request.rb +14 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +11 -1
- data/lib/datadog_api_client/v2/api/deployment_gates_api.rb +632 -0
- data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +166 -1
- data/lib/datadog_api_client/v2/api/logs_restriction_queries_api.rb +842 -0
- data/lib/datadog_api_client/v2/api/on_call_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/reference_tables_api.rb +144 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +355 -5
- data/lib/datadog_api_client/v2/api/teams_api.rb +628 -1
- data/lib/datadog_api_client/v2/models/attach_case_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/attach_case_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/attach_case_request_data_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/batch_delete_rows_request_array.rb +129 -0
- data/lib/datadog_api_client/v2/models/batch_delete_rows_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_array.rb +129 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/case_insights_items.rb +125 -0
- data/lib/datadog_api_client/v2/models/case_management_project.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_management_project_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/case_management_project_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/configured_schedule.rb +186 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target.rb +144 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_relationships_schedule.rb +123 -0
- data/lib/datadog_api_client/v2/models/configured_schedule_target_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/create_case_request_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/create_case_request_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/create_case_request_data_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/create_case_request_data_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_deployment_gate_params.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_deployment_gate_params_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_deployment_gate_params_data_attributes.rb +164 -0
- data/lib/datadog_api_client/v2/models/create_deployment_rule_params.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_deployment_rule_params_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_deployment_rule_params_data_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_array.rb +137 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_array_included.rb +64 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes_fields.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships_case.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships_case_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes.rb +248 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes_created_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_response_data_attributes_updated_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{table_result_v2_data_attributes_file_metadata_local_file.rb → deployment_rule_options_faulty_deployment_detection.rb} +21 -19
- data/lib/datadog_api_client/v2/models/deployment_rule_options_monitor.rb +108 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes.rb +269 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_created_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/deployment_rule_response_data_attributes_updated_by.rb +143 -0
- data/lib/datadog_api_client/v2/models/deployment_rules_options.rb +63 -0
- data/lib/datadog_api_client/v2/models/detach_case_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/detach_case_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/detach_case_request_data_relationships.rb +123 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes.rb +28 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items.rb +16 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_data_attributes.rb +20 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_included.rb +3 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_step_target.rb +12 -2
- data/lib/datadog_api_client/v2/models/escalation_policy_step_target_config.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_step_target_config_schedule.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes.rb +28 -1
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items.rb +16 -1
- data/lib/datadog_api_client/v2/models/escalation_target.rb +3 -2
- data/lib/datadog_api_client/v2/models/finding_case_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_data_attributes.rb +277 -0
- data/lib/datadog_api_client/v2/models/finding_case_response_data_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/finding_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/finding_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/finding_jira_issue.rb +125 -0
- data/lib/datadog_api_client/v2/models/finding_jira_issue_result.rb +135 -0
- data/lib/datadog_api_client/v2/models/findings.rb +107 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_attributes.rb +327 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_attributes_tags_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_attributes.rb +137 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_details.rb +403 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/fleet_agent_info_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response.rb +133 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/fleet_agents_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/fleet_configuration_file.rb +125 -0
- data/lib/datadog_api_client/v2/models/fleet_configuration_layer.rb +155 -0
- data/lib/datadog_api_client/v2/models/fleet_detected_integration.rb +115 -0
- data/lib/datadog_api_client/v2/models/fleet_integration_details.rb +197 -0
- data/lib/datadog_api_client/v2/models/fleet_integrations_by_status.rb +165 -0
- data/lib/datadog_api_client/v2/models/httpcd_gates_bad_request_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/httpcd_gates_not_found_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/httpcd_rules_not_found_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/jira_issues_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/layer_attributes.rb +13 -3
- data/lib/datadog_api_client/v2/models/logs_restriction_queries_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_condition.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_conditional_recipients.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter.rb +2 -1
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_scope.rb +106 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_tags.rb +2 -2
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +1 -12
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +1 -12
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +8 -0
- data/lib/datadog_api_client/v2/models/restriction_query_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/restriction_query_create_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/restriction_query_create_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/restriction_query_create_payload.rb +105 -0
- data/lib/datadog_api_client/v2/models/restriction_query_list_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/restriction_query_response_included_item.rb +62 -0
- data/lib/datadog_api_client/v2/models/restriction_query_role.rb +165 -0
- data/lib/datadog_api_client/v2/models/restriction_query_role_attribute.rb +105 -0
- data/lib/datadog_api_client/v2/models/restriction_query_roles_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/restriction_query_update_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/restriction_query_update_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/restriction_query_update_payload.rb +105 -0
- data/lib/datadog_api_client/v2/models/restriction_query_with_relationships.rb +135 -0
- data/lib/datadog_api_client/v2/models/restriction_query_with_relationships_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/restriction_query_without_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/restriction_query_without_relationships_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +13 -3
- data/lib/datadog_api_client/v2/models/schedule_target.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_target_position.rb +28 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +13 -3
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes.rb +8 -0
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata.rb +101 -36
- data/lib/datadog_api_client/v2/models/team_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/team_hierarchy_link.rb +175 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_team.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_create_team_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_relationships.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_response.rb +127 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_team.rb +154 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_team_attributes.rb +223 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_team_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_link_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_hierarchy_links_response.rb +139 -0
- data/lib/datadog_api_client/v2/models/team_sync_attributes.rb +22 -2
- data/lib/datadog_api_client/v2/models/team_sync_attributes_frequency.rb +28 -0
- data/lib/datadog_api_client/v2/models/team_sync_attributes_type.rb +2 -1
- data/lib/datadog_api_client/v2/models/team_sync_data.rb +12 -2
- data/lib/datadog_api_client/v2/models/team_sync_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/team_sync_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_links.rb +156 -0
- data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/teams_hierarchy_links_response_meta_page.rb +184 -0
- data/lib/datadog_api_client/v2/models/threat_hunting_job_response_attributes.rb +13 -3
- data/lib/datadog_api_client/v2/models/update_deployment_gate_params.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_deployment_gate_params_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/update_deployment_gate_params_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_deployment_rule_params.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_deployment_rule_params_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/update_deployment_rule_params_data_attributes.rb +165 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +190 -9
- data/lib/datadog_api_client/v2/api/team_connections_api.rb +0 -272
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage.rb +0 -138
|
@@ -0,0 +1,175 @@
|
|
|
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
|
+
# Parameters for creating a deployment rule.
|
|
21
|
+
class CreateDeploymentRuleParamsDataAttributes
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Whether this rule is run in dry-run mode.
|
|
25
|
+
attr_accessor :dry_run
|
|
26
|
+
|
|
27
|
+
# The name of the deployment rule.
|
|
28
|
+
attr_reader :name
|
|
29
|
+
|
|
30
|
+
# Options for deployment rule response representing either faulty deployment detection or monitor options.
|
|
31
|
+
attr_reader :options
|
|
32
|
+
|
|
33
|
+
# The type of the deployment rule (faulty_deployment_detection or monitor).
|
|
34
|
+
attr_reader :type
|
|
35
|
+
|
|
36
|
+
attr_accessor :additional_properties
|
|
37
|
+
|
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
|
+
# @!visibility private
|
|
40
|
+
def self.attribute_map
|
|
41
|
+
{
|
|
42
|
+
:'dry_run' => :'dry_run',
|
|
43
|
+
:'name' => :'name',
|
|
44
|
+
:'options' => :'options',
|
|
45
|
+
:'type' => :'type'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Attribute type mapping.
|
|
50
|
+
# @!visibility private
|
|
51
|
+
def self.openapi_types
|
|
52
|
+
{
|
|
53
|
+
:'dry_run' => :'Boolean',
|
|
54
|
+
:'name' => :'String',
|
|
55
|
+
:'options' => :'DeploymentRulesOptions',
|
|
56
|
+
:'type' => :'String'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Initializes the object
|
|
61
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
62
|
+
# @!visibility private
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
if (!attributes.is_a?(Hash))
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CreateDeploymentRuleParamsDataAttributes` initialize method"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
self.additional_properties = {}
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
72
|
+
self.additional_properties[k.to_sym] = v
|
|
73
|
+
else
|
|
74
|
+
h[k.to_sym] = v
|
|
75
|
+
end
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'dry_run')
|
|
79
|
+
self.dry_run = attributes[:'dry_run']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'name')
|
|
83
|
+
self.name = attributes[:'name']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'options')
|
|
87
|
+
self.options = attributes[:'options']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'type')
|
|
91
|
+
self.type = attributes[:'type']
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Check to see if the all the properties in the model are valid
|
|
96
|
+
# @return true if the model is valid
|
|
97
|
+
# @!visibility private
|
|
98
|
+
def valid?
|
|
99
|
+
return false if @name.nil?
|
|
100
|
+
return false if @options.nil?
|
|
101
|
+
return false if @type.nil?
|
|
102
|
+
true
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Custom attribute writer method with validation
|
|
106
|
+
# @param name [Object] Object to be assigned
|
|
107
|
+
# @!visibility private
|
|
108
|
+
def name=(name)
|
|
109
|
+
if name.nil?
|
|
110
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
111
|
+
end
|
|
112
|
+
@name = name
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Custom attribute writer method with validation
|
|
116
|
+
# @param options [Object] Object to be assigned
|
|
117
|
+
# @!visibility private
|
|
118
|
+
def options=(options)
|
|
119
|
+
if options.nil?
|
|
120
|
+
fail ArgumentError, 'invalid value for "options", options cannot be nil.'
|
|
121
|
+
end
|
|
122
|
+
@options = options
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Custom attribute writer method with validation
|
|
126
|
+
# @param type [Object] Object to be assigned
|
|
127
|
+
# @!visibility private
|
|
128
|
+
def type=(type)
|
|
129
|
+
if type.nil?
|
|
130
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
131
|
+
end
|
|
132
|
+
@type = type
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
136
|
+
# @return [Hash] Returns the object in the form of hash
|
|
137
|
+
# @!visibility private
|
|
138
|
+
def to_hash
|
|
139
|
+
hash = {}
|
|
140
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
141
|
+
value = self.send(attr)
|
|
142
|
+
if value.nil?
|
|
143
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
144
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
hash[param] = _to_hash(value)
|
|
148
|
+
end
|
|
149
|
+
self.additional_properties.each_pair do |attr, value|
|
|
150
|
+
hash[attr] = value
|
|
151
|
+
end
|
|
152
|
+
hash
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Checks equality by comparing each attribute.
|
|
156
|
+
# @param o [Object] Object to be compared
|
|
157
|
+
# @!visibility private
|
|
158
|
+
def ==(o)
|
|
159
|
+
return true if self.equal?(o)
|
|
160
|
+
self.class == o.class &&
|
|
161
|
+
dry_run == o.dry_run &&
|
|
162
|
+
name == o.name &&
|
|
163
|
+
options == o.options &&
|
|
164
|
+
type == o.type &&
|
|
165
|
+
additional_properties == o.additional_properties
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Calculates hash code according to all attributes.
|
|
169
|
+
# @return [Integer] Hash code
|
|
170
|
+
# @!visibility private
|
|
171
|
+
def hash
|
|
172
|
+
[dry_run, name, options, type, additional_properties].hash
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
end
|
|
@@ -0,0 +1,137 @@
|
|
|
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
|
+
# List of requests to create Jira issues for security findings.
|
|
21
|
+
class CreateJiraIssueRequestArray
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
#
|
|
25
|
+
attr_reader :data
|
|
26
|
+
|
|
27
|
+
#
|
|
28
|
+
attr_accessor :included
|
|
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
|
+
:'data' => :'data',
|
|
37
|
+
:'included' => :'included'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'data' => :'Array<CreateJiraIssueRequestData>',
|
|
46
|
+
:'included' => :'Array<CreateJiraIssueRequestArrayIncluded>'
|
|
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::CreateJiraIssueRequestArray` 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?(:'data')
|
|
69
|
+
if (value = attributes[:'data']).is_a?(Array)
|
|
70
|
+
self.data = value
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'included')
|
|
75
|
+
if (value = attributes[:'included']).is_a?(Array)
|
|
76
|
+
self.included = value
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Check to see if the all the properties in the model are valid
|
|
82
|
+
# @return true if the model is valid
|
|
83
|
+
# @!visibility private
|
|
84
|
+
def valid?
|
|
85
|
+
return false if @data.nil?
|
|
86
|
+
true
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Custom attribute writer method with validation
|
|
90
|
+
# @param data [Object] Object to be assigned
|
|
91
|
+
# @!visibility private
|
|
92
|
+
def data=(data)
|
|
93
|
+
if data.nil?
|
|
94
|
+
fail ArgumentError, 'invalid value for "data", data cannot be nil.'
|
|
95
|
+
end
|
|
96
|
+
@data = data
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
100
|
+
# @return [Hash] Returns the object in the form of hash
|
|
101
|
+
# @!visibility private
|
|
102
|
+
def to_hash
|
|
103
|
+
hash = {}
|
|
104
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
105
|
+
value = self.send(attr)
|
|
106
|
+
if value.nil?
|
|
107
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
108
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
hash[param] = _to_hash(value)
|
|
112
|
+
end
|
|
113
|
+
self.additional_properties.each_pair do |attr, value|
|
|
114
|
+
hash[attr] = value
|
|
115
|
+
end
|
|
116
|
+
hash
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Checks equality by comparing each attribute.
|
|
120
|
+
# @param o [Object] Object to be compared
|
|
121
|
+
# @!visibility private
|
|
122
|
+
def ==(o)
|
|
123
|
+
return true if self.equal?(o)
|
|
124
|
+
self.class == o.class &&
|
|
125
|
+
data == o.data &&
|
|
126
|
+
included == o.included &&
|
|
127
|
+
additional_properties == o.additional_properties
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Calculates hash code according to all attributes.
|
|
131
|
+
# @return [Integer] Hash code
|
|
132
|
+
# @!visibility private
|
|
133
|
+
def hash
|
|
134
|
+
[data, included, additional_properties].hash
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
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 and relationships of the case linked to the Jira issue. Should contain all of the following: case, project, and security findings.
|
|
21
|
+
module CreateJiraIssueRequestArrayIncluded
|
|
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
|
+
:'CreateCaseRequestData',
|
|
30
|
+
:'CaseManagementProjectData',
|
|
31
|
+
:'FindingData'
|
|
32
|
+
]
|
|
33
|
+
end
|
|
34
|
+
# Builds the object
|
|
35
|
+
# @param data [Mixed] Data to be matched against the list of oneOf items
|
|
36
|
+
# @return [Object] Returns the model or the data itself
|
|
37
|
+
def build(data)
|
|
38
|
+
# Go through the list of oneOf items and attempt to identify the appropriate one.
|
|
39
|
+
# Note:
|
|
40
|
+
# - We do not attempt to check whether exactly one item matches.
|
|
41
|
+
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
|
42
|
+
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
|
43
|
+
# - TODO: scalar values are de facto behaving as if they were nullable.
|
|
44
|
+
# - TODO: logging when debugging is set.
|
|
45
|
+
openapi_one_of.each do |klass|
|
|
46
|
+
begin
|
|
47
|
+
next if klass == :AnyType # "nullable: true"
|
|
48
|
+
typed_data = find_and_cast_into_type(klass, data)
|
|
49
|
+
next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
|
|
50
|
+
return typed_data if typed_data
|
|
51
|
+
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
if openapi_one_of.include?(:AnyType)
|
|
56
|
+
data
|
|
57
|
+
else
|
|
58
|
+
self._unparsed = true
|
|
59
|
+
DatadogAPIClient::UnparsedObject.new(data)
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,153 @@
|
|
|
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
|
+
# Data of the Jira issue to create.
|
|
21
|
+
class CreateJiraIssueRequestData
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Attributes of the Jira issue to create.
|
|
25
|
+
attr_accessor :attributes
|
|
26
|
+
|
|
27
|
+
# The unique identifier of the Jira issue creation request.
|
|
28
|
+
attr_accessor :id
|
|
29
|
+
|
|
30
|
+
# Relationships of the Jira issue to create.
|
|
31
|
+
attr_accessor :relationships
|
|
32
|
+
|
|
33
|
+
# Jira issues resource type.
|
|
34
|
+
attr_reader :type
|
|
35
|
+
|
|
36
|
+
attr_accessor :additional_properties
|
|
37
|
+
|
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
|
+
# @!visibility private
|
|
40
|
+
def self.attribute_map
|
|
41
|
+
{
|
|
42
|
+
:'attributes' => :'attributes',
|
|
43
|
+
:'id' => :'id',
|
|
44
|
+
:'relationships' => :'relationships',
|
|
45
|
+
:'type' => :'type'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Attribute type mapping.
|
|
50
|
+
# @!visibility private
|
|
51
|
+
def self.openapi_types
|
|
52
|
+
{
|
|
53
|
+
:'attributes' => :'CreateJiraIssueRequestDataAttributes',
|
|
54
|
+
:'id' => :'String',
|
|
55
|
+
:'relationships' => :'CreateJiraIssueRequestDataRelationships',
|
|
56
|
+
:'type' => :'JiraIssuesDataType'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Initializes the object
|
|
61
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
62
|
+
# @!visibility private
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
if (!attributes.is_a?(Hash))
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CreateJiraIssueRequestData` initialize method"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
self.additional_properties = {}
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
72
|
+
self.additional_properties[k.to_sym] = v
|
|
73
|
+
else
|
|
74
|
+
h[k.to_sym] = v
|
|
75
|
+
end
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'attributes')
|
|
79
|
+
self.attributes = attributes[:'attributes']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'id')
|
|
83
|
+
self.id = attributes[:'id']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'relationships')
|
|
87
|
+
self.relationships = attributes[:'relationships']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'type')
|
|
91
|
+
self.type = attributes[:'type']
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Check to see if the all the properties in the model are valid
|
|
96
|
+
# @return true if the model is valid
|
|
97
|
+
# @!visibility private
|
|
98
|
+
def valid?
|
|
99
|
+
return false if @type.nil?
|
|
100
|
+
true
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Custom attribute writer method with validation
|
|
104
|
+
# @param type [Object] Object to be assigned
|
|
105
|
+
# @!visibility private
|
|
106
|
+
def type=(type)
|
|
107
|
+
if type.nil?
|
|
108
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
109
|
+
end
|
|
110
|
+
@type = type
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
114
|
+
# @return [Hash] Returns the object in the form of hash
|
|
115
|
+
# @!visibility private
|
|
116
|
+
def to_hash
|
|
117
|
+
hash = {}
|
|
118
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
119
|
+
value = self.send(attr)
|
|
120
|
+
if value.nil?
|
|
121
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
122
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
hash[param] = _to_hash(value)
|
|
126
|
+
end
|
|
127
|
+
self.additional_properties.each_pair do |attr, value|
|
|
128
|
+
hash[attr] = value
|
|
129
|
+
end
|
|
130
|
+
hash
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Checks equality by comparing each attribute.
|
|
134
|
+
# @param o [Object] Object to be compared
|
|
135
|
+
# @!visibility private
|
|
136
|
+
def ==(o)
|
|
137
|
+
return true if self.equal?(o)
|
|
138
|
+
self.class == o.class &&
|
|
139
|
+
attributes == o.attributes &&
|
|
140
|
+
id == o.id &&
|
|
141
|
+
relationships == o.relationships &&
|
|
142
|
+
type == o.type &&
|
|
143
|
+
additional_properties == o.additional_properties
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Calculates hash code according to all attributes.
|
|
147
|
+
# @return [Integer] Hash code
|
|
148
|
+
# @!visibility private
|
|
149
|
+
def hash
|
|
150
|
+
[attributes, id, relationships, type, additional_properties].hash
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
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
|
+
# Attributes of the Jira issue to create.
|
|
21
|
+
class CreateJiraIssueRequestDataAttributes
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Custom fields of the Jira issue to create. For the list of available fields, see [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get).
|
|
25
|
+
attr_accessor :fields
|
|
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
|
+
:'fields' => :'fields'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'fields' => :'CreateJiraIssueRequestDataAttributesFields'
|
|
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::CreateJiraIssueRequestDataAttributes` 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?(:'fields')
|
|
64
|
+
self.fields = attributes[:'fields']
|
|
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
|
+
fields == o.fields &&
|
|
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
|
+
[fields, additional_properties].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|