Skip to content

Commit 74dd84c

Browse files
authored
Merge pull request #27 from opsgenie/fix-alert-responders
Fix alert & incident responders
2 parents c2e9ef0 + affe339 commit 74dd84c

21 files changed

+129
-50
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
44

55
- API version: 2.0.0
6-
- Package version: 2.0.1
6+
- Package version: 2.0.2
77
- Build package: com.atlassian.opsgenie.codegen.geniepy.GeniepyGenerator
88

99
For more information, please visit [https://www.opsgenie.com/contact-us](https://www.opsgenie.com/contact-us)

docs/Alert.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
2020
**source** | **str** | | [optional]
2121
**owner** | **str** | | [optional]
2222
**priority** | **str** | | [optional]
23-
**responders** | [**list[Recipient]**](Recipient.md) | | [optional]
23+
**responders** | [**list[Responder]**](Responder.md) | | [optional]
2424
**integration** | [**AlertIntegration**](AlertIntegration.md) | | [optional]
2525
**report** | [**AlertReport**](AlertReport.md) | | [optional]
2626
**actions** | **list[str]** | | [optional]

docs/BaseAlert.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
2020
**source** | **str** | | [optional]
2121
**owner** | **str** | | [optional]
2222
**priority** | **str** | | [optional]
23-
**responders** | [**list[Recipient]**](Recipient.md) | | [optional]
23+
**responders** | [**list[Responder]**](Responder.md) | | [optional]
2424
**integration** | [**AlertIntegration**](AlertIntegration.md) | | [optional]
2525
**report** | [**AlertReport**](AlertReport.md) | | [optional]
2626

docs/BaseIncident.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
1414
**source** | **str** | | [optional]
1515
**owner** | **str** | | [optional]
1616
**priority** | **str** | | [optional]
17-
**responders** | [**list[Recipient]**](Recipient.md) | | [optional]
17+
**responders** | [**list[Responder]**](Responder.md) | | [optional]
1818
**team_id** | **str** | | [optional]
1919
**details** | **dict(str, str)** | Map of key-value pairs to use as custom properties of the incident | [optional]
2020

docs/Incident.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
1414
**source** | **str** | | [optional]
1515
**owner** | **str** | | [optional]
1616
**priority** | **str** | | [optional]
17-
**responders** | [**list[Recipient]**](Recipient.md) | | [optional]
17+
**responders** | [**list[Responder]**](Responder.md) | | [optional]
1818
**team_id** | **str** | | [optional]
1919
**details** | **dict(str, str)** | Map of key-value pairs to use as custom properties of the incident | [optional]
2020
**request_id** | **str** | | [optional]

docs/TeamResponder.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6+
**type** | **str** | |
7+
**id** | **str** | |
68
**name** | **str** | | [optional]
79

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

docs/UserResponder.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**id** | **str** | | [optional]
6+
**type** | **str** | |
7+
**id** | **str** | |
78

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

opsgenie-oas.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4518,7 +4518,6 @@
45184518
"Responder": {
45194519
"x-opsgenie-domain": "common",
45204520
"type": "object",
4521-
"discriminator": "type",
45224521
"required": [
45234522
"type",
45244523
"id"
@@ -4538,7 +4537,6 @@
45384537
},
45394538
"UserResponder": {
45404539
"x-opsgenie-domain": "common",
4541-
"x-discriminator-value": "user",
45424540
"description": "User responder",
45434541
"allOf": [
45444542
{
@@ -4556,7 +4554,6 @@
45564554
},
45574555
"TeamResponder": {
45584556
"x-opsgenie-domain": "common",
4559-
"x-discriminator-value": "team",
45604557
"description": "Team responder",
45614558
"allOf": [
45624559
{
@@ -5294,7 +5291,7 @@
52945291
"responders": {
52955292
"type": "array",
52965293
"items": {
5297-
"$ref": "#/definitions/Recipient"
5294+
"$ref": "#/definitions/Responder"
52985295
}
52995296
},
53005297
"integration": {
@@ -6127,7 +6124,7 @@
61276124
"responders": {
61286125
"type": "array",
61296126
"items": {
6130-
"$ref": "#/definitions/Recipient"
6127+
"$ref": "#/definitions/Responder"
61316128
}
61326129
},
61336130
"teamId": {

opsgenie-oas.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9105,7 +9105,7 @@ components:
91059105
responders:
91069106
type: array
91079107
items:
9108-
$ref: '#/components/schemas/Recipient'
9108+
$ref: '#/components/schemas/Responder'
91099109
integration:
91109110
$ref: '#/components/schemas/AlertIntegration'
91119111
report:
@@ -9217,8 +9217,6 @@ components:
92179217
- team
92189218
id:
92199219
type: string
9220-
discriminator:
9221-
propertyName: type
92229220
x-opsgenie-domain: common
92239221
AssignAlertPayload:
92249222
allOf:
@@ -9239,7 +9237,6 @@ components:
92399237
id:
92409238
type: string
92419239
x-opsgenie-domain: common
9242-
x-discriminator-value: user
92439240
AddTagsToAlertPayload:
92449241
allOf:
92459242
- $ref: '#/components/schemas/AlertActionPayload'
@@ -9315,7 +9312,7 @@ components:
93159312
responders:
93169313
type: array
93179314
items:
9318-
$ref: '#/components/schemas/Recipient'
9315+
$ref: '#/components/schemas/Responder'
93199316
teamId:
93209317
type: string
93219318
details:
@@ -9337,7 +9334,6 @@ components:
93379334
name:
93389335
type: string
93399336
x-opsgenie-domain: common
9340-
x-discriminator-value: team
93419337
WeekdayTimeRestrictionInterval:
93429338
description: Weekday time restriction interval
93439339
allOf:

opsgenie_sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
from opsgenie_sdk.models.weekday_time_restriction_interval import WeekdayTimeRestrictionInterval
169169
from opsgenie_sdk.models.weekday_time_restriction_interval_all_of import WeekdayTimeRestrictionIntervalAllOf
170170

171-
__version__ = "2.0.1"
171+
__version__ = "2.0.2"
172172

173173
# import apis into sdk package
174174

0 commit comments

Comments
 (0)