Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171438,6 +171438,7 @@ paths:
- manage_integrations
/api/v2/integration/salesforce-incidents/incident-templates:
get:
deprecated: true
description: Get all Salesforce incident templates configured for your organization.
operationId: GetIncidentTemplates
responses:
Expand Down Expand Up @@ -171472,6 +171473,7 @@ paths:
permissions:
- integrations_read
post:
deprecated: true
description: |-
Create a new Salesforce incident template for your organization. Template
names must be unique within an organization.
Expand Down Expand Up @@ -171535,6 +171537,7 @@ paths:
- manage_integrations
/api/v2/integration/salesforce-incidents/incident-templates/{incident_template_id}:
delete:
deprecated: true
description: Delete a single Salesforce incident template from your organization.
operationId: DeleteIncidentTemplate
parameters:
Expand All @@ -171556,6 +171559,7 @@ paths:
permissions:
- manage_integrations
patch:
deprecated: true
description: Update a single Salesforce incident template in your organization.
operationId: UpdateIncidentTemplate
parameters:
Expand Down Expand Up @@ -171615,6 +171619,7 @@ paths:
- manage_integrations
/api/v2/integration/salesforce-incidents/organizations:
get:
deprecated: true
description: |-
Get all Salesforce organizations connected to your Datadog organization
through the Salesforce integration. Salesforce organizations are connected
Expand Down Expand Up @@ -171655,6 +171660,7 @@ paths:
- integrations_read
/api/v2/integration/salesforce-incidents/organizations/{salesforce_org_id}:
delete:
deprecated: true
description: |-
Disconnect a Salesforce organization from your Datadog organization.
This also deletes any incident templates referencing the organization.
Expand Down
19 changes: 13 additions & 6 deletions src/datadog_api_client/v2/api/salesforce_integration_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from __future__ import annotations

from typing import Any, Dict
import warnings

from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
from datadog_api_client.configuration import Configuration
Expand Down Expand Up @@ -159,7 +160,7 @@ def create_incident_template(
self,
body: SalesforceIncidentsTemplateCreateRequest,
) -> SalesforceIncidentsTemplateResponse:
"""Create a Salesforce incident template.
"""Create a Salesforce incident template. **Deprecated**.

Create a new Salesforce incident template for your organization. Template
names must be unique within an organization.
Expand All @@ -171,13 +172,14 @@ def create_incident_template(
kwargs: Dict[str, Any] = {}
kwargs["body"] = body

warnings.warn("create_incident_template is deprecated", DeprecationWarning, stacklevel=2)
return self._create_incident_template_endpoint.call_with_http_info(**kwargs)

def delete_incident_template(
self,
incident_template_id: str,
) -> None:
"""Delete a Salesforce incident template.
"""Delete a Salesforce incident template. **Deprecated**.

Delete a single Salesforce incident template from your organization.

Expand All @@ -188,13 +190,14 @@ def delete_incident_template(
kwargs: Dict[str, Any] = {}
kwargs["incident_template_id"] = incident_template_id

warnings.warn("delete_incident_template is deprecated", DeprecationWarning, stacklevel=2)
return self._delete_incident_template_endpoint.call_with_http_info(**kwargs)

def delete_salesforce_organization(
self,
salesforce_org_id: str,
) -> None:
"""Delete a connected Salesforce organization.
"""Delete a connected Salesforce organization. **Deprecated**.

Disconnect a Salesforce organization from your Datadog organization.
This also deletes any incident templates referencing the organization.
Expand All @@ -206,24 +209,26 @@ def delete_salesforce_organization(
kwargs: Dict[str, Any] = {}
kwargs["salesforce_org_id"] = salesforce_org_id

warnings.warn("delete_salesforce_organization is deprecated", DeprecationWarning, stacklevel=2)
return self._delete_salesforce_organization_endpoint.call_with_http_info(**kwargs)

def get_incident_templates(
self,
) -> SalesforceIncidentsTemplatesResponse:
"""Get all Salesforce incident templates.
"""Get all Salesforce incident templates. **Deprecated**.

Get all Salesforce incident templates configured for your organization.

:rtype: SalesforceIncidentsTemplatesResponse
"""
kwargs: Dict[str, Any] = {}
warnings.warn("get_incident_templates is deprecated", DeprecationWarning, stacklevel=2)
return self._get_incident_templates_endpoint.call_with_http_info(**kwargs)

def get_salesforce_organizations(
self,
) -> SalesforceIncidentsOrganizationsResponse:
"""Get all connected Salesforce organizations.
"""Get all connected Salesforce organizations. **Deprecated**.

Get all Salesforce organizations connected to your Datadog organization
through the Salesforce integration. Salesforce organizations are connected
Expand All @@ -232,14 +237,15 @@ def get_salesforce_organizations(
:rtype: SalesforceIncidentsOrganizationsResponse
"""
kwargs: Dict[str, Any] = {}
warnings.warn("get_salesforce_organizations is deprecated", DeprecationWarning, stacklevel=2)
return self._get_salesforce_organizations_endpoint.call_with_http_info(**kwargs)

def update_incident_template(
self,
incident_template_id: str,
body: SalesforceIncidentsTemplateUpdateRequest,
) -> SalesforceIncidentsTemplateResponse:
"""Update a Salesforce incident template.
"""Update a Salesforce incident template. **Deprecated**.

Update a single Salesforce incident template in your organization.

Expand All @@ -254,4 +260,5 @@ def update_incident_template(

kwargs["body"] = body

warnings.warn("update_incident_template is deprecated", DeprecationWarning, stacklevel=2)
return self._update_incident_template_endpoint.call_with_http_info(**kwargs)
Loading