diff --git a/docs/BaseIncident.md b/docs/BaseIncident.md index e814b13..d79f06f 100644 --- a/docs/BaseIncident.md +++ b/docs/BaseIncident.md @@ -15,8 +15,8 @@ Name | Type | Description | Notes **owner** | **str** | | [optional] **priority** | **str** | | [optional] **responders** | [**list[Responder]**](Responder.md) | | [optional] -**team_id** | **str** | | [optional] -**details** | **dict(str, str)** | Map of key-value pairs to use as custom properties of the incident | [optional] +**owner_team** | **str** | | [optional] +**extra_properties** | **dict(str, str)** | Map of key-value pairs to use as custom properties of the incident | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Incident.md b/docs/Incident.md index 4fa41ad..d3433ce 100644 --- a/docs/Incident.md +++ b/docs/Incident.md @@ -15,8 +15,8 @@ Name | Type | Description | Notes **owner** | **str** | | [optional] **priority** | **str** | | [optional] **responders** | [**list[Responder]**](Responder.md) | | [optional] -**team_id** | **str** | | [optional] -**details** | **dict(str, str)** | Map of key-value pairs to use as custom properties of the incident | [optional] +**owner_team** | **str** | | [optional] +**extra_properties** | **dict(str, str)** | Map of key-value pairs to use as custom properties of the incident | [optional] **request_id** | **str** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/opsgenie-oas.json b/opsgenie-oas.json index 45ddc81..dffbd0e 100644 --- a/opsgenie-oas.json +++ b/opsgenie-oas.json @@ -6129,10 +6129,10 @@ "$ref": "#/definitions/Responder" } }, - "teamId": { + "ownerTeam": { "type": "string" }, - "details": { + "extraProperties": { "type": "object", "description": "Map of key-value pairs to use as custom properties of the incident", "additionalProperties": { diff --git a/opsgenie-oas.yml b/opsgenie-oas.yml index 754954f..1377aa6 100644 --- a/opsgenie-oas.yml +++ b/opsgenie-oas.yml @@ -9314,9 +9314,9 @@ components: type: array items: $ref: '#/components/schemas/Responder' - teamId: + ownerTeam: type: string - details: + extraProperties: type: object additionalProperties: type: string diff --git a/opsgenie_sdk/api/incident/base_incident.py b/opsgenie_sdk/api/incident/base_incident.py index d7e738c..ab37aad 100644 --- a/opsgenie_sdk/api/incident/base_incident.py +++ b/opsgenie_sdk/api/incident/base_incident.py @@ -44,8 +44,8 @@ class BaseIncident(object): 'owner': 'str', 'priority': 'str', 'responders': 'list[Responder]', - 'team_id': 'str', - 'details': 'dict(str, str)' + 'owner_team': 'str', + 'extra_properties': 'dict(str, str)' } attribute_map = { @@ -61,11 +61,11 @@ class BaseIncident(object): 'owner': 'owner', 'priority': 'priority', 'responders': 'responders', - 'team_id': 'teamId', - 'details': 'details' + 'owner_team': 'ownerTeam', + 'extra_properties': 'extraProperties' } - def __init__(self, id=None, tiny_id=None, message=None, status=None, is_seen=None, tags=None, created_at=None, updated_at=None, source=None, owner=None, priority=None, responders=None, team_id=None, details=None): # noqa: E501 + def __init__(self, id=None, tiny_id=None, message=None, status=None, is_seen=None, tags=None, created_at=None, updated_at=None, source=None, owner=None, priority=None, responders=None, owner_team=None, extra_properties=None): # noqa: E501 """BaseIncident - a model defined in OpenAPI""" # noqa: E501 self._id = None @@ -80,8 +80,8 @@ def __init__(self, id=None, tiny_id=None, message=None, status=None, is_seen=Non self._owner = None self._priority = None self._responders = None - self._team_id = None - self._details = None + self._owner_team = None + self._extra_properties = None self.discriminator = None self.id = id @@ -107,10 +107,10 @@ def __init__(self, id=None, tiny_id=None, message=None, status=None, is_seen=Non self.priority = priority if responders is not None: self.responders = responders - if team_id is not None: - self.team_id = team_id - if details is not None: - self.details = details + if owner_team is not None: + self.owner_team = owner_team + if extra_properties is not None: + self.extra_properties = extra_properties @property def id(self): @@ -367,48 +367,48 @@ def responders(self, responders): self._responders = responders @property - def team_id(self): - """Gets the team_id of this BaseIncident. # noqa: E501 + def owner_team(self): + """Gets the owner_team of this BaseIncident. # noqa: E501 - :return: The team_id of this BaseIncident. # noqa: E501 + :return: The owner_team of this BaseIncident. # noqa: E501 :rtype: str """ - return self._team_id + return self._owner_team - @team_id.setter - def team_id(self, team_id): - """Sets the team_id of this BaseIncident. + @owner_team.setter + def owner_team(self, owner_team): + """Sets the owner_team of this BaseIncident. - :param team_id: The team_id of this BaseIncident. # noqa: E501 + :param owner_team: The owner_team of this BaseIncident. # noqa: E501 :type: str """ - self._team_id = team_id + self._owner_team = owner_team @property - def details(self): - """Gets the details of this BaseIncident. # noqa: E501 + def extra_properties(self): + """Gets the extra_properties of this BaseIncident. # noqa: E501 Map of key-value pairs to use as custom properties of the incident # noqa: E501 - :return: The details of this BaseIncident. # noqa: E501 + :return: The extra_properties of this BaseIncident. # noqa: E501 :rtype: dict(str, str) """ - return self._details + return self._extra_properties - @details.setter - def details(self, details): - """Sets the details of this BaseIncident. + @extra_properties.setter + def extra_properties(self, extra_properties): + """Sets the extra_properties of this BaseIncident. Map of key-value pairs to use as custom properties of the incident # noqa: E501 - :param details: The details of this BaseIncident. # noqa: E501 + :param extra_properties: The extra_properties of this BaseIncident. # noqa: E501 :type: dict(str, str) """ - self._details = details + self._extra_properties = extra_properties def to_dict(self): """Returns the model properties as a dict""" diff --git a/opsgenie_sdk/api/incident/incident.py b/opsgenie_sdk/api/incident/incident.py index 2d97849..677f553 100644 --- a/opsgenie_sdk/api/incident/incident.py +++ b/opsgenie_sdk/api/incident/incident.py @@ -44,8 +44,8 @@ class Incident(object): 'owner': 'str', 'priority': 'str', 'responders': 'list[Responder]', - 'team_id': 'str', - 'details': 'dict(str, str)', + 'owner_team': 'str', + 'extra_properties': 'dict(str, str)', 'request_id': 'str' } @@ -62,12 +62,12 @@ class Incident(object): 'owner': 'owner', 'priority': 'priority', 'responders': 'responders', - 'team_id': 'teamId', - 'details': 'details', + 'owner_team': 'ownerTeam', + 'extra_properties': 'extraProperties', 'request_id': 'requestId' } - def __init__(self, id=None, tiny_id=None, message=None, status=None, is_seen=None, tags=None, created_at=None, updated_at=None, source=None, owner=None, priority=None, responders=None, team_id=None, details=None, request_id=None): # noqa: E501 + def __init__(self, id=None, tiny_id=None, message=None, status=None, is_seen=None, tags=None, created_at=None, updated_at=None, source=None, owner=None, priority=None, responders=None, owner_team=None, extra_properties=None, request_id=None): # noqa: E501 """Incident - a model defined in OpenAPI""" # noqa: E501 self._id = None @@ -82,8 +82,8 @@ def __init__(self, id=None, tiny_id=None, message=None, status=None, is_seen=Non self._owner = None self._priority = None self._responders = None - self._team_id = None - self._details = None + self._owner_team = None + self._extra_properties = None self._request_id = None self.discriminator = None @@ -110,10 +110,10 @@ def __init__(self, id=None, tiny_id=None, message=None, status=None, is_seen=Non self.priority = priority if responders is not None: self.responders = responders - if team_id is not None: - self.team_id = team_id - if details is not None: - self.details = details + if owner_team is not None: + self.owner_team = owner_team + if extra_properties is not None: + self.extra_properties = extra_properties if request_id is not None: self.request_id = request_id @@ -372,48 +372,48 @@ def responders(self, responders): self._responders = responders @property - def team_id(self): - """Gets the team_id of this Incident. # noqa: E501 + def owner_team(self): + """Gets the owner_team of this Incident. # noqa: E501 - :return: The team_id of this Incident. # noqa: E501 + :return: The owner_team of this Incident. # noqa: E501 :rtype: str """ - return self._team_id + return self._owner_team - @team_id.setter - def team_id(self, team_id): - """Sets the team_id of this Incident. + @owner_team.setter + def owner_team(self, owner_team): + """Sets the owner_team of this Incident. - :param team_id: The team_id of this Incident. # noqa: E501 + :param owner_team: The owner_team of this Incident. # noqa: E501 :type: str """ - self._team_id = team_id + self._owner_team = owner_team @property - def details(self): - """Gets the details of this Incident. # noqa: E501 + def extra_properties(self): + """Gets the extra_properties of this Incident. # noqa: E501 Map of key-value pairs to use as custom properties of the incident # noqa: E501 - :return: The details of this Incident. # noqa: E501 + :return: The extra_properties of this Incident. # noqa: E501 :rtype: dict(str, str) """ - return self._details + return self._extra_properties - @details.setter - def details(self, details): - """Sets the details of this Incident. + @extra_properties.setter + def extra_properties(self, extra_properties): + """Sets the extra_properties of this Incident. Map of key-value pairs to use as custom properties of the incident # noqa: E501 - :param details: The details of this Incident. # noqa: E501 + :param extra_properties: The extra_properties of this Incident. # noqa: E501 :type: dict(str, str) """ - self._details = details + self._extra_properties = extra_properties @property def request_id(self):