-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing released clients, fix some descriptions
- Loading branch information
Showing
11 changed files
with
755 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
azure-devops/azure/devops/released/notification/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
296
azure-devops/azure/devops/released/notification/notification_client.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
42
azure-devops/azure/devops/released/test_plan/test_plan_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
105
azure-devops/azure/devops/released/test_results/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
] |
45 changes: 45 additions & 0 deletions
45
azure-devops/azure/devops/released/test_results/test_results_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.