datadog_api_client 2.27.1 → 2.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/conftest.py +0 -3
  4. data/.generator/schemas/v1/openapi.yaml +385 -616
  5. data/.generator/schemas/v2/openapi.yaml +1498 -386
  6. data/.generator/src/generator/formatter.py +2 -43
  7. data/.generator/src/generator/keywords.json +43 -0
  8. data/.generator/src/generator/templates/api.j2 +4 -0
  9. data/.generator/src/generator/templates/api_client.j2 +1 -0
  10. data/CHANGELOG.md +39 -0
  11. data/examples/v1/dashboards/CreateDashboard_1413226400.rb +66 -0
  12. data/examples/v1/dashboards/CreateDashboard_3298564989.rb +65 -0
  13. data/examples/v1/gcp-integration/CreateGCPIntegration.rb +1 -0
  14. data/examples/v1/gcp-integration/UpdateGCPIntegration.rb +1 -0
  15. data/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb +1 -0
  16. data/examples/v1/monitors/ValidateExistingMonitor.rb +0 -1
  17. data/examples/v1/monitors/ValidateMonitor.rb +0 -1
  18. data/examples/v1/monitors/ValidateMonitor_4247196452.rb +0 -1
  19. data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +3 -1
  20. data/examples/v1/synthetics/CreateSyntheticsMobileTest.rb +1 -1
  21. data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -1
  22. data/examples/v1/synthetics/UpdateMobileTest.rb +1 -1
  23. data/examples/v2/domain-allowlist/GetDomainAllowlist.rb +5 -0
  24. data/examples/v2/domain-allowlist/PatchDomainAllowlist.rb +17 -0
  25. data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +1 -0
  26. data/examples/v2/incidents/CreateIncidentType.rb +19 -0
  27. data/examples/v2/incidents/DeleteIncidentType.rb +11 -0
  28. data/examples/v2/incidents/GetIncidentType.rb +8 -0
  29. data/examples/v2/incidents/ListIncidentTypes.rb +8 -0
  30. data/examples/v2/incidents/UpdateIncidentType.rb +22 -0
  31. data/examples/v2/metrics/QueryScalarData.rb +0 -3
  32. data/examples/v2/metrics/QueryScalarData_3112571352.rb +0 -3
  33. data/examples/v2/metrics/QueryTimeseriesData.rb +0 -3
  34. data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +0 -3
  35. data/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle.rb +17 -0
  36. data/examples/v2/microsoft-teams-integration/{CreateApiHandle_1540689753.rb → CreateTenantBasedHandle_1540689753.rb} +5 -5
  37. data/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle.rb +5 -0
  38. data/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle_377884154.rb +8 -0
  39. data/examples/v2/microsoft-teams-integration/GetTenantBasedHandle.rb +5 -0
  40. data/examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.rb +8 -0
  41. data/examples/v2/microsoft-teams-integration/{ListApiHandles.rb → ListTenantBasedHandles.rb} +2 -2
  42. data/examples/v2/microsoft-teams-integration/{ListApiHandles_769592979.rb → ListTenantBasedHandles_769592979.rb} +1 -1
  43. data/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.rb +17 -0
  44. data/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle_419892746.rb +18 -0
  45. data/examples/v2/rum-metrics/CreateRumMetric.rb +32 -0
  46. data/examples/v2/rum-metrics/DeleteRumMetric.rb +8 -0
  47. data/examples/v2/rum-metrics/GetRumMetric.rb +8 -0
  48. data/examples/v2/rum-metrics/ListRumMetrics.rb +5 -0
  49. data/examples/v2/rum-metrics/UpdateRumMetric.rb +29 -0
  50. data/examples/v2/security-monitoring/ListFindings_1668290866.rb +14 -0
  51. data/examples/v2/usage-metering/GetBillingDimensionMapping.rb +8 -0
  52. data/examples/v2/usage-metering/GetMonthlyCostAttribution.rb +4 -1
  53. data/lib/datadog_api_client/api_client.rb +1 -0
  54. data/lib/datadog_api_client/configuration.rb +6 -2
  55. data/lib/datadog_api_client/inflector.rb +81 -28
  56. data/lib/datadog_api_client/v1/api/monitors_api.rb +6 -3
  57. data/lib/datadog_api_client/v1/api/synthetics_api.rb +2 -0
  58. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +5 -3
  59. data/lib/datadog_api_client/v1/models/gcp_account.rb +11 -1
  60. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -3
  61. data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
  62. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -6
  63. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +11 -61
  64. data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +1 -1
  65. data/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb +2 -2
  66. data/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +2 -2
  67. data/lib/datadog_api_client/v1/models/{synthetics_status.rb → synthetics_batch_status.rb} +4 -4
  68. data/lib/datadog_api_client/v1/models/synthetics_mobile_step.rb +32 -6
  69. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params.rb +249 -0
  70. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_direction.rb +29 -0
  71. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element.rb +175 -0
  72. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_context_type.rb +27 -0
  73. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_relative_position.rb +115 -0
  74. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator.rb +117 -0
  75. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator_values_items.rb +115 -0
  76. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator_values_items_type.rb +30 -0
  77. data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_initial_application_arguments.rb → synthetics_mobile_step_params_positions_items.rb} +21 -11
  78. data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_value.rb +63 -0
  79. data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_ci_options.rb → synthetics_mobile_step_params_variable.rb} +38 -17
  80. data/lib/datadog_api_client/v1/models/synthetics_mobile_test.rb +2 -2
  81. data/lib/datadog_api_client/v1/models/synthetics_mobile_test_config.rb +1 -1
  82. data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options.rb +42 -16
  83. data/lib/datadog_api_client/v1/models/synthetics_mobile_tests_mobile_application.rb +24 -5
  84. data/lib/datadog_api_client/v1/models/synthetics_step.rb +22 -2
  85. data/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +21 -1
  86. data/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb +19 -1
  87. data/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb +1 -0
  88. data/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb +34 -4
  89. data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_options_monitor_options_notification_preset_name.rb → synthetics_test_options_monitor_options_notification_preset_name.rb} +2 -2
  90. data/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb +31 -2
  91. data/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb +32 -6
  92. data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_binding_items.rb → synthetics_test_restriction_policy_binding.rb} +11 -11
  93. data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_binding_items_role.rb → synthetics_test_restriction_policy_binding_relation.rb} +2 -2
  94. data/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb +1 -12
  95. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
  96. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
  97. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
  98. data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +3 -69
  99. data/lib/datadog_api_client/v2/api/domain_allowlist_api.rb +153 -0
  100. data/lib/datadog_api_client/v2/api/incidents_api.rb +361 -0
  101. data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -13
  102. data/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb +98 -161
  103. data/lib/datadog_api_client/v2/api/rum_metrics_api.rb +357 -0
  104. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -0
  105. data/lib/datadog_api_client/v2/api/software_catalog_api.rb +19 -19
  106. data/lib/datadog_api_client/v2/api/teams_api.rb +1 -0
  107. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +79 -10
  108. data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item.rb +125 -0
  109. data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes.rb +127 -0
  110. data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes_endpoints_items.rb +127 -0
  111. data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes_endpoints_items_status.rb +27 -0
  112. data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_response.rb +107 -0
  113. data/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb +1 -1
  114. data/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb +1 -1
  115. data/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb +1 -1
  116. data/lib/datadog_api_client/v2/models/domain_allowlist.rb +151 -0
  117. data/lib/datadog_api_client/v2/models/{aws_related_account_attributes.rb → domain_allowlist_attributes.rb} +20 -18
  118. data/lib/datadog_api_client/v2/models/domain_allowlist_request.rb +123 -0
  119. data/lib/datadog_api_client/{v1/models/synthetics_mobile_test_binding.rb → v2/models/domain_allowlist_response.rb} +13 -13
  120. data/lib/datadog_api_client/v2/models/domain_allowlist_response_data.rb +151 -0
  121. data/lib/datadog_api_client/v2/models/domain_allowlist_response_data_attributes.rb +117 -0
  122. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_type.rb → domain_allowlist_type.rb} +3 -3
  123. data/lib/datadog_api_client/v2/models/entity_attributes.rb +1 -1
  124. data/lib/datadog_api_client/v2/models/entity_data.rb +1 -1
  125. data/lib/datadog_api_client/v2/models/entity_response_included_incident.rb +1 -1
  126. data/lib/datadog_api_client/v2/models/entity_response_included_raw_schema.rb +1 -1
  127. data/lib/datadog_api_client/v2/models/entity_response_included_related_oncall_attributes.rb +1 -1
  128. data/lib/datadog_api_client/v2/models/entity_response_included_related_oncall_escalation_item.rb +1 -1
  129. data/lib/datadog_api_client/v2/models/entity_response_included_schema.rb +1 -1
  130. data/lib/datadog_api_client/v2/models/entity_v3_api_version.rb +1 -1
  131. data/lib/datadog_api_client/v2/models/entity_v3_datadog_code_location_item.rb +3 -3
  132. data/lib/datadog_api_client/v2/models/entity_v3_datadog_event_item.rb +2 -2
  133. data/lib/datadog_api_client/v2/models/entity_v3_datadog_integration_opsgenie.rb +2 -2
  134. data/lib/datadog_api_client/v2/models/entity_v3_datadog_integration_pagerduty.rb +2 -2
  135. data/lib/datadog_api_client/v2/models/entity_v3_datadog_log_item.rb +3 -3
  136. data/lib/datadog_api_client/v2/models/entity_v3_datadog_performance.rb +2 -2
  137. data/lib/datadog_api_client/v2/models/entity_v3_datadog_pipelines.rb +2 -2
  138. data/lib/datadog_api_client/v2/models/entity_v3_datastore.rb +4 -4
  139. data/lib/datadog_api_client/v2/models/entity_v3_datastore_datadog.rb +4 -4
  140. data/lib/datadog_api_client/v2/models/entity_v3_datastore_spec.rb +2 -2
  141. data/lib/datadog_api_client/v2/models/entity_v3_integrations.rb +3 -3
  142. data/lib/datadog_api_client/v2/models/entity_v3_metadata.rb +9 -9
  143. data/lib/datadog_api_client/v2/models/entity_v3_metadata_additional_owners_items.rb +2 -2
  144. data/lib/datadog_api_client/v2/models/entity_v3_metadata_contacts_items.rb +2 -2
  145. data/lib/datadog_api_client/v2/models/entity_v3_metadata_links_items.rb +2 -2
  146. data/lib/datadog_api_client/v2/models/entity_v3_metadata_owner.rb +2 -2
  147. data/lib/datadog_api_client/v2/models/entity_v3_queue.rb +5 -5
  148. data/lib/datadog_api_client/v2/models/entity_v3_queue_datadog.rb +4 -4
  149. data/lib/datadog_api_client/v2/models/entity_v3_queue_spec.rb +2 -2
  150. data/lib/datadog_api_client/v2/models/entity_v3_service.rb +5 -5
  151. data/lib/datadog_api_client/v2/models/entity_v3_service_datadog.rb +6 -6
  152. data/lib/datadog_api_client/v2/models/entity_v3_service_spec.rb +3 -3
  153. data/lib/datadog_api_client/v2/models/entity_v3_system.rb +5 -5
  154. data/lib/datadog_api_client/v2/models/entity_v3_system_datadog.rb +5 -5
  155. data/lib/datadog_api_client/v2/models/finding_attributes.rb +14 -4
  156. data/lib/datadog_api_client/v2/models/finding_vulnerability_type.rb +29 -0
  157. data/lib/datadog_api_client/v2/models/gcp_metric_namespace_config.rb +115 -0
  158. data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +23 -1
  159. data/lib/datadog_api_client/v2/models/incident_create_attributes.rb +11 -1
  160. data/lib/datadog_api_client/v2/models/incident_integration_metadata_metadata.rb +2 -1
  161. data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +11 -1
  162. data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
  163. data/lib/datadog_api_client/v2/models/incident_type_attributes.rb +193 -0
  164. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_request_data.rb → incident_type_create_data.rb} +7 -7
  165. data/lib/datadog_api_client/v2/models/{microsoft_teams_create_api_handle_request.rb → incident_type_create_request.rb} +5 -5
  166. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handles_response.rb → incident_type_list_response.rb} +5 -5
  167. data/lib/datadog_api_client/v2/models/{aws_related_account.rb → incident_type_object.rb} +8 -8
  168. data/lib/datadog_api_client/v2/models/incident_type_patch_data.rb +165 -0
  169. data/lib/datadog_api_client/v2/models/{microsoft_teams_create_api_handle_response.rb → incident_type_patch_request.rb} +5 -5
  170. data/lib/datadog_api_client/v2/models/{microsoft_teams_update_api_handle_request.rb → incident_type_response.rb} +5 -5
  171. data/lib/datadog_api_client/v2/models/{aws_related_account_type.rb → incident_type_type.rb} +3 -3
  172. data/lib/datadog_api_client/v2/models/incident_type_update_attributes.rb +175 -0
  173. data/lib/datadog_api_client/v2/models/incident_user_attributes.rb +153 -0
  174. data/lib/datadog_api_client/v2/models/incident_user_data.rb +125 -0
  175. data/lib/datadog_api_client/v2/models/include_type.rb +1 -1
  176. data/lib/datadog_api_client/v2/models/list_entity_catalog_response_links.rb +3 -3
  177. data/lib/datadog_api_client/v2/models/microsoft_teams_create_tenant_based_handle_request.rb +123 -0
  178. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_attributes.rb → microsoft_teams_tenant_based_handle_attributes.rb} +4 -4
  179. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_response_attributes.rb → microsoft_teams_tenant_based_handle_info_response_attributes.rb} +4 -4
  180. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_response_data.rb → microsoft_teams_tenant_based_handle_info_response_data.rb} +8 -8
  181. data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_info_type.rb +26 -0
  182. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_request_attributes.rb → microsoft_teams_tenant_based_handle_request_attributes.rb} +4 -4
  183. data/lib/datadog_api_client/v2/models/{microsoft_teams_update_api_handle_request_data.rb → microsoft_teams_tenant_based_handle_request_data.rb} +7 -7
  184. data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_response.rb +123 -0
  185. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_response_data.rb → microsoft_teams_tenant_based_handle_response_data.rb} +8 -8
  186. data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_type.rb +26 -0
  187. data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handles_response.rb +125 -0
  188. data/lib/datadog_api_client/v2/models/microsoft_teams_update_tenant_based_handle_request.rb +123 -0
  189. data/lib/datadog_api_client/v2/models/microsoft_teams_update_tenant_based_handle_request_data.rb +144 -0
  190. data/lib/datadog_api_client/v2/models/ms_teams_integration_metadata.rb +125 -0
  191. data/lib/datadog_api_client/v2/models/ms_teams_integration_metadata_teams_item.rb +186 -0
  192. data/lib/datadog_api_client/v2/models/relation_type.rb +1 -1
  193. data/lib/datadog_api_client/v2/models/relationship_item.rb +1 -1
  194. data/lib/datadog_api_client/v2/models/rum_metric_compute.rb +145 -0
  195. data/lib/datadog_api_client/v2/models/rum_metric_compute_aggregation_type.rb +27 -0
  196. data/lib/datadog_api_client/v2/models/rum_metric_create_attributes.rb +176 -0
  197. data/lib/datadog_api_client/v2/models/rum_metric_create_data.rb +165 -0
  198. data/lib/datadog_api_client/v2/models/rum_metric_create_request.rb +123 -0
  199. data/lib/datadog_api_client/v2/models/rum_metric_event_type.rb +32 -0
  200. data/lib/datadog_api_client/v2/models/rum_metric_filter.rb +123 -0
  201. data/lib/datadog_api_client/v2/models/rum_metric_group_by.rb +133 -0
  202. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_response.rb → rum_metric_response.rb} +5 -5
  203. data/lib/datadog_api_client/v2/models/rum_metric_response_attributes.rb +147 -0
  204. data/lib/datadog_api_client/v2/models/rum_metric_response_compute.rb +127 -0
  205. data/lib/datadog_api_client/v2/models/rum_metric_response_data.rb +125 -0
  206. data/lib/datadog_api_client/{v1/models/synthetics_mobile_test_initial_application_arguments_property_names.rb → v2/models/rum_metric_response_filter.rb} +13 -13
  207. data/lib/datadog_api_client/v2/models/rum_metric_response_group_by.rb +115 -0
  208. data/lib/datadog_api_client/v2/models/rum_metric_response_uniqueness.rb +105 -0
  209. data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_type.rb → rum_metric_type.rb} +3 -3
  210. data/lib/datadog_api_client/v2/models/rum_metric_uniqueness.rb +123 -0
  211. data/lib/datadog_api_client/v2/models/rum_metric_uniqueness_when.rb +27 -0
  212. data/lib/datadog_api_client/v2/models/rum_metric_update_attributes.rb +127 -0
  213. data/lib/datadog_api_client/v2/models/rum_metric_update_compute.rb +106 -0
  214. data/lib/datadog_api_client/v2/models/rum_metric_update_data.rb +154 -0
  215. data/lib/datadog_api_client/v2/models/rum_metric_update_request.rb +123 -0
  216. data/lib/datadog_api_client/v2/models/{aws_related_accounts_response.rb → rum_metrics_response.rb} +5 -5
  217. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb +15 -4
  218. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +2 -2
  219. data/lib/datadog_api_client/v2/models/upsert_catalog_entity_request.rb +1 -1
  220. data/lib/datadog_api_client/version.rb +1 -1
  221. metadata +110 -43
  222. data/examples/v2/cloud-cost-management/ListAWSRelatedAccounts.rb +0 -5
  223. data/examples/v2/microsoft-teams-integration/CreateApiHandle.rb +0 -17
  224. data/examples/v2/microsoft-teams-integration/DeleteApiHandle.rb +0 -5
  225. data/examples/v2/microsoft-teams-integration/DeleteApiHandle_377884154.rb +0 -8
  226. data/examples/v2/microsoft-teams-integration/GetApiHandle.rb +0 -5
  227. data/examples/v2/microsoft-teams-integration/GetApiHandleByName.rb +0 -5
  228. data/examples/v2/microsoft-teams-integration/GetApiHandleByName_1103107145.rb +0 -8
  229. data/examples/v2/microsoft-teams-integration/GetApiHandle_2883785101.rb +0 -8
  230. data/examples/v2/microsoft-teams-integration/UpdateApiHandle.rb +0 -17
  231. data/examples/v2/microsoft-teams-integration/UpdateApiHandle_419892746.rb +0 -18
  232. data/lib/datadog_api_client/v1/models/synthetics_mobile_device_id.rb +0 -251
  233. data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options_monitor_options.rb +0 -155
