Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Incident properties (This closes #32 and closes #33) #37

Merged
merged 1 commit into from
Jan 24, 2020
Merged
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
4 changes: 2 additions & 2 deletions docs/BaseIncident.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions docs/Incident.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions opsgenie-oas.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions opsgenie-oas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9314,9 +9314,9 @@ components:
type: array
items:
$ref: '#/components/schemas/Responder'
teamId:
ownerTeam:
type: string
details:
extraProperties:
type: object
additionalProperties:
type: string
Expand Down
58 changes: 29 additions & 29 deletions opsgenie_sdk/api/incident/base_incident.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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):
Expand Down Expand Up @@ -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"""
Expand Down
58 changes: 29 additions & 29 deletions opsgenie_sdk/api/incident/incident.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

Expand All @@ -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
Expand All @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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):
Expand Down