Skip to content

Commit 7a7b94a

Browse files
authored
Merge pull request #37 from opsgenie/update-incident-props
Update Incident properties (This closes #32 and closes #33)
2 parents eae7fed + 384be26 commit 7a7b94a

File tree

6 files changed

+66
-66
lines changed

6 files changed

+66
-66
lines changed

docs/BaseIncident.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Name | Type | Description | Notes
1515
**owner** | **str** | | [optional]
1616
**priority** | **str** | | [optional]
1717
**responders** | [**list[Responder]**](Responder.md) | | [optional]
18-
**team_id** | **str** | | [optional]
19-
**details** | **dict(str, str)** | Map of key-value pairs to use as custom properties of the incident | [optional]
18+
**owner_team** | **str** | | [optional]
19+
**extra_properties** | **dict(str, str)** | Map of key-value pairs to use as custom properties of the incident | [optional]
2020

2121
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2222

docs/Incident.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Name | Type | Description | Notes
1515
**owner** | **str** | | [optional]
1616
**priority** | **str** | | [optional]
1717
**responders** | [**list[Responder]**](Responder.md) | | [optional]
18-
**team_id** | **str** | | [optional]
19-
**details** | **dict(str, str)** | Map of key-value pairs to use as custom properties of the incident | [optional]
18+
**owner_team** | **str** | | [optional]
19+
**extra_properties** | **dict(str, str)** | Map of key-value pairs to use as custom properties of the incident | [optional]
2020
**request_id** | **str** | | [optional]
2121

2222
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

opsgenie-oas.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6129,10 +6129,10 @@
61296129
"$ref": "#/definitions/Responder"
61306130
}
61316131
},
6132-
"teamId": {
6132+
"ownerTeam": {
61336133
"type": "string"
61346134
},
6135-
"details": {
6135+
"extraProperties": {
61366136
"type": "object",
61376137
"description": "Map of key-value pairs to use as custom properties of the incident",
61386138
"additionalProperties": {

opsgenie-oas.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9314,9 +9314,9 @@ components:
93149314
type: array
93159315
items:
93169316
$ref: '#/components/schemas/Responder'
9317-
teamId:
9317+
ownerTeam:
93189318
type: string
9319-
details:
9319+
extraProperties:
93209320
type: object
93219321
additionalProperties:
93229322
type: string

opsgenie_sdk/api/incident/base_incident.py

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ class BaseIncident(object):
4444
'owner': 'str',
4545
'priority': 'str',
4646
'responders': 'list[Responder]',
47-
'team_id': 'str',
48-
'details': 'dict(str, str)'
47+
'owner_team': 'str',
48+
'extra_properties': 'dict(str, str)'
4949
}
5050

5151
attribute_map = {
@@ -61,11 +61,11 @@ class BaseIncident(object):
6161
'owner': 'owner',
6262
'priority': 'priority',
6363
'responders': 'responders',
64-
'team_id': 'teamId',
65-
'details': 'details'
64+
'owner_team': 'ownerTeam',
65+
'extra_properties': 'extraProperties'
6666
}
6767

68-
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
68+
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
6969
"""BaseIncident - a model defined in OpenAPI""" # noqa: E501
7070

7171
self._id = None
@@ -80,8 +80,8 @@ def __init__(self, id=None, tiny_id=None, message=None, status=None, is_seen=Non
8080
self._owner = None
8181
self._priority = None
8282
self._responders = None
83-
self._team_id = None
84-
self._details = None
83+
self._owner_team = None
84+
self._extra_properties = None
8585
self.discriminator = None
8686

8787
self.id = id
@@ -107,10 +107,10 @@ def __init__(self, id=None, tiny_id=None, message=None, status=None, is_seen=Non
107107
self.priority = priority
108108
if responders is not None:
109109
self.responders = responders
110-
if team_id is not None:
111-
self.team_id = team_id
112-
if details is not None:
113-
self.details = details
110+
if owner_team is not None:
111+
self.owner_team = owner_team
112+
if extra_properties is not None:
113+
self.extra_properties = extra_properties
114114

115115
@property
116116
def id(self):
@@ -367,48 +367,48 @@ def responders(self, responders):
367367
self._responders = responders
368368

369369
@property
370-
def team_id(self):
371-
"""Gets the team_id of this BaseIncident. # noqa: E501
370+
def owner_team(self):
371+
"""Gets the owner_team of this BaseIncident. # noqa: E501
372372
373373
374-
:return: The team_id of this BaseIncident. # noqa: E501
374+
:return: The owner_team of this BaseIncident. # noqa: E501
375375
:rtype: str
376376
"""
377-
return self._team_id
377+
return self._owner_team
378378

379-
@team_id.setter
380-
def team_id(self, team_id):
381-
"""Sets the team_id of this BaseIncident.
379+
@owner_team.setter
380+
def owner_team(self, owner_team):
381+
"""Sets the owner_team of this BaseIncident.
382382
383383
384-
:param team_id: The team_id of this BaseIncident. # noqa: E501
384+
:param owner_team: The owner_team of this BaseIncident. # noqa: E501
385385
:type: str
386386
"""
387387

388-
self._team_id = team_id
388+
self._owner_team = owner_team
389389

390390
@property
391-
def details(self):
392-
"""Gets the details of this BaseIncident. # noqa: E501
391+
def extra_properties(self):
392+
"""Gets the extra_properties of this BaseIncident. # noqa: E501
393393
394394
Map of key-value pairs to use as custom properties of the incident # noqa: E501
395395
396-
:return: The details of this BaseIncident. # noqa: E501
396+
:return: The extra_properties of this BaseIncident. # noqa: E501
397397
:rtype: dict(str, str)
398398
"""
399-
return self._details
399+
return self._extra_properties
400400

401-
@details.setter
402-
def details(self, details):
403-
"""Sets the details of this BaseIncident.
401+
@extra_properties.setter
402+
def extra_properties(self, extra_properties):
403+
"""Sets the extra_properties of this BaseIncident.
404404
405405
Map of key-value pairs to use as custom properties of the incident # noqa: E501
406406
407-
:param details: The details of this BaseIncident. # noqa: E501
407+
:param extra_properties: The extra_properties of this BaseIncident. # noqa: E501
408408
:type: dict(str, str)
409409
"""
410410

411-
self._details = details
411+
self._extra_properties = extra_properties
412412

413413
def to_dict(self):
414414
"""Returns the model properties as a dict"""

opsgenie_sdk/api/incident/incident.py

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ class Incident(object):
4444
'owner': 'str',
4545
'priority': 'str',
4646
'responders': 'list[Responder]',
47-
'team_id': 'str',
48-
'details': 'dict(str, str)',
47+
'owner_team': 'str',
48+
'extra_properties': 'dict(str, str)',
4949
'request_id': 'str'
5050
}
5151

@@ -62,12 +62,12 @@ class Incident(object):
6262
'owner': 'owner',
6363
'priority': 'priority',
6464
'responders': 'responders',
65-
'team_id': 'teamId',
66-
'details': 'details',
65+
'owner_team': 'ownerTeam',
66+
'extra_properties': 'extraProperties',
6767
'request_id': 'requestId'
6868
}
6969

70-
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
70+
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
7171
"""Incident - a model defined in OpenAPI""" # noqa: E501
7272

7373
self._id = None
@@ -82,8 +82,8 @@ def __init__(self, id=None, tiny_id=None, message=None, status=None, is_seen=Non
8282
self._owner = None
8383
self._priority = None
8484
self._responders = None
85-
self._team_id = None
86-
self._details = None
85+
self._owner_team = None
86+
self._extra_properties = None
8787
self._request_id = None
8888
self.discriminator = None
8989

@@ -110,10 +110,10 @@ def __init__(self, id=None, tiny_id=None, message=None, status=None, is_seen=Non
110110
self.priority = priority
111111
if responders is not None:
112112
self.responders = responders
113-
if team_id is not None:
114-
self.team_id = team_id
115-
if details is not None:
116-
self.details = details
113+
if owner_team is not None:
114+
self.owner_team = owner_team
115+
if extra_properties is not None:
116+
self.extra_properties = extra_properties
117117
if request_id is not None:
118118
self.request_id = request_id
119119

@@ -372,48 +372,48 @@ def responders(self, responders):
372372
self._responders = responders
373373

374374
@property
375-
def team_id(self):
376-
"""Gets the team_id of this Incident. # noqa: E501
375+
def owner_team(self):
376+
"""Gets the owner_team of this Incident. # noqa: E501
377377
378378
379-
:return: The team_id of this Incident. # noqa: E501
379+
:return: The owner_team of this Incident. # noqa: E501
380380
:rtype: str
381381
"""
382-
return self._team_id
382+
return self._owner_team
383383

384-
@team_id.setter
385-
def team_id(self, team_id):
386-
"""Sets the team_id of this Incident.
384+
@owner_team.setter
385+
def owner_team(self, owner_team):
386+
"""Sets the owner_team of this Incident.
387387
388388
389-
:param team_id: The team_id of this Incident. # noqa: E501
389+
:param owner_team: The owner_team of this Incident. # noqa: E501
390390
:type: str
391391
"""
392392

393-
self._team_id = team_id
393+
self._owner_team = owner_team
394394

395395
@property
396-
def details(self):
397-
"""Gets the details of this Incident. # noqa: E501
396+
def extra_properties(self):
397+
"""Gets the extra_properties of this Incident. # noqa: E501
398398
399399
Map of key-value pairs to use as custom properties of the incident # noqa: E501
400400
401-
:return: The details of this Incident. # noqa: E501
401+
:return: The extra_properties of this Incident. # noqa: E501
402402
:rtype: dict(str, str)
403403
"""
404-
return self._details
404+
return self._extra_properties
405405

406-
@details.setter
407-
def details(self, details):
408-
"""Sets the details of this Incident.
406+
@extra_properties.setter
407+
def extra_properties(self, extra_properties):
408+
"""Sets the extra_properties of this Incident.
409409
410410
Map of key-value pairs to use as custom properties of the incident # noqa: E501
411411
412-
:param details: The details of this Incident. # noqa: E501
412+
:param extra_properties: The extra_properties of this Incident. # noqa: E501
413413
:type: dict(str, str)
414414
"""
415415

416-
self._details = details
416+
self._extra_properties = extra_properties
417417

418418
@property
419419
def request_id(self):

0 commit comments

Comments
 (0)