@@ -23,29 +23,29 @@ module DatadogAPIClient::V2
23
23
  @api_client = api_client
24
24
  end
25
25
 
26
- # Create handle.
26
+ # Create tenant-based handle.
27
27
  #
28
- # @see #create_api_handle_with_http_info
29
- def create_api_handle(body, opts = {})
30
- data, _status_code, _headers = create_api_handle_with_http_info(body, opts)
28
+ # @see #create_tenant_based_handle_with_http_info
29
+ def create_tenant_based_handle(body, opts = {})
30
+ data, _status_code, _headers = create_tenant_based_handle_with_http_info(body, opts)
31
31
  data
32
32
  end
33
33
 
34
- # Create handle.
34
+ # Create tenant-based handle.
35
35
  #
36
- # Create a handle in the Datadog Microsoft Teams integration.
36
+ # Create a tenant-based handle in the Datadog Microsoft Teams integration.
37
37
  #
38
- # @param body [MicrosoftTeamsCreateApiHandleRequest] Handle payload.
38
+ # @param body [MicrosoftTeamsCreateTenantBasedHandleRequest] Tenant-based handle payload.
39
39
  # @param opts [Hash] the optional parameters
40
- # @return [Array<(MicrosoftTeamsCreateApiHandleResponse, Integer, Hash)>] MicrosoftTeamsCreateApiHandleResponse data, response status code and response headers
41
- def create_api_handle_with_http_info(body, opts = {})
40
+ # @return [Array<(MicrosoftTeamsTenantBasedHandleResponse, Integer, Hash)>] MicrosoftTeamsTenantBasedHandleResponse data, response status code and response headers
41
+ def create_tenant_based_handle_with_http_info(body, opts = {})
42
42
 
