Skip to content

Commit

Permalink
Merge pull request microsoft#250 from microsoft/users/tedchamb/dev5
Browse files Browse the repository at this point in the history
Add missing released clients, fix some descriptions
  • Loading branch information
tedchamb committed Jul 29, 2019
2 parents a93aed2 + a692c3b commit 22fa67a
Show file tree
Hide file tree
Showing 11 changed files with 755 additions and 119 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def create_agent_group(self, group):

def get_agent_groups(self, agent_group_id=None, machine_setup_input=None, machine_access_data=None, outgoing_request_urls=None, agent_group_name=None):
"""GetAgentGroups.
:param str agent_group_id: The agent group indentifier
:param str agent_group_id: The agent group identifier
:param bool machine_setup_input:
:param bool machine_access_data:
:param bool outgoing_request_urls:
Expand Down
76 changes: 76 additions & 0 deletions azure-devops/azure/devops/released/notification/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# Generated file, DO NOT EDIT
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------

from ...v5_1.notification.models import *
from .notification_client import NotificationClient

__all__ = [
'ArtifactFilter',
'BaseSubscriptionFilter',
'BatchNotificationOperation',
'EventActor',
'EventScope',
'EventsEvaluationResult',
'EventTransformRequest',
'EventTransformResult',
'ExpressionFilterClause',
'ExpressionFilterGroup',
'ExpressionFilterModel',
'FieldInputValues',
'FieldValuesQuery',
'GraphSubjectBase',
'IdentityRef',
'INotificationDiagnosticLog',
'InputValue',
'InputValues',
'InputValuesError',
'InputValuesQuery',
'ISubscriptionChannel',
'ISubscriptionFilter',
'NotificationAdminSettings',
'NotificationAdminSettingsUpdateParameters',
'NotificationDiagnosticLogMessage',
'NotificationEventField',
'NotificationEventFieldOperator',
'NotificationEventFieldType',
'NotificationEventPublisher',
'NotificationEventRole',
'NotificationEventType',
'NotificationEventTypeCategory',
'NotificationQueryCondition',
'NotificationReason',
'NotificationsEvaluationResult',
'NotificationStatistic',
'NotificationStatisticsQuery',
'NotificationStatisticsQueryConditions',
'NotificationSubscriber',
'NotificationSubscriberUpdateParameters',
'NotificationSubscription',
'NotificationSubscriptionCreateParameters',
'NotificationSubscriptionTemplate',
'NotificationSubscriptionUpdateParameters',
'OperatorConstraint',
'ReferenceLinks',
'SubscriptionAdminSettings',
'SubscriptionChannelWithAddress',
'SubscriptionDiagnostics',
'SubscriptionEvaluationRequest',
'SubscriptionEvaluationResult',
'SubscriptionEvaluationSettings',
'SubscriptionManagement',
'SubscriptionQuery',
'SubscriptionQueryCondition',
'SubscriptionScope',
'SubscriptionTracing',
'SubscriptionUserSettings',
'UpdateSubscripitonDiagnosticsParameters',
'UpdateSubscripitonTracingParameters',
'ValueDefinition',
'VssNotificationEvent',
'NotificationClient'
]
296 changes: 296 additions & 0 deletions azure-devops/azure/devops/released/notification/notification_client.py

Large diffs are not rendered by default.

68 changes: 68 additions & 0 deletions azure-devops/azure/devops/released/test_plan/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# Generated file, DO NOT EDIT
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------

from ...v5_1.test_plan.models import *
from .test_plan_client import TestPlanClient

__all__ = [
'BuildDefinitionReference',
'CloneOperationCommonResponse',
'CloneOptions',
'CloneStatistics',
'CloneTestPlanOperationInformation',
'CloneTestPlanParams',
'CloneTestSuiteOperationInformation',
'CloneTestSuiteParams',
'Configuration',
'DestinationTestPlanCloneParams',
'DestinationTestSuiteInfo',
'GraphSubjectBase',
'IdentityRef',
'LastResultDetails',
'NameValuePair',
'PointAssignment',
'ReferenceLinks',
'ReleaseEnvironmentDefinitionReference',
'Results',
'SourceTestPlanInfo',
'SourceTestplanResponse',
'SourceTestSuiteInfo',
'SuiteEntry',
'SuiteEntryUpdateParams',
'SuiteTestCaseCreateUpdateParameters',
'TeamProjectReference',
'TestCase',
'TestCaseReference',
'TestConfiguration',
'TestConfigurationCreateUpdateParameters',
'TestConfigurationReference',
'TestEnvironment',
'TestOutcomeSettings',
'TestPlan',
'TestPlanCreateParams',
'TestPlanDetailedReference',
'TestPlanReference',
'TestPlansHubRefreshData',
'TestPlanUpdateParams',
'TestPoint',
'TestPointCount',
'TestPointResults',
'TestPointUpdateParams',
'TestSettings',
'TestSuite',
'TestSuiteCreateParams',
'TestSuiteCreateUpdateCommonParams',
'TestSuiteReference',
'TestSuiteReferenceWithProject',
'TestSuiteUpdateParams',
'TestVariable',
'TestVariableCreateUpdateParameters',
'WorkItem',
'WorkItemDetails',
'TestPlanClient'
]
42 changes: 42 additions & 0 deletions azure-devops/azure/devops/released/test_plan/test_plan_client.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# Generated file, DO NOT EDIT
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------

from msrest import Serializer, Deserializer
from ...client import Client
from ...v5_1.test_plan import models


class TestPlanClient(Client):
"""TestPlan
:param str base_url: Service URL
:param Authentication creds: Authenticated credentials.
"""

def __init__(self, base_url=None, creds=None):
super(TestPlanClient, self).__init__(base_url, creds)
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

resource_area_identifier = None

def get_suites_by_test_case_id(self, test_case_id):
"""GetSuitesByTestCaseId.
Find the list of all test suites in which a given test case is present. This is helpful if you need to find out which test suites are using a test case, when you need to make changes to a test case.
:param int test_case_id: ID of the test case for which suites need to be fetched.
:rtype: [TestSuite]
"""
query_parameters = {}
if test_case_id is not None:
query_parameters['testCaseId'] = self._serialize.query('test_case_id', test_case_id, 'int')
response = self._send(http_method='GET',
location_id='a4080e84-f17b-4fad-84f1-7960b6525bf2',
version='5.1',
query_parameters=query_parameters)
return self._deserialize('[TestSuite]', self._unwrap_collection(response))

105 changes: 105 additions & 0 deletions azure-devops/azure/devops/released/test_results/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# Generated file, DO NOT EDIT
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------

from ...v5_1.test_results.models import *
from .test_results_client import TestResultsClient

__all__ = [
'AggregatedDataForResultTrend',
'AggregatedResultsAnalysis',
'AggregatedResultsByOutcome',
'AggregatedResultsDifference',
'AggregatedRunsByOutcome',
'AggregatedRunsByState',
'BuildConfiguration',
'BuildCoverage',
'BuildReference',
'CodeCoverageData',
'CodeCoverageStatistics',
'CodeCoverageSummary',
'CoverageStatistics',
'CustomTestField',
'DtlEnvironmentDetails',
'FailingSince',
'FieldDetailsForTestResults',
'FileCoverageRequest',
'FlakyDetection',
'FlakyDetectionPipelines',
'FlakySettings',
'FunctionCoverage',
'GraphSubjectBase',
'IdentityRef',
'JobReference',
'ModuleCoverage',
'PhaseReference',
'PipelineReference',
'QueryModel',
'ReferenceLinks',
'ReleaseReference',
'ResultsFilter',
'RunCreateModel',
'RunFilter',
'RunStatistic',
'RunSummaryModel',
'RunUpdateModel',
'ShallowReference',
'ShallowTestCaseResult',
'SharedStepModel',
'StageReference',
'TeamProjectReference',
'TestActionResultModel',
'TestAttachment',
'TestAttachmentReference',
'TestAttachmentRequestModel',
'TestCaseResult',
'TestCaseResultAttachmentModel',
'TestCaseResultIdentifier',
'TestEnvironment',
'TestFailureDetails',
'TestFailuresAnalysis',
'TestFlakyIdentifier',
'TestHistoryQuery',
'TestIterationDetailsModel',
'TestLog',
'TestLogReference',
'TestLogStoreEndpointDetails',
'TestMessageLogDetails',
'TestMethod',
'TestOperationReference',
'TestResolutionState',
'TestResultDocument',
'TestResultHistory',
'TestResultHistoryDetailsForGroup',
'TestResultHistoryForGroup',
'TestResultMetaData',
'TestResultMetaDataUpdateInput',
'TestResultModelBase',
'TestResultParameterModel',
'TestResultPayload',
'TestResultsContext',
'TestResultsDetails',
'TestResultsDetailsForGroup',
'TestResultsQuery',
'TestResultsSettings',
'TestResultSummary',
'TestResultsUpdateSettings',
'TestResultTrendFilter',
'TestRun',
'TestRunCoverage',
'TestRunStatistic',
'TestSettings',
'TestSubResult',
'TestSummaryForWorkItem',
'TestTag',
'TestTagSummary',
'TestTagsUpdateModel',
'TestToWorkItemLinks',
'WorkItemReference',
'WorkItemToTestLinks',
'TestResultsClient'
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# Generated file, DO NOT EDIT
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------

from msrest import Serializer, Deserializer
from ...client import Client
from ...v5_1.test_results import models


class TestResultsClient(Client):
"""TestResults
:param str base_url: Service URL
:param Authentication creds: Authenticated credentials.
"""

def __init__(self, base_url=None, creds=None):
super(TestResultsClient, self).__init__(base_url, creds)
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

resource_area_identifier = None

def get_test_run_statistics(self, project, run_id):
"""GetTestRunStatistics.
Get test run statistics , used when we want to get summary of a run by outcome.
:param str project: Project ID or project name
:param int run_id: ID of the run to get.
:rtype: :class:`<TestRunStatistic> <azure.devops.v5_1.test_results.models.TestRunStatistic>`
"""
route_values = {}
if project is not None:
route_values['project'] = self._serialize.url('project', project, 'str')
if run_id is not None:
route_values['runId'] = self._serialize.url('run_id', run_id, 'int')
response = self._send(http_method='GET',
location_id='82b986e8-ca9e-4a89-b39e-f65c69bc104a',
version='5.1',
route_values=route_values)
return self._deserialize('TestRunStatistic', response)

Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def create_agent_group(self, group):

def get_agent_groups(self, agent_group_id=None, machine_setup_input=None, machine_access_data=None, outgoing_request_urls=None, agent_group_name=None):
"""GetAgentGroups.
:param str agent_group_id: The agent group indentifier
:param str agent_group_id: The agent group identifier
:param bool machine_setup_input:
:param bool machine_access_data:
:param bool outgoing_request_urls:
Expand Down
Loading

0 comments on commit 22fa67a

Please sign in to comment.