Skip to content

Commit a92cc1f

Browse files
authored
Merge pull request #50 from devopshq/develop
1.0.9
2 parents 70b9c52 + c722eab commit a92cc1f

6 files changed

Lines changed: 71 additions & 3 deletions

File tree

docs-sphinx/swagger/api/BuildApi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ get_content
819819
820820
try:
821821
api_response = tc.build_api.get_content(path, build_locator, response_builder=response_builder, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage)
822-
pprint(api_response)
822+
pprint(api_response)
823823
except ApiException as e:
824824
print("Exception when calling BuildApi->get_content: %s\n" % e)
825825

docs-sphinx/swagger/models/Agent.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ Properties
5151
* - **disconnection_comment**
5252
- **str**
5353
- `optional`
54+
* - **host**
55+
- **str**
56+
- `optional`
5457
* - **href**
5558
- **str**
5659
- `optional`

docs-sphinx/swagger/models/BuildType.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ Properties
3333
* - **paused**
3434
- **bool**
3535
- `optional` [default to ``False``]
36+
* - **pause_comment**
37+
- `Comment <./Comment.html>`_
38+
- `optional`
3639
* - **uuid**
3740
- **str**
3841
- `optional`

dohq_teamcity/models/agent.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class Agent(TeamCityObject):
4040
'version': 'str',
4141
'last_activity_time': 'str',
4242
'disconnection_comment': 'str',
43+
'host': 'str',
4344
'href': 'str',
4445
'web_url': 'str',
4546
'build': 'Build',
@@ -67,6 +68,7 @@ class Agent(TeamCityObject):
6768
'version': 'version',
6869
'last_activity_time': 'lastActivityTime',
6970
'disconnection_comment': 'disconnectionComment',
71+
'host': 'host',
7072
'href': 'href',
7173
'web_url': 'webUrl',
7274
'build': 'build',
@@ -81,7 +83,7 @@ class Agent(TeamCityObject):
8183
'locator': 'locator'
8284
}
8385

84-
def __init__(self, id=None, name=None, type_id=None, connected=False, enabled=False, authorized=False, uptodate=False, ip=None, protocol=None, version=None, last_activity_time=None, disconnection_comment=None, href=None, web_url=None, build=None, links=None, enabled_info=None, authorized_info=None, properties=None, environment=None, pool=None, compatible_build_types=None, incompatible_build_types=None, locator=None, teamcity=None): # noqa: E501
86+
def __init__(self, id=None, name=None, type_id=None, connected=False, enabled=False, authorized=False, uptodate=False, ip=None, protocol=None, version=None, last_activity_time=None, disconnection_comment=None, host=None, href=None, web_url=None, build=None, links=None, enabled_info=None, authorized_info=None, properties=None, environment=None, pool=None, compatible_build_types=None, incompatible_build_types=None, locator=None, teamcity=None): # noqa: E501
8587
"""Agent - a model defined in Swagger""" # noqa: E501
8688