43
43
  if @api_client.config.debugging
44
- @api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.create_api_handle ...'
44
+ @api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.create_tenant_based_handle ...'
45
45
  end
46
46
  # verify the required parameter 'body' is set
47
47
  if @api_client.config.client_side_validation && body.nil?
48
- fail ArgumentError, "Missing the required parameter 'body' when calling MicrosoftTeamsIntegrationAPI.create_api_handle"
48
+ fail ArgumentError, "Missing the required parameter 'body' when calling MicrosoftTeamsIntegrationAPI.create_tenant_based_handle"
49
49
  end
50
50
  # resource path
51
51
  local_var_path = '/api/v2/integration/ms-teams/configuration/tenant-based-handles'
@@ -67,13 +67,13 @@ module DatadogAPIClient::V2
67
67
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
68
68
 
69
69
  # return_type
70
- return_type = opts[:debug_return_type] || 'MicrosoftTeamsCreateApiHandleResponse'
70
+ return_type = opts[:debug_return_type] || 'MicrosoftTeamsTenantBasedHandleResponse'
71
71
 
72
72
  # auth_names
73
73
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
74
74
 
75
75
  new_options = opts.merge(
76
- :operation => :create_api_handle,
76
+ :operation => :create_tenant_based_handle,
77
77
  :header_params => header_params,
78
78
  :query_params => query_params,
79
79
  :form_params => form_params,
@@ -85,34 +85,34 @@ module DatadogAPIClient::V2
85
85
 
86
86
  data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
87
87
  if @api_client.config.debugging
88
- @api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#create_api_handle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ @api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#create_tenant_based_handle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
89
  end
90
90
  return data, status_code, headers
91
91
  end
92
92
 
93
- # Delete handle.
93
+ # Delete tenant-based handle.
94
94
  #
95
- # @see #delete_api_handle_with_http_info
96
- def delete_api_handle(handle_id, opts = {})
97
- delete_api_handle_with_http_info(handle_id, opts)
95
+ # @see #delete_tenant_based_handle_with_http_info
96
+ def delete_tenant_based_handle(handle_id, opts = {})
97
+ delete_tenant_based_handle_with_http_info(handle_id, opts)
98
98
  nil
99
99
  end
100
100
 
101
- # Delete handle.
101
+ # Delete tenant-based handle.
102
102
  #
103
- # Delete a handle from the Datadog Microsoft Teams integration.
103
+ # Delete a tenant-based handle from the Datadog Microsoft Teams integration.
104
104
  #
105
- # @param handle_id [String] Your handle id.
105
+ # @param handle_id [String] Your tenant-based handle id.
106
106
  # @param opts [Hash] the optional parameters
107
107
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
108
- def delete_api_handle_with_http_info(handle_id, opts = {})
108
+ def delete_tenant_based_handle_with_http_info(handle_id, opts = {})
109
109
 
110
110
  if @api_client.config.debugging
111
- @api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.delete_api_handle ...'
111
+ @api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.delete_tenant_based_handle ...'
112
112
  end
113
113
  # verify the required parameter 'handle_id' is set
114
114
  if @api_client.config.client_side_validation && handle_id.nil?
115
- fail ArgumentError, "Missing the required parameter 'handle_id' when calling MicrosoftTeamsIntegrationAPI.delete_api_handle"
115
+ fail ArgumentError, "Missing the required parameter 'handle_id' when calling MicrosoftTeamsIntegrationAPI.delete_tenant_based_handle"
116
116
  end
117
117
  # resource path
118
118
  local_var_path = '/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}'.sub('{handle_id}', CGI.escape(handle_id.to_s).gsub('%2F', '/'))
@@ -138,7 +138,7 @@ module DatadogAPIClient::V2
138
138
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
139
139
 
140
140
  new_options = opts.merge(
141
- :operation => :delete_api_handle,
141
+ :operation => :delete_tenant_based_handle,
142
142
  :header_params => header_params,
143
143
  :query_params => query_params,
144
144
  :form_params => form_params,
@@ -150,102 +150,47 @@ module DatadogAPIClient::V2
150
150
 
151
151
  data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
152
152
  if @api_client.config.debugging
153
- @api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#delete_api_handle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
153
+ @api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#delete_tenant_based_handle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
154
154
  end
155
155
  return data, status_code, headers
156
156
  end
157
157
 
158
- # Get handle information.
158
+ # Get channel information by name.
159
159
  #
160
- # @see #get_api_handle_with_http_info
161
- def get_api_handle(handle_id, opts = {})
162
- data, _status_code, _headers = get_api_handle_with_http_info(handle_id, opts)
160
+ # @see #get_channel_by_name_with_http_info
161
+ def get_channel_by_name(tenant_name, team_name, channel_name, opts = {})
162
+ data, _status_code, _headers = get_channel_by_name_with_http_info(tenant_name, team_name, channel_name, opts)
163
163
  data
164
164
  end
165
165
 
166
- # Get handle information.
166
+ # Get channel information by name.
167
167
  #
168
- # Get the tenant, team, and channel information of a handle from the Datadog Microsoft Teams integration.
168
+ # Get the tenant, team, and channel ID of a channel in the Datadog Microsoft Teams integration.
169
169
  #
170
- # @param handle_id [String] Your handle id.
170
+ # @param tenant_name [String] Your tenant name.
171
+ # @param team_name [String] Your team name.
172
+ # @param channel_name [String] Your channel name.
171
173
  # @param opts [Hash] the optional parameters
172
- # @return [Array<(MicrosoftTeamsApiHandleInfoResponse, Integer, Hash)>] MicrosoftTeamsApiHandleInfoResponse data, response status code and response headers
173
- def get_api_handle_with_http_info(handle_id, opts = {})
174
+ # @return [Array<(MicrosoftTeamsGetChannelByNameResponse, Integer, Hash)>] MicrosoftTeamsGetChannelByNameResponse data, response status code and response headers
175
+ def get_channel_by_name_with_http_info(tenant_name, team_name, channel_name, opts = {})
174
176
 
175
177
  if @api_client.config.debugging
176
- @api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.get_api_handle ...'
177
- end
178
- # verify the required parameter 'handle_id' is set
179
- if @api_client.config.client_side_validation && handle_id.nil?
180
- fail ArgumentError, "Missing the required parameter 'handle_id' when calling MicrosoftTeamsIntegrationAPI.get_api_handle"
178
+ @api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.get_channel_by_name ...'
181
179
  end
182
- # resource path
183
- local_var_path = '/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}'.sub('{handle_id}', CGI.escape(handle_id.to_s).gsub('%2F', '/'))
184
-
185
- # query parameters
186
- query_params = opts[:query_params] || {}
187
-
188
- # header parameters
189
- header_params = opts[:header_params] || {}
190
- # HTTP header 'Accept' (if needed)
191
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
192
-
193
- # form parameters
194
- form_params = opts[:form_params] || {}
195
-
196
- # http body (model)
197
- post_body = opts[:debug_body]
198
-
199
- # return_type
200
- return_type = opts[:debug_return_type] || 'MicrosoftTeamsApiHandleInfoResponse'
201
-
202
- # auth_names
203
- auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
204
-
205
- new_options = opts.merge(
206
- :operation => :get_api_handle,
207
- :header_params => header_params,
208
- :query_params => query_params,
209
- :form_params => form_params,
210
- :body => post_body,
211
- :auth_names => auth_names,
212
- :return_type => return_type,
213
- :api_version => "V2"
214
- )
215
-
216
- data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
217
- if @api_client.config.debugging
218
- @api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#get_api_handle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
180
+ # verify the required parameter 'tenant_name' is set
181
+ if @api_client.config.client_side_validation && tenant_name.nil?
182
+ fail ArgumentError, "Missing the required parameter 'tenant_name' when calling MicrosoftTeamsIntegrationAPI.get_channel_by_name"
219
183
  end
220
- return data, status_code, headers
221
- end
222
-
223
- # Get handle information by name.
224
- #
225
- # @see #get_api_handle_by_name_with_http_info
226
- def get_api_handle_by_name(handle_name, opts = {})
227
- data, _status_code, _headers = get_api_handle_by_name_with_http_info(handle_name, opts)
228
- data
229
- end
230
-
231
- # Get handle information by name.
232
- #
233
- # Get the tenant, team, and channel information of a handle by name from the Datadog Microsoft Teams integration.
234
- #
235
- # @param handle_name [String] Your handle name.
236
- # @param opts [Hash] the optional parameters
237
- # @return [Array<(MicrosoftTeamsApiHandleInfoResponse, Integer, Hash)>] MicrosoftTeamsApiHandleInfoResponse data, response status code and response headers
238
- def get_api_handle_by_name_with_http_info(handle_name, opts = {})
239
-
240
- if @api_client.config.debugging
241
- @api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.get_api_handle_by_name ...'
184
+ # verify the required parameter 'team_name' is set
185
+ if @api_client.config.client_side_validation && team_name.nil?
186
+ fail ArgumentError, "Missing the required parameter 'team_name' when calling MicrosoftTeamsIntegrationAPI.get_channel_by_name"
242
187
  end
243
- # verify the required parameter 'handle_name' is set
244
- if @api_client.config.client_side_validation && handle_name.nil?
245
- fail ArgumentError, "Missing the required parameter 'handle_name' when calling MicrosoftTeamsIntegrationAPI.get_api_handle_by_name"
188
+ # verify the required parameter 'channel_name' is set
189
+ if @api_client.config.client_side_validation && channel_name.nil?
190
+ fail ArgumentError, "Missing the required parameter 'channel_name' when calling MicrosoftTeamsIntegrationAPI.get_channel_by_name"
246
191
  end
247
192
  # resource path
248
- local_var_path = '/api/v2/integration/ms-teams/configuration/tenant-based-handles/name/{handle_name}'.sub('{handle_name}', CGI.escape(handle_name.to_s).gsub('%2F', '/'))
193
+ local_var_path = '/api/v2/integration/ms-teams/configuration/channel/{tenant_name}/{team_name}/{channel_name}'.sub('{tenant_name}', CGI.escape(tenant_name.to_s).gsub('%2F', '/')).sub('{team_name}', CGI.escape(team_name.to_s).gsub('%2F', '/')).sub('{channel_name}', CGI.escape(channel_name.to_s).gsub('%2F', '/'))
249
194
 
250
195
  # query parameters
251
196
  query_params = opts[:query_params] || {}
@@ -262,13 +207,13 @@ module DatadogAPIClient::V2
262
207
  post_body = opts[:debug_body]
263
208
 
264
209
  # return_type
265
- return_type = opts[:debug_return_type] || 'MicrosoftTeamsApiHandleInfoResponse'
210
+ return_type = opts[:debug_return_type] || 'MicrosoftTeamsGetChannelByNameResponse'
266
211
 
267
212
  # auth_names
268
213
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
269
214
 
270
215
  new_options = opts.merge(
271
- :operation => :get_api_handle_by_name,
216
+ :operation => :get_channel_by_name,
272
217
  :header_params => header_params,
273
218
  :query_params => query_params,
274
219
  :form_params => form_params,
@@ -280,47 +225,37 @@ module DatadogAPIClient::V2
280
225
 
281
226
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
282
227
  if @api_client.config.debugging
283
- @api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#get_api_handle_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
228
+ @api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#get_channel_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
284
229
  end
285
230
  return data, status_code, headers
286
231
  end
287
232
 
288
- # Get channel information by name.
233
+ # Get tenant-based handle information.
289
234
  #
290
- # @see #get_channel_by_name_with_http_info
291
- def get_channel_by_name(tenant_name, team_name, channel_name, opts = {})
292
- data, _status_code, _headers = get_channel_by_name_with_http_info(tenant_name, team_name, channel_name, opts)
235
+ # @see #get_tenant_based_handle_with_http_info
236
+ def get_tenant_based_handle(handle_id, opts = {})
237
+ data, _status_code, _headers = get_tenant_based_handle_with_http_info(handle_id, opts)
293
238
  data
294
239
  end
295
240
 
296
- # Get channel information by name.
241
+ # Get tenant-based handle information.
297
242
  #
298
- # Get the tenant, team, and channel ID of a channel in the Datadog Microsoft Teams integration.
243
+ # Get the tenant, team, and channel information of a tenant-based handle from the Datadog Microsoft Teams integration.
299
244
  #
300
- # @param tenant_name [String] Your tenant name.
301
- # @param team_name [String] Your team name.
302
- # @param channel_name [String] Your channel name.
245
+ # @param handle_id [String] Your tenant-based handle id.
303
246
  # @param opts [Hash] the optional parameters
304
- # @return [Array<(MicrosoftTeamsGetChannelByNameResponse, Integer, Hash)>] MicrosoftTeamsGetChannelByNameResponse data, response status code and response headers
305
- def get_channel_by_name_with_http_info(tenant_name, team_name, channel_name, opts = {})
247
+ # @return [Array<(MicrosoftTeamsTenantBasedHandleResponse, Integer, Hash)>] MicrosoftTeamsTenantBasedHandleResponse data, response status code and response headers
248
+ def get_tenant_based_handle_with_http_info(handle_id, opts = {})
306
249
 
307
250
  if @api_client.config.debugging
308
- @api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.get_channel_by_name ...'
309
- end
310
- # verify the required parameter 'tenant_name' is set
311
- if @api_client.config.client_side_validation && tenant_name.nil?
312
- fail ArgumentError, "Missing the required parameter 'tenant_name' when calling MicrosoftTeamsIntegrationAPI.get_channel_by_name"
313
- end
314
- # verify the required parameter 'team_name' is set
315
- if @api_client.config.client_side_validation && team_name.nil?
316
- fail ArgumentError, "Missing the required parameter 'team_name' when calling MicrosoftTeamsIntegrationAPI.get_channel_by_name"
251
+ @api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.get_tenant_based_handle ...'
317
252
  end
318
- # verify the required parameter 'channel_name' is set
319
- if @api_client.config.client_side_validation && channel_name.nil?
320
- fail ArgumentError, "Missing the required parameter 'channel_name' when calling MicrosoftTeamsIntegrationAPI.get_channel_by_name"
253
+ # verify the required parameter 'handle_id' is set
254
+ if @api_client.config.client_side_validation && handle_id.nil?
255
+ fail ArgumentError, "Missing the required parameter 'handle_id' when calling MicrosoftTeamsIntegrationAPI.get_tenant_based_handle"
321
256
  end
322
257
  # resource path
323
- local_var_path = '/api/v2/integration/ms-teams/configuration/channel/{tenant_name}/{team_name}/{channel_name}'.sub('{tenant_name}', CGI.escape(tenant_name.to_s).gsub('%2F', '/')).sub('{team_name}', CGI.escape(team_name.to_s).gsub('%2F', '/')).sub('{channel_name}', CGI.escape(channel_name.to_s).gsub('%2F', '/'))
258
+ local_var_path = '/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}'.sub('{handle_id}', CGI.escape(handle_id.to_s).gsub('%2F', '/'))
324
259
 
325
260
  # query parameters
326
261
  query_params = opts[:query_params] || {}
@@ -337,13 +272,13 @@ module DatadogAPIClient::V2
337
272
  post_body = opts[:debug_body]
338
273
 
339
274
  # return_type
340
- return_type = opts[:debug_return_type] || 'MicrosoftTeamsGetChannelByNameResponse'
275
+ return_type = opts[:debug_return_type] || 'MicrosoftTeamsTenantBasedHandleResponse'
341
276
 
342
277
  # auth_names
343
278
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
344
279
 
345
280
  new_options = opts.merge(
346
- :operation => :get_channel_by_name,
281
+ :operation => :get_tenant_based_handle,
347
282
  :header_params => header_params,
348
283
  :query_params => query_params,
349
284
  :form_params => form_params,
@@ -355,30 +290,31 @@ module DatadogAPIClient::V2
355
290
 
356
291
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
357
292
  if @api_client.config.debugging
358
- @api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#get_channel_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
293
+ @api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#get_tenant_based_handle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
359
294
  end
360
295
  return data, status_code, headers
361
296
  end
362
297
 
363
- # Get all handles.
298
+ # Get all tenant-based handles.
364
299
  #
365
- # @see #list_api_handles_with_http_info
366
- def list_api_handles(opts = {})
367
- data, _status_code, _headers = list_api_handles_with_http_info(opts)
300
+ # @see #list_tenant_based_handles_with_http_info
301
+ def list_tenant_based_handles(opts = {})
302
+ data, _status_code, _headers = list_tenant_based_handles_with_http_info(opts)
368
303
  data
369
304
  end
370
305
 
371
- # Get all handles.
306
+ # Get all tenant-based handles.
372
307
  #
373
- # Get a list of all handles from the Datadog Microsoft Teams integration.
308
+ # Get a list of all tenant-based handles from the Datadog Microsoft Teams integration.
374
309
  #
375
310
  # @param opts [Hash] the optional parameters
376
311
  # @option opts [String] :tenant_id Your tenant id.
377
- # @return [Array<(MicrosoftTeamsApiHandlesResponse, Integer, Hash)>] MicrosoftTeamsApiHandlesResponse data, response status code and response headers
378
- def list_api_handles_with_http_info(opts = {})
312
+ # @option opts [String] :name Your tenant-based handle name.
313
+ # @return [Array<(MicrosoftTeamsTenantBasedHandlesResponse, Integer, Hash)>] MicrosoftTeamsTenantBasedHandlesResponse data, response status code and response headers
314
+ def list_tenant_based_handles_with_http_info(opts = {})
379
315
 
380
316
  if @api_client.config.debugging
381
- @api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.list_api_handles ...'
317
+ @api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.list_tenant_based_handles ...'
382
318
  end
383
319
  # resource path
384
320
  local_var_path = '/api/v2/integration/ms-teams/configuration/tenant-based-handles'
@@ -386,6 +322,7 @@ module DatadogAPIClient::V2
386
322
  # query parameters
387
323
  query_params = opts[:query_params] || {}
388
324
  query_params[:'tenant_id'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil?
325
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
389
326
 
390
327
  # header parameters
391
328
  header_params = opts[:header_params] || {}
@@ -399,13 +336,13 @@ module DatadogAPIClient::V2
399
336
  post_body = opts[:debug_body]
400
337
 
401
338
  # return_type
402
- return_type = opts[:debug_return_type] || 'MicrosoftTeamsApiHandlesResponse'
339
+ return_type = opts[:debug_return_type] || 'MicrosoftTeamsTenantBasedHandlesResponse'
403
340
 
404
341
  # auth_names
405
342
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
406
343
 
407
344
  new_options = opts.merge(
408
- :operation => :list_api_handles,
345
+ :operation => :list_tenant_based_handles,
409
346
  :header_params => header_params,
410
347
  :query_params => query_params,
411
348
  :form_params => form_params,
@@ -417,39 +354,39 @@ module DatadogAPIClient::V2
417
354
 
418
355
  data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
419
356
  if @api_client.config.debugging
420
- @api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#list_api_handles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
357
+ @api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#list_tenant_based_handles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
421
358
  end
422
359
  return data, status_code, headers
423
360
  end
424
361
 
425
- # Update handle.
362
+ # Update tenant-based handle.
426
363
  #
427
- # @see #update_api_handle_with_http_info
428
- def update_api_handle(handle_id, body, opts = {})
429
- data, _status_code, _headers = update_api_handle_with_http_info(handle_id, body, opts)
364
+ # @see #update_tenant_based_handle_with_http_info
365
+ def update_tenant_based_handle(handle_id, body, opts = {})
366
+ data, _status_code, _headers = update_tenant_based_handle_with_http_info(handle_id, body, opts)
430
367
  data
431
368
  end
432
369
 
433
- # Update handle.
370
+ # Update tenant-based handle.
434
371
  #
435
- # Update a handle from the Datadog Microsoft Teams integration.
372
+ # Update a tenant-based handle from the Datadog Microsoft Teams integration.
436
373
  #
437
- # @param handle_id [String] Your handle id.
438
- # @param body [MicrosoftTeamsUpdateApiHandleRequest] Opsgenie service payload.
374
+ # @param handle_id [String] Your tenant-based handle id.
375
+ # @param body [MicrosoftTeamsUpdateTenantBasedHandleRequest] Tenant-based handle payload.
439
376
  # @param opts [Hash] the optional parameters
440
- # @return [Array<(MicrosoftTeamsApiHandleInfoResponse, Integer, Hash)>] MicrosoftTeamsApiHandleInfoResponse data, response status code and response headers
441
- def update_api_handle_with_http_info(handle_id, body, opts = {})
377
+ # @return [Array<(MicrosoftTeamsTenantBasedHandleResponse, Integer, Hash)>] MicrosoftTeamsTenantBasedHandleResponse data, response status code and response headers
378
+ def update_tenant_based_handle_with_http_info(handle_id, body, opts = {})
442
379
 
443
380
  if @api_client.config.debugging
444
- @api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.update_api_handle ...'
381
+ @api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.update_tenant_based_handle ...'
445
382
  end
446
383
  # verify the required parameter 'handle_id' is set
447
384
  if @api_client.config.client_side_validation && handle_id.nil?
448
- fail ArgumentError, "Missing the required parameter 'handle_id' when calling MicrosoftTeamsIntegrationAPI.update_api_handle"
385
+ fail ArgumentError, "Missing the required parameter 'handle_id' when calling MicrosoftTeamsIntegrationAPI.update_tenant_based_handle"
449
386
  end
450
387
  # verify the required parameter 'body' is set
451
388
  if @api_client.config.client_side_validation && body.nil?
452
- fail ArgumentError, "Missing the required parameter 'body' when calling MicrosoftTeamsIntegrationAPI.update_api_handle"
389
+ fail ArgumentError, "Missing the required parameter 'body' when calling MicrosoftTeamsIntegrationAPI.update_tenant_based_handle"
453
390
  end
454
391
  # resource path
455
392
  local_var_path = '/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}'.sub('{handle_id}', CGI.escape(handle_id.to_s).gsub('%2F', '/'))
@@ -471,13 +408,13 @@ module DatadogAPIClient::V2
471
408
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
472
409
 
473
410
  # return_type
474
- return_type = opts[:debug_return_type] || 'MicrosoftTeamsApiHandleInfoResponse'
411
+ return_type = opts[:debug_return_type] || 'MicrosoftTeamsTenantBasedHandleResponse'
475
412
 
476
413
  # auth_names
477
414
  auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
478
415
 
479
416
  new_options = opts.merge(
480
- :operation => :update_api_handle,
417
+ :operation => :update_tenant_based_handle,
481
418
  :header_params => header_params,
482
419
  :query_params => query_params,
483
420
  :form_params => form_params,
@@ -489,7 +426,7 @@ module DatadogAPIClient::V2
489
426
 
490
427
  data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
491
428
  if @api_client.config.debugging
492
- @api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#update_api_handle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
429
+ @api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#update_tenant_based_handle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
493
430
  end
494
431
  return data, status_code, headers
495
432
  end