Skip to content

Commit d12e7d4

Browse files
committed
Remove schema from Deployment, remove message attribute (#3223)
1 parent f975552 commit d12e7d4

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

github/Deployment.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ class Deployment(CompletableGithubObject):
7070
The OpenAPI schema can be found at
7171
- /components/schemas/deployment
7272
- /components/schemas/deployment-simple
73-
- /paths/"/repos/{owner}/{repo}/deployments"/post/responses/202/content/"application/json"/schema
7473
7574
"""
7675

@@ -80,7 +79,6 @@ def _initAttributes(self) -> None:
8079
self._description: Attribute[str] = NotSet
8180
self._environment: Attribute[str] = NotSet
8281
self._id: Attribute[int] = NotSet
83-
self._message: Attribute[str] = NotSet
8482
self._node_id: Attribute[str] = NotSet
8583
self._original_environment: Attribute[str] = NotSet
8684
self._payload: Attribute[dict[str, Any]] = NotSet
@@ -123,11 +121,6 @@ def id(self) -> int:
123121
self._completeIfNotSet(self._id)
124122
return self._id.value
125123

126-
@property
127-
def message(self) -> str:
128-
self._completeIfNotSet(self._message)
129-
return self._message.value
130-
131124
@property
132125
def node_id(self) -> str:
133126
self._completeIfNotSet(self._node_id)
@@ -275,8 +268,6 @@ def _useAttributes(self, attributes: dict[str, Any]) -> None:
275268
self._environment = self._makeStringAttribute(attributes["environment"])
276269
if "id" in attributes: # pragma no branch
277270
self._id = self._makeIntAttribute(attributes["id"])
278-
if "message" in attributes: # pragma no branch
279-
self._message = self._makeStringAttribute(attributes["message"])
280271
if "node_id" in attributes: # pragma no branch
281272
self._node_id = self._makeStringAttribute(attributes["node_id"])
282273
if "original_environment" in attributes: # pragma no branch

tests/Deployment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def testAttributes(self):
5353
self.assertEqual(self.deployment.description, "Test deployment")
5454
self.assertEqual(self.deployment.environment, "test")
5555
self.assertEqual(self.deployment.id, 263877258)
56-
self.assertIsNone(self.deployment.message)
5756
self.assertEqual(self.deployment.node_id, "MDEwOkRlcGxveW1lbnQyNjIzNTE3NzY=")
5857
self.assertEqual(self.deployment.original_environment, "test")
5958
self.assertEqual(self.deployment.payload, {"test": True})

0 commit comments

Comments
 (0)