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
|
@@ -1,272 +0,0 @@
|
|
|
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 'cgi'
|
|
17
|
-
|
|
18
|
-
module DatadogAPIClient::V2
|
|
19
|
-
class TeamConnectionsAPI
|
|
20
|
-
attr_accessor :api_client
|
|
21
|
-
|
|
22
|
-
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
|
23
|
-
@api_client = api_client
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
# Create team connections.
|
|
27
|
-
#
|
|
28
|
-
# @see #create_team_connections_with_http_info
|
|
29
|
-
def create_team_connections(body, opts = {})
|
|
30
|
-
data, _status_code, _headers = create_team_connections_with_http_info(body, opts)
|
|
31
|
-
data
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
# Create team connections.
|
|
35
|
-
#
|
|
36
|
-
# Create multiple team connections.
|
|
37
|
-
#
|
|
38
|
-
# @param body [TeamConnectionCreateRequest]
|
|
39
|
-
# @param opts [Hash] the optional parameters
|
|
40
|
-
# @return [Array<(TeamConnectionsResponse, Integer, Hash)>] TeamConnectionsResponse data, response status code and response headers
|
|
41
|
-
def create_team_connections_with_http_info(body, opts = {})
|
|
42
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.create_team_connections".to_sym]
|
|
43
|
-
if unstable_enabled
|
|
44
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_team_connections")
|
|
45
|
-
else
|
|
46
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_team_connections"))
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
if @api_client.config.debugging
|
|
50
|
-
@api_client.config.logger.debug 'Calling API: TeamConnectionsAPI.create_team_connections ...'
|
|
51
|
-
end
|
|
52
|
-
# verify the required parameter 'body' is set
|
|
53
|
-
if @api_client.config.client_side_validation && body.nil?
|
|
54
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling TeamConnectionsAPI.create_team_connections"
|
|
55
|
-
end
|
|
56
|
-
# resource path
|
|
57
|
-
local_var_path = '/api/v2/team/connections'
|
|
58
|
-
|
|
59
|
-
# query parameters
|
|
60
|
-
query_params = opts[:query_params] || {}
|
|
61
|
-
|
|
62
|
-
# header parameters
|
|
63
|
-
header_params = opts[:header_params] || {}
|
|
64
|
-
# HTTP header 'Accept' (if needed)
|
|
65
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
66
|
-
# HTTP header 'Content-Type'
|
|
67
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
68
|
-
|
|
69
|
-
# form parameters
|
|
70
|
-
form_params = opts[:form_params] || {}
|
|
71
|
-
|
|
72
|
-
# http body (model)
|
|
73
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
74
|
-
|
|
75
|
-
# return_type
|
|
76
|
-
return_type = opts[:debug_return_type] || 'TeamConnectionsResponse'
|
|
77
|
-
|
|
78
|
-
# auth_names
|
|
79
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
80
|
-
|
|
81
|
-
new_options = opts.merge(
|
|
82
|
-
:operation => :create_team_connections,
|
|
83
|
-
:header_params => header_params,
|
|
84
|
-
:query_params => query_params,
|
|
85
|
-
:form_params => form_params,
|
|
86
|
-
:body => post_body,
|
|
87
|
-
:auth_names => auth_names,
|
|
88
|
-
:return_type => return_type,
|
|
89
|
-
:api_version => "V2"
|
|
90
|
-
)
|
|
91
|
-
|
|
92
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
93
|
-
if @api_client.config.debugging
|
|
94
|
-
@api_client.config.logger.debug "API called: TeamConnectionsAPI#create_team_connections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
95
|
-
end
|
|
96
|
-
return data, status_code, headers
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
# Delete team connections.
|
|
100
|
-
#
|
|
101
|
-
# @see #delete_team_connections_with_http_info
|
|
102
|
-
def delete_team_connections(body, opts = {})
|
|
103
|
-
delete_team_connections_with_http_info(body, opts)
|
|
104
|
-
nil
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
# Delete team connections.
|
|
108
|
-
#
|
|
109
|
-
# Delete multiple team connections.
|
|
110
|
-
#
|
|
111
|
-
# @param body [TeamConnectionDeleteRequest]
|
|
112
|
-
# @param opts [Hash] the optional parameters
|
|
113
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
114
|
-
def delete_team_connections_with_http_info(body, opts = {})
|
|
115
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.delete_team_connections".to_sym]
|
|
116
|
-
if unstable_enabled
|
|
117
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_team_connections")
|
|
118
|
-
else
|
|
119
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_team_connections"))
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
if @api_client.config.debugging
|
|
123
|
-
@api_client.config.logger.debug 'Calling API: TeamConnectionsAPI.delete_team_connections ...'
|
|
124
|
-
end
|
|
125
|
-
# verify the required parameter 'body' is set
|
|
126
|
-
if @api_client.config.client_side_validation && body.nil?
|
|
127
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling TeamConnectionsAPI.delete_team_connections"
|
|
128
|
-
end
|
|
129
|
-
# resource path
|
|
130
|
-
local_var_path = '/api/v2/team/connections'
|
|
131
|
-
|
|
132
|
-
# query parameters
|
|
133
|
-
query_params = opts[:query_params] || {}
|
|
134
|
-
|
|
135
|
-
# header parameters
|
|
136
|
-
header_params = opts[:header_params] || {}
|
|
137
|
-
# HTTP header 'Accept' (if needed)
|
|
138
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
139
|
-
# HTTP header 'Content-Type'
|
|
140
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
141
|
-
|
|
142
|
-
# form parameters
|
|
143
|
-
form_params = opts[:form_params] || {}
|
|
144
|
-
|
|
145
|
-
# http body (model)
|
|
146
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
147
|
-
|
|
148
|
-
# return_type
|
|
149
|
-
return_type = opts[:debug_return_type]
|
|
150
|
-
|
|
151
|
-
# auth_names
|
|
152
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
153
|
-
|
|
154
|
-
new_options = opts.merge(
|
|
155
|
-
:operation => :delete_team_connections,
|
|
156
|
-
:header_params => header_params,
|
|
157
|
-
:query_params => query_params,
|
|
158
|
-
:form_params => form_params,
|
|
159
|
-
:body => post_body,
|
|
160
|
-
:auth_names => auth_names,
|
|
161
|
-
:return_type => return_type,
|
|
162
|
-
:api_version => "V2"
|
|
163
|
-
)
|
|
164
|
-
|
|
165
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
166
|
-
if @api_client.config.debugging
|
|
167
|
-
@api_client.config.logger.debug "API called: TeamConnectionsAPI#delete_team_connections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
168
|
-
end
|
|
169
|
-
return data, status_code, headers
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
# List team connections.
|
|
173
|
-
#
|
|
174
|
-
# @see #list_team_connections_with_http_info
|
|
175
|
-
def list_team_connections(opts = {})
|
|
176
|
-
data, _status_code, _headers = list_team_connections_with_http_info(opts)
|
|
177
|
-
data
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
# List team connections.
|
|
181
|
-
#
|
|
182
|
-
# Returns all team connections.
|
|
183
|
-
#
|
|
184
|
-
# @param opts [Hash] the optional parameters
|
|
185
|
-
# @option opts [Integer] :page_size Size for a given page. The maximum allowed value is 100.
|
|
186
|
-
# @option opts [Integer] :page_number Specific page number to return.
|
|
187
|
-
# @option opts [Array<String>] :filter_sources Filter team connections by external source systems.
|
|
188
|
-
# @option opts [Array<String>] :filter_team_ids Filter team connections by Datadog team IDs.
|
|
189
|
-
# @option opts [Array<String>] :filter_connected_team_ids Filter team connections by connected team IDs from external systems.
|
|
190
|
-
# @option opts [Array<String>] :filter_connection_ids Filter team connections by connection IDs.
|
|
191
|
-
# @return [Array<(TeamConnectionsResponse, Integer, Hash)>] TeamConnectionsResponse data, response status code and response headers
|
|
192
|
-
def list_team_connections_with_http_info(opts = {})
|
|
193
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.list_team_connections".to_sym]
|
|
194
|
-
if unstable_enabled
|
|
195
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_team_connections")
|
|
196
|
-
else
|
|
197
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_team_connections"))
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
if @api_client.config.debugging
|
|
201
|
-
@api_client.config.logger.debug 'Calling API: TeamConnectionsAPI.list_team_connections ...'
|
|
202
|
-
end
|
|
203
|
-
# resource path
|
|
204
|
-
local_var_path = '/api/v2/team/connections'
|
|
205
|
-
|
|
206
|
-
# query parameters
|
|
207
|
-
query_params = opts[:query_params] || {}
|
|
208
|
-
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
209
|
-
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
210
|
-
query_params[:'filter[sources]'] = @api_client.build_collection_param(opts[:'filter_sources'], :csv) if !opts[:'filter_sources'].nil?
|
|
211
|
-
query_params[:'filter[team_ids]'] = @api_client.build_collection_param(opts[:'filter_team_ids'], :csv) if !opts[:'filter_team_ids'].nil?
|
|
212
|
-
query_params[:'filter[connected_team_ids]'] = @api_client.build_collection_param(opts[:'filter_connected_team_ids'], :csv) if !opts[:'filter_connected_team_ids'].nil?
|
|
213
|
-
query_params[:'filter[connection_ids]'] = @api_client.build_collection_param(opts[:'filter_connection_ids'], :csv) if !opts[:'filter_connection_ids'].nil?
|
|
214
|
-
|
|
215
|
-
# header parameters
|
|
216
|
-
header_params = opts[:header_params] || {}
|
|
217
|
-
# HTTP header 'Accept' (if needed)
|
|
218
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
219
|
-
|
|
220
|
-
# form parameters
|
|
221
|
-
form_params = opts[:form_params] || {}
|
|
222
|
-
|
|
223
|
-
# http body (model)
|
|
224
|
-
post_body = opts[:debug_body]
|
|
225
|
-
|
|
226
|
-
# return_type
|
|
227
|
-
return_type = opts[:debug_return_type] || 'TeamConnectionsResponse'
|
|
228
|
-
|
|
229
|
-
# auth_names
|
|
230
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
231
|
-
|
|
232
|
-
new_options = opts.merge(
|
|
233
|
-
:operation => :list_team_connections,
|
|
234
|
-
:header_params => header_params,
|
|
235
|
-
:query_params => query_params,
|
|
236
|
-
:form_params => form_params,
|
|
237
|
-
:body => post_body,
|
|
238
|
-
:auth_names => auth_names,
|
|
239
|
-
:return_type => return_type,
|
|
240
|
-
:api_version => "V2"
|
|
241
|
-
)
|
|
242
|
-
|
|
243
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
244
|
-
if @api_client.config.debugging
|
|
245
|
-
@api_client.config.logger.debug "API called: TeamConnectionsAPI#list_team_connections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
246
|
-
end
|
|
247
|
-
return data, status_code, headers
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
# List team connections.
|
|
251
|
-
#
|
|
252
|
-
# Provide a paginated version of {#list_team_connections}, returning all items.
|
|
253
|
-
#
|
|
254
|
-
# To use it you need to use a block: list_team_connections_with_pagination { |item| p item }
|
|
255
|
-
#
|
|
256
|
-
# @yield [TeamConnection] Paginated items
|
|
257
|
-
def list_team_connections_with_pagination(opts = {})
|
|
258
|
-
api_version = "V2"
|
|
259
|
-
page_size = @api_client.get_attribute_from_path(opts, "page_size", 10)
|
|
260
|
-
@api_client.set_attribute_from_path(api_version, opts, "page_size", Integer, page_size)
|
|
261
|
-
@api_client.set_attribute_from_path(api_version, opts, "page_number", Integer, 0)
|
|
262
|
-
while true do
|
|
263
|
-
response = list_team_connections(opts)
|
|
264
|
-
@api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
|
|
265
|
-
if @api_client.get_attribute_from_path(response, "data").length < page_size
|
|
266
|
-
break
|
|
267
|
-
end
|
|
268
|
-
@api_client.set_attribute_from_path(api_version, opts, "page_number", Integer, @api_client.get_attribute_from_path(opts, "page_number", 0) + 1)
|
|
269
|
-
end
|
|
270
|
-
end
|
|
271
|
-
end
|
|
272
|
-
end
|
data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_file_metadata_cloud_storage.rb
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
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
|
-
# File metadata for reference tables created by cloud storage.
|
|
21
|
-
class TableResultV2DataAttributesFileMetadataCloudStorage
|
|
22
|
-
include BaseGenericModel
|
|
23
|
-
|
|
24
|
-
# Cloud storage access configuration for the reference table data file.
|
|
25
|
-
attr_reader :access_details
|
|
26
|
-
|
|
27
|
-
# The error message returned from the sync.
|
|
28
|
-
attr_accessor :error_message
|
|
29
|
-
|
|
30
|
-
# The number of rows that failed to sync.
|
|
31
|
-
attr_accessor :error_row_count
|
|
32
|
-
|
|
33
|
-
# The type of error that occurred during file processing. This field provides high-level error categories for easier troubleshooting and is only present when there are errors.
|
|
34
|
-
attr_accessor :error_type
|
|
35
|
-
|
|
36
|
-
# Whether this table is synced automatically.
|
|
37
|
-
attr_accessor :sync_enabled
|
|
38
|
-
|
|
39
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
40
|
-
# @!visibility private
|
|
41
|
-
def self.attribute_map
|
|
42
|
-
{
|
|
43
|
-
:'access_details' => :'access_details',
|
|
44
|
-
:'error_message' => :'error_message',
|
|
45
|
-
:'error_row_count' => :'error_row_count',
|
|
46
|
-
:'error_type' => :'error_type',
|
|
47
|
-
:'sync_enabled' => :'sync_enabled'
|
|
48
|
-
}
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
# Attribute type mapping.
|
|
52
|
-
# @!visibility private
|
|
53
|
-
def self.openapi_types
|
|
54
|
-
{
|
|
55
|
-
:'access_details' => :'TableResultV2DataAttributesFileMetadataOneOfAccessDetails',
|
|
56
|
-
:'error_message' => :'String',
|
|
57
|
-
:'error_row_count' => :'Integer',
|
|
58
|
-
:'error_type' => :'TableResultV2DataAttributesFileMetadataCloudStorageErrorType',
|
|
59
|
-
:'sync_enabled' => :'Boolean'
|
|
60
|
-
}
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
# Initializes the object
|
|
64
|
-
# @param attributes [Hash] Model attributes in the form of hash
|
|
65
|
-
# @!visibility private
|
|
66
|
-
def initialize(attributes = {})
|
|
67
|
-
if (!attributes.is_a?(Hash))
|
|
68
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TableResultV2DataAttributesFileMetadataCloudStorage` initialize method"
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
72
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
73
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
|
74
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TableResultV2DataAttributesFileMetadataCloudStorage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
75
|
-
end
|
|
76
|
-
h[k.to_sym] = v
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
if attributes.key?(:'access_details')
|
|
80
|
-
self.access_details = attributes[:'access_details']
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
if attributes.key?(:'error_message')
|
|
84
|
-
self.error_message = attributes[:'error_message']
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
if attributes.key?(:'error_row_count')
|
|
88
|
-
self.error_row_count = attributes[:'error_row_count']
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
if attributes.key?(:'error_type')
|
|
92
|
-
self.error_type = attributes[:'error_type']
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
if attributes.key?(:'sync_enabled')
|
|
96
|
-
self.sync_enabled = attributes[:'sync_enabled']
|
|
97
|
-
end
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
# Check to see if the all the properties in the model are valid
|
|
101
|
-
# @return true if the model is valid
|
|
102
|
-
# @!visibility private
|
|
103
|
-
def valid?
|
|
104
|
-
return false if @access_details.nil?
|
|
105
|
-
true
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
# Custom attribute writer method with validation
|
|
109
|
-
# @param access_details [Object] Object to be assigned
|
|
110
|
-
# @!visibility private
|
|
111
|
-
def access_details=(access_details)
|
|
112
|
-
if access_details.nil?
|
|
113
|
-
fail ArgumentError, 'invalid value for "access_details", access_details cannot be nil.'
|
|
114
|
-
end
|
|
115
|
-
@access_details = access_details
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
# Checks equality by comparing each attribute.
|
|
119
|
-
# @param o [Object] Object to be compared
|
|
120
|
-
# @!visibility private
|
|
121
|
-
def ==(o)
|
|
122
|
-
return true if self.equal?(o)
|
|
123
|
-
self.class == o.class &&
|
|
124
|
-
access_details == o.access_details &&
|
|
125
|
-
error_message == o.error_message &&
|
|
126
|
-
error_row_count == o.error_row_count &&
|
|
127
|
-
error_type == o.error_type &&
|
|
128
|
-
sync_enabled == o.sync_enabled
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
# Calculates hash code according to all attributes.
|
|
132
|
-
# @return [Integer] Hash code
|
|
133
|
-
# @!visibility private
|
|
134
|
-
def hash
|
|
135
|
-
[access_details, error_message, error_row_count, error_type, sync_enabled].hash
|
|
136
|
-
end
|
|
137
|
-
end
|
|
138
|
-
end
|