8789
self._id = None
@@ -96,6 +98,7 @@ def __init__(self, id=None, name=None, type_id=None, connected=False, enabled=Fa
9698
self._version = None
9799
self._last_activity_time = None
98100
self._disconnection_comment = None
101+
self._host = None
99102
self._href = None
100103
self._web_url = None
101104
self._build = None
@@ -134,6 +137,8 @@ def __init__(self, id=None, name=None, type_id=None, connected=False, enabled=Fa
134137
self.last_activity_time = last_activity_time
135138
if disconnection_comment is not None:
136139
self.disconnection_comment = disconnection_comment
140+
if host is not None:
141+
self.host = host
137142
if href is not None:
138143
self.href = href
139144
if web_url is not None:
@@ -412,6 +417,27 @@ def disconnection_comment(self, disconnection_comment):
412417

413418
self._disconnection_comment = disconnection_comment
414419

420+
@property
421+
def host(self):
422+
"""Gets the host of this Agent. # noqa: E501
423+
424+
425+
:return: The host of this Agent. # noqa: E501
426+
:rtype: str
427+
"""
428+
return self._host
429+
430+
@host.setter
431+
def host(self, host):
432+
"""Sets the host of this Agent.
433+
434+
435+
:param host: The host of this Agent. # noqa: E501
436+
:type: str
437+
"""
438+
439+
self._host = host
440+
415441
@property
416442
def href(self):
417443
"""Gets the href of this Agent. # noqa: E501

dohq_teamcity/models/build_type.py

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# from dohq_teamcity.models.build_type import BuildType # noqa: F401,E501
1111
# from dohq_teamcity.models.build_types import BuildTypes # noqa: F401,E501
1212
# from dohq_teamcity.models.builds import Builds # noqa: F401,E501
13+
# from dohq_teamcity.models.comment import Comment # noqa: F401,E501
1314
# from dohq_teamcity.models.features import Features # noqa: F401,E501
1415
# from dohq_teamcity.models.investigations import Investigations # noqa: F401,E501
1516
# from dohq_teamcity.models.links import Links # noqa: F401,E501
@@ -42,6 +43,7 @@ class BuildType(TeamCityObject):
4243
'template_flag': 'bool',
4344
'type': 'str',
4445
'paused': 'bool',
46+
'pause_comment': 'Comment',
4547
'uuid': 'str',
4648
'description': 'str',
4749
'project_name': 'str',
@@ -78,6 +80,7 @@ class BuildType(TeamCityObject):
7880
'template_flag': 'templateFlag',
7981
'type': 'type',
8082
'paused': 'paused',
83+
'pause_comment': 'pauseComment',
8184
'uuid': 'uuid',
8285
'description': 'description',
8386
'project_name': 'projectName',
@@ -107,7 +110,7 @@ class BuildType(TeamCityObject):
107110
'locator': 'locator'
108111
}
109112

110-
def __init__(self, id=None, internal_id=None, name=None, template_flag=False, type=None, paused=False, uuid=None, description=None, project_name=None, project_id=None, project_internal_id=None, href=None, web_url=None, inherited=False, links=None, project=None, templates=None, template=None, vcs_root_entries=None, settings=None, parameters=None, steps=None, features=None, triggers=None, snapshot_dependencies=None, artifact_dependencies=None, agent_requirements=None, branches=None, builds=None, investigations=None, compatible_agents=None, vcs_root_instances=None, locator=None, teamcity=None): # noqa: E501
113+
def __init__(self, id=None, internal_id=None, name=None, template_flag=False, type=None, paused=False, pause_comment=None, uuid=None, description=None, project_name=None, project_id=None, project_internal_id=None, href=None, web_url=None, inherited=False, links=None, project=None, templates=None, template=None, vcs_root_entries=None, settings=None, parameters=None, steps=None, features=None, triggers=None, snapshot_dependencies=None, artifact_dependencies=None, agent_requirements=None, branches=None, builds=None, investigations=None, compatible_agents=None, vcs_root_instances=None, locator=None, teamcity=None): # noqa: E501
111114
"""BuildType - a model defined in Swagger""" # noqa: E501
112115

113116
self._id = None
@@ -116,6 +119,7 @@ def __init__(self, id=None, internal_id=None, name=None, template_flag=False, ty
116119
self._template_flag = None
117120
self._type = None
118121
self._paused = None
122+
self._pause_comment = None
119123
self._uuid = None
120124
self._description = None
121125
self._project_name = None
@@ -157,6 +161,8 @@ def __init__(self, id=None, internal_id=None, name=None, template_flag=False, ty
157161
self.type = type
158162
if paused is not None:
159163
self.paused = paused
164+
if pause_comment is not None:
165+
self.pause_comment = pause_comment
160166
if uuid is not None:
161167
self.uuid = uuid
162168
if description is not None:
@@ -339,6 +345,27 @@ def paused(self, paused):
339345

340346
self._paused = paused
341347

348+
@property
349+
def pause_comment(self):
350+
"""Gets the pause_comment of this BuildType. # noqa: E501
351+
352+
353+
:return: The pause_comment of this BuildType. # noqa: E501
354+
:rtype: Comment
355+
"""
356+
return self._pause_comment
357+
358+
@pause_comment.setter
359+
def pause_comment(self, pause_comment):
360+
"""Sets the pause_comment of this BuildType.
361+
362+
363+
:param pause_comment: The pause_comment of this BuildType. # noqa: E501
364+
:type: Comment
365+
"""
366+
367+
self._pause_comment = pause_comment
368+
342369
@property
343370
def uuid(self):
344371
"""Gets the uuid of this BuildType. # noqa: E501

swagger/swagger.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15569,6 +15569,12 @@
1556915569
"attribute": true
1557015570
}
1557115571
},
15572+
"host": {
15573+
"type": "string",
15574+
"xml": {
15575+
"attribute": true
15576+
}
15577+
},
1557215578
"href": {
1557315579
"type": "string",
1557415580
"xml": {
@@ -16485,6 +16491,9 @@
1648516491
},
1648616492
"default": false
1648716493
},
16494+
"pauseComment": {
16495+
"$ref": "#/definitions/comment"
16496+
},
1648816497
"uuid": {
1648916498
"type": "string",
1649016499
"xml": {

0 commit comments

Comments
 (0)