Skip to content
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
3 changes: 3 additions & 0 deletions azure-devops/azure/devops/v5_1/cloud_load_test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
'Diagnostics',
'DropAccessData',
'ErrorDetails',
'GraphSubjectBase',
'IdentityRef',
'LoadGenerationGeoLocation',
'LoadTest',
'LoadTestDefinition',
Expand All @@ -33,6 +35,7 @@
'LoadTestRunSettings',
'OverridableRunSettings',
'PageSummary',
'ReferenceLinks',
'RequestSummary',
'ScenarioSummary',
'StaticAgentRunSetting',
Expand Down
126 changes: 115 additions & 11 deletions azure-devops/azure/devops/v5_1/cloud_load_test/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class AgentGroup(Model):
"""
:param created_by:
:type created_by: IdentityRef
:type created_by: :class:`IdentityRef <azure.devops.v5_1.microsoft._visual_studio._test_service._web_api_model.models.IdentityRef>`
:param creation_time:
:type creation_time: datetime
:param group_id:
Expand Down Expand Up @@ -458,6 +458,92 @@ def __init__(self, last_error_date=None, message_text=None, occurrences=None, re
self.test_case_name = test_case_name


class GraphSubjectBase(Model):
"""
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v5_1.microsoft._visual_studio._test_service._web_api_model.models.ReferenceLinks>`
:param descriptor:
:type descriptor: str
:param display_name:
:type display_name: str
:param url:
:type url: str
"""

_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'descriptor': {'key': 'descriptor', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}

def __init__(self, _links=None, descriptor=None, display_name=None, url=None):
super(GraphSubjectBase, self).__init__()
self._links = _links
self.descriptor = descriptor
self.display_name = display_name
self.url = url


class IdentityRef(GraphSubjectBase):
"""
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v5_1.microsoft._visual_studio._test_service._web_api_model.models.ReferenceLinks>`
:param descriptor:
:type descriptor: str
:param display_name:
:type display_name: str
:param url:
:type url: str
:param directory_alias:
:type directory_alias: str
:param id:
:type id: str
:param image_url:
:type image_url: str
:param inactive:
:type inactive: bool
:param is_aad_identity:
:type is_aad_identity: bool
:param is_container:
:type is_container: bool
:param is_deleted_in_origin:
:type is_deleted_in_origin: bool
:param profile_url:
:type profile_url: str
:param unique_name:
:type unique_name: str
"""

_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'descriptor': {'key': 'descriptor', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
'directory_alias': {'key': 'directoryAlias', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'image_url': {'key': 'imageUrl', 'type': 'str'},
'inactive': {'key': 'inactive', 'type': 'bool'},
'is_aad_identity': {'key': 'isAadIdentity', 'type': 'bool'},
'is_container': {'key': 'isContainer', 'type': 'bool'},
'is_deleted_in_origin': {'key': 'isDeletedInOrigin', 'type': 'bool'},
'profile_url': {'key': 'profileUrl', 'type': 'str'},
'unique_name': {'key': 'uniqueName', 'type': 'str'}
}

def __init__(self, _links=None, descriptor=None, display_name=None, url=None, directory_alias=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, is_deleted_in_origin=None, profile_url=None, unique_name=None):
super(IdentityRef, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url)
self.directory_alias = directory_alias
self.id = id
self.image_url = image_url
self.inactive = inactive
self.is_aad_identity = is_aad_identity
self.is_container = is_container
self.is_deleted_in_origin = is_deleted_in_origin
self.profile_url = profile_url
self.unique_name = unique_name


class LoadGenerationGeoLocation(Model):
"""
:param location:
Expand Down Expand Up @@ -671,6 +757,21 @@ def __init__(self, average_page_time=None, page_url=None, percentage_pages_meeti
self.total_pages = total_pages


class ReferenceLinks(Model):
"""
:param links:
:type links: dict
"""

_attribute_map = {
'links': {'key': 'links', 'type': '{object}'}
}

def __init__(self, links=None):
super(ReferenceLinks, self).__init__()
self.links = links


class RequestSummary(Model):
"""
:param average_response_time:
Expand Down Expand Up @@ -850,13 +951,13 @@ class TestDefinitionBasic(Model):
:param access_data:
:type access_data: :class:`DropAccessData <azure.devops.v5_1.microsoft._visual_studio._test_service._web_api_model.models.DropAccessData>`
:param created_by:
:type created_by: IdentityRef
:type created_by: :class:`IdentityRef <azure.devops.v5_1.microsoft._visual_studio._test_service._web_api_model.models.IdentityRef>`
:param created_date:
:type created_date: datetime
:param id:
:type id: str
:param last_modified_by:
:type last_modified_by: IdentityRef
:type last_modified_by: :class:`IdentityRef <azure.devops.v5_1.microsoft._visual_studio._test_service._web_api_model.models.IdentityRef>`
:param last_modified_date:
:type last_modified_date: datetime
:param load_test_type:
Expand Down Expand Up @@ -1050,11 +1151,11 @@ def __init__(self, action=None, cause=None, details=None, logged_date=None, sour
class TestRunBasic(Model):
"""
:param created_by:
:type created_by: IdentityRef
:type created_by: :class:`IdentityRef <azure.devops.v5_1.microsoft._visual_studio._test_service._web_api_model.models.IdentityRef>`
:param created_date:
:type created_date: datetime
:param deleted_by:
:type deleted_by: IdentityRef
:type deleted_by: :class:`IdentityRef <azure.devops.v5_1.microsoft._visual_studio._test_service._web_api_model.models.IdentityRef>`
:param deleted_date:
:type deleted_date: datetime
:param finished_date:
Expand Down Expand Up @@ -1485,13 +1586,13 @@ class TestDefinition(TestDefinitionBasic):
:param access_data:
:type access_data: :class:`DropAccessData <azure.devops.v5_1.microsoft._visual_studio._test_service._web_api_model.models.DropAccessData>`
:param created_by:
:type created_by: IdentityRef
:type created_by: :class:`IdentityRef <azure.devops.v5_1.microsoft._visual_studio._test_service._web_api_model.models.IdentityRef>`
:param created_date:
:type created_date: datetime
:param id:
:type id: str
:param last_modified_by:
:type last_modified_by: IdentityRef
:type last_modified_by: :class:`IdentityRef <azure.devops.v5_1.microsoft._visual_studio._test_service._web_api_model.models.IdentityRef>`
:param last_modified_date:
:type last_modified_date: datetime
:param load_test_type:
Expand Down Expand Up @@ -1542,11 +1643,11 @@ def __init__(self, access_data=None, created_by=None, created_date=None, id=None
class TestRun(TestRunBasic):
"""
:param created_by:
:type created_by: IdentityRef
:type created_by: :class:`IdentityRef <azure.devops.v5_1.microsoft._visual_studio._test_service._web_api_model.models.IdentityRef>`
:param created_date:
:type created_date: datetime
:param deleted_by:
:type deleted_by: IdentityRef
:type deleted_by: :class:`IdentityRef <azure.devops.v5_1.microsoft._visual_studio._test_service._web_api_model.models.IdentityRef>`
:param deleted_date:
:type deleted_date: datetime
:param finished_date:
Expand Down Expand Up @@ -1594,11 +1695,11 @@ class TestRun(TestRunBasic):
:param run_source_url:
:type run_source_url: str
:param started_by:
:type started_by: IdentityRef
:type started_by: :class:`IdentityRef <azure.devops.v5_1.microsoft._visual_studio._test_service._web_api_model.models.IdentityRef>`
:param started_date:
:type started_date: datetime
:param stopped_by:
:type stopped_by: IdentityRef
:type stopped_by: :class:`IdentityRef <azure.devops.v5_1.microsoft._visual_studio._test_service._web_api_model.models.IdentityRef>`
:param sub_state:
:type sub_state: object
:param supersede_run_settings:
Expand Down Expand Up @@ -1691,13 +1792,16 @@ def __init__(self, created_by=None, created_date=None, deleted_by=None, deleted_
'Diagnostics',
'DropAccessData',
'ErrorDetails',
'GraphSubjectBase',
'IdentityRef',
'LoadGenerationGeoLocation',
'LoadTest',
'LoadTestDefinition',
'LoadTestErrors',
'LoadTestRunSettings',
'OverridableRunSettings',
'PageSummary',
'ReferenceLinks',
'RequestSummary',
'ScenarioSummary',
'StaticAgentRunSetting',
Expand Down
8 changes: 6 additions & 2 deletions azure-devops/azure/devops/v5_1/test_results/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# --------------------------------------------------------------------------------------------

from .models import *
from .test_results_client import testResultsClient
from .test_results_client import TestResultsClient

__all__ = [
'AggregatedDataForResultTrend',
Expand All @@ -32,11 +32,14 @@
'FlakyDetectionPipelines',
'FlakySettings',
'FunctionCoverage',
'GraphSubjectBase',
'IdentityRef',
'JobReference',
'ModuleCoverage',
'PhaseReference',
'PipelineReference',
'QueryModel',
'ReferenceLinks',
'ReleaseReference',
'ResultsFilter',
'RunCreateModel',
Expand All @@ -48,6 +51,7 @@
'ShallowTestCaseResult',
'SharedStepModel',
'StageReference',
'TeamProjectReference',
'TestActionResultModel',
'TestAttachment',
'TestAttachmentReference',
Expand Down Expand Up @@ -97,5 +101,5 @@
'TestToWorkItemLinks',
'WorkItemReference',
'WorkItemToTestLinks',
'testResultsClient'
'TestResultsClient'
]
Loading