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.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/conftest.py +0 -3
- data/.generator/schemas/v1/openapi.yaml +385 -616
- data/.generator/schemas/v2/openapi.yaml +1498 -386
- data/.generator/src/generator/formatter.py +2 -43
- data/.generator/src/generator/keywords.json +43 -0
- data/.generator/src/generator/templates/api.j2 +4 -0
- data/.generator/src/generator/templates/api_client.j2 +1 -0
- data/CHANGELOG.md +39 -0
- data/examples/v1/dashboards/CreateDashboard_1413226400.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_3298564989.rb +65 -0
- data/examples/v1/gcp-integration/CreateGCPIntegration.rb +1 -0
- data/examples/v1/gcp-integration/UpdateGCPIntegration.rb +1 -0
- data/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb +1 -0
- data/examples/v1/monitors/ValidateExistingMonitor.rb +0 -1
- data/examples/v1/monitors/ValidateMonitor.rb +0 -1
- data/examples/v1/monitors/ValidateMonitor_4247196452.rb +0 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +3 -1
- data/examples/v1/synthetics/CreateSyntheticsMobileTest.rb +1 -1
- data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -1
- data/examples/v1/synthetics/UpdateMobileTest.rb +1 -1
- data/examples/v2/domain-allowlist/GetDomainAllowlist.rb +5 -0
- data/examples/v2/domain-allowlist/PatchDomainAllowlist.rb +17 -0
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +1 -0
- data/examples/v2/incidents/CreateIncidentType.rb +19 -0
- data/examples/v2/incidents/DeleteIncidentType.rb +11 -0
- data/examples/v2/incidents/GetIncidentType.rb +8 -0
- data/examples/v2/incidents/ListIncidentTypes.rb +8 -0
- data/examples/v2/incidents/UpdateIncidentType.rb +22 -0
- data/examples/v2/metrics/QueryScalarData.rb +0 -3
- data/examples/v2/metrics/QueryScalarData_3112571352.rb +0 -3
- data/examples/v2/metrics/QueryTimeseriesData.rb +0 -3
- data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +0 -3
- data/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle.rb +17 -0
- data/examples/v2/microsoft-teams-integration/{CreateApiHandle_1540689753.rb → CreateTenantBasedHandle_1540689753.rb} +5 -5
- data/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle_377884154.rb +8 -0
- data/examples/v2/microsoft-teams-integration/GetTenantBasedHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.rb +8 -0
- data/examples/v2/microsoft-teams-integration/{ListApiHandles.rb → ListTenantBasedHandles.rb} +2 -2
- data/examples/v2/microsoft-teams-integration/{ListApiHandles_769592979.rb → ListTenantBasedHandles_769592979.rb} +1 -1
- data/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.rb +17 -0
- data/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle_419892746.rb +18 -0
- data/examples/v2/rum-metrics/CreateRumMetric.rb +32 -0
- data/examples/v2/rum-metrics/DeleteRumMetric.rb +8 -0
- data/examples/v2/rum-metrics/GetRumMetric.rb +8 -0
- data/examples/v2/rum-metrics/ListRumMetrics.rb +5 -0
- data/examples/v2/rum-metrics/UpdateRumMetric.rb +29 -0
- data/examples/v2/security-monitoring/ListFindings_1668290866.rb +14 -0
- data/examples/v2/usage-metering/GetBillingDimensionMapping.rb +8 -0
- data/examples/v2/usage-metering/GetMonthlyCostAttribution.rb +4 -1
- data/lib/datadog_api_client/api_client.rb +1 -0
- data/lib/datadog_api_client/configuration.rb +6 -2
- data/lib/datadog_api_client/inflector.rb +81 -28
- data/lib/datadog_api_client/v1/api/monitors_api.rb +6 -3
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +2 -0
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +5 -3
- data/lib/datadog_api_client/v1/models/gcp_account.rb +11 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -3
- data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -6
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +11 -61
- data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +2 -2
- data/lib/datadog_api_client/v1/models/{synthetics_status.rb → synthetics_batch_status.rb} +4 -4
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step.rb +32 -6
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params.rb +249 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_direction.rb +29 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element.rb +175 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_context_type.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_relative_position.rb +115 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator.rb +117 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator_values_items.rb +115 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator_values_items_type.rb +30 -0
- data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_initial_application_arguments.rb → synthetics_mobile_step_params_positions_items.rb} +21 -11
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_value.rb +63 -0
- data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_ci_options.rb → synthetics_mobile_step_params_variable.rb} +38 -17
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_config.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options.rb +42 -16
- data/lib/datadog_api_client/v1/models/synthetics_mobile_tests_mobile_application.rb +24 -5
- data/lib/datadog_api_client/v1/models/synthetics_step.rb +22 -2
- data/lib/datadog_api_client/v1/models/synthetics_step_detail.rb +21 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb +19 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_details_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb +34 -4
- data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_options_monitor_options_notification_preset_name.rb → synthetics_test_options_monitor_options_notification_preset_name.rb} +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb +31 -2
- data/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb +32 -6
- data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_binding_items.rb → synthetics_test_restriction_policy_binding.rb} +11 -11
- data/lib/datadog_api_client/v1/models/{synthetics_mobile_test_binding_items_role.rb → synthetics_test_restriction_policy_binding_relation.rb} +2 -2
- data/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb +1 -12
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +3 -69
- data/lib/datadog_api_client/v2/api/domain_allowlist_api.rb +153 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +361 -0
- data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -13
- data/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb +98 -161
- data/lib/datadog_api_client/v2/api/rum_metrics_api.rb +357 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -0
- data/lib/datadog_api_client/v2/api/software_catalog_api.rb +19 -19
- data/lib/datadog_api_client/v2/api/teams_api.rb +1 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +79 -10
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item.rb +125 -0
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes.rb +127 -0
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes_endpoints_items.rb +127 -0
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_body_item_attributes_endpoints_items_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/billing_dimensions_mapping_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/domain_allowlist.rb +151 -0
- data/lib/datadog_api_client/v2/models/{aws_related_account_attributes.rb → domain_allowlist_attributes.rb} +20 -18
- data/lib/datadog_api_client/v2/models/domain_allowlist_request.rb +123 -0
- data/lib/datadog_api_client/{v1/models/synthetics_mobile_test_binding.rb → v2/models/domain_allowlist_response.rb} +13 -13
- data/lib/datadog_api_client/v2/models/domain_allowlist_response_data.rb +151 -0
- data/lib/datadog_api_client/v2/models/domain_allowlist_response_data_attributes.rb +117 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_type.rb → domain_allowlist_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/entity_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_incident.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_raw_schema.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_related_oncall_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_related_oncall_escalation_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_schema.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_v3_api_version.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_code_location_item.rb +3 -3
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_event_item.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_integration_opsgenie.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_integration_pagerduty.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_log_item.rb +3 -3
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_performance.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datadog_pipelines.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_datastore.rb +4 -4
- data/lib/datadog_api_client/v2/models/entity_v3_datastore_datadog.rb +4 -4
- data/lib/datadog_api_client/v2/models/entity_v3_datastore_spec.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_integrations.rb +3 -3
- data/lib/datadog_api_client/v2/models/entity_v3_metadata.rb +9 -9
- data/lib/datadog_api_client/v2/models/entity_v3_metadata_additional_owners_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_metadata_contacts_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_metadata_links_items.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_metadata_owner.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_queue.rb +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3_queue_datadog.rb +4 -4
- data/lib/datadog_api_client/v2/models/entity_v3_queue_spec.rb +2 -2
- data/lib/datadog_api_client/v2/models/entity_v3_service.rb +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3_service_datadog.rb +6 -6
- data/lib/datadog_api_client/v2/models/entity_v3_service_spec.rb +3 -3
- data/lib/datadog_api_client/v2/models/entity_v3_system.rb +5 -5
- data/lib/datadog_api_client/v2/models/entity_v3_system_datadog.rb +5 -5
- data/lib/datadog_api_client/v2/models/finding_attributes.rb +14 -4
- data/lib/datadog_api_client/v2/models/finding_vulnerability_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/gcp_metric_namespace_config.rb +115 -0
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +23 -1
- data/lib/datadog_api_client/v2/models/incident_create_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_metadata.rb +2 -1
- data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_type_attributes.rb +193 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_request_data.rb → incident_type_create_data.rb} +7 -7
- data/lib/datadog_api_client/v2/models/{microsoft_teams_create_api_handle_request.rb → incident_type_create_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handles_response.rb → incident_type_list_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{aws_related_account.rb → incident_type_object.rb} +8 -8
- data/lib/datadog_api_client/v2/models/incident_type_patch_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_create_api_handle_response.rb → incident_type_patch_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{microsoft_teams_update_api_handle_request.rb → incident_type_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{aws_related_account_type.rb → incident_type_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/incident_type_update_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_user_attributes.rb +153 -0
- data/lib/datadog_api_client/v2/models/incident_user_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/include_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/list_entity_catalog_response_links.rb +3 -3
- data/lib/datadog_api_client/v2/models/microsoft_teams_create_tenant_based_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_attributes.rb → microsoft_teams_tenant_based_handle_attributes.rb} +4 -4
- 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
- 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
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_info_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_request_attributes.rb → microsoft_teams_tenant_based_handle_request_attributes.rb} +4 -4
- 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
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_response_data.rb → microsoft_teams_tenant_based_handle_response_data.rb} +8 -8
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handle_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_tenant_based_handles_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_update_tenant_based_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_update_tenant_based_handle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/ms_teams_integration_metadata.rb +125 -0
- data/lib/datadog_api_client/v2/models/ms_teams_integration_metadata_teams_item.rb +186 -0
- data/lib/datadog_api_client/v2/models/relation_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_metric_compute.rb +145 -0
- data/lib/datadog_api_client/v2/models/rum_metric_compute_aggregation_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/rum_metric_create_attributes.rb +176 -0
- data/lib/datadog_api_client/v2/models/rum_metric_create_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/rum_metric_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_metric_event_type.rb +32 -0
- data/lib/datadog_api_client/v2/models/rum_metric_filter.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_metric_group_by.rb +133 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_response.rb → rum_metric_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/rum_metric_response_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_compute.rb +127 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_data.rb +125 -0
- data/lib/datadog_api_client/{v1/models/synthetics_mobile_test_initial_application_arguments_property_names.rb → v2/models/rum_metric_response_filter.rb} +13 -13
- data/lib/datadog_api_client/v2/models/rum_metric_response_group_by.rb +115 -0
- data/lib/datadog_api_client/v2/models/rum_metric_response_uniqueness.rb +105 -0
- data/lib/datadog_api_client/v2/models/{microsoft_teams_api_handle_info_type.rb → rum_metric_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/rum_metric_uniqueness.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_metric_uniqueness_when.rb +27 -0
- data/lib/datadog_api_client/v2/models/rum_metric_update_attributes.rb +127 -0
- data/lib/datadog_api_client/v2/models/rum_metric_update_compute.rb +106 -0
- data/lib/datadog_api_client/v2/models/rum_metric_update_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/rum_metric_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{aws_related_accounts_response.rb → rum_metrics_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb +15 -4
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +2 -2
- data/lib/datadog_api_client/v2/models/upsert_catalog_entity_request.rb +1 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +110 -43
- data/examples/v2/cloud-cost-management/ListAWSRelatedAccounts.rb +0 -5
- data/examples/v2/microsoft-teams-integration/CreateApiHandle.rb +0 -17
- data/examples/v2/microsoft-teams-integration/DeleteApiHandle.rb +0 -5
- data/examples/v2/microsoft-teams-integration/DeleteApiHandle_377884154.rb +0 -8
- data/examples/v2/microsoft-teams-integration/GetApiHandle.rb +0 -5
- data/examples/v2/microsoft-teams-integration/GetApiHandleByName.rb +0 -5
- data/examples/v2/microsoft-teams-integration/GetApiHandleByName_1103107145.rb +0 -8
- data/examples/v2/microsoft-teams-integration/GetApiHandle_2883785101.rb +0 -8
- data/examples/v2/microsoft-teams-integration/UpdateApiHandle.rb +0 -17
- data/examples/v2/microsoft-teams-integration/UpdateApiHandle_419892746.rb +0 -18
- data/lib/datadog_api_client/v1/models/synthetics_mobile_device_id.rb +0 -251
- 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 #
|
|
29
|
-
def
|
|
30
|
-
data, _status_code, _headers =
|
|
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 [
|
|
38
|
+
# @param body [MicrosoftTeamsCreateTenantBasedHandleRequest] Tenant-based handle payload.
|
|
39
39
|
# @param opts [Hash] the optional parameters
|
|
40
|
-
# @return [Array<(
|
|
41
|
-
def
|
|
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.
|
|
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.
|
|
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] || '
|
|
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 => :
|
|
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#
|
|
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 #
|
|
96
|
-
def
|
|
97
|
-
|
|
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
|
|
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.
|
|
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.
|
|
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 => :
|
|
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#
|
|
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
|
|
158
|
+
# Get channel information by name.
|
|
159
159
|
#
|
|
160
|
-
# @see #
|
|
161
|
-
def
|
|
162
|
-
data, _status_code, _headers =
|
|
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
|
|
166
|
+
# Get channel information by name.
|
|
167
167
|
#
|
|
168
|
-
# Get the tenant, team, and channel
|
|
168
|
+
# Get the tenant, team, and channel ID of a channel in the Datadog Microsoft Teams integration.
|
|
169
169
|
#
|
|
170
|
-
# @param
|
|
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<(
|
|
173
|
-
def
|
|
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.
|
|
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
|
-
#
|
|
183
|
-
|
|
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
|
-
|
|
221
|
-
|
|
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 '
|
|
244
|
-
if @api_client.config.client_side_validation &&
|
|
245
|
-
fail ArgumentError, "Missing the required parameter '
|
|
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/
|
|
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] || '
|
|
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 => :
|
|
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#
|
|
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
|
|
233
|
+
# Get tenant-based handle information.
|
|
289
234
|
#
|
|
290
|
-
# @see #
|
|
291
|
-
def
|
|
292
|
-
data, _status_code, _headers =
|
|
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
|
|
241
|
+
# Get tenant-based handle information.
|
|
297
242
|
#
|
|
298
|
-
# Get the tenant, team, and channel
|
|
243
|
+
# Get the tenant, team, and channel information of a tenant-based handle from the Datadog Microsoft Teams integration.
|
|
299
244
|
#
|
|
300
|
-
# @param
|
|
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<(
|
|
305
|
-
def
|
|
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.
|
|
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 '
|
|
319
|
-
if @api_client.config.client_side_validation &&
|
|
320
|
-
fail ArgumentError, "Missing the required parameter '
|
|
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/
|
|
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] || '
|
|
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 => :
|
|
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#
|
|
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 #
|
|
366
|
-
def
|
|
367
|
-
data, _status_code, _headers =
|
|
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
|
-
# @
|
|
378
|
-
|
|
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.
|
|
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] || '
|
|
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 => :
|
|
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#
|
|
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 #
|
|
428
|
-
def
|
|
429
|
-
data, _status_code, _headers =
|
|
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 [
|
|
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<(
|
|
441
|
-
def
|
|
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.
|
|
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.
|
|
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.
|
|
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] || '
|
|
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 => :
|
|
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#
|
|
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
|